diff --git a/.github/workflows/formatting.yaml b/.github/workflows/formatting.yaml index d4d367cf..6844407b 100644 --- a/.github/workflows/formatting.yaml +++ b/.github/workflows/formatting.yaml @@ -18,7 +18,7 @@ jobs: with: java-version: 11 - run: "mvn com.coveo:fmt-maven-plugin:format" - - uses: googleapis/code-suggester@v1.8.0 + - uses: googleapis/code-suggester@v1 with: command: review pull_number: ${{ github.event.pull_request.number }} diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java index a1cc9dec..3da807fc 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java @@ -38,6 +38,8 @@ import com.google.container.v1.DeleteClusterRequest; import com.google.container.v1.DeleteNodePoolRequest; import com.google.container.v1.GetClusterRequest; +import com.google.container.v1.GetJSONWebKeysRequest; +import com.google.container.v1.GetJSONWebKeysResponse; import com.google.container.v1.GetNodePoolRequest; import com.google.container.v1.GetOperationRequest; import com.google.container.v1.GetServerConfigRequest; @@ -418,7 +420,7 @@ public final UnaryCallable getClusterCallable() { * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. * This field has been deprecated and replaced by the parent field. * @param cluster Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation createCluster(String projectId, String zone, Cluster cluster) { @@ -459,7 +461,7 @@ public final Operation createCluster(String projectId, String zone, Cluster clus * @param parent The parent (project and location) where the cluster will be created. Specified in * the format `projects/*/locations/*`. * @param cluster Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation createCluster(String parent, Cluster cluster) { @@ -763,10 +765,14 @@ public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest requ * This field has been deprecated and replaced by the name field. * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated * and replaced by the name field. - * @param loggingService Required. The logging service the cluster should use to write metrics. + * @param loggingService Required. The logging service the cluster should use to write logs. * Currently available options: - *

* "logging.googleapis.com" - the Google Cloud Logging service * "none" - no - * metrics will be exported from the cluster + *

* `logging.googleapis.com/kubernetes` - The Cloud Logging service with a + * Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging + * service (no longer available as of GKE 1.15). * `none` - no logs will be exported from + * the cluster. + *

If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE + * 1.14+ or `logging.googleapis.com` for earlier versions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation setLoggingService( @@ -797,10 +803,14 @@ public final Operation setLoggingService( * * @param name The name (project, location, cluster) of the cluster to set logging. Specified in * the format `projects/*/locations/*/clusters/*`. - * @param loggingService Required. The logging service the cluster should use to write metrics. + * @param loggingService Required. The logging service the cluster should use to write logs. * Currently available options: - *

* "logging.googleapis.com" - the Google Cloud Logging service * "none" - no - * metrics will be exported from the cluster + *

* `logging.googleapis.com/kubernetes` - The Cloud Logging service with a + * Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging + * service (no longer available as of GKE 1.15). * `none` - no logs will be exported from + * the cluster. + *

If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE + * 1.14+ or `logging.googleapis.com` for earlier versions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation setLoggingService(String name, String loggingService) { @@ -883,9 +893,12 @@ public final UnaryCallable setLoggingServic * and replaced by the name field. * @param monitoringService Required. 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 * "monitoring.googleapis.com" - the Google Cloud - * Monitoring service * "none" - no metrics will be exported from the cluster + *

* "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a + * Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud + * Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be + * exported from the cluster. + *

If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE + * 1.14+ or `monitoring.googleapis.com` for earlier versions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation setMonitoringService( @@ -918,9 +931,12 @@ public final Operation setMonitoringService( * in the format `projects/*/locations/*/clusters/*`. * @param monitoringService Required. 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 * "monitoring.googleapis.com" - the Google Cloud - * Monitoring service * "none" - no metrics will be exported from the cluster + *

* "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a + * Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud + * Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be + * exported from the cluster. + *

If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE + * 1.14+ or `monitoring.googleapis.com` for earlier versions. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation setMonitoringService(String name, String monitoringService) { @@ -1091,7 +1107,9 @@ public final UnaryCallable setAddonsConfigCal // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Sets the locations for a specific cluster. + * Sets the locations for a specific cluster. Deprecated. Use + * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) + * instead. * *

Sample code: * @@ -1135,7 +1153,9 @@ public final Operation setLocations( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Sets the locations for a specific cluster. + * Sets the locations for a specific cluster. Deprecated. Use + * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) + * instead. * *

Sample code: * @@ -1165,7 +1185,9 @@ public final Operation setLocations(String name, List locations) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Sets the locations for a specific cluster. + * Sets the locations for a specific cluster. Deprecated. Use + * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) + * instead. * *

Sample code: * @@ -1188,7 +1210,9 @@ public final Operation setLocations(SetLocationsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Sets the locations for a specific cluster. + * Sets the locations for a specific cluster. Deprecated. Use + * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) + * instead. * *

Sample code: * @@ -1603,6 +1627,28 @@ public final Operation getOperation(String projectId, String zone, String operat return getOperation(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the specified operation. + * + *

Sample code: + * + *


+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String name = "";
+   *   Operation response = clusterManagerClient.getOperation(name);
+   * }
+   * 
+ * + * @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 name) { + GetOperationRequest request = GetOperationRequest.newBuilder().setName(name).build(); + return getOperation(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Gets the specified operation. @@ -1827,6 +1873,48 @@ public final UnaryCallable getServerConfig return stub.getServerConfigCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the public component of the cluster signing keys in JSON Web Key format. This API is not + * yet intended for general use, and is not available for all clusters. + * + *

Sample code: + * + *


+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   GetJSONWebKeysRequest request = GetJSONWebKeysRequest.newBuilder().build();
+   *   GetJSONWebKeysResponse response = clusterManagerClient.getJSONWebKeys(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 GetJSONWebKeysResponse getJSONWebKeys(GetJSONWebKeysRequest request) { + return getJSONWebKeysCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the public component of the cluster signing keys in JSON Web Key format. This API is not + * yet intended for general use, and is not available for all clusters. + * + *

Sample code: + * + *


+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   GetJSONWebKeysRequest request = GetJSONWebKeysRequest.newBuilder().build();
+   *   ApiFuture<GetJSONWebKeysResponse> future = clusterManagerClient.getJSONWebKeysCallable().futureCall(request);
+   *   // Do something
+   *   GetJSONWebKeysResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + getJSONWebKeysCallable() { + return stub.getJSONWebKeysCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Lists the node pools for a cluster. diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java index de7f713a..e18feceb 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java @@ -37,6 +37,8 @@ import com.google.container.v1.DeleteClusterRequest; import com.google.container.v1.DeleteNodePoolRequest; import com.google.container.v1.GetClusterRequest; +import com.google.container.v1.GetJSONWebKeysRequest; +import com.google.container.v1.GetJSONWebKeysResponse; import com.google.container.v1.GetNodePoolRequest; import com.google.container.v1.GetOperationRequest; import com.google.container.v1.GetServerConfigRequest; @@ -193,6 +195,11 @@ public UnaryCallSettings getServerConfigSe return ((ClusterManagerStubSettings) getStubSettings()).getServerConfigSettings(); } + /** Returns the object with the settings used for calls to getJSONWebKeys. */ + public UnaryCallSettings getJSONWebKeysSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).getJSONWebKeysSettings(); + } + /** Returns the object with the settings used for calls to listNodePools. */ public UnaryCallSettings listNodePoolsSettings() { return ((ClusterManagerStubSettings) getStubSettings()).listNodePoolsSettings(); @@ -457,6 +464,12 @@ public UnaryCallSettings.Builder cancelOperationS return getStubSettingsBuilder().getServerConfigSettings(); } + /** Returns the builder for the settings used for calls to getJSONWebKeys. */ + public UnaryCallSettings.Builder + getJSONWebKeysSettings() { + return getStubSettingsBuilder().getJSONWebKeysSettings(); + } + /** Returns the builder for the settings used for calls to listNodePools. */ public UnaryCallSettings.Builder listNodePoolsSettings() { diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java index 2b0757ca..f332d9bc 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java @@ -28,6 +28,8 @@ import com.google.container.v1.DeleteClusterRequest; import com.google.container.v1.DeleteNodePoolRequest; import com.google.container.v1.GetClusterRequest; +import com.google.container.v1.GetJSONWebKeysRequest; +import com.google.container.v1.GetJSONWebKeysResponse; import com.google.container.v1.GetNodePoolRequest; import com.google.container.v1.GetOperationRequest; import com.google.container.v1.GetServerConfigRequest; @@ -140,6 +142,10 @@ public UnaryCallable getServerConfigCallab throw new UnsupportedOperationException("Not implemented: getServerConfigCallable()"); } + public UnaryCallable getJSONWebKeysCallable() { + throw new UnsupportedOperationException("Not implemented: getJSONWebKeysCallable()"); + } + public UnaryCallable listNodePoolsCallable() { throw new UnsupportedOperationException("Not implemented: listNodePoolsCallable()"); } diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java index 09293de0..209dc218 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java @@ -51,6 +51,8 @@ import com.google.container.v1.DeleteClusterRequest; import com.google.container.v1.DeleteNodePoolRequest; import com.google.container.v1.GetClusterRequest; +import com.google.container.v1.GetJSONWebKeysRequest; +import com.google.container.v1.GetJSONWebKeysResponse; import com.google.container.v1.GetNodePoolRequest; import com.google.container.v1.GetOperationRequest; import com.google.container.v1.GetServerConfigRequest; @@ -147,6 +149,8 @@ public class ClusterManagerStubSettings extends StubSettings getOperationSettings; private final UnaryCallSettings cancelOperationSettings; private final UnaryCallSettings getServerConfigSettings; + private final UnaryCallSettings + getJSONWebKeysSettings; private final UnaryCallSettings listNodePoolsSettings; private final UnaryCallSettings getNodePoolSettings; @@ -256,6 +260,11 @@ public UnaryCallSettings getServerConfigSe return getServerConfigSettings; } + /** Returns the object with the settings used for calls to getJSONWebKeys. */ + public UnaryCallSettings getJSONWebKeysSettings() { + return getJSONWebKeysSettings; + } + /** Returns the object with the settings used for calls to listNodePools. */ public UnaryCallSettings listNodePoolsSettings() { return listNodePoolsSettings; @@ -418,6 +427,7 @@ protected ClusterManagerStubSettings(Builder settingsBuilder) throws IOException getOperationSettings = settingsBuilder.getOperationSettings().build(); cancelOperationSettings = settingsBuilder.cancelOperationSettings().build(); getServerConfigSettings = settingsBuilder.getServerConfigSettings().build(); + getJSONWebKeysSettings = settingsBuilder.getJSONWebKeysSettings().build(); listNodePoolsSettings = settingsBuilder.listNodePoolsSettings().build(); getNodePoolSettings = settingsBuilder.getNodePoolSettings().build(); createNodePoolSettings = settingsBuilder.createNodePoolSettings().build(); @@ -528,6 +538,8 @@ public static class Builder extends StubSettings.Builder cancelOperationSettings; private final UnaryCallSettings.Builder getServerConfigSettings; + private final UnaryCallSettings.Builder + getJSONWebKeysSettings; private final UnaryCallSettings.Builder listNodePoolsSettings; private final UnaryCallSettings.Builder getNodePoolSettings; @@ -644,6 +656,8 @@ protected Builder(ClientContext clientContext) { getServerConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getJSONWebKeysSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listNodePoolsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -692,6 +706,7 @@ protected Builder(ClientContext clientContext) { getOperationSettings, cancelOperationSettings, getServerConfigSettings, + getJSONWebKeysSettings, listNodePoolsSettings, getNodePoolSettings, createNodePoolSettings, @@ -806,6 +821,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder + .getJSONWebKeysSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listNodePoolsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) @@ -899,6 +919,7 @@ protected Builder(ClusterManagerStubSettings settings) { getOperationSettings = settings.getOperationSettings.toBuilder(); cancelOperationSettings = settings.cancelOperationSettings.toBuilder(); getServerConfigSettings = settings.getServerConfigSettings.toBuilder(); + getJSONWebKeysSettings = settings.getJSONWebKeysSettings.toBuilder(); listNodePoolsSettings = settings.listNodePoolsSettings.toBuilder(); getNodePoolSettings = settings.getNodePoolSettings.toBuilder(); createNodePoolSettings = settings.createNodePoolSettings.toBuilder(); @@ -933,6 +954,7 @@ protected Builder(ClusterManagerStubSettings settings) { getOperationSettings, cancelOperationSettings, getServerConfigSettings, + getJSONWebKeysSettings, listNodePoolsSettings, getNodePoolSettings, createNodePoolSettings, @@ -1056,6 +1078,12 @@ public UnaryCallSettings.Builder cancelOperationS return getServerConfigSettings; } + /** Returns the builder for the settings used for calls to getJSONWebKeys. */ + public UnaryCallSettings.Builder + getJSONWebKeysSettings() { + return getJSONWebKeysSettings; + } + /** Returns the builder for the settings used for calls to listNodePools. */ public UnaryCallSettings.Builder listNodePoolsSettings() { diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java index 133fef89..bccb7608 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java @@ -34,6 +34,8 @@ import com.google.container.v1.DeleteClusterRequest; import com.google.container.v1.DeleteNodePoolRequest; import com.google.container.v1.GetClusterRequest; +import com.google.container.v1.GetJSONWebKeysRequest; +import com.google.container.v1.GetJSONWebKeysResponse; import com.google.container.v1.GetNodePoolRequest; import com.google.container.v1.GetOperationRequest; import com.google.container.v1.GetServerConfigRequest; @@ -232,6 +234,16 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { ProtoUtils.marshaller(GetServerConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ServerConfig.getDefaultInstance())) .build(); + private static final MethodDescriptor + getJSONWebKeysMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1.ClusterManager/GetJSONWebKeys") + .setRequestMarshaller( + ProtoUtils.marshaller(GetJSONWebKeysRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GetJSONWebKeysResponse.getDefaultInstance())) + .build(); private static final MethodDescriptor listNodePoolsMethodDescriptor = MethodDescriptor.newBuilder() @@ -377,6 +389,7 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { private final UnaryCallable getOperationCallable; private final UnaryCallable cancelOperationCallable; private final UnaryCallable getServerConfigCallable; + private final UnaryCallable getJSONWebKeysCallable; private final UnaryCallable listNodePoolsCallable; private final UnaryCallable getNodePoolCallable; private final UnaryCallable createNodePoolCallable; @@ -661,6 +674,20 @@ public Map extract(GetServerConfigRequest request) { } }) .build(); + GrpcCallSettings + getJSONWebKeysTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getJSONWebKeysMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetJSONWebKeysRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); GrpcCallSettings listNodePoolsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listNodePoolsMethodDescriptor) @@ -905,6 +932,9 @@ public Map extract(ListUsableSubnetworksRequest request) { this.getServerConfigCallable = callableFactory.createUnaryCallable( getServerConfigTransportSettings, settings.getServerConfigSettings(), clientContext); + this.getJSONWebKeysCallable = + callableFactory.createUnaryCallable( + getJSONWebKeysTransportSettings, settings.getJSONWebKeysSettings(), clientContext); this.listNodePoolsCallable = callableFactory.createUnaryCallable( listNodePoolsTransportSettings, settings.listNodePoolsSettings(), clientContext); @@ -1034,6 +1064,10 @@ public UnaryCallable getServerConfigCallab return getServerConfigCallable; } + public UnaryCallable getJSONWebKeysCallable() { + return getJSONWebKeysCallable; + } + public UnaryCallable listNodePoolsCallable() { return listNodePoolsCallable; } diff --git a/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java b/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java index 2522bf17..ee2f7232 100644 --- a/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java +++ b/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java @@ -35,6 +35,8 @@ import com.google.container.v1.DeleteClusterRequest; import com.google.container.v1.DeleteNodePoolRequest; import com.google.container.v1.GetClusterRequest; +import com.google.container.v1.GetJSONWebKeysRequest; +import com.google.container.v1.GetJSONWebKeysResponse; import com.google.container.v1.GetNodePoolRequest; import com.google.container.v1.GetOperationRequest; import com.google.container.v1.GetServerConfigRequest; @@ -1768,6 +1770,70 @@ public void getOperationExceptionTest() throws Exception { } } + @Test + @SuppressWarnings("all") + public void getOperationTest2() { + 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) + .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"; + + Operation actualResponse = client.getOperation(projectId, zone, operationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOperationRequest actualRequest = (GetOperationRequest) actualRequests.get(0); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(operationId, actualRequest.getOperationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getOperationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-1969970175"; + String zone = "zone3744684"; + String operationId = "operationId-274116877"; + + client.getOperation(projectId, zone, operationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + @Test @SuppressWarnings("all") public void cancelOperationTest() { @@ -1948,6 +2014,43 @@ public void getServerConfigExceptionTest2() throws Exception { } } + @Test + @SuppressWarnings("all") + public void getJSONWebKeysTest() { + GetJSONWebKeysResponse expectedResponse = GetJSONWebKeysResponse.newBuilder().build(); + mockClusterManager.addResponse(expectedResponse); + + GetJSONWebKeysRequest request = GetJSONWebKeysRequest.newBuilder().build(); + + GetJSONWebKeysResponse actualResponse = client.getJSONWebKeys(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetJSONWebKeysRequest actualRequest = (GetJSONWebKeysRequest) actualRequests.get(0); + + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getJSONWebKeysExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + GetJSONWebKeysRequest request = GetJSONWebKeysRequest.newBuilder().build(); + + client.getJSONWebKeys(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + @Test @SuppressWarnings("all") public void listNodePoolsTest() { diff --git a/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java b/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java index f8d57352..034ffe90 100644 --- a/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java +++ b/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java @@ -25,6 +25,8 @@ import com.google.container.v1.DeleteClusterRequest; import com.google.container.v1.DeleteNodePoolRequest; import com.google.container.v1.GetClusterRequest; +import com.google.container.v1.GetJSONWebKeysRequest; +import com.google.container.v1.GetJSONWebKeysResponse; import com.google.container.v1.GetNodePoolRequest; import com.google.container.v1.GetOperationRequest; import com.google.container.v1.GetServerConfigRequest; @@ -350,6 +352,21 @@ public void getServerConfig( } } + @Override + public void getJSONWebKeys( + GetJSONWebKeysRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof GetJSONWebKeysResponse) { + requests.add(request); + responseObserver.onNext((GetJSONWebKeysResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + @Override public void listNodePools( ListNodePoolsRequest request, StreamObserver responseObserver) { diff --git a/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java b/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java index d363e1db..2085f646 100644 --- a/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java +++ b/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java @@ -764,6 +764,51 @@ private ClusterManagerGrpc() {} return getGetServerConfigMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1.GetJSONWebKeysRequest, + com.google.container.v1.GetJSONWebKeysResponse> + getGetJSONWebKeysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetJSONWebKeys", + requestType = com.google.container.v1.GetJSONWebKeysRequest.class, + responseType = com.google.container.v1.GetJSONWebKeysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1.GetJSONWebKeysRequest, + com.google.container.v1.GetJSONWebKeysResponse> + getGetJSONWebKeysMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1.GetJSONWebKeysRequest, + com.google.container.v1.GetJSONWebKeysResponse> + getGetJSONWebKeysMethod; + if ((getGetJSONWebKeysMethod = ClusterManagerGrpc.getGetJSONWebKeysMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetJSONWebKeysMethod = ClusterManagerGrpc.getGetJSONWebKeysMethod) == null) { + ClusterManagerGrpc.getGetJSONWebKeysMethod = + getGetJSONWebKeysMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJSONWebKeys")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("GetJSONWebKeys")) + .build(); + } + } + } + return getGetJSONWebKeysMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.container.v1.ListNodePoolsRequest, com.google.container.v1.ListNodePoolsResponse> @@ -1461,7 +1506,8 @@ public void getCluster( * 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](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + * [default + * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, * the Kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the @@ -1559,8 +1605,12 @@ public void setAddonsConfig( * *
      * Sets the locations for a specific cluster.
+     * Deprecated. Use
+     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
+     * instead.
      * 
*/ + @java.lang.Deprecated public void setLocations( com.google.container.v1.SetLocationsRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1667,6 +1717,23 @@ public void getServerConfig( asyncUnimplementedUnaryCall(getGetServerConfigMethod(), responseObserver); } + /** + * + * + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public void getJSONWebKeys( + com.google.container.v1.GetJSONWebKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getGetJSONWebKeysMethod(), responseObserver); + } + /** * * @@ -1958,6 +2025,13 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.container.v1.GetServerConfigRequest, com.google.container.v1.ServerConfig>(this, METHODID_GET_SERVER_CONFIG))) + .addMethod( + getGetJSONWebKeysMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.GetJSONWebKeysRequest, + com.google.container.v1.GetJSONWebKeysResponse>( + this, METHODID_GET_JSONWEB_KEYS))) .addMethod( getListNodePoolsMethod(), asyncUnaryCall( @@ -2106,7 +2180,8 @@ public void getCluster( * 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](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + * [default + * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, * the Kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the @@ -2225,8 +2300,12 @@ public void setAddonsConfig( * *
      * Sets the locations for a specific cluster.
+     * Deprecated. Use
+     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
+     * instead.
      * 
*/ + @java.lang.Deprecated public void setLocations( com.google.container.v1.SetLocationsRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -2357,6 +2436,26 @@ public void getServerConfig( responseObserver); } + /** + * + * + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public void getJSONWebKeys( + com.google.container.v1.GetJSONWebKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2634,7 +2733,8 @@ public com.google.container.v1.Cluster getCluster( * 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](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + * [default + * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, * the Kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the @@ -2728,8 +2828,12 @@ public com.google.container.v1.Operation setAddonsConfig( * *
      * Sets the locations for a specific cluster.
+     * Deprecated. Use
+     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
+     * instead.
      * 
*/ + @java.lang.Deprecated public com.google.container.v1.Operation setLocations( com.google.container.v1.SetLocationsRequest request) { return blockingUnaryCall(getChannel(), getSetLocationsMethod(), getCallOptions(), request); @@ -2827,6 +2931,21 @@ public com.google.container.v1.ServerConfig getServerConfig( return blockingUnaryCall(getChannel(), getGetServerConfigMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public com.google.container.v1.GetJSONWebKeysResponse getJSONWebKeys( + com.google.container.v1.GetJSONWebKeysRequest request) { + return blockingUnaryCall(getChannel(), getGetJSONWebKeysMethod(), getCallOptions(), request); + } + /** * * @@ -3057,7 +3176,8 @@ protected ClusterManagerFutureStub build( * 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](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + * [default + * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, * the Kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the @@ -3155,8 +3275,12 @@ protected ClusterManagerFutureStub build( * *
      * Sets the locations for a specific cluster.
+     * Deprecated. Use
+     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
+     * instead.
      * 
*/ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture setLocations(com.google.container.v1.SetLocationsRequest request) { return futureUnaryCall( @@ -3263,6 +3387,23 @@ protected ClusterManagerFutureStub build( getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1.GetJSONWebKeysResponse> + getJSONWebKeys(com.google.container.v1.GetJSONWebKeysRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), request); + } + /** * * @@ -3465,20 +3606,21 @@ protected ClusterManagerFutureStub build( 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_GET_JSONWEB_KEYS = 17; + private static final int METHODID_LIST_NODE_POOLS = 18; + private static final int METHODID_GET_NODE_POOL = 19; + private static final int METHODID_CREATE_NODE_POOL = 20; + private static final int METHODID_DELETE_NODE_POOL = 21; + private static final int METHODID_ROLLBACK_NODE_POOL_UPGRADE = 22; + private static final int METHODID_SET_NODE_POOL_MANAGEMENT = 23; + private static final int METHODID_SET_LABELS = 24; + private static final int METHODID_SET_LEGACY_ABAC = 25; + private static final int METHODID_START_IPROTATION = 26; + private static final int METHODID_COMPLETE_IPROTATION = 27; + private static final int METHODID_SET_NODE_POOL_SIZE = 28; + private static final int METHODID_SET_NETWORK_POLICY = 29; + private static final int METHODID_SET_MAINTENANCE_POLICY = 30; + private static final int METHODID_LIST_USABLE_SUBNETWORKS = 31; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3584,6 +3726,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.container.v1.GetServerConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_JSONWEB_KEYS: + serviceImpl.getJSONWebKeys( + (com.google.container.v1.GetJSONWebKeysRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_LIST_NODE_POOLS: serviceImpl.listNodePools( (com.google.container.v1.ListNodePoolsRequest) request, @@ -3737,6 +3885,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetOperationMethod()) .addMethod(getCancelOperationMethod()) .addMethod(getGetServerConfigMethod()) + .addMethod(getGetJSONWebKeysMethod()) .addMethod(getListNodePoolsMethod()) .addMethod(getGetNodePoolMethod()) .addMethod(getCreateNodePoolMethod()) diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java index f04f4b14..ebca6571 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java @@ -147,6 +147,38 @@ private AddonsConfig( cloudRunConfig_ = subBuilder.buildPartial(); } + break; + } + case 66: + { + com.google.container.v1.DnsCacheConfig.Builder subBuilder = null; + if (dnsCacheConfig_ != null) { + subBuilder = dnsCacheConfig_.toBuilder(); + } + dnsCacheConfig_ = + input.readMessage( + com.google.container.v1.DnsCacheConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dnsCacheConfig_); + dnsCacheConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + com.google.container.v1.ConfigConnectorConfig.Builder subBuilder = null; + if (configConnectorConfig_ != null) { + subBuilder = configConnectorConfig_.toBuilder(); + } + configConnectorConfig_ = + input.readMessage( + com.google.container.v1.ConfigConnectorConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configConnectorConfig_); + configConnectorConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -460,6 +492,106 @@ public com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilde return getCloudRunConfig(); } + public static final int DNS_CACHE_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1.DnsCacheConfig dnsCacheConfig_; + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * + * @return Whether the dnsCacheConfig field is set. + */ + @java.lang.Override + public boolean hasDnsCacheConfig() { + return dnsCacheConfig_ != null; + } + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * + * @return The dnsCacheConfig. + */ + @java.lang.Override + public com.google.container.v1.DnsCacheConfig getDnsCacheConfig() { + return dnsCacheConfig_ == null + ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() + : dnsCacheConfig_; + } + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + @java.lang.Override + public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { + return getDnsCacheConfig(); + } + + public static final int CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER = 10; + private com.google.container.v1.ConfigConnectorConfig configConnectorConfig_; + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * + * @return Whether the configConnectorConfig field is set. + */ + @java.lang.Override + public boolean hasConfigConnectorConfig() { + return configConnectorConfig_ != null; + } + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * + * @return The configConnectorConfig. + */ + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() { + return configConnectorConfig_ == null + ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() + : configConnectorConfig_; + } + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfigOrBuilder + getConfigConnectorConfigOrBuilder() { + return getConfigConnectorConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -489,6 +621,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cloudRunConfig_ != null) { output.writeMessage(7, getCloudRunConfig()); } + if (dnsCacheConfig_ != null) { + output.writeMessage(8, getDnsCacheConfig()); + } + if (configConnectorConfig_ != null) { + output.writeMessage(10, getConfigConnectorConfig()); + } unknownFields.writeTo(output); } @@ -515,6 +653,13 @@ public int getSerializedSize() { if (cloudRunConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCloudRunConfig()); } + if (dnsCacheConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDnsCacheConfig()); + } + if (configConnectorConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getConfigConnectorConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -550,6 +695,14 @@ public boolean equals(final java.lang.Object obj) { if (hasCloudRunConfig()) { if (!getCloudRunConfig().equals(other.getCloudRunConfig())) return false; } + if (hasDnsCacheConfig() != other.hasDnsCacheConfig()) return false; + if (hasDnsCacheConfig()) { + if (!getDnsCacheConfig().equals(other.getDnsCacheConfig())) return false; + } + if (hasConfigConnectorConfig() != other.hasConfigConnectorConfig()) return false; + if (hasConfigConnectorConfig()) { + if (!getConfigConnectorConfig().equals(other.getConfigConnectorConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -581,6 +734,14 @@ public int hashCode() { hash = (37 * hash) + CLOUD_RUN_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getCloudRunConfig().hashCode(); } + if (hasDnsCacheConfig()) { + hash = (37 * hash) + DNS_CACHE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDnsCacheConfig().hashCode(); + } + if (hasConfigConnectorConfig()) { + hash = (37 * hash) + CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfigConnectorConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -756,6 +917,18 @@ public Builder clear() { cloudRunConfig_ = null; cloudRunConfigBuilder_ = null; } + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = null; + } else { + dnsCacheConfig_ = null; + dnsCacheConfigBuilder_ = null; + } + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = null; + } else { + configConnectorConfig_ = null; + configConnectorConfigBuilder_ = null; + } return this; } @@ -807,6 +980,16 @@ public com.google.container.v1.AddonsConfig buildPartial() { } else { result.cloudRunConfig_ = cloudRunConfigBuilder_.build(); } + if (dnsCacheConfigBuilder_ == null) { + result.dnsCacheConfig_ = dnsCacheConfig_; + } else { + result.dnsCacheConfig_ = dnsCacheConfigBuilder_.build(); + } + if (configConnectorConfigBuilder_ == null) { + result.configConnectorConfig_ = configConnectorConfig_; + } else { + result.configConnectorConfig_ = configConnectorConfigBuilder_.build(); + } onBuilt(); return result; } @@ -871,6 +1054,12 @@ public Builder mergeFrom(com.google.container.v1.AddonsConfig other) { if (other.hasCloudRunConfig()) { mergeCloudRunConfig(other.getCloudRunConfig()); } + if (other.hasDnsCacheConfig()) { + mergeDnsCacheConfig(other.getDnsCacheConfig()); + } + if (other.hasConfigConnectorConfig()) { + mergeConfigConnectorConfig(other.getConfigConnectorConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1941,6 +2130,388 @@ public com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilde return cloudRunConfigBuilder_; } + private com.google.container.v1.DnsCacheConfig dnsCacheConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DnsCacheConfig, + com.google.container.v1.DnsCacheConfig.Builder, + com.google.container.v1.DnsCacheConfigOrBuilder> + dnsCacheConfigBuilder_; + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * + * @return Whether the dnsCacheConfig field is set. + */ + public boolean hasDnsCacheConfig() { + return dnsCacheConfigBuilder_ != null || dnsCacheConfig_ != null; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * + * @return The dnsCacheConfig. + */ + public com.google.container.v1.DnsCacheConfig getDnsCacheConfig() { + if (dnsCacheConfigBuilder_ == null) { + return dnsCacheConfig_ == null + ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() + : dnsCacheConfig_; + } else { + return dnsCacheConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder setDnsCacheConfig(com.google.container.v1.DnsCacheConfig value) { + if (dnsCacheConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsCacheConfig_ = value; + onChanged(); + } else { + dnsCacheConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder setDnsCacheConfig( + com.google.container.v1.DnsCacheConfig.Builder builderForValue) { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = builderForValue.build(); + onChanged(); + } else { + dnsCacheConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder mergeDnsCacheConfig(com.google.container.v1.DnsCacheConfig value) { + if (dnsCacheConfigBuilder_ == null) { + if (dnsCacheConfig_ != null) { + dnsCacheConfig_ = + com.google.container.v1.DnsCacheConfig.newBuilder(dnsCacheConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dnsCacheConfig_ = value; + } + onChanged(); + } else { + dnsCacheConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder clearDnsCacheConfig() { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = null; + onChanged(); + } else { + dnsCacheConfig_ = null; + dnsCacheConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public com.google.container.v1.DnsCacheConfig.Builder getDnsCacheConfigBuilder() { + + onChanged(); + return getDnsCacheConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { + if (dnsCacheConfigBuilder_ != null) { + return dnsCacheConfigBuilder_.getMessageOrBuilder(); + } else { + return dnsCacheConfig_ == null + ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() + : dnsCacheConfig_; + } + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DnsCacheConfig, + com.google.container.v1.DnsCacheConfig.Builder, + com.google.container.v1.DnsCacheConfigOrBuilder> + getDnsCacheConfigFieldBuilder() { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DnsCacheConfig, + com.google.container.v1.DnsCacheConfig.Builder, + com.google.container.v1.DnsCacheConfigOrBuilder>( + getDnsCacheConfig(), getParentForChildren(), isClean()); + dnsCacheConfig_ = null; + } + return dnsCacheConfigBuilder_; + } + + private com.google.container.v1.ConfigConnectorConfig configConnectorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfigConnectorConfig, + com.google.container.v1.ConfigConnectorConfig.Builder, + com.google.container.v1.ConfigConnectorConfigOrBuilder> + configConnectorConfigBuilder_; + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * + * @return Whether the configConnectorConfig field is set. + */ + public boolean hasConfigConnectorConfig() { + return configConnectorConfigBuilder_ != null || configConnectorConfig_ != null; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * + * @return The configConnectorConfig. + */ + public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() { + if (configConnectorConfigBuilder_ == null) { + return configConnectorConfig_ == null + ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() + : configConnectorConfig_; + } else { + return configConnectorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder setConfigConnectorConfig(com.google.container.v1.ConfigConnectorConfig value) { + if (configConnectorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configConnectorConfig_ = value; + onChanged(); + } else { + configConnectorConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder setConfigConnectorConfig( + com.google.container.v1.ConfigConnectorConfig.Builder builderForValue) { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = builderForValue.build(); + onChanged(); + } else { + configConnectorConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder mergeConfigConnectorConfig(com.google.container.v1.ConfigConnectorConfig value) { + if (configConnectorConfigBuilder_ == null) { + if (configConnectorConfig_ != null) { + configConnectorConfig_ = + com.google.container.v1.ConfigConnectorConfig.newBuilder(configConnectorConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + configConnectorConfig_ = value; + } + onChanged(); + } else { + configConnectorConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder clearConfigConnectorConfig() { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = null; + onChanged(); + } else { + configConnectorConfig_ = null; + configConnectorConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public com.google.container.v1.ConfigConnectorConfig.Builder getConfigConnectorConfigBuilder() { + + onChanged(); + return getConfigConnectorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public com.google.container.v1.ConfigConnectorConfigOrBuilder + getConfigConnectorConfigOrBuilder() { + if (configConnectorConfigBuilder_ != null) { + return configConnectorConfigBuilder_.getMessageOrBuilder(); + } else { + return configConnectorConfig_ == null + ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() + : configConnectorConfig_; + } + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfigConnectorConfig, + com.google.container.v1.ConfigConnectorConfig.Builder, + com.google.container.v1.ConfigConnectorConfigOrBuilder> + getConfigConnectorConfigFieldBuilder() { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfigConnectorConfig, + com.google.container.v1.ConfigConnectorConfig.Builder, + com.google.container.v1.ConfigConnectorConfigOrBuilder>( + getConfigConnectorConfig(), getParentForChildren(), isClean()); + configConnectorConfig_ = null; + } + return configConnectorConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java index 223adff0..bd48987b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java @@ -233,4 +233,77 @@ public interface AddonsConfigOrBuilder * .google.container.v1.CloudRunConfig cloud_run_config = 7; */ com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * + * @return Whether the dnsCacheConfig field is set. + */ + boolean hasDnsCacheConfig(); + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * + * @return The dnsCacheConfig. + */ + com.google.container.v1.DnsCacheConfig getDnsCacheConfig(); + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * + * @return Whether the configConnectorConfig field is set. + */ + boolean hasConfigConnectorConfig(); + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * + * @return The configConnectorConfig. + */ + com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig(); + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + com.google.container.v1.ConfigConnectorConfigOrBuilder getConfigConnectorConfigOrBuilder(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java index 8d419f05..b0d55ffc 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java @@ -42,6 +42,9 @@ private AutoprovisioningNodePoolDefaults( private AutoprovisioningNodePoolDefaults() { oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; serviceAccount_ = ""; + minCpuPlatform_ = ""; + diskType_ = ""; + bootDiskKmsKey_ = ""; } @java.lang.Override @@ -91,6 +94,80 @@ private AutoprovisioningNodePoolDefaults( serviceAccount_ = s; break; } + case 26: + { + com.google.container.v1.NodePool.UpgradeSettings.Builder subBuilder = null; + if (upgradeSettings_ != null) { + subBuilder = upgradeSettings_.toBuilder(); + } + upgradeSettings_ = + input.readMessage( + com.google.container.v1.NodePool.UpgradeSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(upgradeSettings_); + upgradeSettings_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.container.v1.NodeManagement.Builder subBuilder = null; + if (management_ != null) { + subBuilder = management_.toBuilder(); + } + management_ = + input.readMessage( + com.google.container.v1.NodeManagement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(management_); + management_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + minCpuPlatform_ = s; + break; + } + case 48: + { + diskSizeGb_ = input.readInt32(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + diskType_ = s; + break; + } + case 66: + { + com.google.container.v1.ShieldedInstanceConfig.Builder subBuilder = null; + if (shieldedInstanceConfig_ != null) { + subBuilder = shieldedInstanceConfig_.toBuilder(); + } + shieldedInstanceConfig_ = + input.readMessage( + com.google.container.v1.ShieldedInstanceConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(shieldedInstanceConfig_); + shieldedInstanceConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + bootDiskKmsKey_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -134,8 +211,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-   * specified, service_account should be empty.
+   * Scopes that are used by NAP when creating node pools.
    * 
* * repeated string oauth_scopes = 1; @@ -149,8 +225,7 @@ public com.google.protobuf.ProtocolStringList getOauthScopesList() { * * *
-   * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-   * specified, service_account should be empty.
+   * Scopes that are used by NAP when creating node pools.
    * 
* * repeated string oauth_scopes = 1; @@ -164,8 +239,7 @@ public int getOauthScopesCount() { * * *
-   * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-   * specified, service_account should be empty.
+   * Scopes that are used by NAP when creating node pools.
    * 
* * repeated string oauth_scopes = 1; @@ -180,8 +254,7 @@ public java.lang.String getOauthScopes(int index) { * * *
-   * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-   * specified, service_account should be empty.
+   * Scopes that are used by NAP when creating node pools.
    * 
* * repeated string oauth_scopes = 1; @@ -199,8 +272,7 @@ public com.google.protobuf.ByteString getOauthScopesBytes(int index) { * * *
-   * The Google Cloud Platform Service Account to be used by the node VMs. If
-   * service_account is specified, scopes should be empty.
+   * The Google Cloud Platform Service Account to be used by the node VMs.
    * 
* * string service_account = 2; @@ -223,8 +295,7 @@ public java.lang.String getServiceAccount() { * * *
-   * The Google Cloud Platform Service Account to be used by the node VMs. If
-   * service_account is specified, scopes should be empty.
+   * The Google Cloud Platform Service Account to be used by the node VMs.
    * 
* * string service_account = 2; @@ -244,6 +315,348 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } + public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 3; + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + /** + * + * + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return upgradeSettings_ != null; + } + /** + * + * + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + /** + * + * + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + return getUpgradeSettings(); + } + + public static final int MANAGEMENT_FIELD_NUMBER = 4; + private com.google.container.v1.NodeManagement management_; + /** + * + * + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + * + * @return Whether the management field is set. + */ + @java.lang.Override + public boolean hasManagement() { + return management_ != null; + } + /** + * + * + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + * + * @return The management. + */ + @java.lang.Override + public com.google.container.v1.NodeManagement getManagement() { + return management_ == null + ? com.google.container.v1.NodeManagement.getDefaultInstance() + : management_; + } + /** + * + * + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + @java.lang.Override + public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { + return getManagement(); + } + + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 5; + private volatile java.lang.Object minCpuPlatform_; + /** + * + * + *
+   * Minimum CPU platform to be used for NAP created node pools.
+   * 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)
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5; + * + * @return The minCpuPlatform. + */ + @java.lang.Override + 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 for NAP created node pools.
+   * 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)
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5; + * + * @return The bytes for minCpuPlatform. + */ + @java.lang.Override + 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 DISK_SIZE_GB_FIELD_NUMBER = 6; + 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 = 6; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int DISK_TYPE_FIELD_NUMBER = 7; + private volatile java.lang.Object diskType_; + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * + * @return The diskType. + */ + @java.lang.Override + 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', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * + * @return The bytes for diskType. + */ + @java.lang.Override + 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 SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfig_ != null; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return The shieldedInstanceConfig. + */ + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null + ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return getShieldedInstanceConfig(); + } + + public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 9; + private volatile java.lang.Object bootDiskKmsKey_; + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bootDiskKmsKey. + */ + @java.lang.Override + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } + } + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bytes for bootDiskKmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -264,6 +677,27 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getServiceAccountBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); } + if (upgradeSettings_ != null) { + output.writeMessage(3, getUpgradeSettings()); + } + if (management_ != null) { + output.writeMessage(4, getManagement()); + } + if (!getMinCpuPlatformBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, minCpuPlatform_); + } + if (diskSizeGb_ != 0) { + output.writeInt32(6, diskSizeGb_); + } + if (!getDiskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, diskType_); + } + if (shieldedInstanceConfig_ != null) { + output.writeMessage(8, getShieldedInstanceConfig()); + } + if (!getBootDiskKmsKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, bootDiskKmsKey_); + } unknownFields.writeTo(output); } @@ -284,6 +718,28 @@ public int getSerializedSize() { if (!getServiceAccountBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); } + if (upgradeSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpgradeSettings()); + } + if (management_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getManagement()); + } + if (!getMinCpuPlatformBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, minCpuPlatform_); + } + if (diskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, diskSizeGb_); + } + if (!getDiskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, diskType_); + } + if (shieldedInstanceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getShieldedInstanceConfig()); + } + if (!getBootDiskKmsKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, bootDiskKmsKey_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -302,6 +758,22 @@ public boolean equals(final java.lang.Object obj) { if (!getOauthScopesList().equals(other.getOauthScopesList())) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; + if (hasUpgradeSettings()) { + if (!getUpgradeSettings().equals(other.getUpgradeSettings())) return false; + } + if (hasManagement() != other.hasManagement()) return false; + if (hasManagement()) { + if (!getManagement().equals(other.getManagement())) return false; + } + if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; + if (getDiskSizeGb() != other.getDiskSizeGb()) return false; + if (!getDiskType().equals(other.getDiskType())) return false; + if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; + if (hasShieldedInstanceConfig()) { + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; + } + if (!getBootDiskKmsKey().equals(other.getBootDiskKmsKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -319,6 +791,26 @@ public int hashCode() { } hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); + if (hasUpgradeSettings()) { + hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeSettings().hashCode(); + } + if (hasManagement()) { + hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getManagement().hashCode(); + } + hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getMinCpuPlatform().hashCode(); + hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDiskSizeGb(); + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDiskType().hashCode(); + if (hasShieldedInstanceConfig()) { + hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); + } + hash = (37 * hash) + BOOT_DISK_KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getBootDiskKmsKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -470,6 +962,32 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); serviceAccount_ = ""; + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + minCpuPlatform_ = ""; + + diskSizeGb_ = 0; + + diskType_ = ""; + + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + bootDiskKmsKey_ = ""; + return this; } @@ -504,6 +1022,25 @@ public com.google.container.v1.AutoprovisioningNodePoolDefaults buildPartial() { } result.oauthScopes_ = oauthScopes_; result.serviceAccount_ = serviceAccount_; + if (upgradeSettingsBuilder_ == null) { + result.upgradeSettings_ = upgradeSettings_; + } else { + result.upgradeSettings_ = upgradeSettingsBuilder_.build(); + } + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + result.minCpuPlatform_ = minCpuPlatform_; + result.diskSizeGb_ = diskSizeGb_; + result.diskType_ = diskType_; + if (shieldedInstanceConfigBuilder_ == null) { + result.shieldedInstanceConfig_ = shieldedInstanceConfig_; + } else { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); + } + result.bootDiskKmsKey_ = bootDiskKmsKey_; onBuilt(); return result; } @@ -568,6 +1105,30 @@ public Builder mergeFrom(com.google.container.v1.AutoprovisioningNodePoolDefault serviceAccount_ = other.serviceAccount_; onChanged(); } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + onChanged(); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } + if (!other.getBootDiskKmsKey().isEmpty()) { + bootDiskKmsKey_ = other.bootDiskKmsKey_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -613,8 +1174,7 @@ private void ensureOauthScopesIsMutable() { * * *
-     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-     * specified, service_account should be empty.
+     * Scopes that are used by NAP when creating node pools.
      * 
* * repeated string oauth_scopes = 1; @@ -628,8 +1188,7 @@ public com.google.protobuf.ProtocolStringList getOauthScopesList() { * * *
-     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-     * specified, service_account should be empty.
+     * Scopes that are used by NAP when creating node pools.
      * 
* * repeated string oauth_scopes = 1; @@ -643,8 +1202,7 @@ public int getOauthScopesCount() { * * *
-     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-     * specified, service_account should be empty.
+     * Scopes that are used by NAP when creating node pools.
      * 
* * repeated string oauth_scopes = 1; @@ -659,8 +1217,7 @@ public java.lang.String getOauthScopes(int index) { * * *
-     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-     * specified, service_account should be empty.
+     * Scopes that are used by NAP when creating node pools.
      * 
* * repeated string oauth_scopes = 1; @@ -675,8 +1232,7 @@ public com.google.protobuf.ByteString getOauthScopesBytes(int index) { * * *
-     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-     * specified, service_account should be empty.
+     * Scopes that are used by NAP when creating node pools.
      * 
* * repeated string oauth_scopes = 1; @@ -698,8 +1254,7 @@ public Builder setOauthScopes(int index, java.lang.String value) { * * *
-     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-     * specified, service_account should be empty.
+     * Scopes that are used by NAP when creating node pools.
      * 
* * repeated string oauth_scopes = 1; @@ -720,8 +1275,7 @@ public Builder addOauthScopes(java.lang.String value) { * * *
-     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-     * specified, service_account should be empty.
+     * Scopes that are used by NAP when creating node pools.
      * 
* * repeated string oauth_scopes = 1; @@ -739,8 +1293,7 @@ public Builder addAllOauthScopes(java.lang.Iterable values) { * * *
-     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-     * specified, service_account should be empty.
+     * Scopes that are used by NAP when creating node pools.
      * 
* * repeated string oauth_scopes = 1; @@ -757,8 +1310,7 @@ public Builder clearOauthScopes() { * * *
-     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-     * specified, service_account should be empty.
+     * Scopes that are used by NAP when creating node pools.
      * 
* * repeated string oauth_scopes = 1; @@ -782,8 +1334,7 @@ public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { * * *
-     * The Google Cloud Platform Service Account to be used by the node VMs. If
-     * service_account is specified, scopes should be empty.
+     * The Google Cloud Platform Service Account to be used by the node VMs.
      * 
* * string service_account = 2; @@ -805,8 +1356,7 @@ public java.lang.String getServiceAccount() { * * *
-     * The Google Cloud Platform Service Account to be used by the node VMs. If
-     * service_account is specified, scopes should be empty.
+     * The Google Cloud Platform Service Account to be used by the node VMs.
      * 
* * string service_account = 2; @@ -828,8 +1378,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
-     * The Google Cloud Platform Service Account to be used by the node VMs. If
-     * service_account is specified, scopes should be empty.
+     * The Google Cloud Platform Service Account to be used by the node VMs.
      * 
* * string service_account = 2; @@ -850,8 +1399,7 @@ public Builder setServiceAccount(java.lang.String value) { * * *
-     * The Google Cloud Platform Service Account to be used by the node VMs. If
-     * service_account is specified, scopes should be empty.
+     * The Google Cloud Platform Service Account to be used by the node VMs.
      * 
* * string service_account = 2; @@ -868,8 +1416,7 @@ public Builder clearServiceAccount() { * * *
-     * The Google Cloud Platform Service Account to be used by the node VMs. If
-     * service_account is specified, scopes should be empty.
+     * The Google Cloud Platform Service Account to be used by the node VMs.
      * 
* * string service_account = 2; @@ -888,6 +1435,1017 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + upgradeSettingsBuilder_; + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return The upgradeSettings. + */ + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder setUpgradeSettings( + com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (upgradeSettings_ != null) { + upgradeSettings_ = + com.google.container.v1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeSettings_ = value; + } + onChanged(); + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder clearUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + onChanged(); + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { + + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + } + /** + * + * + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), getParentForChildren(), isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + private com.google.container.v1.NodeManagement management_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, + com.google.container.v1.NodeManagement.Builder, + com.google.container.v1.NodeManagementOrBuilder> + managementBuilder_; + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + * + * @return Whether the management field is set. + */ + public boolean hasManagement() { + return managementBuilder_ != null || management_ != null; + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + * + * @return The management. + */ + public com.google.container.v1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null + ? com.google.container.v1.NodeManagement.getDefaultInstance() + : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public Builder setManagement(com.google.container.v1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public Builder setManagement(com.google.container.v1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public Builder mergeManagement(com.google.container.v1.NodeManagement value) { + if (managementBuilder_ == null) { + if (management_ != null) { + management_ = + com.google.container.v1.NodeManagement.newBuilder(management_) + .mergeFrom(value) + .buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { + + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null + ? com.google.container.v1.NodeManagement.getDefaultInstance() + : management_; + } + } + /** + * + * + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, + com.google.container.v1.NodeManagement.Builder, + com.google.container.v1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, + com.google.container.v1.NodeManagement.Builder, + com.google.container.v1.NodeManagementOrBuilder>( + getManagement(), getParentForChildren(), isClean()); + management_ = null; + } + return managementBuilder_; + } + + private java.lang.Object minCpuPlatform_ = ""; + /** + * + * + *
+     * Minimum CPU platform to be used for NAP created node pools.
+     * 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)
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5; + * + * @return The minCpuPlatform. + */ + 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 for NAP created node pools.
+     * 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)
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5; + * + * @return The bytes for minCpuPlatform. + */ + 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 for NAP created node pools.
+     * 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)
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5; + * + * @param value The minCpuPlatform to set. + * @return This builder for chaining. + */ + public Builder setMinCpuPlatform(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + minCpuPlatform_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum CPU platform to be used for NAP created node pools.
+     * 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)
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5; + * + * @return This builder for chaining. + */ + public Builder clearMinCpuPlatform() { + + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum CPU platform to be used for NAP created node pools.
+     * 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)
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5; + * + * @param value The bytes for minCpuPlatform to set. + * @return This builder for chaining. + */ + public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + minCpuPlatform_ = 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 = 6; + * + * @return The diskSizeGb. + */ + @java.lang.Override + 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 = 6; + * + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + 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 = 6; + * + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private java.lang.Object diskType_ = ""; + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @return The diskType. + */ + 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', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @return The bytes for diskType. + */ + 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', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + 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', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + + diskType_ = getDefaultInstance().getDiskType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @param value The bytes for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + diskType_ = value; + onChanged(); + return this; + } + + private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, + com.google.container.v1.ShieldedInstanceConfig.Builder, + com.google.container.v1.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return The shieldedInstanceConfig. + */ + public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null + ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder mergeShieldedInstanceConfig( + com.google.container.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (shieldedInstanceConfig_ != null) { + shieldedInstanceConfig_ = + com.google.container.v1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedInstanceConfig_ = value; + } + onChanged(); + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder clearShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + onChanged(); + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.container.v1.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.container.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null + ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, + com.google.container.v1.ShieldedInstanceConfig.Builder, + com.google.container.v1.ShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, + com.google.container.v1.ShieldedInstanceConfig.Builder, + com.google.container.v1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + + private java.lang.Object bootDiskKmsKey_ = ""; + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bootDiskKmsKey. + */ + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bytes for bootDiskKmsKey. + */ + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @param value The bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @return This builder for chaining. + */ + public Builder clearBootDiskKmsKey() { + + bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @param value The bytes for bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java index 48cb7e1e..f228ec65 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -27,8 +27,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * * *
-   * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-   * specified, service_account should be empty.
+   * Scopes that are used by NAP when creating node pools.
    * 
* * repeated string oauth_scopes = 1; @@ -40,8 +39,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * * *
-   * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-   * specified, service_account should be empty.
+   * Scopes that are used by NAP when creating node pools.
    * 
* * repeated string oauth_scopes = 1; @@ -53,8 +51,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * * *
-   * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-   * specified, service_account should be empty.
+   * Scopes that are used by NAP when creating node pools.
    * 
* * repeated string oauth_scopes = 1; @@ -67,8 +64,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * * *
-   * Scopes that are used by NAP when creating node pools. If oauth_scopes are
-   * specified, service_account should be empty.
+   * Scopes that are used by NAP when creating node pools.
    * 
* * repeated string oauth_scopes = 1; @@ -82,8 +78,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * * *
-   * The Google Cloud Platform Service Account to be used by the node VMs. If
-   * service_account is specified, scopes should be empty.
+   * The Google Cloud Platform Service Account to be used by the node VMs.
    * 
* * string service_account = 2; @@ -95,8 +90,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * * *
-   * The Google Cloud Platform Service Account to be used by the node VMs. If
-   * service_account is specified, scopes should be empty.
+   * The Google Cloud Platform Service Account to be used by the node VMs.
    * 
* * string service_account = 2; @@ -104,4 +98,229 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * @return The bytes for serviceAccount. */ com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return Whether the upgradeSettings field is set. + */ + boolean hasUpgradeSettings(); + /** + * + * + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return The upgradeSettings. + */ + com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings(); + /** + * + * + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); + + /** + * + * + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + * + * @return Whether the management field is set. + */ + boolean hasManagement(); + /** + * + * + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + * + * @return The management. + */ + com.google.container.v1.NodeManagement getManagement(); + /** + * + * + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + * + * + *
+   * Minimum CPU platform to be used for NAP created node pools.
+   * 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)
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5; + * + * @return The minCpuPlatform. + */ + java.lang.String getMinCpuPlatform(); + /** + * + * + *
+   * Minimum CPU platform to be used for NAP created node pools.
+   * 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)
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5; + * + * @return The bytes for minCpuPlatform. + */ + com.google.protobuf.ByteString getMinCpuPlatformBytes(); + + /** + * + * + *
+   * 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 = 6; + * + * @return The diskSizeGb. + */ + int getDiskSizeGb(); + + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * + * @return The diskType. + */ + java.lang.String getDiskType(); + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * + * @return The bytes for diskType. + */ + com.google.protobuf.ByteString getDiskTypeBytes(); + + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + boolean hasShieldedInstanceConfig(); + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return The shieldedInstanceConfig. + */ + com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig(); + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bootDiskKmsKey. + */ + java.lang.String getBootDiskKmsKey(); + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bytes for bootDiskKmsKey. + */ + com.google.protobuf.ByteString getBootDiskKmsKeyBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java index 455a8f6d..962feeea 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java @@ -197,8 +197,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/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]; @@ -223,8 +224,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/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]; @@ -840,8 +842,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/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]; @@ -865,8 +868,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/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]; @@ -890,8 +894,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/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]; @@ -914,8 +919,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/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]; @@ -934,8 +940,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/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]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java index 489a8baf..aa89183a 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java @@ -59,8 +59,9 @@ public interface CancelOperationRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/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]; @@ -74,8 +75,9 @@ public interface CancelOperationRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/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]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java index 973b9ca5..98738d33 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java @@ -37,7 +37,9 @@ private CloudRunConfig(com.google.protobuf.GeneratedMessageV3.Builder builder super(builder); } - private CloudRunConfig() {} + private CloudRunConfig() { + loadBalancerType_ = 0; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -73,6 +75,13 @@ private CloudRunConfig( disabled_ = input.readBool(); break; } + case 24: + { + int rawValue = input.readEnum(); + + loadBalancerType_ = rawValue; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -107,6 +116,165 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.container.v1.CloudRunConfig.Builder.class); } + /** + * + * + *
+   * Load balancer type of ingress service of Cloud Run.
+   * 
+ * + * Protobuf enum {@code google.container.v1.CloudRunConfig.LoadBalancerType} + */ + public enum LoadBalancerType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Load balancer type for Cloud Run is unspecified.
+     * 
+ * + * LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + */ + LOAD_BALANCER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Install external load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_EXTERNAL = 1; + */ + LOAD_BALANCER_TYPE_EXTERNAL(1), + /** + * + * + *
+     * Install internal load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_INTERNAL = 2; + */ + LOAD_BALANCER_TYPE_INTERNAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Load balancer type for Cloud Run is unspecified.
+     * 
+ * + * LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + */ + public static final int LOAD_BALANCER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Install external load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_EXTERNAL = 1; + */ + public static final int LOAD_BALANCER_TYPE_EXTERNAL_VALUE = 1; + /** + * + * + *
+     * Install internal load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_INTERNAL = 2; + */ + public static final int LOAD_BALANCER_TYPE_INTERNAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LoadBalancerType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LoadBalancerType forNumber(int value) { + switch (value) { + case 0: + return LOAD_BALANCER_TYPE_UNSPECIFIED; + case 1: + return LOAD_BALANCER_TYPE_EXTERNAL; + case 2: + return LOAD_BALANCER_TYPE_INTERNAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LoadBalancerType findValueByNumber(int number) { + return LoadBalancerType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.CloudRunConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final LoadBalancerType[] VALUES = values(); + + public static LoadBalancerType 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 LoadBalancerType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.CloudRunConfig.LoadBalancerType) + } + public static final int DISABLED_FIELD_NUMBER = 1; private boolean disabled_; /** @@ -125,6 +293,44 @@ public boolean getDisabled() { return disabled_; } + public static final int LOAD_BALANCER_TYPE_FIELD_NUMBER = 3; + private int loadBalancerType_; + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The enum numeric value on the wire for loadBalancerType. + */ + @java.lang.Override + public int getLoadBalancerTypeValue() { + return loadBalancerType_; + } + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The loadBalancerType. + */ + @java.lang.Override + public com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { + @SuppressWarnings("deprecation") + com.google.container.v1.CloudRunConfig.LoadBalancerType result = + com.google.container.v1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); + return result == null + ? com.google.container.v1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -142,6 +348,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disabled_ != false) { output.writeBool(1, disabled_); } + if (loadBalancerType_ + != com.google.container.v1.CloudRunConfig.LoadBalancerType.LOAD_BALANCER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, loadBalancerType_); + } unknownFields.writeTo(output); } @@ -154,6 +365,11 @@ public int getSerializedSize() { if (disabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); } + if (loadBalancerType_ + != com.google.container.v1.CloudRunConfig.LoadBalancerType.LOAD_BALANCER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, loadBalancerType_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -170,6 +386,7 @@ public boolean equals(final java.lang.Object obj) { com.google.container.v1.CloudRunConfig other = (com.google.container.v1.CloudRunConfig) obj; if (getDisabled() != other.getDisabled()) return false; + if (loadBalancerType_ != other.loadBalancerType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -183,6 +400,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (37 * hash) + LOAD_BALANCER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + loadBalancerType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -330,6 +549,8 @@ public Builder clear() { super.clear(); disabled_ = false; + loadBalancerType_ = 0; + return this; } @@ -358,6 +579,7 @@ public com.google.container.v1.CloudRunConfig buildPartial() { com.google.container.v1.CloudRunConfig result = new com.google.container.v1.CloudRunConfig(this); result.disabled_ = disabled_; + result.loadBalancerType_ = loadBalancerType_; onBuilt(); return result; } @@ -410,6 +632,9 @@ public Builder mergeFrom(com.google.container.v1.CloudRunConfig other) { if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } + if (other.loadBalancerType_ != 0) { + setLoadBalancerTypeValue(other.getLoadBalancerTypeValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -491,6 +716,100 @@ public Builder clearDisabled() { return this; } + private int loadBalancerType_ = 0; + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The enum numeric value on the wire for loadBalancerType. + */ + @java.lang.Override + public int getLoadBalancerTypeValue() { + return loadBalancerType_; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @param value The enum numeric value on the wire for loadBalancerType to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerTypeValue(int value) { + + loadBalancerType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The loadBalancerType. + */ + @java.lang.Override + public com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { + @SuppressWarnings("deprecation") + com.google.container.v1.CloudRunConfig.LoadBalancerType result = + com.google.container.v1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); + return result == null + ? com.google.container.v1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @param value The loadBalancerType to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerType( + com.google.container.v1.CloudRunConfig.LoadBalancerType value) { + if (value == null) { + throw new NullPointerException(); + } + + loadBalancerType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearLoadBalancerType() { + + loadBalancerType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java index 29a887b8..7a70eb98 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java @@ -35,4 +35,29 @@ public interface CloudRunConfigOrBuilder * @return The disabled. */ boolean getDisabled(); + + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The enum numeric value on the wire for loadBalancerType. + */ + int getLoadBalancerTypeValue(); + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The loadBalancerType. + */ + com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java index 49707f35..80cf9686 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java @@ -468,6 +468,54 @@ private Cluster( verticalPodAutoscaling_ = subBuilder.buildPartial(); } + break; + } + case 322: + { + com.google.container.v1.ShieldedNodes.Builder subBuilder = null; + if (shieldedNodes_ != null) { + subBuilder = shieldedNodes_.toBuilder(); + } + shieldedNodes_ = + input.readMessage( + com.google.container.v1.ShieldedNodes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(shieldedNodes_); + shieldedNodes_ = subBuilder.buildPartial(); + } + + break; + } + case 330: + { + com.google.container.v1.ReleaseChannel.Builder subBuilder = null; + if (releaseChannel_ != null) { + subBuilder = releaseChannel_.toBuilder(); + } + releaseChannel_ = + input.readMessage( + com.google.container.v1.ReleaseChannel.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(releaseChannel_); + releaseChannel_ = subBuilder.buildPartial(); + } + + break; + } + case 346: + { + com.google.container.v1.WorkloadIdentityConfig.Builder subBuilder = null; + if (workloadIdentityConfig_ != null) { + subBuilder = workloadIdentityConfig_.toBuilder(); + } + workloadIdentityConfig_ = + input.readMessage( + com.google.container.v1.WorkloadIdentityConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workloadIdentityConfig_); + workloadIdentityConfig_ = subBuilder.buildPartial(); + } + break; } case 802: @@ -720,8 +768,8 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * The ERROR state indicates the cluster may be unusable. Details
-     * can be found in the `statusMessage` field.
+     * The ERROR state indicates the cluster is unusable. It will be
+     * automatically deleted. Details can be found in the `statusMessage` field.
      * 
* * ERROR = 5; @@ -798,8 +846,8 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * The ERROR state indicates the cluster may be unusable. Details
-     * can be found in the `statusMessage` field.
+     * The ERROR state indicates the cluster is unusable. It will be
+     * automatically deleted. Details can be found in the `statusMessage` field.
      * 
* * ERROR = 5; @@ -1189,11 +1237,13 @@ public com.google.container.v1.MasterAuthOrBuilder getMasterAuthOrBuilder() { *
    * The logging service the cluster should use to write logs.
    * Currently available options:
-   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-   * service with Kubernetes-native resource model
-   * * `logging.googleapis.com` - the Google Cloud Logging service.
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
    * * `none` - no logs will be exported from the cluster.
-   * * if left as an empty string,`logging.googleapis.com` will be used.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
    * 
* * string logging_service = 6; @@ -1218,11 +1268,13 @@ public java.lang.String getLoggingService() { *
    * The logging service the cluster should use to write logs.
    * Currently available options:
-   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-   * service with Kubernetes-native resource model
-   * * `logging.googleapis.com` - the Google Cloud Logging service.
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
    * * `none` - no logs will be exported from the cluster.
-   * * if left as an empty string,`logging.googleapis.com` will be used.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
    * 
* * string logging_service = 6; @@ -1250,9 +1302,13 @@ public 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.
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
    * 
* * string monitoring_service = 7; @@ -1277,9 +1333,13 @@ public 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.
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
    * 
* * string monitoring_service = 7; @@ -1306,9 +1366,9 @@ public com.google.protobuf.ByteString getMonitoringServiceBytes() { * *
    * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
-   * cluster is connected. If left unspecified, the `default` network
-   * will be used.
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used.
    * 
* * string network = 8; @@ -1332,9 +1392,9 @@ public java.lang.String getNetwork() { * *
    * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
-   * cluster is connected. If left unspecified, the `default` network
-   * will be used.
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used.
    * 
* * string network = 8; @@ -1464,8 +1524,8 @@ public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() * *
    * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the
-   * cluster is connected.
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected.
    * 
* * string subnetwork = 11; @@ -1489,8 +1549,8 @@ public java.lang.String getSubnetwork() { * *
    * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the
-   * cluster is connected.
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected.
    * 
* * string subnetwork = 11; @@ -1596,8 +1656,14 @@ public com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder(int index * *
    * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-   * should be located.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
    * 
* * repeated string locations = 13; @@ -1612,8 +1678,14 @@ public com.google.protobuf.ProtocolStringList getLocationsList() { * *
    * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-   * should be located.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
    * 
* * repeated string locations = 13; @@ -1628,8 +1700,14 @@ public int getLocationsCount() { * *
    * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-   * should be located.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
    * 
* * repeated string locations = 13; @@ -1645,8 +1723,14 @@ public java.lang.String getLocations(int index) { * *
    * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-   * should be located.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
    * 
* * repeated string locations = 13; @@ -2527,6 +2611,154 @@ public com.google.container.v1.VerticalPodAutoscaling getVerticalPodAutoscaling( return getVerticalPodAutoscaling(); } + public static final int SHIELDED_NODES_FIELD_NUMBER = 40; + private com.google.container.v1.ShieldedNodes shieldedNodes_; + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * + * @return Whether the shieldedNodes field is set. + */ + @java.lang.Override + public boolean hasShieldedNodes() { + return shieldedNodes_ != null; + } + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * + * @return The shieldedNodes. + */ + @java.lang.Override + public com.google.container.v1.ShieldedNodes getShieldedNodes() { + return shieldedNodes_ == null + ? com.google.container.v1.ShieldedNodes.getDefaultInstance() + : shieldedNodes_; + } + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + @java.lang.Override + public com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { + return getShieldedNodes(); + } + + public static final int RELEASE_CHANNEL_FIELD_NUMBER = 41; + private com.google.container.v1.ReleaseChannel releaseChannel_; + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * + * @return Whether the releaseChannel field is set. + */ + @java.lang.Override + public boolean hasReleaseChannel() { + return releaseChannel_ != null; + } + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * + * @return The releaseChannel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel getReleaseChannel() { + return releaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + return getReleaseChannel(); + } + + public static final int WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 43; + private com.google.container.v1.WorkloadIdentityConfig workloadIdentityConfig_; + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return Whether the workloadIdentityConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadIdentityConfig() { + return workloadIdentityConfig_ != null; + } + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return The workloadIdentityConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { + return workloadIdentityConfig_ == null + ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfigOrBuilder + getWorkloadIdentityConfigOrBuilder() { + return getWorkloadIdentityConfig(); + } + public static final int SELF_LINK_FIELD_NUMBER = 100; private volatile java.lang.Object selfLink_; /** @@ -2583,9 +2815,8 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * *
    * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field is deprecated, use location instead.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field is deprecated, use location instead.
    * 
* * string zone = 101 [deprecated = true]; @@ -2610,9 +2841,8 @@ public java.lang.String getZone() { * *
    * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field is deprecated, use location instead.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field is deprecated, use location instead.
    * 
* * string zone = 101 [deprecated = true]; @@ -2815,7 +3045,7 @@ public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { * *
    * [Output only] Deprecated, use
-   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
+   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
    * 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.
@@ -2843,7 +3073,7 @@ public java.lang.String getCurrentNodeVersion() {
    *
    * 
    * [Output only] Deprecated, use
-   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
+   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
    * 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.
@@ -2960,15 +3190,17 @@ public com.google.container.v1.Cluster.Status getStatus() {
    *
    *
    * 
-   * [Output only] Additional information about the current status of this
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
    * cluster, if available.
    * 
* - * string status_message = 108; + * string status_message = 108 [deprecated = true]; * * @return The statusMessage. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { @@ -2984,15 +3216,17 @@ public java.lang.String getStatusMessage() { * * *
-   * [Output only] Additional information about the current status of this
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
    * cluster, if available.
    * 
* - * string status_message = 108; + * string status_message = 108 [deprecated = true]; * * @return The bytes for statusMessage. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { @@ -3226,9 +3460,10 @@ public com.google.protobuf.ByteString getExpireTimeBytes() { * *
    * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-   * the cluster resides.
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
    * 
* * string location = 114; @@ -3252,9 +3487,10 @@ public java.lang.String getLocation() { * *
    * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-   * the cluster resides.
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
    * 
* * string location = 114; @@ -3517,6 +3753,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (verticalPodAutoscaling_ != null) { output.writeMessage(39, getVerticalPodAutoscaling()); } + if (shieldedNodes_ != null) { + output.writeMessage(40, getShieldedNodes()); + } + if (releaseChannel_ != null) { + output.writeMessage(41, getReleaseChannel()); + } + if (workloadIdentityConfig_ != null) { + output.writeMessage(43, getWorkloadIdentityConfig()); + } if (!getSelfLinkBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); } @@ -3693,6 +3938,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, getVerticalPodAutoscaling()); } + if (shieldedNodes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getShieldedNodes()); + } + if (releaseChannel_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, getReleaseChannel()); + } + if (workloadIdentityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(43, getWorkloadIdentityConfig()); + } if (!getSelfLinkBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); } @@ -3852,6 +4107,18 @@ public boolean equals(final java.lang.Object obj) { if (hasVerticalPodAutoscaling()) { if (!getVerticalPodAutoscaling().equals(other.getVerticalPodAutoscaling())) return false; } + if (hasShieldedNodes() != other.hasShieldedNodes()) return false; + if (hasShieldedNodes()) { + if (!getShieldedNodes().equals(other.getShieldedNodes())) return false; + } + if (hasReleaseChannel() != other.hasReleaseChannel()) return false; + if (hasReleaseChannel()) { + if (!getReleaseChannel().equals(other.getReleaseChannel())) return false; + } + if (hasWorkloadIdentityConfig() != other.hasWorkloadIdentityConfig()) return false; + if (hasWorkloadIdentityConfig()) { + if (!getWorkloadIdentityConfig().equals(other.getWorkloadIdentityConfig())) return false; + } if (!getSelfLink().equals(other.getSelfLink())) return false; if (!getZone().equals(other.getZone())) return false; if (!getEndpoint().equals(other.getEndpoint())) return false; @@ -3981,6 +4248,18 @@ public int hashCode() { hash = (37 * hash) + VERTICAL_POD_AUTOSCALING_FIELD_NUMBER; hash = (53 * hash) + getVerticalPodAutoscaling().hashCode(); } + if (hasShieldedNodes()) { + hash = (37 * hash) + SHIELDED_NODES_FIELD_NUMBER; + hash = (53 * hash) + getShieldedNodes().hashCode(); + } + if (hasReleaseChannel()) { + hash = (37 * hash) + RELEASE_CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getReleaseChannel().hashCode(); + } + if (hasWorkloadIdentityConfig()) { + hash = (37 * hash) + WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadIdentityConfig().hashCode(); + } hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); hash = (37 * hash) + ZONE_FIELD_NUMBER; @@ -4318,6 +4597,24 @@ public Builder clear() { verticalPodAutoscaling_ = null; verticalPodAutoscalingBuilder_ = null; } + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = null; + } else { + shieldedNodes_ = null; + shieldedNodesBuilder_ = null; + } + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = null; + } else { + workloadIdentityConfig_ = null; + workloadIdentityConfigBuilder_ = null; + } selfLink_ = ""; zone_ = ""; @@ -4496,6 +4793,21 @@ public com.google.container.v1.Cluster buildPartial() { } else { result.verticalPodAutoscaling_ = verticalPodAutoscalingBuilder_.build(); } + if (shieldedNodesBuilder_ == null) { + result.shieldedNodes_ = shieldedNodes_; + } else { + result.shieldedNodes_ = shieldedNodesBuilder_.build(); + } + if (releaseChannelBuilder_ == null) { + result.releaseChannel_ = releaseChannel_; + } else { + result.releaseChannel_ = releaseChannelBuilder_.build(); + } + if (workloadIdentityConfigBuilder_ == null) { + result.workloadIdentityConfig_ = workloadIdentityConfig_; + } else { + result.workloadIdentityConfig_ = workloadIdentityConfigBuilder_.build(); + } result.selfLink_ = selfLink_; result.zone_ = zone_; result.endpoint_ = endpoint_; @@ -4702,6 +5014,15 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { if (other.hasVerticalPodAutoscaling()) { mergeVerticalPodAutoscaling(other.getVerticalPodAutoscaling()); } + if (other.hasShieldedNodes()) { + mergeShieldedNodes(other.getShieldedNodes()); + } + if (other.hasReleaseChannel()) { + mergeReleaseChannel(other.getReleaseChannel()); + } + if (other.hasWorkloadIdentityConfig()) { + mergeWorkloadIdentityConfig(other.getWorkloadIdentityConfig()); + } if (!other.getSelfLink().isEmpty()) { selfLink_ = other.selfLink_; onChanged(); @@ -5648,11 +5969,13 @@ public com.google.container.v1.MasterAuthOrBuilder getMasterAuthOrBuilder() { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-     * service with Kubernetes-native resource model
-     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
      * * `none` - no logs will be exported from the cluster.
-     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string logging_service = 6; @@ -5676,11 +5999,13 @@ public java.lang.String getLoggingService() { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-     * service with Kubernetes-native resource model
-     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
      * * `none` - no logs will be exported from the cluster.
-     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string logging_service = 6; @@ -5704,11 +6029,13 @@ public com.google.protobuf.ByteString getLoggingServiceBytes() { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-     * service with Kubernetes-native resource model
-     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
      * * `none` - no logs will be exported from the cluster.
-     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string logging_service = 6; @@ -5731,11 +6058,13 @@ public Builder setLoggingService(java.lang.String value) { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-     * service with Kubernetes-native resource model
-     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
      * * `none` - no logs will be exported from the cluster.
-     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string logging_service = 6; @@ -5754,11 +6083,13 @@ public Builder clearLoggingService() { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-     * service with Kubernetes-native resource model
-     * * `logging.googleapis.com` - the Google Cloud Logging service.
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
      * * `none` - no logs will be exported from the cluster.
-     * * if left as an empty string,`logging.googleapis.com` will be used.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string logging_service = 6; @@ -5784,9 +6115,13 @@ public Builder setLoggingServiceBytes(com.google.protobuf.ByteString value) { *
      * 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.
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string monitoring_service = 7; @@ -5810,9 +6145,13 @@ public 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.
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string monitoring_service = 7; @@ -5836,9 +6175,13 @@ public com.google.protobuf.ByteString getMonitoringServiceBytes() { *
      * 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.
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string monitoring_service = 7; @@ -5861,9 +6204,13 @@ public Builder setMonitoringService(java.lang.String value) { *
      * 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.
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string monitoring_service = 7; @@ -5882,9 +6229,13 @@ public Builder clearMonitoringService() { *
      * 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.
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string monitoring_service = 7; @@ -5909,9 +6260,9 @@ public Builder setMonitoringServiceBytes(com.google.protobuf.ByteString value) { * *
      * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
-     * cluster is connected. If left unspecified, the `default` network
-     * will be used.
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used.
      * 
* * string network = 8; @@ -5934,9 +6285,9 @@ public java.lang.String getNetwork() { * *
      * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
-     * cluster is connected. If left unspecified, the `default` network
-     * will be used.
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used.
      * 
* * string network = 8; @@ -5959,9 +6310,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { * *
      * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
-     * cluster is connected. If left unspecified, the `default` network
-     * will be used.
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used.
      * 
* * string network = 8; @@ -5983,9 +6334,9 @@ public Builder setNetwork(java.lang.String value) { * *
      * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
-     * cluster is connected. If left unspecified, the `default` network
-     * will be used.
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used.
      * 
* * string network = 8; @@ -6003,9 +6354,9 @@ public Builder clearNetwork() { * *
      * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
-     * cluster is connected. If left unspecified, the `default` network
-     * will be used.
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used.
      * 
* * string network = 8; @@ -6336,8 +6687,8 @@ public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() * *
      * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the
-     * cluster is connected.
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected.
      * 
* * string subnetwork = 11; @@ -6360,8 +6711,8 @@ public java.lang.String getSubnetwork() { * *
      * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the
-     * cluster is connected.
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected.
      * 
* * string subnetwork = 11; @@ -6384,8 +6735,8 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * *
      * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the
-     * cluster is connected.
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected.
      * 
* * string subnetwork = 11; @@ -6407,8 +6758,8 @@ public Builder setSubnetwork(java.lang.String value) { * *
      * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the
-     * cluster is connected.
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected.
      * 
* * string subnetwork = 11; @@ -6426,8 +6777,8 @@ public Builder clearSubnetwork() { * *
      * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the
-     * cluster is connected.
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected.
      * 
* * string subnetwork = 11; @@ -6844,8 +7195,14 @@ private void ensureLocationsIsMutable() { * *
      * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-     * should be located.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
      * 
* * repeated string locations = 13; @@ -6860,8 +7217,14 @@ public com.google.protobuf.ProtocolStringList getLocationsList() { * *
      * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-     * should be located.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
      * 
* * repeated string locations = 13; @@ -6876,8 +7239,14 @@ public int getLocationsCount() { * *
      * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-     * should be located.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
      * 
* * repeated string locations = 13; @@ -6893,8 +7262,14 @@ public java.lang.String getLocations(int index) { * *
      * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-     * should be located.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
      * 
* * repeated string locations = 13; @@ -6910,8 +7285,14 @@ public com.google.protobuf.ByteString getLocationsBytes(int index) { * *
      * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-     * should be located.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
      * 
* * repeated string locations = 13; @@ -6934,8 +7315,14 @@ public Builder setLocations(int index, java.lang.String value) { * *
      * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-     * should be located.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
      * 
* * repeated string locations = 13; @@ -6957,8 +7344,14 @@ public Builder addLocations(java.lang.String value) { * *
      * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-     * should be located.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
      * 
* * repeated string locations = 13; @@ -6977,8 +7370,14 @@ public Builder addAllLocations(java.lang.Iterable values) { * *
      * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-     * should be located.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
      * 
* * repeated string locations = 13; @@ -6996,8 +7395,14 @@ public Builder clearLocations() { * *
      * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-     * should be located.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
      * 
* * repeated string locations = 13; @@ -10033,6 +10438,575 @@ public Builder clearVerticalPodAutoscaling() { return verticalPodAutoscalingBuilder_; } + private com.google.container.v1.ShieldedNodes shieldedNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, + com.google.container.v1.ShieldedNodes.Builder, + com.google.container.v1.ShieldedNodesOrBuilder> + shieldedNodesBuilder_; + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * + * @return Whether the shieldedNodes field is set. + */ + public boolean hasShieldedNodes() { + return shieldedNodesBuilder_ != null || shieldedNodes_ != null; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * + * @return The shieldedNodes. + */ + public com.google.container.v1.ShieldedNodes getShieldedNodes() { + if (shieldedNodesBuilder_ == null) { + return shieldedNodes_ == null + ? com.google.container.v1.ShieldedNodes.getDefaultInstance() + : shieldedNodes_; + } else { + return shieldedNodesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public Builder setShieldedNodes(com.google.container.v1.ShieldedNodes value) { + if (shieldedNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedNodes_ = value; + onChanged(); + } else { + shieldedNodesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public Builder setShieldedNodes(com.google.container.v1.ShieldedNodes.Builder builderForValue) { + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = builderForValue.build(); + onChanged(); + } else { + shieldedNodesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public Builder mergeShieldedNodes(com.google.container.v1.ShieldedNodes value) { + if (shieldedNodesBuilder_ == null) { + if (shieldedNodes_ != null) { + shieldedNodes_ = + com.google.container.v1.ShieldedNodes.newBuilder(shieldedNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedNodes_ = value; + } + onChanged(); + } else { + shieldedNodesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public Builder clearShieldedNodes() { + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = null; + onChanged(); + } else { + shieldedNodes_ = null; + shieldedNodesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public com.google.container.v1.ShieldedNodes.Builder getShieldedNodesBuilder() { + + onChanged(); + return getShieldedNodesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { + if (shieldedNodesBuilder_ != null) { + return shieldedNodesBuilder_.getMessageOrBuilder(); + } else { + return shieldedNodes_ == null + ? com.google.container.v1.ShieldedNodes.getDefaultInstance() + : shieldedNodes_; + } + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, + com.google.container.v1.ShieldedNodes.Builder, + com.google.container.v1.ShieldedNodesOrBuilder> + getShieldedNodesFieldBuilder() { + if (shieldedNodesBuilder_ == null) { + shieldedNodesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, + com.google.container.v1.ShieldedNodes.Builder, + com.google.container.v1.ShieldedNodesOrBuilder>( + getShieldedNodes(), getParentForChildren(), isClean()); + shieldedNodes_ = null; + } + return shieldedNodesBuilder_; + } + + private com.google.container.v1.ReleaseChannel releaseChannel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder> + releaseChannelBuilder_; + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * + * @return Whether the releaseChannel field is set. + */ + public boolean hasReleaseChannel() { + return releaseChannelBuilder_ != null || releaseChannel_ != null; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * + * @return The releaseChannel. + */ + public com.google.container.v1.ReleaseChannel getReleaseChannel() { + if (releaseChannelBuilder_ == null) { + return releaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } else { + return releaseChannelBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public Builder setReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseChannel_ = value; + onChanged(); + } else { + releaseChannelBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public Builder setReleaseChannel( + com.google.container.v1.ReleaseChannel.Builder builderForValue) { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = builderForValue.build(); + onChanged(); + } else { + releaseChannelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public Builder mergeReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (releaseChannel_ != null) { + releaseChannel_ = + com.google.container.v1.ReleaseChannel.newBuilder(releaseChannel_) + .mergeFrom(value) + .buildPartial(); + } else { + releaseChannel_ = value; + } + onChanged(); + } else { + releaseChannelBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public Builder clearReleaseChannel() { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + onChanged(); + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public com.google.container.v1.ReleaseChannel.Builder getReleaseChannelBuilder() { + + onChanged(); + return getReleaseChannelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + if (releaseChannelBuilder_ != null) { + return releaseChannelBuilder_.getMessageOrBuilder(); + } else { + return releaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder> + getReleaseChannelFieldBuilder() { + if (releaseChannelBuilder_ == null) { + releaseChannelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder>( + getReleaseChannel(), getParentForChildren(), isClean()); + releaseChannel_ = null; + } + return releaseChannelBuilder_; + } + + private com.google.container.v1.WorkloadIdentityConfig workloadIdentityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, + com.google.container.v1.WorkloadIdentityConfig.Builder, + com.google.container.v1.WorkloadIdentityConfigOrBuilder> + workloadIdentityConfigBuilder_; + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return Whether the workloadIdentityConfig field is set. + */ + public boolean hasWorkloadIdentityConfig() { + return workloadIdentityConfigBuilder_ != null || workloadIdentityConfig_ != null; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return The workloadIdentityConfig. + */ + public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { + if (workloadIdentityConfigBuilder_ == null) { + return workloadIdentityConfig_ == null + ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } else { + return workloadIdentityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder setWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentityConfig value) { + if (workloadIdentityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadIdentityConfig_ = value; + onChanged(); + } else { + workloadIdentityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder setWorkloadIdentityConfig( + com.google.container.v1.WorkloadIdentityConfig.Builder builderForValue) { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder mergeWorkloadIdentityConfig( + com.google.container.v1.WorkloadIdentityConfig value) { + if (workloadIdentityConfigBuilder_ == null) { + if (workloadIdentityConfig_ != null) { + workloadIdentityConfig_ = + com.google.container.v1.WorkloadIdentityConfig.newBuilder(workloadIdentityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadIdentityConfig_ = value; + } + onChanged(); + } else { + workloadIdentityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder clearWorkloadIdentityConfig() { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = null; + onChanged(); + } else { + workloadIdentityConfig_ = null; + workloadIdentityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public com.google.container.v1.WorkloadIdentityConfig.Builder + getWorkloadIdentityConfigBuilder() { + + onChanged(); + return getWorkloadIdentityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public com.google.container.v1.WorkloadIdentityConfigOrBuilder + getWorkloadIdentityConfigOrBuilder() { + if (workloadIdentityConfigBuilder_ != null) { + return workloadIdentityConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadIdentityConfig_ == null + ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, + com.google.container.v1.WorkloadIdentityConfig.Builder, + com.google.container.v1.WorkloadIdentityConfigOrBuilder> + getWorkloadIdentityConfigFieldBuilder() { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, + com.google.container.v1.WorkloadIdentityConfig.Builder, + com.google.container.v1.WorkloadIdentityConfigOrBuilder>( + getWorkloadIdentityConfig(), getParentForChildren(), isClean()); + workloadIdentityConfig_ = null; + } + return workloadIdentityConfigBuilder_; + } + private java.lang.Object selfLink_ = ""; /** * @@ -10145,9 +11119,8 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field is deprecated, use location instead.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
      * 
* * string zone = 101 [deprecated = true]; @@ -10171,9 +11144,8 @@ public java.lang.String getZone() { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field is deprecated, use location instead.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
      * 
* * string zone = 101 [deprecated = true]; @@ -10197,9 +11169,8 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field is deprecated, use location instead.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
      * 
* * string zone = 101 [deprecated = true]; @@ -10222,9 +11193,8 @@ public Builder setZone(java.lang.String value) { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field is deprecated, use location instead.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
      * 
* * string zone = 101 [deprecated = true]; @@ -10243,9 +11213,8 @@ public Builder clearZone() { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field is deprecated, use location instead.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
      * 
* * string zone = 101 [deprecated = true]; @@ -10659,7 +11628,7 @@ public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value * *
      * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
+     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
      * 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.
@@ -10686,7 +11655,7 @@ public java.lang.String getCurrentNodeVersion() {
      *
      * 
      * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
+     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
      * 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.
@@ -10713,7 +11682,7 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() {
      *
      * 
      * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
+     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
      * 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.
@@ -10739,7 +11708,7 @@ public Builder setCurrentNodeVersion(java.lang.String value) {
      *
      * 
      * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
+     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
      * 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.
@@ -10761,7 +11730,7 @@ public Builder clearCurrentNodeVersion() {
      *
      * 
      * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
+     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
      * 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.
@@ -10991,14 +11960,16 @@ public Builder clearStatus() {
      *
      *
      * 
-     * [Output only] Additional information about the current status of this
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
      * cluster, if available.
      * 
* - * string status_message = 108; + * string status_message = 108 [deprecated = true]; * * @return The statusMessage. */ + @java.lang.Deprecated public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { @@ -11014,14 +11985,16 @@ public java.lang.String getStatusMessage() { * * *
-     * [Output only] Additional information about the current status of this
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
      * cluster, if available.
      * 
* - * string status_message = 108; + * string status_message = 108 [deprecated = true]; * * @return The bytes for statusMessage. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { @@ -11037,15 +12010,17 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
-     * [Output only] Additional information about the current status of this
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
      * cluster, if available.
      * 
* - * string status_message = 108; + * string status_message = 108 [deprecated = true]; * * @param value The statusMessage to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setStatusMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -11059,14 +12034,16 @@ public Builder setStatusMessage(java.lang.String value) { * * *
-     * [Output only] Additional information about the current status of this
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
      * cluster, if available.
      * 
* - * string status_message = 108; + * string status_message = 108 [deprecated = true]; * * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearStatusMessage() { statusMessage_ = getDefaultInstance().getStatusMessage(); @@ -11077,15 +12054,17 @@ public Builder clearStatusMessage() { * * *
-     * [Output only] Additional information about the current status of this
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
      * cluster, if available.
      * 
* - * string status_message = 108; + * string status_message = 108 [deprecated = true]; * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -11636,9 +12615,10 @@ public Builder setExpireTimeBytes(com.google.protobuf.ByteString value) { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
      * 
* * string location = 114; @@ -11661,9 +12641,10 @@ public java.lang.String getLocation() { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
      * 
* * string location = 114; @@ -11686,9 +12667,10 @@ public com.google.protobuf.ByteString getLocationBytes() { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
      * 
* * string location = 114; @@ -11710,9 +12692,10 @@ public Builder setLocation(java.lang.String value) { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
      * 
* * string location = 114; @@ -11730,9 +12713,10 @@ public Builder clearLocation() { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
      * 
* * string location = 114; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java index 6a7fd9fb..9af8f7c3 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java @@ -316,8 +316,9 @@ public boolean hasAutoprovisioningNodePoolDefaults() { * * *
-   * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-   * in which the NodePool's nodes can be created by NAP.
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
    * 
* * repeated string autoprovisioning_locations = 5; @@ -331,8 +332,9 @@ public com.google.protobuf.ProtocolStringList getAutoprovisioningLocationsList() * * *
-   * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-   * in which the NodePool's nodes can be created by NAP.
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
    * 
* * repeated string autoprovisioning_locations = 5; @@ -346,8 +348,9 @@ public int getAutoprovisioningLocationsCount() { * * *
-   * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-   * in which the NodePool's nodes can be created by NAP.
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
    * 
* * repeated string autoprovisioning_locations = 5; @@ -362,8 +365,9 @@ public java.lang.String getAutoprovisioningLocations(int index) { * * *
-   * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-   * in which the NodePool's nodes can be created by NAP.
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
    * 
* * repeated string autoprovisioning_locations = 5; @@ -1477,8 +1481,9 @@ private void ensureAutoprovisioningLocationsIsMutable() { * * *
-     * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-     * in which the NodePool's nodes can be created by NAP.
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
      * 
* * repeated string autoprovisioning_locations = 5; @@ -1492,8 +1497,9 @@ public com.google.protobuf.ProtocolStringList getAutoprovisioningLocationsList() * * *
-     * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-     * in which the NodePool's nodes can be created by NAP.
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
      * 
* * repeated string autoprovisioning_locations = 5; @@ -1507,8 +1513,9 @@ public int getAutoprovisioningLocationsCount() { * * *
-     * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-     * in which the NodePool's nodes can be created by NAP.
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
      * 
* * repeated string autoprovisioning_locations = 5; @@ -1523,8 +1530,9 @@ public java.lang.String getAutoprovisioningLocations(int index) { * * *
-     * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-     * in which the NodePool's nodes can be created by NAP.
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
      * 
* * repeated string autoprovisioning_locations = 5; @@ -1539,8 +1547,9 @@ public com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int inde * * *
-     * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-     * in which the NodePool's nodes can be created by NAP.
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
      * 
* * repeated string autoprovisioning_locations = 5; @@ -1562,8 +1571,9 @@ public Builder setAutoprovisioningLocations(int index, java.lang.String value) { * * *
-     * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-     * in which the NodePool's nodes can be created by NAP.
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
      * 
* * repeated string autoprovisioning_locations = 5; @@ -1584,8 +1594,9 @@ public Builder addAutoprovisioningLocations(java.lang.String value) { * * *
-     * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-     * in which the NodePool's nodes can be created by NAP.
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
      * 
* * repeated string autoprovisioning_locations = 5; @@ -1603,8 +1614,9 @@ public Builder addAllAutoprovisioningLocations(java.lang.Iterable - * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) - * in which the NodePool's nodes can be created by NAP. + * The list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * NodePool's nodes can be created by NAP. *
* * repeated string autoprovisioning_locations = 5; @@ -1621,8 +1633,9 @@ public Builder clearAutoprovisioningLocations() { * * *
-     * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-     * in which the NodePool's nodes can be created by NAP.
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
      * 
* * repeated string autoprovisioning_locations = 5; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java index 22146c53..de0b9900 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java @@ -142,8 +142,9 @@ public interface ClusterAutoscalingOrBuilder * * *
-   * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-   * in which the NodePool's nodes can be created by NAP.
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
    * 
* * repeated string autoprovisioning_locations = 5; @@ -155,8 +156,9 @@ public interface ClusterAutoscalingOrBuilder * * *
-   * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-   * in which the NodePool's nodes can be created by NAP.
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
    * 
* * repeated string autoprovisioning_locations = 5; @@ -168,8 +170,9 @@ public interface ClusterAutoscalingOrBuilder * * *
-   * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-   * in which the NodePool's nodes can be created by NAP.
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
    * 
* * repeated string autoprovisioning_locations = 5; @@ -182,8 +185,9 @@ public interface ClusterAutoscalingOrBuilder * * *
-   * The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
-   * in which the NodePool's nodes can be created by NAP.
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
    * 
* * repeated string autoprovisioning_locations = 5; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java index 7a7b6168..b30a285f 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java @@ -223,11 +223,13 @@ public interface ClusterOrBuilder *
    * The logging service the cluster should use to write logs.
    * Currently available options:
-   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-   * service with Kubernetes-native resource model
-   * * `logging.googleapis.com` - the Google Cloud Logging service.
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
    * * `none` - no logs will be exported from the cluster.
-   * * if left as an empty string,`logging.googleapis.com` will be used.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
    * 
* * string logging_service = 6; @@ -241,11 +243,13 @@ public interface ClusterOrBuilder *
    * The logging service the cluster should use to write logs.
    * Currently available options:
-   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-   * service with Kubernetes-native resource model
-   * * `logging.googleapis.com` - the Google Cloud Logging service.
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
    * * `none` - no logs will be exported from the cluster.
-   * * if left as an empty string,`logging.googleapis.com` will be used.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
    * 
* * string logging_service = 6; @@ -260,9 +264,13 @@ public interface ClusterOrBuilder *
    * 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.
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
    * 
* * string monitoring_service = 7; @@ -276,9 +284,13 @@ public interface ClusterOrBuilder *
    * 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.
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
    * 
* * string monitoring_service = 7; @@ -292,9 +304,9 @@ public interface ClusterOrBuilder * *
    * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
-   * cluster is connected. If left unspecified, the `default` network
-   * will be used.
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used.
    * 
* * string network = 8; @@ -307,9 +319,9 @@ public interface ClusterOrBuilder * *
    * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the
-   * cluster is connected. If left unspecified, the `default` network
-   * will be used.
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used.
    * 
* * string network = 8; @@ -389,8 +401,8 @@ public interface ClusterOrBuilder * *
    * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the
-   * cluster is connected.
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected.
    * 
* * string subnetwork = 11; @@ -403,8 +415,8 @@ public interface ClusterOrBuilder * *
    * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the
-   * cluster is connected.
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected.
    * 
* * string subnetwork = 11; @@ -479,8 +491,14 @@ public interface ClusterOrBuilder * *
    * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-   * should be located.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
    * 
* * repeated string locations = 13; @@ -493,8 +511,14 @@ public interface ClusterOrBuilder * *
    * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-   * should be located.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
    * 
* * repeated string locations = 13; @@ -507,8 +531,14 @@ public interface ClusterOrBuilder * *
    * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-   * should be located.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
    * 
* * repeated string locations = 13; @@ -522,8 +552,14 @@ public interface ClusterOrBuilder * *
    * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
-   * should be located.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
    * 
* * repeated string locations = 13; @@ -1143,6 +1179,114 @@ public interface ClusterOrBuilder */ com.google.container.v1.VerticalPodAutoscalingOrBuilder getVerticalPodAutoscalingOrBuilder(); + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * + * @return Whether the shieldedNodes field is set. + */ + boolean hasShieldedNodes(); + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * + * @return The shieldedNodes. + */ + com.google.container.v1.ShieldedNodes getShieldedNodes(); + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder(); + + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * + * @return Whether the releaseChannel field is set. + */ + boolean hasReleaseChannel(); + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * + * @return The releaseChannel. + */ + com.google.container.v1.ReleaseChannel getReleaseChannel(); + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); + + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return Whether the workloadIdentityConfig field is set. + */ + boolean hasWorkloadIdentityConfig(); + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return The workloadIdentityConfig. + */ + com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig(); + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + com.google.container.v1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder(); + /** * * @@ -1173,9 +1317,8 @@ public interface ClusterOrBuilder * *
    * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field is deprecated, use location instead.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field is deprecated, use location instead.
    * 
* * string zone = 101 [deprecated = true]; @@ -1189,9 +1332,8 @@ public interface ClusterOrBuilder * *
    * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field is deprecated, use location instead.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field is deprecated, use location instead.
    * 
* * string zone = 101 [deprecated = true]; @@ -1309,7 +1451,7 @@ public interface ClusterOrBuilder * *
    * [Output only] Deprecated, use
-   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
+   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
    * 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.
@@ -1326,7 +1468,7 @@ public interface ClusterOrBuilder
    *
    * 
    * [Output only] Deprecated, use
-   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
+   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
    * 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.
@@ -1395,27 +1537,31 @@ public interface ClusterOrBuilder
    *
    *
    * 
-   * [Output only] Additional information about the current status of this
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
    * cluster, if available.
    * 
* - * string status_message = 108; + * string status_message = 108 [deprecated = true]; * * @return The statusMessage. */ + @java.lang.Deprecated java.lang.String getStatusMessage(); /** * * *
-   * [Output only] Additional information about the current status of this
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
    * cluster, if available.
    * 
* - * string status_message = 108; + * string status_message = 108 [deprecated = true]; * * @return The bytes for statusMessage. */ + @java.lang.Deprecated com.google.protobuf.ByteString getStatusMessageBytes(); /** @@ -1569,9 +1715,10 @@ public interface ClusterOrBuilder * *
    * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-   * the cluster resides.
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
    * 
* * string location = 114; @@ -1584,9 +1731,10 @@ public interface ClusterOrBuilder * *
    * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-   * the cluster resides.
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
    * 
* * string location = 114; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java index c96207ad..f7682f18 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java @@ -43,6 +43,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_ShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SandboxConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SandboxConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ReservationAffinity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_NodeTaint_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -75,6 +83,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_NetworkPolicyConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_NetworkPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_DnsCacheConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_PrivateClusterConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -87,6 +103,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_CloudRunConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_CloudRunConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ConfigConnectorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -127,6 +147,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_Operation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_Operation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_OperationProgress_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_OperationProgress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_OperationProgress_Metric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_CreateClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -207,6 +235,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_ServerConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_ServerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_CreateNodePoolRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -227,6 +259,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_NodePool_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_NodePool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_NodeManagement_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -315,6 +351,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_AcceleratorConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_AcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -331,6 +371,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_NetworkConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_Jwk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_Jwk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ReleaseChannel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -339,6 +403,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_MaxPodsConstraint_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_MaxPodsConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_DatabaseEncryption_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -375,6 +443,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_VerticalPodAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_DefaultSnatStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ShieldedNodes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -389,7 +465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "otations.proto\032\027google/api/client.proto\032" + "\037google/api/field_behavior.proto\032\033google" + "/protobuf/empty.proto\032\037google/protobuf/t" - + "imestamp.proto\"\377\004\n\nNodeConfig\022\024\n\014machine" + + "imestamp.proto\"\201\007\n\nNodeConfig\022\024\n\014machine" + "_type\030\001 \001(\t\022\024\n\014disk_size_gb\030\002 \001(\005\022\024\n\014oau" + "th_scopes\030\003 \003(\t\022\027\n\017service_account\030\t \001(\t" + "\022?\n\010metadata\030\004 \003(\0132-.google.container.v1" @@ -399,157 +475,204 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "count\030\007 \001(\005\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptible" + "\030\n \001(\010\022<\n\014accelerators\030\013 \003(\0132&.google.co" + "ntainer.v1.AcceleratorConfig\022\021\n\tdisk_typ" - + "e\030\014 \001(\t\022\030\n\020min_cpu_platform\030\r \001(\t\022.\n\006tai" - + "nts\030\017 \003(\0132\036.google.container.v1.NodeTain" - + "t\022M\n\030shielded_instance_config\030\024 \001(\0132+.go" - + "ogle.container.v1.ShieldedInstanceConfig" - + "\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"Y\n\026ShieldedInstanceConf" - + "ig\022\032\n\022enable_secure_boot\030\001 \001(\010\022#\n\033enable" - + "_integrity_monitoring\030\002 \001(\010\"\271\001\n\tNodeTain" - + "t\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\0225\n\006effect\030" - + "\003 \001(\0162%.google.container.v1.NodeTaint.Ef" - + "fect\"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\"\321\001\n\nMasterAuth\022\020\n\010userna" - + "me\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022O\n\031client_cer" - + "tificate_config\030\003 \001(\0132,.google.container" - + ".v1.ClientCertificateConfig\022\036\n\026cluster_c" - + "a_certificate\030d \001(\t\022\032\n\022client_certificat" - + "e\030e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027ClientCer" - + "tificateConfig\022 \n\030issue_client_certifica" - + "te\030\001 \001(\010\"\372\002\n\014AddonsConfig\022C\n\023http_load_b" - + "alancing\030\001 \001(\0132&.google.container.v1.Htt" - + "pLoadBalancing\022Q\n\032horizontal_pod_autosca" - + "ling\030\002 \001(\0132-.google.container.v1.Horizon" - + "talPodAutoscaling\022J\n\024kubernetes_dashboar" - + "d\030\003 \001(\0132(.google.container.v1.Kubernetes" - + "DashboardB\002\030\001\022G\n\025network_policy_config\030\004" - + " \001(\0132(.google.container.v1.NetworkPolicy" - + "Config\022=\n\020cloud_run_config\030\007 \001(\0132#.googl" - + "e.container.v1.CloudRunConfig\"%\n\021HttpLoa" - + "dBalancing\022\020\n\010disabled\030\001 \001(\010\",\n\030Horizont" - + "alPodAutoscaling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Ku" - + "bernetesDashboard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023N" - + "etworkPolicyConfig\022\020\n\010disabled\030\001 \001(\010\"\250\001\n" - + "\024PrivateClusterConfig\022\034\n\024enable_private_" - + "nodes\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\020" - + "private_endpoint\030\004 \001(\t\022\027\n\017public_endpoin" - + "t\030\005 \001(\t\"D\n\031AuthenticatorGroupsConfig\022\017\n\007" - + "enabled\030\001 \001(\010\022\026\n\016security_group\030\002 \001(\t\"\"\n" - + "\016CloudRunConfig\022\020\n\010disabled\030\001 \001(\010\"\274\001\n\036Ma" - + "sterAuthorizedNetworksConfig\022\017\n\007enabled\030" - + "\001 \001(\010\022R\n\013cidr_blocks\030\002 \003(\0132=.google.cont" - + "ainer.v1.MasterAuthorizedNetworksConfig." - + "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\"\221\001\n\rNetworkPolicy\022=\n\010pro" - + "vider\030\001 \001(\0162+.google.container.v1.Networ" - + "kPolicy.Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Pro" - + "vider\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CALIC" - + "O\020\001\"&\n\023BinaryAuthorization\022\017\n\007enabled\030\001 " - + "\001(\010\"\206\003\n\022IPAllocationPolicy\022\026\n\016use_ip_ali" - + "ases\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_c" - + "idr\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\034clu" - + "ster_secondary_range_name\030\007 \001(\t\022%\n\035servi" - + "ces_secondary_range_name\030\010 \001(\t\022\037\n\027cluste" - + "r_ipv4_cidr_block\030\t \001(\t\022\034\n\024node_ipv4_cid" - + "r_block\030\n \001(\t\022 \n\030services_ipv4_cidr_bloc" - + "k\030\013 \001(\t\022\033\n\023tpu_ipv4_cidr_block\030\r \001(\t\"\347\021\n" - + "\007Cluster\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 " - + "\001(\t\022\036\n\022initial_node_count\030\003 \001(\005B\002\030\001\0228\n\013n" - + "ode_config\030\004 \001(\0132\037.google.container.v1.N" - + "odeConfigB\002\030\001\0224\n\013master_auth\030\005 \001(\0132\037.goo" - + "gle.container.v1.MasterAuth\022\027\n\017logging_s" - + "ervice\030\006 \001(\t\022\032\n\022monitoring_service\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.con" - + "tainer.v1.AddonsConfig\022\022\n\nsubnetwork\030\013 \001" - + "(\t\0221\n\nnode_pools\030\014 \003(\0132\035.google.containe" - + "r.v1.NodePool\022\021\n\tlocations\030\r \003(\t\022\037\n\027enab" - + "le_kubernetes_alpha\030\016 \001(\010\022I\n\017resource_la" - + "bels\030\017 \003(\01320.google.container.v1.Cluster" - + ".ResourceLabelsEntry\022\031\n\021label_fingerprin" - + "t\030\020 \001(\t\0224\n\013legacy_abac\030\022 \001(\0132\037.google.co" - + "ntainer.v1.LegacyAbac\022:\n\016network_policy\030" - + "\023 \001(\0132\".google.container.v1.NetworkPolic" - + "y\022E\n\024ip_allocation_policy\030\024 \001(\0132\'.google" - + ".container.v1.IPAllocationPolicy\022^\n!mast" - + "er_authorized_networks_config\030\026 \001(\01323.go" - + "ogle.container.v1.MasterAuthorizedNetwor" - + "ksConfig\022B\n\022maintenance_policy\030\027 \001(\0132&.g" - + "oogle.container.v1.MaintenancePolicy\022F\n\024" - + "binary_authorization\030\030 \001(\0132(.google.cont" - + "ainer.v1.BinaryAuthorization\022<\n\013autoscal" - + "ing\030\032 \001(\0132\'.google.container.v1.ClusterA" - + "utoscaling\022:\n\016network_config\030\033 \001(\0132\".goo" - + "gle.container.v1.NetworkConfig\022K\n\033defaul" - + "t_max_pods_constraint\030\036 \001(\0132&.google.con" - + "tainer.v1.MaxPodsConstraint\022T\n\034resource_" - + "usage_export_config\030! \001(\0132..google.conta" - + "iner.v1.ResourceUsageExportConfig\022S\n\033aut" - + "henticator_groups_config\030\" \001(\0132..google." - + "container.v1.AuthenticatorGroupsConfig\022I" - + "\n\026private_cluster_config\030% \001(\0132).google." - + "container.v1.PrivateClusterConfig\022D\n\023dat" - + "abase_encryption\030& \001(\0132\'.google.containe" - + "r.v1.DatabaseEncryption\022M\n\030vertical_pod_" - + "autoscaling\030\' \001(\0132+.google.container.v1." - + "VerticalPodAutoscaling\022\021\n\tself_link\030d \001(" - + "\t\022\020\n\004zone\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\026curren" - + "t_master_version\030h \001(\t\022 \n\024current_node_v" - + "ersion\030i \001(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\0223\n" - + "\006status\030k \001(\0162#.google.container.v1.Clus" - + "ter.Status\022\026\n\016status_message\030l \001(\t\022\033\n\023no" - + "de_ipv4_cidr_size\030m \001(\005\022\032\n\022services_ipv4" - + "_cidr\030n \001(\t\022\037\n\023instance_group_urls\030o \003(\t" - + "B\002\030\001\022\036\n\022current_node_count\030p \001(\005B\002\030\001\022\023\n\013" - + "expire_time\030q \001(\t\022\020\n\010location\030r \001(\t\022\022\n\ne" - + "nable_tpu\030s \001(\010\022\033\n\023tpu_ipv4_cidr_block\030t" - + " \001(\t\0228\n\nconditions\030v \003(\0132$.google.contai" - + "ner.v1.StatusCondition\0325\n\023ResourceLabels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n" - + "\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVI" - + "SIONING\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\"\341" - + "\007\n\rClusterUpdate\022\034\n\024desired_node_version" - + "\030\004 \001(\t\022\"\n\032desired_monitoring_service\030\005 \001" - + "(\t\022@\n\025desired_addons_config\030\006 \001(\0132!.goog" - + "le.container.v1.AddonsConfig\022\034\n\024desired_" - + "node_pool_id\030\007 \001(\t\022\032\n\022desired_image_type" - + "\030\010 \001(\t\022L\n\033desired_database_encryption\030. " - + "\001(\0132\'.google.container.v1.DatabaseEncryp" - + "tion\022O\n\035desired_node_pool_autoscaling\030\t " - + "\001(\0132(.google.container.v1.NodePoolAutosc" - + "aling\022\031\n\021desired_locations\030\n \003(\t\022f\n)desi" - + "red_master_authorized_networks_config\030\014 " - + "\001(\01323.google.container.v1.MasterAuthoriz" - + "edNetworksConfig\022L\n\033desired_cluster_auto" - + "scaling\030\017 \001(\0132\'.google.container.v1.Clus" - + "terAutoscaling\022N\n\034desired_binary_authori" - + "zation\030\020 \001(\0132(.google.container.v1.Binar" - + "yAuthorization\022\037\n\027desired_logging_servic" - + "e\030\023 \001(\t\022\\\n$desired_resource_usage_export" - + "_config\030\025 \001(\0132..google.container.v1.Reso" - + "urceUsageExportConfig\022U\n desired_vertica" - + "l_pod_autoscaling\030\026 \001(\0132+.google.contain" - + "er.v1.VerticalPodAutoscaling\022\\\n$desired_" - + "intra_node_visibility_config\030\032 \001(\0132..goo" - + "gle.container.v1.IntraNodeVisibilityConf" - + "ig\022\036\n\026desired_master_version\030d \001(\t\"\200\007\n\tO" - + "peration\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.contai" - + "ner.v1.Operation.Type\0225\n\006status\030\004 \001(\0162%." - + "google.container.v1.Operation.Status\022\016\n\006" - + "detail\030\010 \001(\t\022\026\n\016status_message\030\005 \001(\t\022\021\n\t" - + "self_link\030\006 \001(\t\022\023\n\013target_link\030\007 \001(\t\022\020\n\010" - + "location\030\t \001(\t\022\022\n\nstart_time\030\n \001(\t\022\020\n\010en" - + "d_time\030\013 \001(\t\022@\n\022cluster_conditions\030\r \003(\013" + + "e\030\014 \001(\t\022\030\n\020min_cpu_platform\030\r \001(\t\022M\n\030wor" + + "kload_metadata_config\030\016 \001(\0132+.google.con" + + "tainer.v1.WorkloadMetadataConfig\022.\n\006tain" + + "ts\030\017 \003(\0132\036.google.container.v1.NodeTaint" + + "\022:\n\016sandbox_config\030\021 \001(\0132\".google.contai" + + "ner.v1.SandboxConfig\022\022\n\nnode_group\030\022 \001(\t" + + "\022F\n\024reservation_affinity\030\023 \001(\0132(.google." + + "container.v1.ReservationAffinity\022M\n\030shie" + + "lded_instance_config\030\024 \001(\0132+.google.cont" + + "ainer.v1.ShieldedInstanceConfig\022\031\n\021boot_" + + "disk_kms_key\030\027 \001(\t\032/\n\rMetadataEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"Y\n\026Sh" + + "ieldedInstanceConfig\022\032\n\022enable_secure_bo" + + "ot\030\001 \001(\010\022#\n\033enable_integrity_monitoring\030" + + "\002 \001(\010\"k\n\rSandboxConfig\0225\n\004type\030\002 \001(\0162\'.g" + + "oogle.container.v1.SandboxConfig.Type\"#\n" + + "\004Type\022\017\n\013UNSPECIFIED\020\000\022\n\n\006GVISOR\020\001\"\337\001\n\023R" + + "eservationAffinity\022O\n\030consume_reservatio" + + "n_type\030\001 \001(\0162-.google.container.v1.Reser" + + "vationAffinity.Type\022\013\n\003key\030\002 \001(\t\022\016\n\006valu" + + "es\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\022\n\016NO_" + + "RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SP" + + "ECIFIC_RESERVATION\020\003\"\271\001\n\tNodeTaint\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\0225\n\006effect\030\003 \001(\0162%" + + ".google.container.v1.NodeTaint.Effect\"Y\n" + + "\006Effect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013NO_SC" + + "HEDULE\020\001\022\026\n\022PREFER_NO_SCHEDULE\020\002\022\016\n\nNO_E" + + "XECUTE\020\003\"\331\001\n\nMasterAuth\022\024\n\010username\030\001 \001(" + + "\tB\002\030\001\022\024\n\010password\030\002 \001(\tB\002\030\001\022O\n\031client_ce" + + "rtificate_config\030\003 \001(\0132,.google.containe" + + "r.v1.ClientCertificateConfig\022\036\n\026cluster_" + + "ca_certificate\030d \001(\t\022\032\n\022client_certifica" + + "te\030e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027ClientCe" + + "rtificateConfig\022 \n\030issue_client_certific" + + "ate\030\001 \001(\010\"\206\004\n\014AddonsConfig\022C\n\023http_load_" + + "balancing\030\001 \001(\0132&.google.container.v1.Ht" + + "tpLoadBalancing\022Q\n\032horizontal_pod_autosc" + + "aling\030\002 \001(\0132-.google.container.v1.Horizo" + + "ntalPodAutoscaling\022J\n\024kubernetes_dashboa" + + "rd\030\003 \001(\0132(.google.container.v1.Kubernete" + + "sDashboardB\002\030\001\022G\n\025network_policy_config\030" + + "\004 \001(\0132(.google.container.v1.NetworkPolic" + + "yConfig\022=\n\020cloud_run_config\030\007 \001(\0132#.goog" + + "le.container.v1.CloudRunConfig\022=\n\020dns_ca" + + "che_config\030\010 \001(\0132#.google.container.v1.D" + + "nsCacheConfig\022K\n\027config_connector_config" + + "\030\n \001(\0132*.google.container.v1.ConfigConne" + + "ctorConfig\"%\n\021HttpLoadBalancing\022\020\n\010disab" + + "led\030\001 \001(\010\",\n\030HorizontalPodAutoscaling\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\"!\n\016DnsCacheConfig\022\017\n\007e" + + "nabled\030\001 \001(\010\"9\n&PrivateClusterMasterGlob" + + "alAccessConfig\022\017\n\007enabled\030\001 \001(\010\"\240\002\n\024Priv" + + "ateClusterConfig\022\034\n\024enable_private_nodes" + + "\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\020priva" + + "te_endpoint\030\004 \001(\t\022\027\n\017public_endpoint\030\005 \001" + + "(\t\022\024\n\014peering_name\030\007 \001(\t\022`\n\033master_globa" + + "l_access_config\030\010 \001(\0132;.google.container" + + ".v1.PrivateClusterMasterGlobalAccessConf" + + "ig\"D\n\031AuthenticatorGroupsConfig\022\017\n\007enabl" + + "ed\030\001 \001(\010\022\026\n\016security_group\030\002 \001(\t\"\356\001\n\016Clo" + + "udRunConfig\022\020\n\010disabled\030\001 \001(\010\022P\n\022load_ba" + + "lancer_type\030\003 \001(\01624.google.container.v1." + + "CloudRunConfig.LoadBalancerType\"x\n\020LoadB" + + "alancerType\022\"\n\036LOAD_BALANCER_TYPE_UNSPEC" + + "IFIED\020\000\022\037\n\033LOAD_BALANCER_TYPE_EXTERNAL\020\001" + + "\022\037\n\033LOAD_BALANCER_TYPE_INTERNAL\020\002\"(\n\025Con" + + "figConnectorConfig\022\017\n\007enabled\030\001 \001(\010\"\274\001\n\036" + + "MasterAuthorizedNetworksConfig\022\017\n\007enable" + + "d\030\001 \001(\010\022R\n\013cidr_blocks\030\002 \003(\0132=.google.co" + + "ntainer.v1.MasterAuthorizedNetworksConfi" + + "g.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\"\221\001\n\rNetworkPolicy\022=\n\010p" + + "rovider\030\001 \001(\0162+.google.container.v1.Netw" + + "orkPolicy.Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010P" + + "rovider\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CAL" + + "ICO\020\001\"&\n\023BinaryAuthorization\022\017\n\007enabled\030" + + "\001 \001(\010\"\232\003\n\022IPAllocationPolicy\022\026\n\016use_ip_a" + + "liases\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\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\034c" + + "luster_secondary_range_name\030\007 \001(\t\022%\n\035ser" + + "vices_secondary_range_name\030\010 \001(\t\022\037\n\027clus" + + "ter_ipv4_cidr_block\030\t \001(\t\022\034\n\024node_ipv4_c" + + "idr_block\030\n \001(\t\022 \n\030services_ipv4_cidr_bl" + + "ock\030\013 \001(\t\022\033\n\023tpu_ipv4_cidr_block\030\r \001(\t\022\022" + + "\n\nuse_routes\030\017 \001(\010\"\264\023\n\007Cluster\022\014\n\004name\030\001" + + " \001(\t\022\023\n\013description\030\002 \001(\t\022\036\n\022initial_nod" + + "e_count\030\003 \001(\005B\002\030\001\0228\n\013node_config\030\004 \001(\0132\037" + + ".google.container.v1.NodeConfigB\002\030\001\0224\n\013m" + + "aster_auth\030\005 \001(\0132\037.google.container.v1.M" + + "asterAuth\022\027\n\017logging_service\030\006 \001(\t\022\032\n\022mo" + + "nitoring_service\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_con" + + "fig\030\n \001(\0132!.google.container.v1.AddonsCo" + + "nfig\022\022\n\nsubnetwork\030\013 \001(\t\0221\n\nnode_pools\030\014" + + " \003(\0132\035.google.container.v1.NodePool\022\021\n\tl" + + "ocations\030\r \003(\t\022\037\n\027enable_kubernetes_alph" + + "a\030\016 \001(\010\022I\n\017resource_labels\030\017 \003(\01320.googl" + + "e.container.v1.Cluster.ResourceLabelsEnt" + + "ry\022\031\n\021label_fingerprint\030\020 \001(\t\0224\n\013legacy_" + + "abac\030\022 \001(\0132\037.google.container.v1.LegacyA" + + "bac\022:\n\016network_policy\030\023 \001(\0132\".google.con" + + "tainer.v1.NetworkPolicy\022E\n\024ip_allocation" + + "_policy\030\024 \001(\0132\'.google.container.v1.IPAl" + + "locationPolicy\022^\n!master_authorized_netw" + + "orks_config\030\026 \001(\01323.google.container.v1." + + "MasterAuthorizedNetworksConfig\022B\n\022mainte" + + "nance_policy\030\027 \001(\0132&.google.container.v1" + + ".MaintenancePolicy\022F\n\024binary_authorizati" + + "on\030\030 \001(\0132(.google.container.v1.BinaryAut" + + "horization\022<\n\013autoscaling\030\032 \001(\0132\'.google" + + ".container.v1.ClusterAutoscaling\022:\n\016netw" + + "ork_config\030\033 \001(\0132\".google.container.v1.N" + + "etworkConfig\022K\n\033default_max_pods_constra" + + "int\030\036 \001(\0132&.google.container.v1.MaxPodsC" + + "onstraint\022T\n\034resource_usage_export_confi" + + "g\030! \001(\0132..google.container.v1.ResourceUs" + + "ageExportConfig\022S\n\033authenticator_groups_" + + "config\030\" \001(\0132..google.container.v1.Authe" + + "nticatorGroupsConfig\022I\n\026private_cluster_" + + "config\030% \001(\0132).google.container.v1.Priva" + + "teClusterConfig\022D\n\023database_encryption\030&" + + " \001(\0132\'.google.container.v1.DatabaseEncry" + + "ption\022M\n\030vertical_pod_autoscaling\030\' \001(\0132" + + "+.google.container.v1.VerticalPodAutosca" + + "ling\022:\n\016shielded_nodes\030( \001(\0132\".google.co" + + "ntainer.v1.ShieldedNodes\022<\n\017release_chan" + + "nel\030) \001(\0132#.google.container.v1.ReleaseC" + + "hannel\022M\n\030workload_identity_config\030+ \001(\013" + + "2+.google.container.v1.WorkloadIdentityC" + + "onfig\022\021\n\tself_link\030d \001(\t\022\020\n\004zone\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\030" + + "h \001(\t\022 \n\024current_node_version\030i \001(\tB\002\030\001\022" + + "\023\n\013create_time\030j \001(\t\0223\n\006status\030k \001(\0162#.g" + + "oogle.container.v1.Cluster.Status\022\032\n\016sta" + + "tus_message\030l \001(\tB\002\030\001\022\033\n\023node_ipv4_cidr_" + + "size\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\036\n\022curre" + + "nt_node_count\030p \001(\005B\002\030\001\022\023\n\013expire_time\030q" + + " \001(\t\022\020\n\010location\030r \001(\t\022\022\n\nenable_tpu\030s \001" + + "(\010\022\033\n\023tpu_ipv4_cidr_block\030t \001(\t\0228\n\ncondi" + + "tions\030v \003(\0132$.google.container.v1.Status" + + "Condition\0325\n\023ResourceLabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022ST" + + "ATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007" + + "RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004" + + "\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006\"\342\n\n\rClusterUpd" + + "ate\022\034\n\024desired_node_version\030\004 \001(\t\022\"\n\032des" + + "ired_monitoring_service\030\005 \001(\t\022@\n\025desired" + + "_addons_config\030\006 \001(\0132!.google.container." + + "v1.AddonsConfig\022\034\n\024desired_node_pool_id\030" + + "\007 \001(\t\022\032\n\022desired_image_type\030\010 \001(\t\022L\n\033des" + + "ired_database_encryption\030. \001(\0132\'.google." + + "container.v1.DatabaseEncryption\022U\n desir" + + "ed_workload_identity_config\030/ \001(\0132+.goog" + + "le.container.v1.WorkloadIdentityConfig\022B" + + "\n\026desired_shielded_nodes\0300 \001(\0132\".google." + + "container.v1.ShieldedNodes\022O\n\035desired_no" + + "de_pool_autoscaling\030\t \001(\0132(.google.conta" + + "iner.v1.NodePoolAutoscaling\022\031\n\021desired_l" + + "ocations\030\n \003(\t\022f\n)desired_master_authori" + + "zed_networks_config\030\014 \001(\01323.google.conta" + + "iner.v1.MasterAuthorizedNetworksConfig\022L" + + "\n\033desired_cluster_autoscaling\030\017 \001(\0132\'.go" + + "ogle.container.v1.ClusterAutoscaling\022N\n\034" + + "desired_binary_authorization\030\020 \001(\0132(.goo" + + "gle.container.v1.BinaryAuthorization\022\037\n\027" + + "desired_logging_service\030\023 \001(\t\022\\\n$desired" + + "_resource_usage_export_config\030\025 \001(\0132..go" + + "ogle.container.v1.ResourceUsageExportCon" + + "fig\022U\n desired_vertical_pod_autoscaling\030" + + "\026 \001(\0132+.google.container.v1.VerticalPodA" + + "utoscaling\022Q\n\036desired_private_cluster_co" + + "nfig\030\031 \001(\0132).google.container.v1.Private" + + "ClusterConfig\022\\\n$desired_intra_node_visi" + + "bility_config\030\032 \001(\0132..google.container.v" + + "1.IntraNodeVisibilityConfig\022K\n\033desired_d" + + "efault_snat_status\030\034 \001(\0132&.google.contai" + + "ner.v1.DefaultSnatStatus\022D\n\027desired_rele" + + "ase_channel\030\037 \001(\0132#.google.container.v1." + + "ReleaseChannel\022\036\n\026desired_master_version" + + "\030d \001(\t\"\304\007\n\tOperation\022\014\n\004name\030\001 \001(\t\022\020\n\004zo" + + "ne\030\002 \001(\tB\002\030\001\022;\n\016operation_type\030\003 \001(\0162#.g" + + "oogle.container.v1.Operation.Type\0225\n\006sta" + + "tus\030\004 \001(\0162%.google.container.v1.Operatio" + + "n.Status\022\016\n\006detail\030\010 \001(\t\022\033\n\016status_messa" + + "ge\030\005 \001(\tB\003\340A\003\022\021\n\tself_link\030\006 \001(\t\022\023\n\013targ" + + "et_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\010progres" + + "s\030\014 \001(\0132&.google.container.v1.OperationP" + + "rogressB\003\340A\003\022@\n\022cluster_conditions\030\r \003(\013" + "2$.google.container.v1.StatusCondition\022A" + "\n\023nodepool_conditions\030\016 \003(\0132$.google.con" + "tainer.v1.StatusCondition\"R\n\006Status\022\026\n\022S" @@ -564,450 +687,508 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "AUTO_UPGRADE_NODES\020\013\022\016\n\nSET_LABELS\020\014\022\023\n\017" + "SET_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_MAINTEN" - + "ANCE_POLICY\020\020\"\204\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" - + "\0222\n\007cluster\030\003 \001(\0132\034.google.container.v1." - + "ClusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"c\n\021GetClust" - + "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\014\n\004n" - + "ame\030\005 \001(\t\"\237\001\n\024UpdateClusterRequest\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\026\n\n" - + "cluster_id\030\003 \001(\tB\002\030\001\0227\n\006update\030\004 \001(\0132\".g" - + "oogle.container.v1.ClusterUpdateB\003\340A\002\022\014\n" - + "\004name\030\005 \001(\t\"\265\001\n\025UpdateNodePoolRequest\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\031\n\014node_version\030\005 \001(\tB\003\340A\002\022\027\n\n" - + "image_type\030\006 \001(\tB\003\340A\002\022\014\n\004name\030\010 \001(\t\"\315\001\n\035" - + "SetNodePoolAutoscalingRequest\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\022B\n\013autoscaling\030\005 \001(\0132(.google.containe" - + "r.v1.NodePoolAutoscalingB\003\340A\002\022\014\n\004name\030\006 " - + "\001(\t\"\210\001\n\030SetLoggingServiceRequest\022\026\n\nproj" + + "ANCE_POLICY\020\020\"\273\002\n\021OperationProgress\022\014\n\004n" + + "ame\030\001 \001(\t\0225\n\006status\030\002 \001(\0162%.google.conta" + + "iner.v1.Operation.Status\022>\n\007metrics\030\003 \003(" + + "\0132-.google.container.v1.OperationProgres" + + "s.Metric\0226\n\006stages\030\004 \003(\0132&.google.contai" + + "ner.v1.OperationProgress\032i\n\006Metric\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002 \001(\003H\000\022\026\n\014do" + + "uble_value\030\003 \001(\001H\000\022\026\n\014string_value\030\004 \001(\t" + + "H\000B\007\n\005value\"\204\001\n\024CreateClusterRequest\022\026\n\n" + + "project_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\034.google.container.v1.Cl" + + "usterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"c\n\021GetCluster" + + "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\014\n\004nam" + + "e\030\005 \001(\t\"\237\001\n\024UpdateClusterRequest\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\034\n\017logging_service\030\004 " - + "\001(\tB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\216\001\n\033SetMonitoring" - + "ServiceRequest\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\037\n\022monitoring_service\030\004 \001(\tB\003\340A\002\022\014\n\004nam" - + "e\030\006 \001(\t\"\247\001\n\026SetAddonsConfigRequest\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\026\n\n" - + "cluster_id\030\003 \001(\tB\002\030\001\022=\n\raddons_config\030\004 " - + "\001(\0132!.google.container.v1.AddonsConfigB\003" - + "\340A\002\022\014\n\004name\030\006 \001(\t\"}\n\023SetLocationsRequest" - + "\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\026\n\tlocations\030" - + "\004 \003(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\202\001\n\023UpdateMaste" - + "rRequest\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\033\n\016ma" - + "ster_version\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\265\002" - + "\n\024SetMasterAuthRequest\022\026\n\nproject_id\030\001 \001" + + "uster_id\030\003 \001(\tB\002\030\001\0227\n\006update\030\004 \001(\0132\".goo" + + "gle.container.v1.ClusterUpdateB\003\340A\002\022\014\n\004n" + + "ame\030\005 \001(\t\"\340\002\n\025UpdateNodePoolRequest\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\022\031\n\014node_version\030\005 \001(\tB\003\340A\002\022\027\n\nim" + + "age_type\030\006 \001(\tB\003\340A\002\022\014\n\004name\030\010 \001(\t\022\021\n\tloc" + + "ations\030\r \003(\t\022M\n\030workload_metadata_config" + + "\030\016 \001(\0132+.google.container.v1.WorkloadMet" + + "adataConfig\022G\n\020upgrade_settings\030\017 \001(\0132-." + + "google.container.v1.NodePool.UpgradeSett" + + "ings\"\315\001\n\035SetNodePoolAutoscalingRequest\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\022B\n\013autoscaling\030\005 \001(\0132(.google" + + ".container.v1.NodePoolAutoscalingB\003\340A\002\022\014" + + "\n\004name\030\006 \001(\t\"\210\001\n\030SetLoggingServiceReques" + + "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\034\n\017logging_s" + + "ervice\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\216\001\n\033SetM" + + "onitoringServiceRequest\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\037\n\022monitoring_service\030\004 \001(\tB\003\340" + + "A\002\022\014\n\004name\030\006 \001(\t\"\247\001\n\026SetAddonsConfigRequ" + + "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=\n\raddons_" + + "config\030\004 \001(\0132!.google.container.v1.Addon" + + "sConfigB\003\340A\002\022\014\n\004name\030\006 \001(\t\"}\n\023SetLocatio" + + "nsRequest\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\tl" + + "ocations\030\004 \003(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\202\001\n\023Up" + + "dateMasterRequest\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\033\n\016master_version\030\004 \001(\tB\003\340A\002\022\014\n\004name" + + "\030\007 \001(\t\"\265\002\n\024SetMasterAuthRequest\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\022E\n\006action\030\004 \001(\01620.goog" + + "le.container.v1.SetMasterAuthRequest.Act" + + "ionB\003\340A\002\0224\n\006update\030\005 \001(\0132\037.google.contai" + + "ner.v1.MasterAuthB\003\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006" + + "Action\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PASSWORD\020\001\022\025\n" + + "\021GENERATE_PASSWORD\020\002\022\020\n\014SET_USERNAME\020\003\"f" + + "\n\024DeleteClusterRequest\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\022E\n\006action\030\004 \001(\01620.google.contai" - + "ner.v1.SetMasterAuthRequest.ActionB\003\340A\002\022" - + "4\n\006update\030\005 \001(\0132\037.google.container.v1.Ma" - + "sterAuthB\003\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n" - + "\007UNKNOWN\020\000\022\020\n\014SET_PASSWORD\020\001\022\025\n\021GENERATE" - + "_PASSWORD\020\002\022\020\n\014SET_USERNAME\020\003\"f\n\024DeleteC" - + "lusterRequest\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\004 \001(\t\"O\n\023ListClustersRequest\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\016" - + "\n\006parent\030\004 \001(\t\"]\n\024ListClustersResponse\022." - + "\n\010clusters\030\001 \003(\0132\034.google.container.v1.C" - + "luster\022\025\n\rmissing_zones\030\002 \003(\t\"g\n\023GetOper" + + " \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"O\n\023ListClustersRe" + + "quest\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\"]\n\024ListClustersR" + + "esponse\022.\n\010clusters\030\001 \003(\0132\034.google.conta" + + "iner.v1.Cluster\022\025\n\rmissing_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\025ListOperation" + + "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\016\n\006parent\030\004 \001(\t\"j\n\026CancelOper" + "ationRequest\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\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\026CancelOperationRequ" - + "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\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030" - + "\004 \001(\t\"c\n\026ListOperationsResponse\0222\n\nopera" - + "tions\030\001 \003(\0132\036.google.container.v1.Operat" - + "ion\022\025\n\rmissing_zones\030\002 \003(\t\"P\n\026GetServerC" - + "onfigRequest\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\014\n\004name\030\004 \001(\t\"\242\001\n\014ServerC" - + "onfig\022\037\n\027default_cluster_version\030\001 \001(\t\022\033" - + "\n\023valid_node_versions\030\003 \003(\t\022\032\n\022default_i" - + "mage_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\"\240\001\n\025Cr" - + "eateNodePoolRequest\022\026\n\nproject_id\030\001 \001(\tB" + + "\022\014\n\004name\030\004 \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\"P\n\026G" + + "etServerConfigRequest\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\"\364\002" + + "\n\014ServerConfig\022\037\n\027default_cluster_versio" + + "n\030\001 \001(\t\022\033\n\023valid_node_versions\030\003 \003(\t\022\032\n\022" + + "default_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\022H\n\010channels\030\t \003(\01326.google.container." + + "v1.ServerConfig.ReleaseChannelConfig\032\205\001\n" + + "\024ReleaseChannelConfig\022<\n\007channel\030\001 \001(\0162+" + + ".google.container.v1.ReleaseChannel.Chan" + + "nel\022\027\n\017default_version\030\002 \001(\t\022\026\n\016valid_ve" + + "rsions\030\004 \003(\t\"\240\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\ncluster_id\030\003 \001(\tB\002\030\001\0225\n\tnode_pool\030\004 " + + "\001(\0132\035.google.container.v1.NodePoolB\003\340A\002\022" + + "\016\n\006parent\030\006 \001(\t\"\201\001\n\025DeleteNodePoolReques" + + "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\030\n\014node_pool" + + "_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"h\n\024ListNodeP" + + "oolsRequest\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\016\n" + + "\006parent\030\005 \001(\t\"~\n\022GetNodePoolRequest\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\022\014\n\004name\030\006 \001(\t\"\252\006\n\010NodePool\022\014\n\004na" + + "me\030\001 \001(\t\022/\n\006config\030\002 \001(\0132\037.google.contai" + + "ner.v1.NodeConfig\022\032\n\022initial_node_count\030" + + "\003 \001(\005\022\021\n\tlocations\030\r \003(\t\022\021\n\tself_link\030d " + + "\001(\t\022\017\n\007version\030e \001(\t\022\033\n\023instance_group_u" + + "rls\030f \003(\t\0224\n\006status\030g \001(\0162$.google.conta" + + "iner.v1.NodePool.Status\022\032\n\016status_messag" + + "e\030h \001(\tB\002\030\001\022=\n\013autoscaling\030\004 \001(\0132(.googl" + + "e.container.v1.NodePoolAutoscaling\0227\n\nma" + + "nagement\030\005 \001(\0132#.google.container.v1.Nod" + + "eManagement\022C\n\023max_pods_constraint\030\006 \001(\013" + + "2&.google.container.v1.MaxPodsConstraint" + + "\0228\n\nconditions\030i \003(\0132$.google.container." + + "v1.StatusCondition\022\032\n\022pod_ipv4_cidr_size" + + "\030\007 \001(\005\022G\n\020upgrade_settings\030k \001(\0132-.googl" + + "e.container.v1.NodePool.UpgradeSettings\032" + + "=\n\017UpgradeSettings\022\021\n\tmax_surge\030\001 \001(\005\022\027\n" + + "\017max_unavailable\030\002 \001(\005\"\201\001\n\006Status\022\026\n\022STA" + + "TUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007R" + + "UNNING\020\002\022\026\n\022RUNNING_WITH_ERROR\020\003\022\017\n\013RECO" + + "NCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ERROR\020\006\"}\n\016No" + + "deManagement\022\024\n\014auto_upgrade\030\001 \001(\010\022\023\n\013au" + + "to_repair\030\002 \001(\010\022@\n\017upgrade_options\030\n \001(\013" + + "2\'.google.container.v1.AutoUpgradeOption" + + "s\"J\n\022AutoUpgradeOptions\022\037\n\027auto_upgrade_" + + "start_time\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\"e\n" + + "\021MaintenancePolicy\0226\n\006window\030\001 \001(\0132&.goo" + + "gle.container.v1.MaintenanceWindow\022\030\n\020re" + + "source_version\030\003 \001(\t\"\366\002\n\021MaintenanceWind" + + "ow\022O\n\030daily_maintenance_window\030\002 \001(\0132+.g" + + "oogle.container.v1.DailyMaintenanceWindo" + + "wH\000\022D\n\020recurring_window\030\003 \001(\0132(.google.c" + + "ontainer.v1.RecurringTimeWindowH\000\022a\n\026mai" + + "ntenance_exclusions\030\004 \003(\0132A.google.conta" + + "iner.v1.MaintenanceWindow.MaintenanceExc" + + "lusionsEntry\032]\n\032MaintenanceExclusionsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.google." + + "container.v1.TimeWindow:\0028\001B\010\n\006policy\"j\n" + + "\nTimeWindow\022.\n\nstart_time\030\001 \001(\0132\032.google" + + ".protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032." + + "google.protobuf.Timestamp\"Z\n\023RecurringTi" + + "meWindow\022/\n\006window\030\001 \001(\0132\037.google.contai" + + "ner.v1.TimeWindow\022\022\n\nrecurrence\030\002 \001(\t\">\n" + + "\026DailyMaintenanceWindow\022\022\n\nstart_time\030\002 " + + "\001(\t\022\020\n\010duration\030\003 \001(\t\"\306\001\n\034SetNodePoolMan" + + "agementRequest\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<\n\nmanagement" + + "\030\005 \001(\0132#.google.container.v1.NodeManagem" + + "entB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\233\001\n\026SetNodePoolSi" + + "zeRequest\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\022\027\n\nnode_count\030\005 \001(" + + "\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\"\212\001\n\036RollbackNodePoo" + + "lUpgradeRequest\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\025ListNodePoolsResponse\0221\n\nnode_pools" + + "\030\001 \003(\0132\035.google.container.v1.NodePool\"\377\001" + + "\n\022ClusterAutoscaling\022$\n\034enable_node_auto" + + "provisioning\030\001 \001(\010\022;\n\017resource_limits\030\002 " + + "\003(\0132\".google.container.v1.ResourceLimit\022" + + "b\n#autoprovisioning_node_pool_defaults\030\004" + + " \001(\01325.google.container.v1.Autoprovision" + + "ingNodePoolDefaults\022\"\n\032autoprovisioning_" + + "locations\030\005 \003(\t\"\200\003\n AutoprovisioningNode" + + "PoolDefaults\022\024\n\014oauth_scopes\030\001 \003(\t\022\027\n\017se" + + "rvice_account\030\002 \001(\t\022G\n\020upgrade_settings\030" + + "\003 \001(\0132-.google.container.v1.NodePool.Upg" + + "radeSettings\0227\n\nmanagement\030\004 \001(\0132#.googl" + + "e.container.v1.NodeManagement\022\030\n\020min_cpu" + + "_platform\030\005 \001(\t\022\024\n\014disk_size_gb\030\006 \001(\005\022\021\n" + + "\tdisk_type\030\007 \001(\t\022M\n\030shielded_instance_co" + + "nfig\030\010 \001(\0132+.google.container.v1.Shielde", + "dInstanceConfig\022\031\n\021boot_disk_kms_key\030\t \001" + + "(\t\"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\023" + + "NodePoolAutoscaling\022\017\n\007enabled\030\001 \001(\010\022\026\n\016" + + "min_node_count\030\002 \001(\005\022\026\n\016max_node_count\030\003" + + " \001(\005\022\027\n\017autoprovisioned\030\004 \001(\010\"\222\002\n\020SetLab" + + "elsRequest\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\022W\n\017" + + "resource_labels\030\004 \003(\01329.google.container" + + ".v1.SetLabelsRequest.ResourceLabelsEntry" + + "B\003\340A\002\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n" + + "\004name\030\007 \001(\t\0325\n\023ResourceLabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\024SetLegacyA" + + "bacRequest\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\024\n\007" + + "enabled\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026Sta" + + "rtIPRotationRequest\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\0225\n\tnode_pool\030\004 \001(\0132\035.google.contai" - + "ner.v1.NodePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201\001\n" - + "\025DeleteNodePoolRequest\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\004na" - + "me\030\006 \001(\t\"h\n\024ListNodePoolsRequest\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\016\n\006parent\030\005 \001(\t\"~\n\022Ge" - + "tNodePoolRequest\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\"\213\005\n\010NodePool\022\014\n\004name\030\001 \001(\t\022/\n\006config\030" - + "\002 \001(\0132\037.google.container.v1.NodeConfig\022\032" - + "\n\022initial_node_count\030\003 \001(\005\022\021\n\tself_link\030" - + "d \001(\t\022\017\n\007version\030e \001(\t\022\033\n\023instance_group" - + "_urls\030f \003(\t\0224\n\006status\030g \001(\0162$.google.con" - + "tainer.v1.NodePool.Status\022\026\n\016status_mess" - + "age\030h \001(\t\022=\n\013autoscaling\030\004 \001(\0132(.google." - + "container.v1.NodePoolAutoscaling\0227\n\nmana" - + "gement\030\005 \001(\0132#.google.container.v1.NodeM" - + "anagement\022C\n\023max_pods_constraint\030\006 \001(\0132&" - + ".google.container.v1.MaxPodsConstraint\0228" - + "\n\nconditions\030i \003(\0132$.google.container.v1" - + ".StatusCondition\022\032\n\022pod_ipv4_cidr_size\030\007" - + " \001(\005\"\201\001\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022" - + "\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNIN" - + "G_WITH_ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPP" - + "ING\020\005\022\t\n\005ERROR\020\006\"}\n\016NodeManagement\022\024\n\014au" - + "to_upgrade\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022@\n" - + "\017upgrade_options\030\n \001(\0132\'.google.containe" - + "r.v1.AutoUpgradeOptions\"J\n\022AutoUpgradeOp" - + "tions\022\037\n\027auto_upgrade_start_time\030\001 \001(\t\022\023" - + "\n\013description\030\002 \001(\t\"e\n\021MaintenancePolicy" - + "\0226\n\006window\030\001 \001(\0132&.google.container.v1.M" - + "aintenanceWindow\022\030\n\020resource_version\030\003 \001" - + "(\t\"\366\002\n\021MaintenanceWindow\022O\n\030daily_mainte" - + "nance_window\030\002 \001(\0132+.google.container.v1" - + ".DailyMaintenanceWindowH\000\022D\n\020recurring_w" - + "indow\030\003 \001(\0132(.google.container.v1.Recurr" - + "ingTimeWindowH\000\022a\n\026maintenance_exclusion" - + "s\030\004 \003(\0132A.google.container.v1.Maintenanc" - + "eWindow.MaintenanceExclusionsEntry\032]\n\032Ma" - + "intenanceExclusionsEntry\022\013\n\003key\030\001 \001(\t\022.\n" - + "\005value\030\002 \001(\0132\037.google.container.v1.TimeW" - + "indow:\0028\001B\010\n\006policy\"j\n\nTimeWindow\022.\n\nsta" - + "rt_time\030\001 \001(\0132\032.google.protobuf.Timestam" - + "p\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" - + "mestamp\"Z\n\023RecurringTimeWindow\022/\n\006window" - + "\030\001 \001(\0132\037.google.container.v1.TimeWindow\022" - + "\022\n\nrecurrence\030\002 \001(\t\">\n\026DailyMaintenanceW" - + "indow\022\022\n\nstart_time\030\002 \001(\t\022\020\n\010duration\030\003 " - + "\001(\t\"\306\001\n\034SetNodePoolManagementRequest\022\026\n\n" + + "\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\032\n\022rotate_credential" + + "s\030\007 \001(\010\"k\n\031CompleteIPRotationRequest\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<\n\nmanagement\030\005 \001(\0132#.google.co" - + "ntainer.v1.NodeManagementB\003\340A\002\022\014\n\004name\030\007" - + " \001(\t\"\233\001\n\026SetNodePoolSizeRequest\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\030\n\014node_pool_id\030\004 \001(\tB" - + "\002\030\001\022\027\n\nnode_count\030\005 \001(\005B\003\340A\002\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\"\377\001\n\022ClusterAutoscali" - + "ng\022$\n\034enable_node_autoprovisioning\030\001 \001(\010" - + "\022;\n\017resource_limits\030\002 \003(\0132\".google.conta" - + "iner.v1.ResourceLimit\022b\n#autoprovisionin" - + "g_node_pool_defaults\030\004 \001(\01325.google.cont" - + "ainer.v1.AutoprovisioningNodePoolDefault" - + "s\022\"\n\032autoprovisioning_locations\030\005 \003(\t\"Q\n" - + " AutoprovisioningNodePoolDefaults\022\024\n\014oau" - + "th_scopes\030\001 \003(\t\022\027\n\017service_account\030\002 \001(\t" - + "\"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\023No" - + "dePoolAutoscaling\022\017\n\007enabled\030\001 \001(\010\022\026\n\016mi" - + "n_node_count\030\002 \001(\005\022\026\n\016max_node_count\030\003 \001" - + "(\005\022\027\n\017autoprovisioned\030\004 \001(\010\"\222\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\022W\n\017re" - + "source_labels\030\004 \003(\01329.google.container.v" - + "1.SetLabelsRequest.ResourceLabelsEntryB\003" - + "\340A\002\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n\004n" - + "ame\030\007 \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\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\024\n\007en" - + "abled\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026Start" - + "IPRotationRequest\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\006 \001(\t\022\032\n\022rotate_credentials\030" - + "\007 \001(\010\"k\n\031CompleteIPRotationRequest\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\026\n\n" - + "cluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"H\n\021Ac" - + "celeratorConfig\022\031\n\021accelerator_count\030\001 \001" - + "(\003\022\030\n\020accelerator_type\030\002 \001(\t\"\252\001\n\027SetNetw" - + "orkPolicyRequest\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_policy\030\004 \001(\0132\".google.cont" - + "ainer.v1.NetworkPolicyB\003\340A\002\022\014\n\004name\030\006 \001(" - + "\t\"\271\001\n\033SetMaintenancePolicyRequest\022\027\n\npro" - + "ject_id\030\001 \001(\tB\003\340A\002\022\021\n\004zone\030\002 \001(\tB\003\340A\002\022\027\n" - + "\ncluster_id\030\003 \001(\tB\003\340A\002\022G\n\022maintenance_po" - + "licy\030\004 \001(\0132&.google.container.v1.Mainten" - + "ancePolicyB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\352\001\n\017Status" - + "Condition\0227\n\004code\030\001 \001(\0162).google.contain" - + "er.v1.StatusCondition.Code\022\017\n\007message\030\002 " - + "\001(\t\"\214\001\n\004Code\022\013\n\007UNKNOWN\020\000\022\020\n\014GCE_STOCKOU" - + "T\020\001\022\037\n\033GKE_SERVICE_ACCOUNT_DELETED\020\002\022\026\n\022" - + "GCE_QUOTA_EXCEEDED\020\003\022\023\n\017SET_BY_OPERATOR\020" - + "\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020\007\"Z\n\rNetworkCon" + + "\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"H\n\021" + + "AcceleratorConfig\022\031\n\021accelerator_count\030\001" + + " \001(\003\022\030\n\020accelerator_type\030\002 \001(\t\"\232\001\n\026Workl" + + "oadMetadataConfig\022>\n\004mode\030\002 \001(\01620.google" + + ".container.v1.WorkloadMetadataConfig.Mod" + + "e\"@\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n\014GCE_M" + + "ETADATA\020\001\022\020\n\014GKE_METADATA\020\002\"\252\001\n\027SetNetwo" + + "rkPolicyRequest\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_policy\030\004 \001(\0132\".google.conta" + + "iner.v1.NetworkPolicyB\003\340A\002\022\014\n\004name\030\006 \001(\t" + + "\"\271\001\n\033SetMaintenancePolicyRequest\022\027\n\nproj" + + "ect_id\030\001 \001(\tB\003\340A\002\022\021\n\004zone\030\002 \001(\tB\003\340A\002\022\027\n\n" + + "cluster_id\030\003 \001(\tB\003\340A\002\022G\n\022maintenance_pol" + + "icy\030\004 \001(\0132&.google.container.v1.Maintena" + + "ncePolicyB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\352\001\n\017StatusC" + + "ondition\0227\n\004code\030\001 \001(\0162).google.containe" + + "r.v1.StatusCondition.Code\022\017\n\007message\030\002 \001" + + "(\t\"\214\001\n\004Code\022\013\n\007UNKNOWN\020\000\022\020\n\014GCE_STOCKOUT" + + "\020\001\022\037\n\033GKE_SERVICE_ACCOUNT_DELETED\020\002\022\026\n\022G" + + "CE_QUOTA_EXCEEDED\020\003\022\023\n\017SET_BY_OPERATOR\020\004" + + "\022\027\n\023CLOUD_KMS_KEY_ERROR\020\007\"\237\001\n\rNetworkCon" + "fig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t" - + "\022$\n\034enable_intra_node_visibility\030\005 \001(\010\"," - + "\n\031IntraNodeVisibilityConfig\022\017\n\007enabled\030\001" - + " \001(\010\".\n\021MaxPodsConstraint\022\031\n\021max_pods_pe" - + "r_node\030\001 \001(\003\"\230\001\n\022DatabaseEncryption\022<\n\005s" - + "tate\030\002 \001(\0162-.google.container.v1.Databas" - + "eEncryption.State\022\020\n\010key_name\030\001 \001(\t\"2\n\005S" - + "tate\022\013\n\007UNKNOWN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECR" - + "YPTED\020\002\"e\n\034ListUsableSubnetworksRequest\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\npage_token\030\004 \001(\t\"t\n\035ListUs" - + "ableSubnetworksResponse\022:\n\013subnetworks\030\001" - + " \003(\0132%.google.container.v1.UsableSubnetw" - + "ork\022\027\n\017next_page_token\030\002 \001(\t\"\200\002\n\036UsableS" - + "ubnetworkSecondaryRange\022\022\n\nrange_name\030\001 " - + "\001(\t\022\025\n\rip_cidr_range\030\002 \001(\t\022J\n\006status\030\003 \001" - + "(\0162:.google.container.v1.UsableSubnetwor" - + "kSecondaryRange.Status\"g\n\006Status\022\013\n\007UNKN" - + "OWN\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_MANAGE" - + "D_POD\020\004\"\270\001\n\020UsableSubnetwork\022\022\n\nsubnetwo" - + "rk\030\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_ran" - + "ge\030\003 \001(\t\022P\n\023secondary_ip_ranges\030\004 \003(\01323." - + "google.container.v1.UsableSubnetworkSeco" - + "ndaryRange\022\026\n\016status_message\030\005 \001(\t\"\355\002\n\031R" - + "esourceUsageExportConfig\022`\n\024bigquery_des" - + "tination\030\001 \001(\0132B.google.container.v1.Res" - + "ourceUsageExportConfig.BigQueryDestinati" - + "on\022&\n\036enable_network_egress_metering\030\002 \001" - + "(\010\022m\n\033consumption_metering_config\030\003 \001(\0132" - + "H.google.container.v1.ResourceUsageExpor" - + "tConfig.ConsumptionMeteringConfig\032)\n\023Big" - + "QueryDestination\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031" - + "ConsumptionMeteringConfig\022\017\n\007enabled\030\001 \001" - + "(\010\")\n\026VerticalPodAutoscaling\022\017\n\007enabled\030" - + "\001 \001(\0102\322D\n\016ClusterManager\022\350\001\n\014ListCluster" - + "s\022(.google.container.v1.ListClustersRequ", - "est\032).google.container.v1.ListClustersRe" - + "sponse\"\202\001\202\323\344\223\002a\022,/v1/{parent=projects/*/" - + "locations/*}/clustersZ1\022//v1/projects/{p" - + "roject_id}/zones/{zone}/clusters\332A\017proje" - + "ct_id,zone\332A\006parent\022\355\001\n\nGetCluster\022&.goo" - + "gle.container.v1.GetClusterRequest\032\034.goo" - + "gle.container.v1.Cluster\"\230\001\202\323\344\223\002n\022,/v1/{" - + "name=projects/*/locations/*/clusters/*}Z" - + ">\022\n\007" + + "Channel\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007R" + + "EGULAR\020\002\022\n\n\006STABLE\020\003\",\n\031IntraNodeVisibil" + + "ityConfig\022\017\n\007enabled\030\001 \001(\010\".\n\021MaxPodsCon" + + "straint\022\031\n\021max_pods_per_node\030\001 \001(\003\"/\n\026Wo" + + "rkloadIdentityConfig\022\025\n\rworkload_pool\030\002 " + + "\001(\t\"\230\001\n\022DatabaseEncryption\022<\n\005state\030\002 \001(" + + "\0162-.google.container.v1.DatabaseEncrypti" + + "on.State\022\020\n\010key_name\030\001 \001(\t\"2\n\005State\022\013\n\007U" + + "NKNOWN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"e" + + "\n\034ListUsableSubnetworksRequest\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\npage_token\030\004 \001(\t\"t\n\035ListUsableSubne" + + "tworksResponse\022:\n\013subnetworks\030\001 \003(\0132%.go" + + "ogle.container.v1.UsableSubnetwork\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\200\002\n\036UsableSubnetwork" + + "SecondaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip" + + "_cidr_range\030\002 \001(\t\022J\n\006status\030\003 \001(\0162:.goog" + + "le.container.v1.UsableSubnetworkSecondar" + + "yRange.Status\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006" + + "UNUSED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_USE_S" + + "HAREABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_POD\020\004\"\270" + + "\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\022" + + "P\n\023secondary_ip_ranges\030\004 \003(\01323.google.co" + + "ntainer.v1.UsableSubnetworkSecondaryRang" + + "e\022\026\n\016status_message\030\005 \001(\t\"\355\002\n\031ResourceUs" + + "ageExportConfig\022`\n\024bigquery_destination\030" + + "\001 \001(\0132B.google.container.v1.ResourceUsag" + + "eExportConfig.BigQueryDestination\022&\n\036ena" + + "ble_network_egress_metering\030\002 \001(\010\022m\n\033con" + + "sumption_metering_config\030\003 \001(\0132H.google." + + "container.v1.ResourceUsageExportConfig.C" + + "onsumptionMeteringConfig\032)\n\023BigQueryDest" + + "ination\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031Consumpti" + + "onMeteringConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026Ver" + + "ticalPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"%\n\021" + + "DefaultSnatStatus\022\020\n\010disabled\030\001 \001(\010\" \n\rS" + + "hieldedNodes\022\017\n\007enabled\030\001 \001(\0102\205F\n\016Cluste" + + "rManager\022\350\001\n\014ListClusters\022(.google.conta" + + "iner.v1.ListClustersRequest\032).google.con" + + "tainer.v1.ListClustersResponse\"\202\001\202\323\344\223\002a\022" + + ",/v1/{parent=projects/*/locations/*}/clu" + + "stersZ1\022//v1/projects/{project_id}/zones" + + "/{zone}/clusters\332A\017project_id,zone\332A\006par" + + "ent\022\355\001\n\nGetCluster\022&.google.container.v1" + + ".GetClusterRequest\032\034.google.container.v1" + + ".Cluster\"\230\001\202\323\344\223\002n\022,/v1/{name=projects/*/" + + "locations/*/clusters/*}Z>\022*/v1/{name=projects/" + + "*/locations/*/clusters/*}:setResourceLab" + + "els:\001*ZP\"K/v1/projects/{project_id}/zone" + + "s/{zone}/clusters/{cluster_id}/resourceL" + + "abels:\001*\022\245\002\n\rSetLegacyAbac\022).google.cont" + + "ainer.v1.SetLegacyAbacRequest\032\036.google.c" + + "ontainer.v1.Operation\"\310\001\202\323\344\223\002\215\001\":/v1/{na" + + "me=projects/*/locations/*/clusters/*}:se" + + "tLegacyAbac:\001*ZL\"G/v1/projects/{project_" + "id}/zones/{zone}/clusters/{cluster_id}/l" - + "ocations:\001*\332A$project_id,zone,cluster_id" - + ",locations\332A\016name,locations\022\254\002\n\014UpdateMa" - + "ster\022(.google.container.v1.UpdateMasterR" - + "equest\032\036.google.container.v1.Operation\"\321" - + "\001\202\323\344\223\002\210\001\"9/v1/{name=projects/*/locations" - + "/*/clusters/*}:updateMaster:\001*ZH\"C/v1/pr" - + "ojects/{project_id}/zones/{zone}/cluster" - + "s/{cluster_id}/master:\001*\332A)project_id,zo" - + "ne,cluster_id,master_version\332A\023name,mast" - + "er_version\022\364\001\n\rSetMasterAuth\022).google.co" - + "ntainer.v1.SetMasterAuthRequest\032\036.google" - + ".container.v1.Operation\"\227\001\202\323\344\223\002\220\001\":/v1/{" - + "name=projects/*/locations/*/clusters/*}:" - + "setMasterAuth:\001*ZO\"J/v1/projects/{projec" + + "egacyAbac:\001*\332A\"project_id,zone,cluster_i" + + "d,enabled\332A\014name,enabled\022\240\002\n\017StartIPRota" + + "tion\022+.google.container.v1.StartIPRotati" + + "onRequest\032\036.google.container.v1.Operatio" + + "n\"\277\001\202\323\344\223\002\224\001\"*/v1/{name=projects/*/l" - + "ocations/*/clusters/*}:setResourceLabels" - + ":\001*ZP\"K/v1/projects/{project_id}/zones/{" - + "zone}/clusters/{cluster_id}/resourceLabe" - + "ls:\001*\022\245\002\n\rSetLegacyAbac\022).google.contain" - + "er.v1.SetLegacyAbacRequest\032\036.google.cont" - + "ainer.v1.Operation\"\310\001\202\323\344\223\002\215\001\":/v1/{name=" - + "projects/*/locations/*/clusters/*}:setLe" - + "gacyAbac:\001*ZL\"G/v1/projects/{project_id}" - + "/zones/{zone}/clusters/{cluster_id}/lega" - + "cyAbac:\001*\332A\"project_id,zone,cluster_id,e" - + "nabled\332A\014name,enabled\022\240\002\n\017StartIPRotatio" - + "n\022+.google.container.v1.StartIPRotationR" - + "equest\032\036.google.container.v1.Operation\"\277" - + "\001\202\323\344\223\002\224\001\" * 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 - * * "monitoring.googleapis.com" - the Google Cloud Monitoring service - * * "none" - no metrics will be exported from the cluster + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. *
* * string desired_monitoring_service = 5; @@ -416,10 +499,13 @@ public 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
-   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-   * * "none" - no metrics will be exported from the cluster
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
    * 
* * string desired_monitoring_service = 5; @@ -642,6 +728,103 @@ public com.google.container.v1.DatabaseEncryption getDesiredDatabaseEncryption() return getDesiredDatabaseEncryption(); } + public static final int DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 47; + private com.google.container.v1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * @return Whether the desiredWorkloadIdentityConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredWorkloadIdentityConfig() { + return desiredWorkloadIdentityConfig_ != null; + } + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * @return The desiredWorkloadIdentityConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { + return desiredWorkloadIdentityConfig_ == null + ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() + : desiredWorkloadIdentityConfig_; + } + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfigOrBuilder + getDesiredWorkloadIdentityConfigOrBuilder() { + return getDesiredWorkloadIdentityConfig(); + } + + public static final int DESIRED_SHIELDED_NODES_FIELD_NUMBER = 48; + private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return Whether the desiredShieldedNodes field is set. + */ + @java.lang.Override + public boolean hasDesiredShieldedNodes() { + return desiredShieldedNodes_ != null; + } + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return The desiredShieldedNodes. + */ + @java.lang.Override + public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { + return desiredShieldedNodes_ == null + ? com.google.container.v1.ShieldedNodes.getDefaultInstance() + : desiredShieldedNodes_; + } + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + @java.lang.Override + public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { + return getDesiredShieldedNodes(); + } + public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; /** @@ -707,11 +890,11 @@ public com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling * *
    * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
    * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
    * 
* * repeated string desired_locations = 10; @@ -726,11 +909,11 @@ public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { * *
    * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
    * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
    * 
* * repeated string desired_locations = 10; @@ -745,11 +928,11 @@ public int getDesiredLocationsCount() { * *
    * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
    * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
    * 
* * repeated string desired_locations = 10; @@ -765,11 +948,11 @@ public java.lang.String getDesiredLocations(int index) { * *
    * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
    * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
    * 
* * repeated string desired_locations = 10; @@ -944,10 +1127,13 @@ public com.google.container.v1.BinaryAuthorization getDesiredBinaryAuthorization *
    * The logging service the cluster should use to write logs.
    * Currently available options:
-   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-   * service with Kubernetes-native resource model
-   * * "logging.googleapis.com" - the Google Cloud Logging service
-   * * "none" - no logs will be exported from the cluster
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
    * 
* * string desired_logging_service = 19; @@ -972,10 +1158,13 @@ public java.lang.String getDesiredLoggingService() { *
    * The logging service the cluster should use to write logs.
    * Currently available options:
-   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-   * service with Kubernetes-native resource model
-   * * "logging.googleapis.com" - the Google Cloud Logging service
-   * * "none" - no logs will be exported from the cluster
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
    * 
* * string desired_logging_service = 19; @@ -1096,6 +1285,55 @@ public com.google.container.v1.VerticalPodAutoscaling getDesiredVerticalPodAutos return getDesiredVerticalPodAutoscaling(); } + public static final int DESIRED_PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1.PrivateClusterConfig desiredPrivateClusterConfig_; + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * @return Whether the desiredPrivateClusterConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredPrivateClusterConfig() { + return desiredPrivateClusterConfig_ != null; + } + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * @return The desiredPrivateClusterConfig. + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { + return desiredPrivateClusterConfig_ == null + ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() + : desiredPrivateClusterConfig_; + } + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterConfigOrBuilder + getDesiredPrivateClusterConfigOrBuilder() { + return getDesiredPrivateClusterConfig(); + } + public static final int DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER = 26; private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; /** @@ -1148,6 +1386,102 @@ public com.google.container.v1.IntraNodeVisibilityConfig getDesiredIntraNodeVisi return getDesiredIntraNodeVisibilityConfig(); } + public static final int DESIRED_DEFAULT_SNAT_STATUS_FIELD_NUMBER = 28; + private com.google.container.v1.DefaultSnatStatus desiredDefaultSnatStatus_; + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return Whether the desiredDefaultSnatStatus field is set. + */ + @java.lang.Override + public boolean hasDesiredDefaultSnatStatus() { + return desiredDefaultSnatStatus_ != null; + } + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return The desiredDefaultSnatStatus. + */ + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus() { + return desiredDefaultSnatStatus_ == null + ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() + : desiredDefaultSnatStatus_; + } + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + @java.lang.Override + public com.google.container.v1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder() { + return getDesiredDefaultSnatStatus(); + } + + public static final int DESIRED_RELEASE_CHANNEL_FIELD_NUMBER = 31; + private com.google.container.v1.ReleaseChannel desiredReleaseChannel_; + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * + * @return Whether the desiredReleaseChannel field is set. + */ + @java.lang.Override + public boolean hasDesiredReleaseChannel() { + return desiredReleaseChannel_ != null; + } + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * + * @return The desiredReleaseChannel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel getDesiredReleaseChannel() { + return desiredReleaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : desiredReleaseChannel_; + } + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { + return getDesiredReleaseChannel(); + } + public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; private volatile java.lang.Object desiredMasterVersion_; /** @@ -1264,12 +1598,27 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (desiredVerticalPodAutoscaling_ != null) { output.writeMessage(22, getDesiredVerticalPodAutoscaling()); } + if (desiredPrivateClusterConfig_ != null) { + output.writeMessage(25, getDesiredPrivateClusterConfig()); + } if (desiredIntraNodeVisibilityConfig_ != null) { output.writeMessage(26, getDesiredIntraNodeVisibilityConfig()); } + if (desiredDefaultSnatStatus_ != null) { + output.writeMessage(28, getDesiredDefaultSnatStatus()); + } + if (desiredReleaseChannel_ != null) { + output.writeMessage(31, getDesiredReleaseChannel()); + } if (desiredDatabaseEncryption_ != null) { output.writeMessage(46, getDesiredDatabaseEncryption()); } + if (desiredWorkloadIdentityConfig_ != null) { + output.writeMessage(47, getDesiredWorkloadIdentityConfig()); + } + if (desiredShieldedNodes_ != null) { + output.writeMessage(48, getDesiredShieldedNodes()); + } if (!getDesiredMasterVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); } @@ -1339,16 +1688,39 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 22, getDesiredVerticalPodAutoscaling()); } + if (desiredPrivateClusterConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, getDesiredPrivateClusterConfig()); + } if (desiredIntraNodeVisibilityConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 26, getDesiredIntraNodeVisibilityConfig()); } + if (desiredDefaultSnatStatus_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, getDesiredDefaultSnatStatus()); + } + if (desiredReleaseChannel_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(31, getDesiredReleaseChannel()); + } if (desiredDatabaseEncryption_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 46, getDesiredDatabaseEncryption()); } + if (desiredWorkloadIdentityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 47, getDesiredWorkloadIdentityConfig()); + } + if (desiredShieldedNodes_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(48, getDesiredShieldedNodes()); + } if (!getDesiredMasterVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); } @@ -1380,6 +1752,16 @@ public boolean equals(final java.lang.Object obj) { if (!getDesiredDatabaseEncryption().equals(other.getDesiredDatabaseEncryption())) return false; } + if (hasDesiredWorkloadIdentityConfig() != other.hasDesiredWorkloadIdentityConfig()) + return false; + if (hasDesiredWorkloadIdentityConfig()) { + if (!getDesiredWorkloadIdentityConfig().equals(other.getDesiredWorkloadIdentityConfig())) + return false; + } + if (hasDesiredShieldedNodes() != other.hasDesiredShieldedNodes()) return false; + if (hasDesiredShieldedNodes()) { + if (!getDesiredShieldedNodes().equals(other.getDesiredShieldedNodes())) return false; + } if (hasDesiredNodePoolAutoscaling() != other.hasDesiredNodePoolAutoscaling()) return false; if (hasDesiredNodePoolAutoscaling()) { if (!getDesiredNodePoolAutoscaling().equals(other.getDesiredNodePoolAutoscaling())) @@ -1415,12 +1797,25 @@ public boolean equals(final java.lang.Object obj) { if (!getDesiredVerticalPodAutoscaling().equals(other.getDesiredVerticalPodAutoscaling())) return false; } + if (hasDesiredPrivateClusterConfig() != other.hasDesiredPrivateClusterConfig()) return false; + if (hasDesiredPrivateClusterConfig()) { + if (!getDesiredPrivateClusterConfig().equals(other.getDesiredPrivateClusterConfig())) + return false; + } if (hasDesiredIntraNodeVisibilityConfig() != other.hasDesiredIntraNodeVisibilityConfig()) return false; if (hasDesiredIntraNodeVisibilityConfig()) { if (!getDesiredIntraNodeVisibilityConfig() .equals(other.getDesiredIntraNodeVisibilityConfig())) return false; } + if (hasDesiredDefaultSnatStatus() != other.hasDesiredDefaultSnatStatus()) return false; + if (hasDesiredDefaultSnatStatus()) { + if (!getDesiredDefaultSnatStatus().equals(other.getDesiredDefaultSnatStatus())) return false; + } + if (hasDesiredReleaseChannel() != other.hasDesiredReleaseChannel()) return false; + if (hasDesiredReleaseChannel()) { + if (!getDesiredReleaseChannel().equals(other.getDesiredReleaseChannel())) return false; + } if (!getDesiredMasterVersion().equals(other.getDesiredMasterVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1449,6 +1844,14 @@ public int hashCode() { hash = (37 * hash) + DESIRED_DATABASE_ENCRYPTION_FIELD_NUMBER; hash = (53 * hash) + getDesiredDatabaseEncryption().hashCode(); } + if (hasDesiredWorkloadIdentityConfig()) { + hash = (37 * hash) + DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredWorkloadIdentityConfig().hashCode(); + } + if (hasDesiredShieldedNodes()) { + hash = (37 * hash) + DESIRED_SHIELDED_NODES_FIELD_NUMBER; + hash = (53 * hash) + getDesiredShieldedNodes().hashCode(); + } if (hasDesiredNodePoolAutoscaling()) { hash = (37 * hash) + DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER; hash = (53 * hash) + getDesiredNodePoolAutoscaling().hashCode(); @@ -1479,10 +1882,22 @@ public int hashCode() { hash = (37 * hash) + DESIRED_VERTICAL_POD_AUTOSCALING_FIELD_NUMBER; hash = (53 * hash) + getDesiredVerticalPodAutoscaling().hashCode(); } + if (hasDesiredPrivateClusterConfig()) { + hash = (37 * hash) + DESIRED_PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredPrivateClusterConfig().hashCode(); + } if (hasDesiredIntraNodeVisibilityConfig()) { hash = (37 * hash) + DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDesiredIntraNodeVisibilityConfig().hashCode(); } + if (hasDesiredDefaultSnatStatus()) { + hash = (37 * hash) + DESIRED_DEFAULT_SNAT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getDesiredDefaultSnatStatus().hashCode(); + } + if (hasDesiredReleaseChannel()) { + hash = (37 * hash) + DESIRED_RELEASE_CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getDesiredReleaseChannel().hashCode(); + } hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getDesiredMasterVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1651,6 +2066,18 @@ public Builder clear() { desiredDatabaseEncryption_ = null; desiredDatabaseEncryptionBuilder_ = null; } + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = null; + } else { + desiredWorkloadIdentityConfig_ = null; + desiredWorkloadIdentityConfigBuilder_ = null; + } + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = null; + } else { + desiredShieldedNodes_ = null; + desiredShieldedNodesBuilder_ = null; + } if (desiredNodePoolAutoscalingBuilder_ == null) { desiredNodePoolAutoscaling_ = null; } else { @@ -1691,12 +2118,30 @@ public Builder clear() { desiredVerticalPodAutoscaling_ = null; desiredVerticalPodAutoscalingBuilder_ = null; } + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = null; + } else { + desiredPrivateClusterConfig_ = null; + desiredPrivateClusterConfigBuilder_ = null; + } if (desiredIntraNodeVisibilityConfigBuilder_ == null) { desiredIntraNodeVisibilityConfig_ = null; } else { desiredIntraNodeVisibilityConfig_ = null; desiredIntraNodeVisibilityConfigBuilder_ = null; } + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = null; + } else { + desiredDefaultSnatStatus_ = null; + desiredDefaultSnatStatusBuilder_ = null; + } + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = null; + } else { + desiredReleaseChannel_ = null; + desiredReleaseChannelBuilder_ = null; + } desiredMasterVersion_ = ""; return this; @@ -1741,6 +2186,16 @@ public com.google.container.v1.ClusterUpdate buildPartial() { } else { result.desiredDatabaseEncryption_ = desiredDatabaseEncryptionBuilder_.build(); } + if (desiredWorkloadIdentityConfigBuilder_ == null) { + result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfig_; + } else { + result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfigBuilder_.build(); + } + if (desiredShieldedNodesBuilder_ == null) { + result.desiredShieldedNodes_ = desiredShieldedNodes_; + } else { + result.desiredShieldedNodes_ = desiredShieldedNodesBuilder_.build(); + } if (desiredNodePoolAutoscalingBuilder_ == null) { result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscaling_; } else { @@ -1778,11 +2233,26 @@ public com.google.container.v1.ClusterUpdate buildPartial() { } else { result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscalingBuilder_.build(); } + if (desiredPrivateClusterConfigBuilder_ == null) { + result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfig_; + } else { + result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfigBuilder_.build(); + } if (desiredIntraNodeVisibilityConfigBuilder_ == null) { result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfig_; } else { result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfigBuilder_.build(); } + if (desiredDefaultSnatStatusBuilder_ == null) { + result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatus_; + } else { + result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatusBuilder_.build(); + } + if (desiredReleaseChannelBuilder_ == null) { + result.desiredReleaseChannel_ = desiredReleaseChannel_; + } else { + result.desiredReleaseChannel_ = desiredReleaseChannelBuilder_.build(); + } result.desiredMasterVersion_ = desiredMasterVersion_; onBuilt(); return result; @@ -1855,6 +2325,12 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { if (other.hasDesiredDatabaseEncryption()) { mergeDesiredDatabaseEncryption(other.getDesiredDatabaseEncryption()); } + if (other.hasDesiredWorkloadIdentityConfig()) { + mergeDesiredWorkloadIdentityConfig(other.getDesiredWorkloadIdentityConfig()); + } + if (other.hasDesiredShieldedNodes()) { + mergeDesiredShieldedNodes(other.getDesiredShieldedNodes()); + } if (other.hasDesiredNodePoolAutoscaling()) { mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); } @@ -1888,9 +2364,18 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { if (other.hasDesiredVerticalPodAutoscaling()) { mergeDesiredVerticalPodAutoscaling(other.getDesiredVerticalPodAutoscaling()); } + if (other.hasDesiredPrivateClusterConfig()) { + mergeDesiredPrivateClusterConfig(other.getDesiredPrivateClusterConfig()); + } if (other.hasDesiredIntraNodeVisibilityConfig()) { mergeDesiredIntraNodeVisibilityConfig(other.getDesiredIntraNodeVisibilityConfig()); } + if (other.hasDesiredDefaultSnatStatus()) { + mergeDesiredDefaultSnatStatus(other.getDesiredDefaultSnatStatus()); + } + if (other.hasDesiredReleaseChannel()) { + mergeDesiredReleaseChannel(other.getDesiredReleaseChannel()); + } if (!other.getDesiredMasterVersion().isEmpty()) { desiredMasterVersion_ = other.desiredMasterVersion_; onChanged(); @@ -2079,10 +2564,13 @@ public Builder setDesiredNodeVersionBytes(com.google.protobuf.ByteString value) *
      * 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
-     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-     * * "none" - no metrics will be exported from the cluster
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string desired_monitoring_service = 5; @@ -2106,10 +2594,13 @@ public 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
-     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-     * * "none" - no metrics will be exported from the cluster
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string desired_monitoring_service = 5; @@ -2133,10 +2624,13 @@ public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { *
      * 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
-     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-     * * "none" - no metrics will be exported from the cluster
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string desired_monitoring_service = 5; @@ -2159,10 +2653,13 @@ public Builder setDesiredMonitoringService(java.lang.String value) { *
      * 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
-     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-     * * "none" - no metrics will be exported from the cluster
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string desired_monitoring_service = 5; @@ -2181,10 +2678,13 @@ public Builder clearDesiredMonitoringService() { *
      * 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
-     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-     * * "none" - no metrics will be exported from the cluster
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string desired_monitoring_service = 5; @@ -2810,23 +3310,410 @@ public Builder clearDesiredDatabaseEncryption() { return desiredDatabaseEncryptionBuilder_; } - private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; + private com.google.container.v1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - desiredNodePoolAutoscalingBuilder_; + com.google.container.v1.WorkloadIdentityConfig, + com.google.container.v1.WorkloadIdentityConfig.Builder, + com.google.container.v1.WorkloadIdentityConfigOrBuilder> + desiredWorkloadIdentityConfigBuilder_; /** * * *
-     * 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.
+     * Configuration for Workload Identity.
      * 
* - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return Whether the desiredWorkloadIdentityConfig field is set. + */ + public boolean hasDesiredWorkloadIdentityConfig() { + return desiredWorkloadIdentityConfigBuilder_ != null + || desiredWorkloadIdentityConfig_ != null; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return The desiredWorkloadIdentityConfig. + */ + public com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + return desiredWorkloadIdentityConfig_ == null + ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() + : desiredWorkloadIdentityConfig_; + } else { + return desiredWorkloadIdentityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder setDesiredWorkloadIdentityConfig( + com.google.container.v1.WorkloadIdentityConfig value) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredWorkloadIdentityConfig_ = value; + onChanged(); + } else { + desiredWorkloadIdentityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder setDesiredWorkloadIdentityConfig( + com.google.container.v1.WorkloadIdentityConfig.Builder builderForValue) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredWorkloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder mergeDesiredWorkloadIdentityConfig( + com.google.container.v1.WorkloadIdentityConfig value) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + if (desiredWorkloadIdentityConfig_ != null) { + desiredWorkloadIdentityConfig_ = + com.google.container.v1.WorkloadIdentityConfig.newBuilder( + desiredWorkloadIdentityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredWorkloadIdentityConfig_ = value; + } + onChanged(); + } else { + desiredWorkloadIdentityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder clearDesiredWorkloadIdentityConfig() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = null; + onChanged(); + } else { + desiredWorkloadIdentityConfig_ = null; + desiredWorkloadIdentityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public com.google.container.v1.WorkloadIdentityConfig.Builder + getDesiredWorkloadIdentityConfigBuilder() { + + onChanged(); + return getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public com.google.container.v1.WorkloadIdentityConfigOrBuilder + getDesiredWorkloadIdentityConfigOrBuilder() { + if (desiredWorkloadIdentityConfigBuilder_ != null) { + return desiredWorkloadIdentityConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredWorkloadIdentityConfig_ == null + ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() + : desiredWorkloadIdentityConfig_; + } + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, + com.google.container.v1.WorkloadIdentityConfig.Builder, + com.google.container.v1.WorkloadIdentityConfigOrBuilder> + getDesiredWorkloadIdentityConfigFieldBuilder() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, + com.google.container.v1.WorkloadIdentityConfig.Builder, + com.google.container.v1.WorkloadIdentityConfigOrBuilder>( + getDesiredWorkloadIdentityConfig(), getParentForChildren(), isClean()); + desiredWorkloadIdentityConfig_ = null; + } + return desiredWorkloadIdentityConfigBuilder_; + } + + private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, + com.google.container.v1.ShieldedNodes.Builder, + com.google.container.v1.ShieldedNodesOrBuilder> + desiredShieldedNodesBuilder_; + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return Whether the desiredShieldedNodes field is set. + */ + public boolean hasDesiredShieldedNodes() { + return desiredShieldedNodesBuilder_ != null || desiredShieldedNodes_ != null; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return The desiredShieldedNodes. + */ + public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { + if (desiredShieldedNodesBuilder_ == null) { + return desiredShieldedNodes_ == null + ? com.google.container.v1.ShieldedNodes.getDefaultInstance() + : desiredShieldedNodes_; + } else { + return desiredShieldedNodesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder setDesiredShieldedNodes(com.google.container.v1.ShieldedNodes value) { + if (desiredShieldedNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredShieldedNodes_ = value; + onChanged(); + } else { + desiredShieldedNodesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder setDesiredShieldedNodes( + com.google.container.v1.ShieldedNodes.Builder builderForValue) { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = builderForValue.build(); + onChanged(); + } else { + desiredShieldedNodesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder mergeDesiredShieldedNodes(com.google.container.v1.ShieldedNodes value) { + if (desiredShieldedNodesBuilder_ == null) { + if (desiredShieldedNodes_ != null) { + desiredShieldedNodes_ = + com.google.container.v1.ShieldedNodes.newBuilder(desiredShieldedNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredShieldedNodes_ = value; + } + onChanged(); + } else { + desiredShieldedNodesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder clearDesiredShieldedNodes() { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = null; + onChanged(); + } else { + desiredShieldedNodes_ = null; + desiredShieldedNodesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public com.google.container.v1.ShieldedNodes.Builder getDesiredShieldedNodesBuilder() { + + onChanged(); + return getDesiredShieldedNodesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { + if (desiredShieldedNodesBuilder_ != null) { + return desiredShieldedNodesBuilder_.getMessageOrBuilder(); + } else { + return desiredShieldedNodes_ == null + ? com.google.container.v1.ShieldedNodes.getDefaultInstance() + : desiredShieldedNodes_; + } + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, + com.google.container.v1.ShieldedNodes.Builder, + com.google.container.v1.ShieldedNodesOrBuilder> + getDesiredShieldedNodesFieldBuilder() { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, + com.google.container.v1.ShieldedNodes.Builder, + com.google.container.v1.ShieldedNodesOrBuilder>( + getDesiredShieldedNodes(), getParentForChildren(), isClean()); + desiredShieldedNodes_ = null; + } + return desiredShieldedNodesBuilder_; + } + + private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoscaling, + com.google.container.v1.NodePoolAutoscaling.Builder, + com.google.container.v1.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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; * * @return Whether the desiredNodePoolAutoscaling field is set. */ @@ -3041,11 +3928,11 @@ private void ensureDesiredLocationsIsMutable() { * *
      * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
      * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
      * 
* * repeated string desired_locations = 10; @@ -3060,11 +3947,11 @@ public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { * *
      * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
      * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
      * 
* * repeated string desired_locations = 10; @@ -3079,11 +3966,11 @@ public int getDesiredLocationsCount() { * *
      * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
      * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
      * 
* * repeated string desired_locations = 10; @@ -3099,11 +3986,11 @@ public java.lang.String getDesiredLocations(int index) { * *
      * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
      * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
      * 
* * repeated string desired_locations = 10; @@ -3119,11 +4006,11 @@ public com.google.protobuf.ByteString getDesiredLocationsBytes(int index) { * *
      * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
      * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
      * 
* * repeated string desired_locations = 10; @@ -3146,11 +4033,11 @@ public Builder setDesiredLocations(int index, java.lang.String value) { * *
      * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
      * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
      * 
* * repeated string desired_locations = 10; @@ -3172,11 +4059,11 @@ public Builder addDesiredLocations(java.lang.String value) { * *
      * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
      * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
      * 
* * repeated string desired_locations = 10; @@ -3195,11 +4082,11 @@ public Builder addAllDesiredLocations(java.lang.Iterable value * *
      * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
      * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
      * 
* * repeated string desired_locations = 10; @@ -3217,11 +4104,11 @@ public Builder clearDesiredLocations() { * *
      * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
      * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
      * 
* * repeated string desired_locations = 10; @@ -3838,10 +4725,13 @@ public Builder clearDesiredBinaryAuthorization() { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-     * service with Kubernetes-native resource model
-     * * "logging.googleapis.com" - the Google Cloud Logging service
-     * * "none" - no logs will be exported from the cluster
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string desired_logging_service = 19; @@ -3865,10 +4755,13 @@ public java.lang.String getDesiredLoggingService() { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-     * service with Kubernetes-native resource model
-     * * "logging.googleapis.com" - the Google Cloud Logging service
-     * * "none" - no logs will be exported from the cluster
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string desired_logging_service = 19; @@ -3892,10 +4785,13 @@ public com.google.protobuf.ByteString getDesiredLoggingServiceBytes() { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-     * service with Kubernetes-native resource model
-     * * "logging.googleapis.com" - the Google Cloud Logging service
-     * * "none" - no logs will be exported from the cluster
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string desired_logging_service = 19; @@ -3918,10 +4814,13 @@ public Builder setDesiredLoggingService(java.lang.String value) { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-     * service with Kubernetes-native resource model
-     * * "logging.googleapis.com" - the Google Cloud Logging service
-     * * "none" - no logs will be exported from the cluster
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string desired_logging_service = 19; @@ -3940,10 +4839,13 @@ public Builder clearDesiredLoggingService() { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-     * service with Kubernetes-native resource model
-     * * "logging.googleapis.com" - the Google Cloud Logging service
-     * * "none" - no logs will be exported from the cluster
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string desired_logging_service = 19; @@ -4373,28 +5275,218 @@ public Builder clearDesiredVerticalPodAutoscaling() { return desiredVerticalPodAutoscalingBuilder_; } - private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; + private com.google.container.v1.PrivateClusterConfig desiredPrivateClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IntraNodeVisibilityConfig, - com.google.container.v1.IntraNodeVisibilityConfig.Builder, - com.google.container.v1.IntraNodeVisibilityConfigOrBuilder> - desiredIntraNodeVisibilityConfigBuilder_; + com.google.container.v1.PrivateClusterConfig, + com.google.container.v1.PrivateClusterConfig.Builder, + com.google.container.v1.PrivateClusterConfigOrBuilder> + desiredPrivateClusterConfigBuilder_; /** * * *
-     * The desired config of Intra-node visibility.
+     * The desired private cluster configuration.
      * 
* - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; * - * @return Whether the desiredIntraNodeVisibilityConfig field is set. + * @return Whether the desiredPrivateClusterConfig field is set. */ - public boolean hasDesiredIntraNodeVisibilityConfig() { - return desiredIntraNodeVisibilityConfigBuilder_ != null - || desiredIntraNodeVisibilityConfig_ != null; + public boolean hasDesiredPrivateClusterConfig() { + return desiredPrivateClusterConfigBuilder_ != null || desiredPrivateClusterConfig_ != null; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * @return The desiredPrivateClusterConfig. + */ + public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { + if (desiredPrivateClusterConfigBuilder_ == null) { + return desiredPrivateClusterConfig_ == null + ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() + : desiredPrivateClusterConfig_; + } else { + return desiredPrivateClusterConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder setDesiredPrivateClusterConfig( + com.google.container.v1.PrivateClusterConfig value) { + if (desiredPrivateClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredPrivateClusterConfig_ = value; + onChanged(); + } else { + desiredPrivateClusterConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder setDesiredPrivateClusterConfig( + com.google.container.v1.PrivateClusterConfig.Builder builderForValue) { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredPrivateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder mergeDesiredPrivateClusterConfig( + com.google.container.v1.PrivateClusterConfig value) { + if (desiredPrivateClusterConfigBuilder_ == null) { + if (desiredPrivateClusterConfig_ != null) { + desiredPrivateClusterConfig_ = + com.google.container.v1.PrivateClusterConfig.newBuilder(desiredPrivateClusterConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredPrivateClusterConfig_ = value; + } + onChanged(); + } else { + desiredPrivateClusterConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder clearDesiredPrivateClusterConfig() { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = null; + onChanged(); + } else { + desiredPrivateClusterConfig_ = null; + desiredPrivateClusterConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public com.google.container.v1.PrivateClusterConfig.Builder + getDesiredPrivateClusterConfigBuilder() { + + onChanged(); + return getDesiredPrivateClusterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public com.google.container.v1.PrivateClusterConfigOrBuilder + getDesiredPrivateClusterConfigOrBuilder() { + if (desiredPrivateClusterConfigBuilder_ != null) { + return desiredPrivateClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredPrivateClusterConfig_ == null + ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() + : desiredPrivateClusterConfig_; + } + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterConfig, + com.google.container.v1.PrivateClusterConfig.Builder, + com.google.container.v1.PrivateClusterConfigOrBuilder> + getDesiredPrivateClusterConfigFieldBuilder() { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterConfig, + com.google.container.v1.PrivateClusterConfig.Builder, + com.google.container.v1.PrivateClusterConfigOrBuilder>( + getDesiredPrivateClusterConfig(), getParentForChildren(), isClean()); + desiredPrivateClusterConfig_ = null; + } + return desiredPrivateClusterConfigBuilder_; + } + + private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IntraNodeVisibilityConfig, + com.google.container.v1.IntraNodeVisibilityConfig.Builder, + com.google.container.v1.IntraNodeVisibilityConfigOrBuilder> + desiredIntraNodeVisibilityConfigBuilder_; + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return Whether the desiredIntraNodeVisibilityConfig field is set. + */ + public boolean hasDesiredIntraNodeVisibilityConfig() { + return desiredIntraNodeVisibilityConfigBuilder_ != null + || desiredIntraNodeVisibilityConfig_ != null; } /** * @@ -4583,6 +5675,379 @@ public Builder clearDesiredIntraNodeVisibilityConfig() { return desiredIntraNodeVisibilityConfigBuilder_; } + private com.google.container.v1.DefaultSnatStatus desiredDefaultSnatStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, + com.google.container.v1.DefaultSnatStatus.Builder, + com.google.container.v1.DefaultSnatStatusOrBuilder> + desiredDefaultSnatStatusBuilder_; + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return Whether the desiredDefaultSnatStatus field is set. + */ + public boolean hasDesiredDefaultSnatStatus() { + return desiredDefaultSnatStatusBuilder_ != null || desiredDefaultSnatStatus_ != null; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return The desiredDefaultSnatStatus. + */ + public com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus() { + if (desiredDefaultSnatStatusBuilder_ == null) { + return desiredDefaultSnatStatus_ == null + ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() + : desiredDefaultSnatStatus_; + } else { + return desiredDefaultSnatStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder setDesiredDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { + if (desiredDefaultSnatStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredDefaultSnatStatus_ = value; + onChanged(); + } else { + desiredDefaultSnatStatusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder setDesiredDefaultSnatStatus( + com.google.container.v1.DefaultSnatStatus.Builder builderForValue) { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = builderForValue.build(); + onChanged(); + } else { + desiredDefaultSnatStatusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder mergeDesiredDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { + if (desiredDefaultSnatStatusBuilder_ == null) { + if (desiredDefaultSnatStatus_ != null) { + desiredDefaultSnatStatus_ = + com.google.container.v1.DefaultSnatStatus.newBuilder(desiredDefaultSnatStatus_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredDefaultSnatStatus_ = value; + } + onChanged(); + } else { + desiredDefaultSnatStatusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder clearDesiredDefaultSnatStatus() { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = null; + onChanged(); + } else { + desiredDefaultSnatStatus_ = null; + desiredDefaultSnatStatusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public com.google.container.v1.DefaultSnatStatus.Builder getDesiredDefaultSnatStatusBuilder() { + + onChanged(); + return getDesiredDefaultSnatStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public com.google.container.v1.DefaultSnatStatusOrBuilder + getDesiredDefaultSnatStatusOrBuilder() { + if (desiredDefaultSnatStatusBuilder_ != null) { + return desiredDefaultSnatStatusBuilder_.getMessageOrBuilder(); + } else { + return desiredDefaultSnatStatus_ == null + ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() + : desiredDefaultSnatStatus_; + } + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, + com.google.container.v1.DefaultSnatStatus.Builder, + com.google.container.v1.DefaultSnatStatusOrBuilder> + getDesiredDefaultSnatStatusFieldBuilder() { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, + com.google.container.v1.DefaultSnatStatus.Builder, + com.google.container.v1.DefaultSnatStatusOrBuilder>( + getDesiredDefaultSnatStatus(), getParentForChildren(), isClean()); + desiredDefaultSnatStatus_ = null; + } + return desiredDefaultSnatStatusBuilder_; + } + + private com.google.container.v1.ReleaseChannel desiredReleaseChannel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder> + desiredReleaseChannelBuilder_; + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * + * @return Whether the desiredReleaseChannel field is set. + */ + public boolean hasDesiredReleaseChannel() { + return desiredReleaseChannelBuilder_ != null || desiredReleaseChannel_ != null; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * + * @return The desiredReleaseChannel. + */ + public com.google.container.v1.ReleaseChannel getDesiredReleaseChannel() { + if (desiredReleaseChannelBuilder_ == null) { + return desiredReleaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : desiredReleaseChannel_; + } else { + return desiredReleaseChannelBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public Builder setDesiredReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (desiredReleaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredReleaseChannel_ = value; + onChanged(); + } else { + desiredReleaseChannelBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public Builder setDesiredReleaseChannel( + com.google.container.v1.ReleaseChannel.Builder builderForValue) { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = builderForValue.build(); + onChanged(); + } else { + desiredReleaseChannelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public Builder mergeDesiredReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (desiredReleaseChannelBuilder_ == null) { + if (desiredReleaseChannel_ != null) { + desiredReleaseChannel_ = + com.google.container.v1.ReleaseChannel.newBuilder(desiredReleaseChannel_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredReleaseChannel_ = value; + } + onChanged(); + } else { + desiredReleaseChannelBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public Builder clearDesiredReleaseChannel() { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = null; + onChanged(); + } else { + desiredReleaseChannel_ = null; + desiredReleaseChannelBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public com.google.container.v1.ReleaseChannel.Builder getDesiredReleaseChannelBuilder() { + + onChanged(); + return getDesiredReleaseChannelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { + if (desiredReleaseChannelBuilder_ != null) { + return desiredReleaseChannelBuilder_.getMessageOrBuilder(); + } else { + return desiredReleaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : desiredReleaseChannel_; + } + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder> + getDesiredReleaseChannelFieldBuilder() { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, + com.google.container.v1.ReleaseChannel.Builder, + com.google.container.v1.ReleaseChannelOrBuilder>( + getDesiredReleaseChannel(), getParentForChildren(), isClean()); + desiredReleaseChannel_ = null; + } + return desiredReleaseChannelBuilder_; + } + private java.lang.Object desiredMasterVersion_ = ""; /** * diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java index b989d362..0056d05a 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java @@ -70,10 +70,13 @@ public interface ClusterUpdateOrBuilder *
    * 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
-   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-   * * "none" - no metrics will be exported from the cluster
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
    * 
* * string desired_monitoring_service = 5; @@ -87,10 +90,13 @@ public interface ClusterUpdateOrBuilder *
    * 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
-   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-   * * "none" - no metrics will be exported from the cluster
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
    * 
* * string desired_monitoring_service = 5; @@ -227,6 +233,77 @@ public interface ClusterUpdateOrBuilder */ com.google.container.v1.DatabaseEncryptionOrBuilder getDesiredDatabaseEncryptionOrBuilder(); + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * @return Whether the desiredWorkloadIdentityConfig field is set. + */ + boolean hasDesiredWorkloadIdentityConfig(); + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * @return The desiredWorkloadIdentityConfig. + */ + com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig(); + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + com.google.container.v1.WorkloadIdentityConfigOrBuilder + getDesiredWorkloadIdentityConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return Whether the desiredShieldedNodes field is set. + */ + boolean hasDesiredShieldedNodes(); + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return The desiredShieldedNodes. + */ + com.google.container.v1.ShieldedNodes getDesiredShieldedNodes(); + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder(); + /** * * @@ -276,11 +353,11 @@ public interface ClusterUpdateOrBuilder * *
    * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
    * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
    * 
* * repeated string desired_locations = 10; @@ -293,11 +370,11 @@ public interface ClusterUpdateOrBuilder * *
    * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
    * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
    * 
* * repeated string desired_locations = 10; @@ -310,11 +387,11 @@ public interface ClusterUpdateOrBuilder * *
    * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
    * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
    * 
* * repeated string desired_locations = 10; @@ -328,11 +405,11 @@ public interface ClusterUpdateOrBuilder * *
    * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
    * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
    * 
* * repeated string desired_locations = 10; @@ -460,10 +537,13 @@ public interface ClusterUpdateOrBuilder *
    * The logging service the cluster should use to write logs.
    * Currently available options:
-   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-   * service with Kubernetes-native resource model
-   * * "logging.googleapis.com" - the Google Cloud Logging service
-   * * "none" - no logs will be exported from the cluster
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
    * 
* * string desired_logging_service = 19; @@ -477,10 +557,13 @@ public interface ClusterUpdateOrBuilder *
    * The logging service the cluster should use to write logs.
    * Currently available options:
-   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
-   * service with Kubernetes-native resource model
-   * * "logging.googleapis.com" - the Google Cloud Logging service
-   * * "none" - no logs will be exported from the cluster
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
    * 
* * string desired_logging_service = 19; @@ -564,6 +647,41 @@ public interface ClusterUpdateOrBuilder com.google.container.v1.VerticalPodAutoscalingOrBuilder getDesiredVerticalPodAutoscalingOrBuilder(); + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * @return Whether the desiredPrivateClusterConfig field is set. + */ + boolean hasDesiredPrivateClusterConfig(); + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * @return The desiredPrivateClusterConfig. + */ + com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig(); + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + com.google.container.v1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder(); + /** * * @@ -603,6 +721,76 @@ public interface ClusterUpdateOrBuilder com.google.container.v1.IntraNodeVisibilityConfigOrBuilder getDesiredIntraNodeVisibilityConfigOrBuilder(); + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return Whether the desiredDefaultSnatStatus field is set. + */ + boolean hasDesiredDefaultSnatStatus(); + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return The desiredDefaultSnatStatus. + */ + com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus(); + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + com.google.container.v1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder(); + + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * + * @return Whether the desiredReleaseChannel field is set. + */ + boolean hasDesiredReleaseChannel(); + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * + * @return The desiredReleaseChannel. + */ + com.google.container.v1.ReleaseChannel getDesiredReleaseChannel(); + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder(); + /** * * diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java index 38e9b13c..ab376020 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java @@ -197,9 +197,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -224,9 +224,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -844,9 +844,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -870,9 +870,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -896,9 +896,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -921,9 +921,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -942,9 +942,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java index 5ab60a02..a9e86ff2 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface CompleteIPRotationRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface CompleteIPRotationRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java new file mode 100644 index 00000000..f3c76da7 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java @@ -0,0 +1,544 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration options for the Config Connector add-on.
+ * 
+ * + * Protobuf type {@code google.container.v1.ConfigConnectorConfig} + */ +public final class ConfigConnectorConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ConfigConnectorConfig) + ConfigConnectorConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfigConnectorConfig.newBuilder() to construct. + private ConfigConnectorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfigConnectorConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfigConnectorConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ConfigConnectorConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ConfigConnectorConfig.class, + com.google.container.v1.ConfigConnectorConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Cloud Connector is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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.v1.ConfigConnectorConfig)) { + return super.equals(obj); + } + com.google.container.v1.ConfigConnectorConfig other = + (com.google.container.v1.ConfigConnectorConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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.v1.ConfigConnectorConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ConfigConnectorConfig 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.ConfigConnectorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ConfigConnectorConfig parseFrom( + 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.ConfigConnectorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ConfigConnectorConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ConfigConnectorConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ConfigConnectorConfig parseFrom( + java.io.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.ConfigConnectorConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ConfigConnectorConfig parseDelimitedFrom( + java.io.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.ConfigConnectorConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ConfigConnectorConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.ConfigConnectorConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 Config Connector add-on.
+   * 
+ * + * Protobuf type {@code google.container.v1.ConfigConnectorConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ConfigConnectorConfig) + com.google.container.v1.ConfigConnectorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ConfigConnectorConfig.class, + com.google.container.v1.ConfigConnectorConfig.Builder.class); + } + + // Construct using com.google.container.v1.ConfigConnectorConfig.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.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig getDefaultInstanceForType() { + return com.google.container.v1.ConfigConnectorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig build() { + com.google.container.v1.ConfigConnectorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig buildPartial() { + com.google.container.v1.ConfigConnectorConfig result = + new com.google.container.v1.ConfigConnectorConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ConfigConnectorConfig) { + return mergeFrom((com.google.container.v1.ConfigConnectorConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ConfigConnectorConfig other) { + if (other == com.google.container.v1.ConfigConnectorConfig.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.v1.ConfigConnectorConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.ConfigConnectorConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ConfigConnectorConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ConfigConnectorConfig) + private static final com.google.container.v1.ConfigConnectorConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ConfigConnectorConfig(); + } + + public static com.google.container.v1.ConfigConnectorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigConnectorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigConnectorConfig(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.ConfigConnectorConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java new file mode 100644 index 00000000..c954a440 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface ConfigConnectorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ConfigConnectorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Cloud Connector is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java index 963d7f4f..f19ecf9e 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java @@ -204,9 +204,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -231,9 +231,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -261,7 +261,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
    * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
    * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -278,7 +278,7 @@ public boolean hasCluster() { * *
    * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
    * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -295,7 +295,7 @@ public com.google.container.v1.Cluster getCluster() { * *
    * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
    * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -860,9 +860,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -886,9 +886,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -912,9 +912,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -937,9 +937,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -958,9 +958,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -991,7 +991,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * *
      * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
      * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1007,7 +1007,7 @@ public boolean hasCluster() { * *
      * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
      * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1027,7 +1027,7 @@ public com.google.container.v1.Cluster getCluster() { * *
      * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
      * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1051,7 +1051,7 @@ public Builder setCluster(com.google.container.v1.Cluster value) { * *
      * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
      * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1072,7 +1072,7 @@ public Builder setCluster(com.google.container.v1.Cluster.Builder builderForValu * *
      * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
      * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1098,7 +1098,7 @@ public Builder mergeCluster(com.google.container.v1.Cluster value) { * *
      * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
      * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1120,7 +1120,7 @@ public Builder clearCluster() { * *
      * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
      * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1136,7 +1136,7 @@ public com.google.container.v1.Cluster.Builder getClusterBuilder() { * *
      * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
      * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1154,7 +1154,7 @@ public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { * *
      * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
      * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java index 71b9b18e..986a56aa 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface CreateClusterRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -75,9 +75,9 @@ public interface CreateClusterRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -92,7 +92,7 @@ public interface CreateClusterRequestOrBuilder * *
    * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
    * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -106,7 +106,7 @@ public interface CreateClusterRequestOrBuilder * *
    * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
    * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -120,7 +120,7 @@ public interface CreateClusterRequestOrBuilder * *
    * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
    * 
* * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java index da1f5f14..040b32cb 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java @@ -212,9 +212,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -239,9 +239,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -936,9 +936,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -962,9 +962,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -988,9 +988,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -1013,9 +1013,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -1034,9 +1034,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java index 87168ef4..1becc6ca 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface CreateNodePoolRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -75,9 +75,9 @@ public interface CreateNodePoolRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java index 46aa6c2b..eca902ab 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java @@ -154,7 +154,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Secrets in etcd are stored in plain text (at etcd level) - this is
-     * unrelated to GCE level full disk encryption.
+     * unrelated to Compute Engine level full disk encryption.
      * 
* * DECRYPTED = 2; @@ -188,7 +188,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Secrets in etcd are stored in plain text (at etcd level) - this is
-     * unrelated to GCE level full disk encryption.
+     * unrelated to Compute Engine level full disk encryption.
      * 
* * DECRYPTED = 2; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java new file mode 100644 index 00000000..28f7f098 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java @@ -0,0 +1,546 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * DefaultSnatStatus contains the desired state of whether default sNAT should
+ * be disabled on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.DefaultSnatStatus} + */ +public final class DefaultSnatStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.DefaultSnatStatus) + DefaultSnatStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use DefaultSnatStatus.newBuilder() to construct. + private DefaultSnatStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DefaultSnatStatus() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DefaultSnatStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DefaultSnatStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DefaultSnatStatus.class, + com.google.container.v1.DefaultSnatStatus.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Disables cluster default sNAT rules.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + 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.v1.DefaultSnatStatus)) { + return super.equals(obj); + } + com.google.container.v1.DefaultSnatStatus other = + (com.google.container.v1.DefaultSnatStatus) obj; + + if (getDisabled() != other.getDisabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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.v1.DefaultSnatStatus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.DefaultSnatStatus 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.DefaultSnatStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.DefaultSnatStatus parseFrom( + 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.DefaultSnatStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.DefaultSnatStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.DefaultSnatStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.DefaultSnatStatus parseFrom( + java.io.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.DefaultSnatStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.DefaultSnatStatus parseDelimitedFrom( + java.io.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.DefaultSnatStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.DefaultSnatStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.DefaultSnatStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * DefaultSnatStatus contains the desired state of whether default sNAT should
+   * be disabled on the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1.DefaultSnatStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.DefaultSnatStatus) + com.google.container.v1.DefaultSnatStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DefaultSnatStatus.class, + com.google.container.v1.DefaultSnatStatus.Builder.class); + } + + // Construct using com.google.container.v1.DefaultSnatStatus.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.v1.ClusterServiceProto + .internal_static_google_container_v1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus getDefaultInstanceForType() { + return com.google.container.v1.DefaultSnatStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus build() { + com.google.container.v1.DefaultSnatStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus buildPartial() { + com.google.container.v1.DefaultSnatStatus result = + new com.google.container.v1.DefaultSnatStatus(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.DefaultSnatStatus) { + return mergeFrom((com.google.container.v1.DefaultSnatStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DefaultSnatStatus other) { + if (other == com.google.container.v1.DefaultSnatStatus.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.v1.DefaultSnatStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.DefaultSnatStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_; + /** + * + * + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.DefaultSnatStatus) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DefaultSnatStatus) + private static final com.google.container.v1.DefaultSnatStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.DefaultSnatStatus(); + } + + public static com.google.container.v1.DefaultSnatStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefaultSnatStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DefaultSnatStatus(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.DefaultSnatStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java new file mode 100644 index 00000000..d6c81209 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface DefaultSnatStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DefaultSnatStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Disables cluster default sNAT rules.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java index d21e931a..19bbd2f0 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java @@ -197,9 +197,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -224,9 +224,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -842,9 +842,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -868,9 +868,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -894,9 +894,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -919,9 +919,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -940,9 +940,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java index 0399141a..7c223d99 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface DeleteClusterRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface DeleteClusterRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java index 411345a7..2db9f4b7 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java @@ -205,9 +205,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -232,9 +232,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -921,9 +921,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -947,9 +947,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -973,9 +973,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -998,9 +998,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1019,9 +1019,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java index 5a6949c7..4f0385e5 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface DeleteNodePoolRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface DeleteNodePoolRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java new file mode 100644 index 00000000..835e4e0e --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java @@ -0,0 +1,543 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for NodeLocal DNSCache
+ * 
+ * + * Protobuf type {@code google.container.v1.DnsCacheConfig} + */ +public final class DnsCacheConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.DnsCacheConfig) + DnsCacheConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DnsCacheConfig.newBuilder() to construct. + private DnsCacheConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DnsCacheConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DnsCacheConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DnsCacheConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DnsCacheConfig.class, + com.google.container.v1.DnsCacheConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether NodeLocal DNSCache is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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.v1.DnsCacheConfig)) { + return super.equals(obj); + } + com.google.container.v1.DnsCacheConfig other = (com.google.container.v1.DnsCacheConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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.v1.DnsCacheConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.DnsCacheConfig 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.DnsCacheConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.DnsCacheConfig parseFrom( + 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.DnsCacheConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.DnsCacheConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.DnsCacheConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.DnsCacheConfig parseFrom( + java.io.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.DnsCacheConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.DnsCacheConfig parseDelimitedFrom( + java.io.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.DnsCacheConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.DnsCacheConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.DnsCacheConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 NodeLocal DNSCache
+   * 
+ * + * Protobuf type {@code google.container.v1.DnsCacheConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.DnsCacheConfig) + com.google.container.v1.DnsCacheConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DnsCacheConfig.class, + com.google.container.v1.DnsCacheConfig.Builder.class); + } + + // Construct using com.google.container.v1.DnsCacheConfig.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.v1.ClusterServiceProto + .internal_static_google_container_v1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DnsCacheConfig getDefaultInstanceForType() { + return com.google.container.v1.DnsCacheConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DnsCacheConfig build() { + com.google.container.v1.DnsCacheConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DnsCacheConfig buildPartial() { + com.google.container.v1.DnsCacheConfig result = + new com.google.container.v1.DnsCacheConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.DnsCacheConfig) { + return mergeFrom((com.google.container.v1.DnsCacheConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DnsCacheConfig other) { + if (other == com.google.container.v1.DnsCacheConfig.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.v1.DnsCacheConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.DnsCacheConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.DnsCacheConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DnsCacheConfig) + private static final com.google.container.v1.DnsCacheConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.DnsCacheConfig(); + } + + public static com.google.container.v1.DnsCacheConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DnsCacheConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DnsCacheConfig(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.DnsCacheConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java new file mode 100644 index 00000000..aa30a25d --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface DnsCacheConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DnsCacheConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether NodeLocal DNSCache is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java index c35e6bc9..62046ed9 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java @@ -197,9 +197,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -224,9 +224,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -842,9 +842,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -868,9 +868,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -894,9 +894,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -919,9 +919,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -940,9 +940,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java index 3071d904..c8f5af70 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface GetClusterRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface GetClusterRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java new file mode 100644 index 00000000..4952342a --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java @@ -0,0 +1,647 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * GetJSONWebKeysRequest gets the public component of the keys used by the
+ * cluster to sign token requests. This will be the jwks_uri for the discover
+ * document returned by getOpenIDConfig. See the OpenID Connect
+ * Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetJSONWebKeysRequest} + */ +public final class GetJSONWebKeysRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GetJSONWebKeysRequest) + GetJSONWebKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJSONWebKeysRequest.newBuilder() to construct. + private GetJSONWebKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetJSONWebKeysRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetJSONWebKeysRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetJSONWebKeysRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetJSONWebKeysRequest.class, + com.google.container.v1.GetJSONWebKeysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The cluster (project, location, cluster id) to get keys for. Specified in
+   * the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The cluster (project, location, cluster id) to get keys for. Specified in
+   * the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.v1.GetJSONWebKeysRequest)) { + return super.equals(obj); + } + com.google.container.v1.GetJSONWebKeysRequest other = + (com.google.container.v1.GetJSONWebKeysRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GetJSONWebKeysRequest 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.GetJSONWebKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( + 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.GetJSONWebKeysRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( + java.io.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.GetJSONWebKeysRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetJSONWebKeysRequest parseDelimitedFrom( + java.io.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.GetJSONWebKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.GetJSONWebKeysRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetJSONWebKeysRequest gets the public component of the keys used by the
+   * cluster to sign token requests. This will be the jwks_uri for the discover
+   * document returned by getOpenIDConfig. See the OpenID Connect
+   * Discovery 1.0 specification for details.
+   * 
+ * + * Protobuf type {@code google.container.v1.GetJSONWebKeysRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GetJSONWebKeysRequest) + com.google.container.v1.GetJSONWebKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetJSONWebKeysRequest.class, + com.google.container.v1.GetJSONWebKeysRequest.Builder.class); + } + + // Construct using com.google.container.v1.GetJSONWebKeysRequest.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.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysRequest getDefaultInstanceForType() { + return com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysRequest build() { + com.google.container.v1.GetJSONWebKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysRequest buildPartial() { + com.google.container.v1.GetJSONWebKeysRequest result = + new com.google.container.v1.GetJSONWebKeysRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetJSONWebKeysRequest) { + return mergeFrom((com.google.container.v1.GetJSONWebKeysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetJSONWebKeysRequest other) { + if (other == com.google.container.v1.GetJSONWebKeysRequest.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.v1.GetJSONWebKeysRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.GetJSONWebKeysRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The cluster (project, location, cluster id) to get keys for. Specified in
+     * the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get keys for. Specified in
+     * the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get keys for. Specified in
+     * the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get keys for. Specified in
+     * the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get keys for. Specified in
+     * the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.GetJSONWebKeysRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetJSONWebKeysRequest) + private static final com.google.container.v1.GetJSONWebKeysRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetJSONWebKeysRequest(); + } + + public static com.google.container.v1.GetJSONWebKeysRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJSONWebKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetJSONWebKeysRequest(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.GetJSONWebKeysRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java new file mode 100644 index 00000000..4d62e20f --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface GetJSONWebKeysRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetJSONWebKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The cluster (project, location, cluster id) to get keys for. Specified in
+   * the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * The cluster (project, location, cluster id) to get keys for. Specified in
+   * the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java new file mode 100644 index 00000000..fb439e6e --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java @@ -0,0 +1,960 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
+ * 
+ * + * Protobuf type {@code google.container.v1.GetJSONWebKeysResponse} + */ +public final class GetJSONWebKeysResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GetJSONWebKeysResponse) + GetJSONWebKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJSONWebKeysResponse.newBuilder() to construct. + private GetJSONWebKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetJSONWebKeysResponse() { + keys_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetJSONWebKeysResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetJSONWebKeysResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + keys_.add(input.readMessage(com.google.container.v1.Jwk.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = java.util.Collections.unmodifiableList(keys_); + } + 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_GetJSONWebKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetJSONWebKeysResponse.class, + com.google.container.v1.GetJSONWebKeysResponse.Builder.class); + } + + public static final int KEYS_FIELD_NUMBER = 1; + private java.util.List keys_; + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public java.util.List getKeysList() { + return keys_; + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public java.util.List getKeysOrBuilderList() { + return keys_; + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public int getKeysCount() { + return keys_.size(); + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public com.google.container.v1.Jwk getKeys(int index) { + return keys_.get(index); + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public com.google.container.v1.JwkOrBuilder getKeysOrBuilder(int index) { + return keys_.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 < keys_.size(); i++) { + output.writeMessage(1, keys_.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 < keys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.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.v1.GetJSONWebKeysResponse)) { + return super.equals(obj); + } + com.google.container.v1.GetJSONWebKeysResponse other = + (com.google.container.v1.GetJSONWebKeysResponse) obj; + + if (!getKeysList().equals(other.getKeysList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getKeysCount() > 0) { + hash = (37 * hash) + KEYS_FIELD_NUMBER; + hash = (53 * hash) + getKeysList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GetJSONWebKeysResponse 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.GetJSONWebKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( + 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.GetJSONWebKeysResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( + java.io.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.GetJSONWebKeysResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetJSONWebKeysResponse parseDelimitedFrom( + java.io.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.GetJSONWebKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.GetJSONWebKeysResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
+   * 
+ * + * Protobuf type {@code google.container.v1.GetJSONWebKeysResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GetJSONWebKeysResponse) + com.google.container.v1.GetJSONWebKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetJSONWebKeysResponse.class, + com.google.container.v1.GetJSONWebKeysResponse.Builder.class); + } + + // Construct using com.google.container.v1.GetJSONWebKeysResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getKeysFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (keysBuilder_ == null) { + keys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + keysBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysResponse getDefaultInstanceForType() { + return com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysResponse build() { + com.google.container.v1.GetJSONWebKeysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysResponse buildPartial() { + com.google.container.v1.GetJSONWebKeysResponse result = + new com.google.container.v1.GetJSONWebKeysResponse(this); + int from_bitField0_ = bitField0_; + if (keysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + keys_ = java.util.Collections.unmodifiableList(keys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keys_ = keys_; + } else { + result.keys_ = keysBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetJSONWebKeysResponse) { + return mergeFrom((com.google.container.v1.GetJSONWebKeysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetJSONWebKeysResponse other) { + if (other == com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance()) return this; + if (keysBuilder_ == null) { + if (!other.keys_.isEmpty()) { + if (keys_.isEmpty()) { + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeysIsMutable(); + keys_.addAll(other.keys_); + } + onChanged(); + } + } else { + if (!other.keys_.isEmpty()) { + if (keysBuilder_.isEmpty()) { + keysBuilder_.dispose(); + keysBuilder_ = null; + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKeysFieldBuilder() + : null; + } else { + keysBuilder_.addAllMessages(other.keys_); + } + } + } + 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.GetJSONWebKeysResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.GetJSONWebKeysResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List keys_ = java.util.Collections.emptyList(); + + private void ensureKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(keys_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.Jwk, + com.google.container.v1.Jwk.Builder, + com.google.container.v1.JwkOrBuilder> + keysBuilder_; + + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public java.util.List getKeysList() { + if (keysBuilder_ == null) { + return java.util.Collections.unmodifiableList(keys_); + } else { + return keysBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public int getKeysCount() { + if (keysBuilder_ == null) { + return keys_.size(); + } else { + return keysBuilder_.getCount(); + } + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public com.google.container.v1.Jwk getKeys(int index) { + if (keysBuilder_ == null) { + return keys_.get(index); + } else { + return keysBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder setKeys(int index, com.google.container.v1.Jwk value) { + if (keysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.set(index, value); + onChanged(); + } else { + keysBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder setKeys(int index, com.google.container.v1.Jwk.Builder builderForValue) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.set(index, builderForValue.build()); + onChanged(); + } else { + keysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder addKeys(com.google.container.v1.Jwk value) { + if (keysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.add(value); + onChanged(); + } else { + keysBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder addKeys(int index, com.google.container.v1.Jwk value) { + if (keysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.add(index, value); + onChanged(); + } else { + keysBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder addKeys(com.google.container.v1.Jwk.Builder builderForValue) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(builderForValue.build()); + onChanged(); + } else { + keysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder addKeys(int index, com.google.container.v1.Jwk.Builder builderForValue) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(index, builderForValue.build()); + onChanged(); + } else { + keysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder addAllKeys(java.lang.Iterable values) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_); + onChanged(); + } else { + keysBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder clearKeys() { + if (keysBuilder_ == null) { + keys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + keysBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder removeKeys(int index) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.remove(index); + onChanged(); + } else { + keysBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public com.google.container.v1.Jwk.Builder getKeysBuilder(int index) { + return getKeysFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public com.google.container.v1.JwkOrBuilder getKeysOrBuilder(int index) { + if (keysBuilder_ == null) { + return keys_.get(index); + } else { + return keysBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public java.util.List getKeysOrBuilderList() { + if (keysBuilder_ != null) { + return keysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(keys_); + } + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public com.google.container.v1.Jwk.Builder addKeysBuilder() { + return getKeysFieldBuilder().addBuilder(com.google.container.v1.Jwk.getDefaultInstance()); + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public com.google.container.v1.Jwk.Builder addKeysBuilder(int index) { + return getKeysFieldBuilder() + .addBuilder(index, com.google.container.v1.Jwk.getDefaultInstance()); + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public java.util.List getKeysBuilderList() { + return getKeysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.Jwk, + com.google.container.v1.Jwk.Builder, + com.google.container.v1.JwkOrBuilder> + getKeysFieldBuilder() { + if (keysBuilder_ == null) { + keysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.Jwk, + com.google.container.v1.Jwk.Builder, + com.google.container.v1.JwkOrBuilder>( + keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + keys_ = null; + } + return keysBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.GetJSONWebKeysResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetJSONWebKeysResponse) + private static final com.google.container.v1.GetJSONWebKeysResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetJSONWebKeysResponse(); + } + + public static com.google.container.v1.GetJSONWebKeysResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJSONWebKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetJSONWebKeysResponse(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.GetJSONWebKeysResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java new file mode 100644 index 00000000..dcc6e6f2 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface GetJSONWebKeysResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetJSONWebKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + java.util.List getKeysList(); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + com.google.container.v1.Jwk getKeys(int index); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + int getKeysCount(); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + java.util.List getKeysOrBuilderList(); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + com.google.container.v1.JwkOrBuilder getKeysOrBuilder(int index); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java index bd92edbc..1f673490 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java @@ -205,9 +205,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -232,9 +232,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -921,9 +921,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -947,9 +947,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -973,9 +973,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -998,9 +998,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1019,9 +1019,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java index e906c679..58f81375 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface GetNodePoolRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface GetNodePoolRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java new file mode 100644 index 00000000..975d3260 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java @@ -0,0 +1,643 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * GetOpenIDConfigRequest gets the OIDC discovery document for the
+ * cluster. See the OpenID Connect Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetOpenIDConfigRequest} + */ +public final class GetOpenIDConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GetOpenIDConfigRequest) + GetOpenIDConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOpenIDConfigRequest.newBuilder() to construct. + private GetOpenIDConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOpenIDConfigRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOpenIDConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetOpenIDConfigRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetOpenIDConfigRequest.class, + com.google.container.v1.GetOpenIDConfigRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The cluster (project, location, cluster id) to get the discovery document
+   * for. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The cluster (project, location, cluster id) to get the discovery document
+   * for. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.v1.GetOpenIDConfigRequest)) { + return super.equals(obj); + } + com.google.container.v1.GetOpenIDConfigRequest other = + (com.google.container.v1.GetOpenIDConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GetOpenIDConfigRequest 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.GetOpenIDConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( + 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.GetOpenIDConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( + java.io.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.GetOpenIDConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetOpenIDConfigRequest parseDelimitedFrom( + java.io.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.GetOpenIDConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.GetOpenIDConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetOpenIDConfigRequest gets the OIDC discovery document for the
+   * cluster. See the OpenID Connect Discovery 1.0 specification for details.
+   * 
+ * + * Protobuf type {@code google.container.v1.GetOpenIDConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GetOpenIDConfigRequest) + com.google.container.v1.GetOpenIDConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetOpenIDConfigRequest.class, + com.google.container.v1.GetOpenIDConfigRequest.Builder.class); + } + + // Construct using com.google.container.v1.GetOpenIDConfigRequest.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.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigRequest getDefaultInstanceForType() { + return com.google.container.v1.GetOpenIDConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigRequest build() { + com.google.container.v1.GetOpenIDConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigRequest buildPartial() { + com.google.container.v1.GetOpenIDConfigRequest result = + new com.google.container.v1.GetOpenIDConfigRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetOpenIDConfigRequest) { + return mergeFrom((com.google.container.v1.GetOpenIDConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetOpenIDConfigRequest other) { + if (other == com.google.container.v1.GetOpenIDConfigRequest.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.v1.GetOpenIDConfigRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.GetOpenIDConfigRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The cluster (project, location, cluster id) to get the discovery document
+     * for. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get the discovery document
+     * for. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get the discovery document
+     * for. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get the discovery document
+     * for. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get the discovery document
+     * for. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.GetOpenIDConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetOpenIDConfigRequest) + private static final com.google.container.v1.GetOpenIDConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetOpenIDConfigRequest(); + } + + public static com.google.container.v1.GetOpenIDConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOpenIDConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOpenIDConfigRequest(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.GetOpenIDConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java new file mode 100644 index 00000000..8a930e15 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface GetOpenIDConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetOpenIDConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The cluster (project, location, cluster id) to get the discovery document
+   * for. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * The cluster (project, location, cluster id) to get the discovery document
+   * for. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java new file mode 100644 index 00000000..304e4b56 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java @@ -0,0 +1,2210 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
+ * See the OpenID Connect Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetOpenIDConfigResponse} + */ +public final class GetOpenIDConfigResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GetOpenIDConfigResponse) + GetOpenIDConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOpenIDConfigResponse.newBuilder() to construct. + private GetOpenIDConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOpenIDConfigResponse() { + issuer_ = ""; + jwksUri_ = ""; + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOpenIDConfigResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetOpenIDConfigResponse( + 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(); + + issuer_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + jwksUri_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responseTypesSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + responseTypesSupported_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + subjectTypesSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + subjectTypesSupported_.add(s); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + idTokenSigningAlgValuesSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + idTokenSigningAlgValuesSupported_.add(s); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + claimsSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + claimsSupported_.add(s); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + grantTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + grantTypes_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + subjectTypesSupported_ = subjectTypesSupported_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + claimsSupported_ = claimsSupported_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + grantTypes_ = grantTypes_.getUnmodifiableView(); + } + 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_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetOpenIDConfigResponse.class, + com.google.container.v1.GetOpenIDConfigResponse.Builder.class); + } + + public static final int ISSUER_FIELD_NUMBER = 1; + private volatile java.lang.Object issuer_; + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The issuer. + */ + @java.lang.Override + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuer_ = s; + return s; + } + } + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The bytes for issuer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIssuerBytes() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + issuer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JWKS_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object jwksUri_; + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The jwksUri. + */ + @java.lang.Override + public java.lang.String getJwksUri() { + java.lang.Object ref = jwksUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwksUri_ = s; + return s; + } + } + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The bytes for jwksUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJwksUriBytes() { + java.lang.Object ref = jwksUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jwksUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList responseTypesSupported_; + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return A list containing the responseTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { + return responseTypesSupported_; + } + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return The count of responseTypesSupported. + */ + public int getResponseTypesSupportedCount() { + return responseTypesSupported_.size(); + } + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + public java.lang.String getResponseTypesSupported(int index) { + return responseTypesSupported_.get(index); + } + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) { + return responseTypesSupported_.getByteString(index); + } + + public static final int SUBJECT_TYPES_SUPPORTED_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList subjectTypesSupported_; + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return A list containing the subjectTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { + return subjectTypesSupported_; + } + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return The count of subjectTypesSupported. + */ + public int getSubjectTypesSupportedCount() { + return subjectTypesSupported_.size(); + } + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + public java.lang.String getSubjectTypesSupported(int index) { + return subjectTypesSupported_.get(index); + } + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { + return subjectTypesSupported_.getByteString(index); + } + + public static final int ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_; + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupportedList() { + return idTokenSigningAlgValuesSupported_; + } + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return The count of idTokenSigningAlgValuesSupported. + */ + public int getIdTokenSigningAlgValuesSupportedCount() { + return idTokenSigningAlgValuesSupported_.size(); + } + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { + return idTokenSigningAlgValuesSupported_.get(index); + } + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index) { + return idTokenSigningAlgValuesSupported_.getByteString(index); + } + + public static final int CLAIMS_SUPPORTED_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList claimsSupported_; + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return A list containing the claimsSupported. + */ + public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { + return claimsSupported_; + } + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return The count of claimsSupported. + */ + public int getClaimsSupportedCount() { + return claimsSupported_.size(); + } + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + public java.lang.String getClaimsSupported(int index) { + return claimsSupported_.get(index); + } + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { + return claimsSupported_.getByteString(index); + } + + public static final int GRANT_TYPES_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList grantTypes_; + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return A list containing the grantTypes. + */ + public com.google.protobuf.ProtocolStringList getGrantTypesList() { + return grantTypes_; + } + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return The count of grantTypes. + */ + public int getGrantTypesCount() { + return grantTypes_.size(); + } + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + public java.lang.String getGrantTypes(int index) { + return grantTypes_.get(index); + } + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + public com.google.protobuf.ByteString getGrantTypesBytes(int index) { + return grantTypes_.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 (!getIssuerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); + } + if (!getJwksUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jwksUri_); + } + for (int i = 0; i < responseTypesSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, responseTypesSupported_.getRaw(i)); + } + for (int i = 0; i < subjectTypesSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, subjectTypesSupported_.getRaw(i)); + } + for (int i = 0; i < idTokenSigningAlgValuesSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, idTokenSigningAlgValuesSupported_.getRaw(i)); + } + for (int i = 0; i < claimsSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, claimsSupported_.getRaw(i)); + } + for (int i = 0; i < grantTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, grantTypes_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIssuerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, issuer_); + } + if (!getJwksUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jwksUri_); + } + { + int dataSize = 0; + for (int i = 0; i < responseTypesSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(responseTypesSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getResponseTypesSupportedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < subjectTypesSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(subjectTypesSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getSubjectTypesSupportedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < idTokenSigningAlgValuesSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(idTokenSigningAlgValuesSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getIdTokenSigningAlgValuesSupportedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < claimsSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(claimsSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getClaimsSupportedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < grantTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(grantTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getGrantTypesList().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.v1.GetOpenIDConfigResponse)) { + return super.equals(obj); + } + com.google.container.v1.GetOpenIDConfigResponse other = + (com.google.container.v1.GetOpenIDConfigResponse) obj; + + if (!getIssuer().equals(other.getIssuer())) return false; + if (!getJwksUri().equals(other.getJwksUri())) return false; + if (!getResponseTypesSupportedList().equals(other.getResponseTypesSupportedList())) + return false; + if (!getSubjectTypesSupportedList().equals(other.getSubjectTypesSupportedList())) return false; + if (!getIdTokenSigningAlgValuesSupportedList() + .equals(other.getIdTokenSigningAlgValuesSupportedList())) return false; + if (!getClaimsSupportedList().equals(other.getClaimsSupportedList())) return false; + if (!getGrantTypesList().equals(other.getGrantTypesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISSUER_FIELD_NUMBER; + hash = (53 * hash) + getIssuer().hashCode(); + hash = (37 * hash) + JWKS_URI_FIELD_NUMBER; + hash = (53 * hash) + getJwksUri().hashCode(); + if (getResponseTypesSupportedCount() > 0) { + hash = (37 * hash) + RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getResponseTypesSupportedList().hashCode(); + } + if (getSubjectTypesSupportedCount() > 0) { + hash = (37 * hash) + SUBJECT_TYPES_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getSubjectTypesSupportedList().hashCode(); + } + if (getIdTokenSigningAlgValuesSupportedCount() > 0) { + hash = (37 * hash) + ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getIdTokenSigningAlgValuesSupportedList().hashCode(); + } + if (getClaimsSupportedCount() > 0) { + hash = (37 * hash) + CLAIMS_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getClaimsSupportedList().hashCode(); + } + if (getGrantTypesCount() > 0) { + hash = (37 * hash) + GRANT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getGrantTypesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GetOpenIDConfigResponse 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.GetOpenIDConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( + 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.GetOpenIDConfigResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( + java.io.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.GetOpenIDConfigResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetOpenIDConfigResponse parseDelimitedFrom( + java.io.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.GetOpenIDConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.GetOpenIDConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
+   * See the OpenID Connect Discovery 1.0 specification for details.
+   * 
+ * + * Protobuf type {@code google.container.v1.GetOpenIDConfigResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GetOpenIDConfigResponse) + com.google.container.v1.GetOpenIDConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetOpenIDConfigResponse.class, + com.google.container.v1.GetOpenIDConfigResponse.Builder.class); + } + + // Construct using com.google.container.v1.GetOpenIDConfigResponse.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(); + issuer_ = ""; + + jwksUri_ = ""; + + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigResponse getDefaultInstanceForType() { + return com.google.container.v1.GetOpenIDConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigResponse build() { + com.google.container.v1.GetOpenIDConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigResponse buildPartial() { + com.google.container.v1.GetOpenIDConfigResponse result = + new com.google.container.v1.GetOpenIDConfigResponse(this); + int from_bitField0_ = bitField0_; + result.issuer_ = issuer_; + result.jwksUri_ = jwksUri_; + if (((bitField0_ & 0x00000001) != 0)) { + responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.responseTypesSupported_ = responseTypesSupported_; + if (((bitField0_ & 0x00000002) != 0)) { + subjectTypesSupported_ = subjectTypesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subjectTypesSupported_ = subjectTypesSupported_; + if (((bitField0_ & 0x00000004) != 0)) { + idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_; + if (((bitField0_ & 0x00000008) != 0)) { + claimsSupported_ = claimsSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.claimsSupported_ = claimsSupported_; + if (((bitField0_ & 0x00000010) != 0)) { + grantTypes_ = grantTypes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.grantTypes_ = grantTypes_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetOpenIDConfigResponse) { + return mergeFrom((com.google.container.v1.GetOpenIDConfigResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetOpenIDConfigResponse other) { + if (other == com.google.container.v1.GetOpenIDConfigResponse.getDefaultInstance()) + return this; + if (!other.getIssuer().isEmpty()) { + issuer_ = other.issuer_; + onChanged(); + } + if (!other.getJwksUri().isEmpty()) { + jwksUri_ = other.jwksUri_; + onChanged(); + } + if (!other.responseTypesSupported_.isEmpty()) { + if (responseTypesSupported_.isEmpty()) { + responseTypesSupported_ = other.responseTypesSupported_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.addAll(other.responseTypesSupported_); + } + onChanged(); + } + if (!other.subjectTypesSupported_.isEmpty()) { + if (subjectTypesSupported_.isEmpty()) { + subjectTypesSupported_ = other.subjectTypesSupported_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.addAll(other.subjectTypesSupported_); + } + onChanged(); + } + if (!other.idTokenSigningAlgValuesSupported_.isEmpty()) { + if (idTokenSigningAlgValuesSupported_.isEmpty()) { + idTokenSigningAlgValuesSupported_ = other.idTokenSigningAlgValuesSupported_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.addAll(other.idTokenSigningAlgValuesSupported_); + } + onChanged(); + } + if (!other.claimsSupported_.isEmpty()) { + if (claimsSupported_.isEmpty()) { + claimsSupported_ = other.claimsSupported_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureClaimsSupportedIsMutable(); + claimsSupported_.addAll(other.claimsSupported_); + } + onChanged(); + } + if (!other.grantTypes_.isEmpty()) { + if (grantTypes_.isEmpty()) { + grantTypes_ = other.grantTypes_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureGrantTypesIsMutable(); + grantTypes_.addAll(other.grantTypes_); + } + 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.GetOpenIDConfigResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.GetOpenIDConfigResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object issuer_ = ""; + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @return The issuer. + */ + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @return The bytes for issuer. + */ + public com.google.protobuf.ByteString getIssuerBytes() { + java.lang.Object ref = issuer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + issuer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @param value The issuer to set. + * @return This builder for chaining. + */ + public Builder setIssuer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + issuer_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @return This builder for chaining. + */ + public Builder clearIssuer() { + + issuer_ = getDefaultInstance().getIssuer(); + onChanged(); + return this; + } + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @param value The bytes for issuer to set. + * @return This builder for chaining. + */ + public Builder setIssuerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + issuer_ = value; + onChanged(); + return this; + } + + private java.lang.Object jwksUri_ = ""; + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @return The jwksUri. + */ + public java.lang.String getJwksUri() { + java.lang.Object ref = jwksUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwksUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @return The bytes for jwksUri. + */ + public com.google.protobuf.ByteString getJwksUriBytes() { + java.lang.Object ref = jwksUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jwksUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @param value The jwksUri to set. + * @return This builder for chaining. + */ + public Builder setJwksUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jwksUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearJwksUri() { + + jwksUri_ = getDefaultInstance().getJwksUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @param value The bytes for jwksUri to set. + * @return This builder for chaining. + */ + public Builder setJwksUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jwksUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList responseTypesSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureResponseTypesSupportedIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + responseTypesSupported_ = + new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @return A list containing the responseTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { + return responseTypesSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @return The count of responseTypesSupported. + */ + public int getResponseTypesSupportedCount() { + return responseTypesSupported_.size(); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + public java.lang.String getResponseTypesSupported(int index) { + return responseTypesSupported_.get(index); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) { + return responseTypesSupported_.getByteString(index); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index to set the value at. + * @param value The responseTypesSupported to set. + * @return This builder for chaining. + */ + public Builder setResponseTypesSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param value The responseTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addResponseTypesSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param values The responseTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllResponseTypesSupported(java.lang.Iterable values) { + ensureResponseTypesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responseTypesSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @return This builder for chaining. + */ + public Builder clearResponseTypesSupported() { + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param value The bytes of the responseTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addResponseTypesSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList subjectTypesSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSubjectTypesSupportedIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + subjectTypesSupported_ = + new com.google.protobuf.LazyStringArrayList(subjectTypesSupported_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @return A list containing the subjectTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { + return subjectTypesSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @return The count of subjectTypesSupported. + */ + public int getSubjectTypesSupportedCount() { + return subjectTypesSupported_.size(); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + public java.lang.String getSubjectTypesSupported(int index) { + return subjectTypesSupported_.get(index); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { + return subjectTypesSupported_.getByteString(index); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index to set the value at. + * @param value The subjectTypesSupported to set. + * @return This builder for chaining. + */ + public Builder setSubjectTypesSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param value The subjectTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addSubjectTypesSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param values The subjectTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllSubjectTypesSupported(java.lang.Iterable values) { + ensureSubjectTypesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subjectTypesSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @return This builder for chaining. + */ + public Builder clearSubjectTypesSupported() { + subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param value The bytes of the subjectTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addSubjectTypesSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + idTokenSigningAlgValuesSupported_ = + new com.google.protobuf.LazyStringArrayList(idTokenSigningAlgValuesSupported_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupportedList() { + return idTokenSigningAlgValuesSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return The count of idTokenSigningAlgValuesSupported. + */ + public int getIdTokenSigningAlgValuesSupportedCount() { + return idTokenSigningAlgValuesSupported_.size(); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { + return idTokenSigningAlgValuesSupported_.get(index); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index) { + return idTokenSigningAlgValuesSupported_.getByteString(index); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index to set the value at. + * @param value The idTokenSigningAlgValuesSupported to set. + * @return This builder for chaining. + */ + public Builder setIdTokenSigningAlgValuesSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param value The idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addIdTokenSigningAlgValuesSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param values The idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllIdTokenSigningAlgValuesSupported( + java.lang.Iterable values) { + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, idTokenSigningAlgValuesSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return This builder for chaining. + */ + public Builder clearIdTokenSigningAlgValuesSupported() { + idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param value The bytes of the idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addIdTokenSigningAlgValuesSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList claimsSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureClaimsSupportedIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + claimsSupported_ = new com.google.protobuf.LazyStringArrayList(claimsSupported_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @return A list containing the claimsSupported. + */ + public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { + return claimsSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @return The count of claimsSupported. + */ + public int getClaimsSupportedCount() { + return claimsSupported_.size(); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + public java.lang.String getClaimsSupported(int index) { + return claimsSupported_.get(index); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { + return claimsSupported_.getByteString(index); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index to set the value at. + * @param value The claimsSupported to set. + * @return This builder for chaining. + */ + public Builder setClaimsSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsSupportedIsMutable(); + claimsSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param value The claimsSupported to add. + * @return This builder for chaining. + */ + public Builder addClaimsSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsSupportedIsMutable(); + claimsSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param values The claimsSupported to add. + * @return This builder for chaining. + */ + public Builder addAllClaimsSupported(java.lang.Iterable values) { + ensureClaimsSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, claimsSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @return This builder for chaining. + */ + public Builder clearClaimsSupported() { + claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param value The bytes of the claimsSupported to add. + * @return This builder for chaining. + */ + public Builder addClaimsSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureClaimsSupportedIsMutable(); + claimsSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList grantTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureGrantTypesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @return A list containing the grantTypes. + */ + public com.google.protobuf.ProtocolStringList getGrantTypesList() { + return grantTypes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @return The count of grantTypes. + */ + public int getGrantTypesCount() { + return grantTypes_.size(); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + public java.lang.String getGrantTypes(int index) { + return grantTypes_.get(index); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + public com.google.protobuf.ByteString getGrantTypesBytes(int index) { + return grantTypes_.getByteString(index); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param index The index to set the value at. + * @param value The grantTypes to set. + * @return This builder for chaining. + */ + public Builder setGrantTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGrantTypesIsMutable(); + grantTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param value The grantTypes to add. + * @return This builder for chaining. + */ + public Builder addGrantTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGrantTypesIsMutable(); + grantTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param values The grantTypes to add. + * @return This builder for chaining. + */ + public Builder addAllGrantTypes(java.lang.Iterable values) { + ensureGrantTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, grantTypes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @return This builder for chaining. + */ + public Builder clearGrantTypes() { + grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param value The bytes of the grantTypes to add. + * @return This builder for chaining. + */ + public Builder addGrantTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGrantTypesIsMutable(); + grantTypes_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.GetOpenIDConfigResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetOpenIDConfigResponse) + private static final com.google.container.v1.GetOpenIDConfigResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetOpenIDConfigResponse(); + } + + public static com.google.container.v1.GetOpenIDConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOpenIDConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOpenIDConfigResponse(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.GetOpenIDConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java new file mode 100644 index 00000000..4a853087 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java @@ -0,0 +1,330 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface GetOpenIDConfigResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetOpenIDConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The issuer. + */ + java.lang.String getIssuer(); + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The bytes for issuer. + */ + com.google.protobuf.ByteString getIssuerBytes(); + + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The jwksUri. + */ + java.lang.String getJwksUri(); + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The bytes for jwksUri. + */ + com.google.protobuf.ByteString getJwksUriBytes(); + + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return A list containing the responseTypesSupported. + */ + java.util.List getResponseTypesSupportedList(); + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return The count of responseTypesSupported. + */ + int getResponseTypesSupportedCount(); + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + java.lang.String getResponseTypesSupported(int index); + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index); + + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return A list containing the subjectTypesSupported. + */ + java.util.List getSubjectTypesSupportedList(); + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return The count of subjectTypesSupported. + */ + int getSubjectTypesSupportedCount(); + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + java.lang.String getSubjectTypesSupported(int index); + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index); + + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + java.util.List getIdTokenSigningAlgValuesSupportedList(); + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return The count of idTokenSigningAlgValuesSupported. + */ + int getIdTokenSigningAlgValuesSupportedCount(); + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + java.lang.String getIdTokenSigningAlgValuesSupported(int index); + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index); + + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return A list containing the claimsSupported. + */ + java.util.List getClaimsSupportedList(); + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return The count of claimsSupported. + */ + int getClaimsSupportedCount(); + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + java.lang.String getClaimsSupported(int index); + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + com.google.protobuf.ByteString getClaimsSupportedBytes(int index); + + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return A list containing the grantTypes. + */ + java.util.List getGrantTypesList(); + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return The count of grantTypes. + */ + int getGrantTypesCount(); + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + java.lang.String getGrantTypes(int index); + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + com.google.protobuf.ByteString getGrantTypesBytes(int index); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java index 1d8718f6..26f4daf1 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java @@ -197,9 +197,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -224,9 +224,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -842,9 +842,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -868,9 +868,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -894,9 +894,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -919,9 +919,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -940,9 +940,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java index f0926148..e27dd4a9 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface GetOperationRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface GetOperationRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java index 7503774b..63a16fef 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java @@ -189,8 +189,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+   * operations for. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -215,8 +216,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+   * operations for. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -763,8 +765,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+     * operations for. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -788,8 +791,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+     * operations for. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -813,8 +817,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+     * operations for. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -837,8 +842,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+     * operations for. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -857,8 +863,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+     * operations for. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java index ce807b64..93b3e486 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java @@ -59,8 +59,9 @@ public interface GetServerConfigRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+   * operations for. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -74,8 +75,9 @@ public interface GetServerConfigRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+   * operations for. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java index 13aada74..7e598dd1 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java @@ -116,8 +116,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * 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.
+   * When enabled, it ensures that metrics are collected into Stackdriver
+   * Monitoring.
    * 
* * bool disabled = 1; @@ -453,8 +453,8 @@ public Builder mergeFrom( * *
      * 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.
+     * When enabled, it ensures that metrics are collected into Stackdriver
+     * Monitoring.
      * 
* * bool disabled = 1; @@ -470,8 +470,8 @@ public boolean getDisabled() { * *
      * 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.
+     * When enabled, it ensures that metrics are collected into Stackdriver
+     * Monitoring.
      * 
* * bool disabled = 1; @@ -490,8 +490,8 @@ public Builder setDisabled(boolean value) { * *
      * 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.
+     * When enabled, it ensures that metrics are collected into Stackdriver
+     * Monitoring.
      * 
* * bool disabled = 1; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java index 27763768..435d0717 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java @@ -28,8 +28,8 @@ public interface HorizontalPodAutoscalingOrBuilder * *
    * 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.
+   * When enabled, it ensures that metrics are collected into Stackdriver
+   * Monitoring.
    * 
* * bool disabled = 1; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java index 42088b3a..f28c7f0a 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java @@ -159,6 +159,11 @@ private IPAllocationPolicy( tpuIpv4CidrBlock_ = s; break; } + case 120: + { + useRoutes_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -200,6 +205,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Whether alias IPs will be used for pod IPs in the cluster.
+   * This is used in conjunction with use_routes. It cannot
+   * be true if use_routes is true. If both use_ip_aliases and use_routes are
+   * false, then the server picks the default IP allocation mode
    * 
* * bool use_ip_aliases = 1; @@ -828,6 +836,27 @@ public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { } } + public static final int USE_ROUTES_FIELD_NUMBER = 15; + private boolean useRoutes_; + /** + * + * + *
+   * Whether routes will be used for pod IPs in the cluster.
+   * This is used in conjunction with use_ip_aliases. It cannot be true if
+   * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+   * then the server picks the default IP allocation mode
+   * 
+ * + * bool use_routes = 15; + * + * @return The useRoutes. + */ + @java.lang.Override + public boolean getUseRoutes() { + return useRoutes_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -878,6 +907,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getTpuIpv4CidrBlockBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tpuIpv4CidrBlock_); } + if (useRoutes_ != false) { + output.writeBool(15, useRoutes_); + } unknownFields.writeTo(output); } @@ -925,6 +957,9 @@ public int getSerializedSize() { if (!getTpuIpv4CidrBlockBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, tpuIpv4CidrBlock_); } + if (useRoutes_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, useRoutes_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -954,6 +989,7 @@ public boolean equals(final java.lang.Object obj) { if (!getNodeIpv4CidrBlock().equals(other.getNodeIpv4CidrBlock())) return false; if (!getServicesIpv4CidrBlock().equals(other.getServicesIpv4CidrBlock())) return false; if (!getTpuIpv4CidrBlock().equals(other.getTpuIpv4CidrBlock())) return false; + if (getUseRoutes() != other.getUseRoutes()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -989,6 +1025,8 @@ public int hashCode() { hash = (53 * hash) + getServicesIpv4CidrBlock().hashCode(); hash = (37 * hash) + TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER; hash = (53 * hash) + getTpuIpv4CidrBlock().hashCode(); + hash = (37 * hash) + USE_ROUTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseRoutes()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1158,6 +1196,8 @@ public Builder clear() { tpuIpv4CidrBlock_ = ""; + useRoutes_ = false; + return this; } @@ -1197,6 +1237,7 @@ public com.google.container.v1.IPAllocationPolicy buildPartial() { result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + result.useRoutes_ = useRoutes_; onBuilt(); return result; } @@ -1292,6 +1333,9 @@ public Builder mergeFrom(com.google.container.v1.IPAllocationPolicy other) { tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; onChanged(); } + if (other.getUseRoutes() != false) { + setUseRoutes(other.getUseRoutes()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1327,6 +1371,9 @@ public Builder mergeFrom( * *
      * Whether alias IPs will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_routes. It cannot
+     * be true if use_routes is true. If both use_ip_aliases and use_routes are
+     * false, then the server picks the default IP allocation mode
      * 
* * bool use_ip_aliases = 1; @@ -1342,6 +1389,9 @@ public boolean getUseIpAliases() { * *
      * Whether alias IPs will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_routes. It cannot
+     * be true if use_routes is true. If both use_ip_aliases and use_routes are
+     * false, then the server picks the default IP allocation mode
      * 
* * bool use_ip_aliases = 1; @@ -1360,6 +1410,9 @@ public Builder setUseIpAliases(boolean value) { * *
      * Whether alias IPs will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_routes. It cannot
+     * be true if use_routes is true. If both use_ip_aliases and use_routes are
+     * false, then the server picks the default IP allocation mode
      * 
* * bool use_ip_aliases = 1; @@ -2758,6 +2811,67 @@ public Builder setTpuIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { return this; } + private boolean useRoutes_; + /** + * + * + *
+     * Whether routes will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_ip_aliases. It cannot be true if
+     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+     * then the server picks the default IP allocation mode
+     * 
+ * + * bool use_routes = 15; + * + * @return The useRoutes. + */ + @java.lang.Override + public boolean getUseRoutes() { + return useRoutes_; + } + /** + * + * + *
+     * Whether routes will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_ip_aliases. It cannot be true if
+     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+     * then the server picks the default IP allocation mode
+     * 
+ * + * bool use_routes = 15; + * + * @param value The useRoutes to set. + * @return This builder for chaining. + */ + public Builder setUseRoutes(boolean value) { + + useRoutes_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether routes will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_ip_aliases. It cannot be true if
+     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+     * then the server picks the default IP allocation mode
+     * 
+ * + * bool use_routes = 15; + * + * @return This builder for chaining. + */ + public Builder clearUseRoutes() { + + useRoutes_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java index 468708c8..33428c88 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java @@ -28,6 +28,9 @@ public interface IPAllocationPolicyOrBuilder * *
    * Whether alias IPs will be used for pod IPs in the cluster.
+   * This is used in conjunction with use_routes. It cannot
+   * be true if use_routes is true. If both use_ip_aliases and use_routes are
+   * false, then the server picks the default IP allocation mode
    * 
* * bool use_ip_aliases = 1; @@ -407,4 +410,20 @@ public interface IPAllocationPolicyOrBuilder * @return The bytes for tpuIpv4CidrBlock. */ com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes(); + + /** + * + * + *
+   * Whether routes will be used for pod IPs in the cluster.
+   * This is used in conjunction with use_ip_aliases. It cannot be true if
+   * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+   * then the server picks the default IP allocation mode
+   * 
+ * + * bool use_routes = 15; + * + * @return The useRoutes. + */ + boolean getUseRoutes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java new file mode 100644 index 00000000..e7beaf38 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java @@ -0,0 +1,2061 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Jwk is a JSON Web Key as specified in RFC 7517
+ * 
+ * + * Protobuf type {@code google.container.v1.Jwk} + */ +public final class Jwk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.Jwk) + JwkOrBuilder { + private static final long serialVersionUID = 0L; + // Use Jwk.newBuilder() to construct. + private Jwk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Jwk() { + kty_ = ""; + alg_ = ""; + use_ = ""; + kid_ = ""; + n_ = ""; + e_ = ""; + x_ = ""; + y_ = ""; + crv_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Jwk(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Jwk( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + kty_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + alg_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + use_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + kid_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + n_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + e_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + x_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + y_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + crv_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Jwk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Jwk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Jwk.class, com.google.container.v1.Jwk.Builder.class); + } + + public static final int KTY_FIELD_NUMBER = 1; + private volatile java.lang.Object kty_; + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The kty. + */ + @java.lang.Override + public java.lang.String getKty() { + java.lang.Object ref = kty_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kty_ = s; + return s; + } + } + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The bytes for kty. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKtyBytes() { + java.lang.Object ref = kty_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALG_FIELD_NUMBER = 2; + private volatile java.lang.Object alg_; + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The alg. + */ + @java.lang.Override + public java.lang.String getAlg() { + java.lang.Object ref = alg_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alg_ = s; + return s; + } + } + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The bytes for alg. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAlgBytes() { + java.lang.Object ref = alg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USE_FIELD_NUMBER = 3; + private volatile java.lang.Object use_; + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The use. + */ + @java.lang.Override + public java.lang.String getUse() { + java.lang.Object ref = use_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + use_ = s; + return s; + } + } + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The bytes for use. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUseBytes() { + java.lang.Object ref = use_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + use_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KID_FIELD_NUMBER = 4; + private volatile java.lang.Object kid_; + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The kid. + */ + @java.lang.Override + public java.lang.String getKid() { + java.lang.Object ref = kid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kid_ = s; + return s; + } + } + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The bytes for kid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKidBytes() { + java.lang.Object ref = kid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int N_FIELD_NUMBER = 5; + private volatile java.lang.Object n_; + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The n. + */ + @java.lang.Override + public java.lang.String getN() { + java.lang.Object ref = n_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + n_ = s; + return s; + } + } + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The bytes for n. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNBytes() { + java.lang.Object ref = n_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + n_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int E_FIELD_NUMBER = 6; + private volatile java.lang.Object e_; + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The e. + */ + @java.lang.Override + public java.lang.String getE() { + java.lang.Object ref = e_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + e_ = s; + return s; + } + } + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The bytes for e. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEBytes() { + java.lang.Object ref = e_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + e_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int X_FIELD_NUMBER = 7; + private volatile java.lang.Object x_; + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The x. + */ + @java.lang.Override + public java.lang.String getX() { + java.lang.Object ref = x_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + x_ = s; + return s; + } + } + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The bytes for x. + */ + @java.lang.Override + public com.google.protobuf.ByteString getXBytes() { + java.lang.Object ref = x_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + x_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int Y_FIELD_NUMBER = 8; + private volatile java.lang.Object y_; + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The y. + */ + @java.lang.Override + public java.lang.String getY() { + java.lang.Object ref = y_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + y_ = s; + return s; + } + } + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The bytes for y. + */ + @java.lang.Override + public com.google.protobuf.ByteString getYBytes() { + java.lang.Object ref = y_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + y_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CRV_FIELD_NUMBER = 9; + private volatile java.lang.Object crv_; + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The crv. + */ + @java.lang.Override + public java.lang.String getCrv() { + java.lang.Object ref = crv_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crv_ = s; + return s; + } + } + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The bytes for crv. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrvBytes() { + java.lang.Object ref = crv_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crv_ = 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 (!getKtyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kty_); + } + if (!getAlgBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alg_); + } + if (!getUseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, use_); + } + if (!getKidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kid_); + } + if (!getNBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, n_); + } + if (!getEBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, e_); + } + if (!getXBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, x_); + } + if (!getYBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, y_); + } + if (!getCrvBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, crv_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKtyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kty_); + } + if (!getAlgBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alg_); + } + if (!getUseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, use_); + } + if (!getKidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kid_); + } + if (!getNBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, n_); + } + if (!getEBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, e_); + } + if (!getXBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, x_); + } + if (!getYBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, y_); + } + if (!getCrvBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, crv_); + } + 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.Jwk)) { + return super.equals(obj); + } + com.google.container.v1.Jwk other = (com.google.container.v1.Jwk) obj; + + if (!getKty().equals(other.getKty())) return false; + if (!getAlg().equals(other.getAlg())) return false; + if (!getUse().equals(other.getUse())) return false; + if (!getKid().equals(other.getKid())) return false; + if (!getN().equals(other.getN())) return false; + if (!getE().equals(other.getE())) return false; + if (!getX().equals(other.getX())) return false; + if (!getY().equals(other.getY())) return false; + if (!getCrv().equals(other.getCrv())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KTY_FIELD_NUMBER; + hash = (53 * hash) + getKty().hashCode(); + hash = (37 * hash) + ALG_FIELD_NUMBER; + hash = (53 * hash) + getAlg().hashCode(); + hash = (37 * hash) + USE_FIELD_NUMBER; + hash = (53 * hash) + getUse().hashCode(); + hash = (37 * hash) + KID_FIELD_NUMBER; + hash = (53 * hash) + getKid().hashCode(); + hash = (37 * hash) + N_FIELD_NUMBER; + hash = (53 * hash) + getN().hashCode(); + hash = (37 * hash) + E_FIELD_NUMBER; + hash = (53 * hash) + getE().hashCode(); + hash = (37 * hash) + X_FIELD_NUMBER; + hash = (53 * hash) + getX().hashCode(); + hash = (37 * hash) + Y_FIELD_NUMBER; + hash = (53 * hash) + getY().hashCode(); + hash = (37 * hash) + CRV_FIELD_NUMBER; + hash = (53 * hash) + getCrv().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.Jwk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.Jwk 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.Jwk parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.Jwk parseFrom( + 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.Jwk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.Jwk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.Jwk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.Jwk parseFrom( + java.io.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.Jwk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.Jwk parseDelimitedFrom( + java.io.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.Jwk parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.Jwk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.Jwk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Jwk is a JSON Web Key as specified in RFC 7517
+   * 
+ * + * Protobuf type {@code google.container.v1.Jwk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.Jwk) + com.google.container.v1.JwkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Jwk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Jwk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Jwk.class, com.google.container.v1.Jwk.Builder.class); + } + + // Construct using com.google.container.v1.Jwk.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(); + kty_ = ""; + + alg_ = ""; + + use_ = ""; + + kid_ = ""; + + n_ = ""; + + e_ = ""; + + x_ = ""; + + y_ = ""; + + crv_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Jwk_descriptor; + } + + @java.lang.Override + public com.google.container.v1.Jwk getDefaultInstanceForType() { + return com.google.container.v1.Jwk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.Jwk build() { + com.google.container.v1.Jwk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.Jwk buildPartial() { + com.google.container.v1.Jwk result = new com.google.container.v1.Jwk(this); + result.kty_ = kty_; + result.alg_ = alg_; + result.use_ = use_; + result.kid_ = kid_; + result.n_ = n_; + result.e_ = e_; + result.x_ = x_; + result.y_ = y_; + result.crv_ = crv_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.Jwk) { + return mergeFrom((com.google.container.v1.Jwk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.Jwk other) { + if (other == com.google.container.v1.Jwk.getDefaultInstance()) return this; + if (!other.getKty().isEmpty()) { + kty_ = other.kty_; + onChanged(); + } + if (!other.getAlg().isEmpty()) { + alg_ = other.alg_; + onChanged(); + } + if (!other.getUse().isEmpty()) { + use_ = other.use_; + onChanged(); + } + if (!other.getKid().isEmpty()) { + kid_ = other.kid_; + onChanged(); + } + if (!other.getN().isEmpty()) { + n_ = other.n_; + onChanged(); + } + if (!other.getE().isEmpty()) { + e_ = other.e_; + onChanged(); + } + if (!other.getX().isEmpty()) { + x_ = other.x_; + onChanged(); + } + if (!other.getY().isEmpty()) { + y_ = other.y_; + onChanged(); + } + if (!other.getCrv().isEmpty()) { + crv_ = other.crv_; + 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.Jwk parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.Jwk) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object kty_ = ""; + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @return The kty. + */ + public java.lang.String getKty() { + java.lang.Object ref = kty_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kty_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @return The bytes for kty. + */ + public com.google.protobuf.ByteString getKtyBytes() { + java.lang.Object ref = kty_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @param value The kty to set. + * @return This builder for chaining. + */ + public Builder setKty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kty_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @return This builder for chaining. + */ + public Builder clearKty() { + + kty_ = getDefaultInstance().getKty(); + onChanged(); + return this; + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @param value The bytes for kty to set. + * @return This builder for chaining. + */ + public Builder setKtyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kty_ = value; + onChanged(); + return this; + } + + private java.lang.Object alg_ = ""; + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @return The alg. + */ + public java.lang.String getAlg() { + java.lang.Object ref = alg_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alg_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @return The bytes for alg. + */ + public com.google.protobuf.ByteString getAlgBytes() { + java.lang.Object ref = alg_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @param value The alg to set. + * @return This builder for chaining. + */ + public Builder setAlg(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alg_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @return This builder for chaining. + */ + public Builder clearAlg() { + + alg_ = getDefaultInstance().getAlg(); + onChanged(); + return this; + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @param value The bytes for alg to set. + * @return This builder for chaining. + */ + public Builder setAlgBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alg_ = value; + onChanged(); + return this; + } + + private java.lang.Object use_ = ""; + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @return The use. + */ + public java.lang.String getUse() { + java.lang.Object ref = use_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + use_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @return The bytes for use. + */ + public com.google.protobuf.ByteString getUseBytes() { + java.lang.Object ref = use_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + use_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @param value The use to set. + * @return This builder for chaining. + */ + public Builder setUse(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + use_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @return This builder for chaining. + */ + public Builder clearUse() { + + use_ = getDefaultInstance().getUse(); + onChanged(); + return this; + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @param value The bytes for use to set. + * @return This builder for chaining. + */ + public Builder setUseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + use_ = value; + onChanged(); + return this; + } + + private java.lang.Object kid_ = ""; + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @return The kid. + */ + public java.lang.String getKid() { + java.lang.Object ref = kid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @return The bytes for kid. + */ + public com.google.protobuf.ByteString getKidBytes() { + java.lang.Object ref = kid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @param value The kid to set. + * @return This builder for chaining. + */ + public Builder setKid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @return This builder for chaining. + */ + public Builder clearKid() { + + kid_ = getDefaultInstance().getKid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @param value The bytes for kid to set. + * @return This builder for chaining. + */ + public Builder setKidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kid_ = value; + onChanged(); + return this; + } + + private java.lang.Object n_ = ""; + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @return The n. + */ + public java.lang.String getN() { + java.lang.Object ref = n_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + n_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @return The bytes for n. + */ + public com.google.protobuf.ByteString getNBytes() { + java.lang.Object ref = n_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + n_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @param value The n to set. + * @return This builder for chaining. + */ + public Builder setN(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + n_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @return This builder for chaining. + */ + public Builder clearN() { + + n_ = getDefaultInstance().getN(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @param value The bytes for n to set. + * @return This builder for chaining. + */ + public Builder setNBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + n_ = value; + onChanged(); + return this; + } + + private java.lang.Object e_ = ""; + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @return The e. + */ + public java.lang.String getE() { + java.lang.Object ref = e_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + e_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @return The bytes for e. + */ + public com.google.protobuf.ByteString getEBytes() { + java.lang.Object ref = e_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + e_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @param value The e to set. + * @return This builder for chaining. + */ + public Builder setE(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + e_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @return This builder for chaining. + */ + public Builder clearE() { + + e_ = getDefaultInstance().getE(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @param value The bytes for e to set. + * @return This builder for chaining. + */ + public Builder setEBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + e_ = value; + onChanged(); + return this; + } + + private java.lang.Object x_ = ""; + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @return The x. + */ + public java.lang.String getX() { + java.lang.Object ref = x_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + x_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @return The bytes for x. + */ + public com.google.protobuf.ByteString getXBytes() { + java.lang.Object ref = x_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + x_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @param value The x to set. + * @return This builder for chaining. + */ + public Builder setX(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + x_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @return This builder for chaining. + */ + public Builder clearX() { + + x_ = getDefaultInstance().getX(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @param value The bytes for x to set. + * @return This builder for chaining. + */ + public Builder setXBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + x_ = value; + onChanged(); + return this; + } + + private java.lang.Object y_ = ""; + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @return The y. + */ + public java.lang.String getY() { + java.lang.Object ref = y_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + y_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @return The bytes for y. + */ + public com.google.protobuf.ByteString getYBytes() { + java.lang.Object ref = y_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + y_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @param value The y to set. + * @return This builder for chaining. + */ + public Builder setY(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + y_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @return This builder for chaining. + */ + public Builder clearY() { + + y_ = getDefaultInstance().getY(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @param value The bytes for y to set. + * @return This builder for chaining. + */ + public Builder setYBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + y_ = value; + onChanged(); + return this; + } + + private java.lang.Object crv_ = ""; + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @return The crv. + */ + public java.lang.String getCrv() { + java.lang.Object ref = crv_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crv_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @return The bytes for crv. + */ + public com.google.protobuf.ByteString getCrvBytes() { + java.lang.Object ref = crv_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crv_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @param value The crv to set. + * @return This builder for chaining. + */ + public Builder setCrv(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + crv_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @return This builder for chaining. + */ + public Builder clearCrv() { + + crv_ = getDefaultInstance().getCrv(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @param value The bytes for crv to set. + * @return This builder for chaining. + */ + public Builder setCrvBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crv_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.Jwk) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.Jwk) + private static final com.google.container.v1.Jwk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.Jwk(); + } + + public static com.google.container.v1.Jwk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Jwk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Jwk(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.Jwk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java new file mode 100644 index 00000000..1a1d84d2 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface JwkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.Jwk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The kty. + */ + java.lang.String getKty(); + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The bytes for kty. + */ + com.google.protobuf.ByteString getKtyBytes(); + + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The alg. + */ + java.lang.String getAlg(); + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The bytes for alg. + */ + com.google.protobuf.ByteString getAlgBytes(); + + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The use. + */ + java.lang.String getUse(); + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The bytes for use. + */ + com.google.protobuf.ByteString getUseBytes(); + + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The kid. + */ + java.lang.String getKid(); + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The bytes for kid. + */ + com.google.protobuf.ByteString getKidBytes(); + + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The n. + */ + java.lang.String getN(); + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The bytes for n. + */ + com.google.protobuf.ByteString getNBytes(); + + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The e. + */ + java.lang.String getE(); + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The bytes for e. + */ + com.google.protobuf.ByteString getEBytes(); + + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The x. + */ + java.lang.String getX(); + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The bytes for x. + */ + com.google.protobuf.ByteString getXBytes(); + + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The y. + */ + java.lang.String getY(); + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The bytes for y. + */ + com.google.protobuf.ByteString getYBytes(); + + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The crv. + */ + java.lang.String getCrv(); + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The bytes for crv. + */ + com.google.protobuf.ByteString getCrvBytes(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java index edccc6af..1f407a47 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java @@ -189,9 +189,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides, or "-" for all zones.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -216,9 +216,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides, or "-" for all zones.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -767,9 +767,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides, or "-" for all zones.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -793,9 +793,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides, or "-" for all zones.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -819,9 +819,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides, or "-" for all zones.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -844,9 +844,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides, or "-" for all zones.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -865,9 +865,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides, or "-" for all zones.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java index 6b292bc1..bde054ad 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface ListClustersRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides, or "-" for all zones.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -75,9 +75,9 @@ public interface ListClustersRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides, or "-" for all zones.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java index dac8a5fb..e68f6e41 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java @@ -197,9 +197,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -224,9 +224,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -842,9 +842,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -868,9 +868,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -894,9 +894,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -919,9 +919,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -940,9 +940,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java index 22b13d96..a0c3d136 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface ListNodePoolsRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -75,9 +75,9 @@ public interface ListNodePoolsRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java index 13e5dc99..c613c800 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java @@ -189,8 +189,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
-   * all zones. This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -215,8 +216,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
-   * all zones. This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -765,8 +767,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
-     * all zones. This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -790,8 +793,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
-     * all zones. This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -815,8 +819,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
-     * all zones. This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -839,8 +844,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
-     * all zones. This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; @@ -859,8 +865,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
-     * all zones. This field has been deprecated and replaced by the parent field.
+     * [zone](https://cloud.google.com/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]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java index 888610bd..0a448e97 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java @@ -59,8 +59,9 @@ public interface ListOperationsRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
-   * all zones. This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; @@ -74,8 +75,9 @@ public interface ListOperationsRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
-   * all zones. This field has been deprecated and replaced by the parent field.
+   * [zone](https://cloud.google.com/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]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java index 4eaa0828..48a53299 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java @@ -184,7 +184,7 @@ public com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder() { * A hash identifying the version of this policy, so that updates to fields of * the policy won't accidentally undo intermediate changes (and so that users * of the API unaware of some fields won't accidentally remove other fields). - * Make a <code>get()</code> request to the cluster to get the current + * Make a `get()` request to the cluster to get the current * resource version and include it with requests to set the policy. *
* @@ -211,7 +211,7 @@ public java.lang.String getResourceVersion() { * A hash identifying the version of this policy, so that updates to fields of * the policy won't accidentally undo intermediate changes (and so that users * of the API unaware of some fields won't accidentally remove other fields). - * Make a <code>get()</code> request to the cluster to get the current + * Make a `get()` request to the cluster to get the current * resource version and include it with requests to set the policy. *
* @@ -769,7 +769,7 @@ public com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder() { * A hash identifying the version of this policy, so that updates to fields of * the policy won't accidentally undo intermediate changes (and so that users * of the API unaware of some fields won't accidentally remove other fields). - * Make a <code>get()</code> request to the cluster to get the current + * Make a `get()` request to the cluster to get the current * resource version and include it with requests to set the policy. *
* @@ -795,7 +795,7 @@ public java.lang.String getResourceVersion() { * A hash identifying the version of this policy, so that updates to fields of * the policy won't accidentally undo intermediate changes (and so that users * of the API unaware of some fields won't accidentally remove other fields). - * Make a <code>get()</code> request to the cluster to get the current + * Make a `get()` request to the cluster to get the current * resource version and include it with requests to set the policy. *
* @@ -821,7 +821,7 @@ public com.google.protobuf.ByteString getResourceVersionBytes() { * A hash identifying the version of this policy, so that updates to fields of * the policy won't accidentally undo intermediate changes (and so that users * of the API unaware of some fields won't accidentally remove other fields). - * Make a <code>get()</code> request to the cluster to get the current + * Make a `get()` request to the cluster to get the current * resource version and include it with requests to set the policy. *
* @@ -846,7 +846,7 @@ public Builder setResourceVersion(java.lang.String value) { * A hash identifying the version of this policy, so that updates to fields of * the policy won't accidentally undo intermediate changes (and so that users * of the API unaware of some fields won't accidentally remove other fields). - * Make a <code>get()</code> request to the cluster to get the current + * Make a `get()` request to the cluster to get the current * resource version and include it with requests to set the policy. *
* @@ -867,7 +867,7 @@ public Builder clearResourceVersion() { * A hash identifying the version of this policy, so that updates to fields of * the policy won't accidentally undo intermediate changes (and so that users * of the API unaware of some fields won't accidentally remove other fields). - * Make a <code>get()</code> request to the cluster to get the current + * Make a `get()` request to the cluster to get the current * resource version and include it with requests to set the policy. *
* diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java index e6b7758c..b021ce80 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java @@ -65,7 +65,7 @@ public interface MaintenancePolicyOrBuilder * A hash identifying the version of this policy, so that updates to fields of * the policy won't accidentally undo intermediate changes (and so that users * of the API unaware of some fields won't accidentally remove other fields). - * Make a <code>get()</code> request to the cluster to get the current + * Make a `get()` request to the cluster to get the current * resource version and include it with requests to set the policy. * * @@ -81,7 +81,7 @@ public interface MaintenancePolicyOrBuilder * A hash identifying the version of this policy, so that updates to fields of * the policy won't accidentally undo intermediate changes (and so that users * of the API unaware of some fields won't accidentally remove other fields). - * Make a <code>get()</code> request to the cluster to get the current + * Make a `get()` request to the cluster to get the current * resource version and include it with requests to set the policy. * * diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java index 3b90b09f..572fec24 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java @@ -170,13 +170,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The username to use for HTTP basic authentication to the master endpoint. * For clusters v1.6.0 and later, basic authentication can be disabled by * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string username = 1; + * string username = 1 [deprecated = true]; * * @return The username. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getUsername() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { @@ -195,13 +200,18 @@ public java.lang.String getUsername() { * The username to use for HTTP basic authentication to the master endpoint. * For clusters v1.6.0 and later, basic authentication can be disabled by * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string username = 1; + * string username = 1 [deprecated = true]; * * @return The bytes for username. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { @@ -224,13 +234,18 @@ public com.google.protobuf.ByteString getUsernameBytes() { * 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. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string password = 2; + * string password = 2 [deprecated = true]; * * @return The password. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getPassword() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { @@ -250,13 +265,18 @@ public java.lang.String getPassword() { * 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. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string password = 2; + * string password = 2 [deprecated = true]; * * @return The bytes for password. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { @@ -893,12 +913,17 @@ public Builder mergeFrom( * The username to use for HTTP basic authentication to the master endpoint. * For clusters v1.6.0 and later, basic authentication can be disabled by * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string username = 1; + * string username = 1 [deprecated = true]; * * @return The username. */ + @java.lang.Deprecated public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { @@ -917,12 +942,17 @@ public java.lang.String getUsername() { * The username to use for HTTP basic authentication to the master endpoint. * For clusters v1.6.0 and later, basic authentication can be disabled by * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string username = 1; + * string username = 1 [deprecated = true]; * * @return The bytes for username. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { @@ -941,13 +971,18 @@ public com.google.protobuf.ByteString getUsernameBytes() { * The username to use for HTTP basic authentication to the master endpoint. * For clusters v1.6.0 and later, basic authentication can be disabled by * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string username = 1; + * string username = 1 [deprecated = true]; * * @param value The username to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setUsername(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -964,12 +999,17 @@ public Builder setUsername(java.lang.String value) { * The username to use for HTTP basic authentication to the master endpoint. * For clusters v1.6.0 and later, basic authentication can be disabled by * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string username = 1; + * string username = 1 [deprecated = true]; * * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearUsername() { username_ = getDefaultInstance().getUsername(); @@ -983,13 +1023,18 @@ public Builder clearUsername() { * The username to use for HTTP basic authentication to the master endpoint. * For clusters v1.6.0 and later, basic authentication can be disabled by * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string username = 1; + * string username = 1 [deprecated = true]; * * @param value The bytes for username to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1010,12 +1055,17 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * 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. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string password = 2; + * string password = 2 [deprecated = true]; * * @return The password. */ + @java.lang.Deprecated public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { @@ -1035,12 +1085,17 @@ public java.lang.String getPassword() { * 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. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string password = 2; + * string password = 2 [deprecated = true]; * * @return The bytes for password. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { @@ -1060,13 +1115,18 @@ public com.google.protobuf.ByteString getPasswordBytes() { * 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. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string password = 2; + * string password = 2 [deprecated = true]; * * @param value The password to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setPassword(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1084,12 +1144,17 @@ public Builder setPassword(java.lang.String value) { * 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. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string password = 2; + * string password = 2 [deprecated = true]; * * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); @@ -1104,13 +1169,18 @@ public Builder clearPassword() { * 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. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string password = 2; + * string password = 2 [deprecated = true]; * * @param value The bytes for password to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java index 8ed83391..e2770a12 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java @@ -30,12 +30,17 @@ public interface MasterAuthOrBuilder * The username to use for HTTP basic authentication to the master endpoint. * For clusters v1.6.0 and later, basic authentication can be disabled by * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string username = 1; + * string username = 1 [deprecated = true]; * * @return The username. */ + @java.lang.Deprecated java.lang.String getUsername(); /** * @@ -44,12 +49,17 @@ public interface MasterAuthOrBuilder * The username to use for HTTP basic authentication to the master endpoint. * For clusters v1.6.0 and later, basic authentication can be disabled by * leaving username unspecified (or setting it to the empty string). + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string username = 1; + * string username = 1 [deprecated = true]; * * @return The bytes for username. */ + @java.lang.Deprecated com.google.protobuf.ByteString getUsernameBytes(); /** @@ -60,12 +70,17 @@ public interface MasterAuthOrBuilder * 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. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string password = 2; + * string password = 2 [deprecated = true]; * * @return The password. */ + @java.lang.Deprecated java.lang.String getPassword(); /** * @@ -75,12 +90,17 @@ public interface MasterAuthOrBuilder * 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. + * Warning: basic authentication is deprecated, and will be removed in GKE + * control plane versions 1.19 and newer. For a list of recommended + * authentication methods, see: + * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication * * - * string password = 2; + * string password = 2 [deprecated = true]; * * @return The bytes for password. */ + @java.lang.Deprecated com.google.protobuf.ByteString getPasswordBytes(); /** diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java index 37461c79..f0198a19 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java @@ -88,6 +88,22 @@ private NetworkConfig( case 40: { enableIntraNodeVisibility_ = input.readBool(); + break; + } + case 58: + { + com.google.container.v1.DefaultSnatStatus.Builder subBuilder = null; + if (defaultSnatStatus_ != null) { + subBuilder = defaultSnatStatus_.toBuilder(); + } + defaultSnatStatus_ = + input.readMessage( + com.google.container.v1.DefaultSnatStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultSnatStatus_); + defaultSnatStatus_ = subBuilder.buildPartial(); + } + break; } default: @@ -131,9 +147,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which
-   * the cluster is connected.
-   * Example: projects/my-project/global/networks/my-network
+   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
    * 
* * string network = 1; @@ -157,9 +173,9 @@ public java.lang.String getNetwork() { * *
    * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which
-   * the cluster is connected.
-   * Example: projects/my-project/global/networks/my-network
+   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
    * 
* * string network = 1; @@ -186,8 +202,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { * *
    * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
    * 
* * string subnetwork = 2; @@ -211,8 +228,9 @@ public java.lang.String getSubnetwork() { * *
    * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
    * 
* * string subnetwork = 2; @@ -251,6 +269,63 @@ public boolean getEnableIntraNodeVisibility() { return enableIntraNodeVisibility_; } + public static final int DEFAULT_SNAT_STATUS_FIELD_NUMBER = 7; + private com.google.container.v1.DefaultSnatStatus defaultSnatStatus_; + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * + * @return Whether the defaultSnatStatus field is set. + */ + @java.lang.Override + public boolean hasDefaultSnatStatus() { + return defaultSnatStatus_ != null; + } + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * + * @return The defaultSnatStatus. + */ + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus() { + return defaultSnatStatus_ == null + ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() + : defaultSnatStatus_; + } + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + @java.lang.Override + public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { + return getDefaultSnatStatus(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -274,6 +349,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableIntraNodeVisibility_ != false) { output.writeBool(5, enableIntraNodeVisibility_); } + if (defaultSnatStatus_ != null) { + output.writeMessage(7, getDefaultSnatStatus()); + } unknownFields.writeTo(output); } @@ -292,6 +370,9 @@ public int getSerializedSize() { if (enableIntraNodeVisibility_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableIntraNodeVisibility_); } + if (defaultSnatStatus_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDefaultSnatStatus()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -310,6 +391,10 @@ public boolean equals(final java.lang.Object obj) { if (!getNetwork().equals(other.getNetwork())) return false; if (!getSubnetwork().equals(other.getSubnetwork())) return false; if (getEnableIntraNodeVisibility() != other.getEnableIntraNodeVisibility()) return false; + if (hasDefaultSnatStatus() != other.hasDefaultSnatStatus()) return false; + if (hasDefaultSnatStatus()) { + if (!getDefaultSnatStatus().equals(other.getDefaultSnatStatus())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,6 +412,10 @@ public int hashCode() { hash = (53 * hash) + getSubnetwork().hashCode(); hash = (37 * hash) + ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntraNodeVisibility()); + if (hasDefaultSnatStatus()) { + hash = (37 * hash) + DEFAULT_SNAT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getDefaultSnatStatus().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -477,6 +566,12 @@ public Builder clear() { enableIntraNodeVisibility_ = false; + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = null; + } else { + defaultSnatStatus_ = null; + defaultSnatStatusBuilder_ = null; + } return this; } @@ -507,6 +602,11 @@ public com.google.container.v1.NetworkConfig buildPartial() { result.network_ = network_; result.subnetwork_ = subnetwork_; result.enableIntraNodeVisibility_ = enableIntraNodeVisibility_; + if (defaultSnatStatusBuilder_ == null) { + result.defaultSnatStatus_ = defaultSnatStatus_; + } else { + result.defaultSnatStatus_ = defaultSnatStatusBuilder_.build(); + } onBuilt(); return result; } @@ -567,6 +667,9 @@ public Builder mergeFrom(com.google.container.v1.NetworkConfig other) { if (other.getEnableIntraNodeVisibility() != false) { setEnableIntraNodeVisibility(other.getEnableIntraNodeVisibility()); } + if (other.hasDefaultSnatStatus()) { + mergeDefaultSnatStatus(other.getDefaultSnatStatus()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -602,9 +705,9 @@ public Builder mergeFrom( * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which
-     * the cluster is connected.
-     * Example: projects/my-project/global/networks/my-network
+     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
      * 
* * string network = 1; @@ -627,9 +730,9 @@ public java.lang.String getNetwork() { * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which
-     * the cluster is connected.
-     * Example: projects/my-project/global/networks/my-network
+     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
      * 
* * string network = 1; @@ -652,9 +755,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which
-     * the cluster is connected.
-     * Example: projects/my-project/global/networks/my-network
+     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
      * 
* * string network = 1; @@ -676,9 +779,9 @@ public Builder setNetwork(java.lang.String value) { * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which
-     * the cluster is connected.
-     * Example: projects/my-project/global/networks/my-network
+     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
      * 
* * string network = 1; @@ -696,9 +799,9 @@ public Builder clearNetwork() { * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which
-     * the cluster is connected.
-     * Example: projects/my-project/global/networks/my-network
+     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
      * 
* * string network = 1; @@ -723,8 +826,9 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * *
      * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
      * 
* * string subnetwork = 2; @@ -747,8 +851,9 @@ public java.lang.String getSubnetwork() { * *
      * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
      * 
* * string subnetwork = 2; @@ -771,8 +876,9 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * *
      * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
      * 
* * string subnetwork = 2; @@ -794,8 +900,9 @@ public Builder setSubnetwork(java.lang.String value) { * *
      * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
      * 
* * string subnetwork = 2; @@ -813,8 +920,9 @@ public Builder clearSubnetwork() { * *
      * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
      * 
* * string subnetwork = 2; @@ -888,6 +996,219 @@ public Builder clearEnableIntraNodeVisibility() { return this; } + private com.google.container.v1.DefaultSnatStatus defaultSnatStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, + com.google.container.v1.DefaultSnatStatus.Builder, + com.google.container.v1.DefaultSnatStatusOrBuilder> + defaultSnatStatusBuilder_; + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * + * @return Whether the defaultSnatStatus field is set. + */ + public boolean hasDefaultSnatStatus() { + return defaultSnatStatusBuilder_ != null || defaultSnatStatus_ != null; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * + * @return The defaultSnatStatus. + */ + public com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus() { + if (defaultSnatStatusBuilder_ == null) { + return defaultSnatStatus_ == null + ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() + : defaultSnatStatus_; + } else { + return defaultSnatStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder setDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { + if (defaultSnatStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultSnatStatus_ = value; + onChanged(); + } else { + defaultSnatStatusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder setDefaultSnatStatus( + com.google.container.v1.DefaultSnatStatus.Builder builderForValue) { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = builderForValue.build(); + onChanged(); + } else { + defaultSnatStatusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder mergeDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { + if (defaultSnatStatusBuilder_ == null) { + if (defaultSnatStatus_ != null) { + defaultSnatStatus_ = + com.google.container.v1.DefaultSnatStatus.newBuilder(defaultSnatStatus_) + .mergeFrom(value) + .buildPartial(); + } else { + defaultSnatStatus_ = value; + } + onChanged(); + } else { + defaultSnatStatusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder clearDefaultSnatStatus() { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = null; + onChanged(); + } else { + defaultSnatStatus_ = null; + defaultSnatStatusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public com.google.container.v1.DefaultSnatStatus.Builder getDefaultSnatStatusBuilder() { + + onChanged(); + return getDefaultSnatStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { + if (defaultSnatStatusBuilder_ != null) { + return defaultSnatStatusBuilder_.getMessageOrBuilder(); + } else { + return defaultSnatStatus_ == null + ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() + : defaultSnatStatus_; + } + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, + com.google.container.v1.DefaultSnatStatus.Builder, + com.google.container.v1.DefaultSnatStatusOrBuilder> + getDefaultSnatStatusFieldBuilder() { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, + com.google.container.v1.DefaultSnatStatus.Builder, + com.google.container.v1.DefaultSnatStatusOrBuilder>( + getDefaultSnatStatus(), getParentForChildren(), isClean()); + defaultSnatStatus_ = null; + } + return defaultSnatStatusBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java index b8b06744..28a283cd 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java @@ -28,9 +28,9 @@ public interface NetworkConfigOrBuilder * *
    * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which
-   * the cluster is connected.
-   * Example: projects/my-project/global/networks/my-network
+   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
    * 
* * string network = 1; @@ -43,9 +43,9 @@ public interface NetworkConfigOrBuilder * *
    * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which
-   * the cluster is connected.
-   * Example: projects/my-project/global/networks/my-network
+   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
    * 
* * string network = 1; @@ -59,8 +59,9 @@ public interface NetworkConfigOrBuilder * *
    * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
    * 
* * string subnetwork = 2; @@ -73,8 +74,9 @@ public interface NetworkConfigOrBuilder * *
    * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
    * 
* * string subnetwork = 2; @@ -96,4 +98,48 @@ public interface NetworkConfigOrBuilder * @return The enableIntraNodeVisibility. */ boolean getEnableIntraNodeVisibility(); + + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * + * @return Whether the defaultSnatStatus field is set. + */ + boolean hasDefaultSnatStatus(); + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * + * @return The defaultSnatStatus. + */ + com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus(); + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java index d5588bbd..85c0b973 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java @@ -47,6 +47,8 @@ private NodeConfig() { diskType_ = ""; minCpuPlatform_ = ""; taints_ = java.util.Collections.emptyList(); + nodeGroup_ = ""; + bootDiskKmsKey_ = ""; } @java.lang.Override @@ -187,6 +189,22 @@ private NodeConfig( java.lang.String s = input.readStringRequireUtf8(); minCpuPlatform_ = s; + break; + } + case 114: + { + com.google.container.v1.WorkloadMetadataConfig.Builder subBuilder = null; + if (workloadMetadataConfig_ != null) { + subBuilder = workloadMetadataConfig_.toBuilder(); + } + workloadMetadataConfig_ = + input.readMessage( + com.google.container.v1.WorkloadMetadataConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workloadMetadataConfig_); + workloadMetadataConfig_ = subBuilder.buildPartial(); + } + break; } case 122: @@ -199,6 +217,45 @@ private NodeConfig( input.readMessage(com.google.container.v1.NodeTaint.parser(), extensionRegistry)); break; } + case 138: + { + com.google.container.v1.SandboxConfig.Builder subBuilder = null; + if (sandboxConfig_ != null) { + subBuilder = sandboxConfig_.toBuilder(); + } + sandboxConfig_ = + input.readMessage( + com.google.container.v1.SandboxConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sandboxConfig_); + sandboxConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodeGroup_ = s; + break; + } + case 154: + { + com.google.container.v1.ReservationAffinity.Builder subBuilder = null; + if (reservationAffinity_ != null) { + subBuilder = reservationAffinity_.toBuilder(); + } + reservationAffinity_ = + input.readMessage( + com.google.container.v1.ReservationAffinity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(reservationAffinity_); + reservationAffinity_ = subBuilder.buildPartial(); + } + + break; + } case 162: { com.google.container.v1.ShieldedInstanceConfig.Builder subBuilder = null; @@ -213,6 +270,13 @@ private NodeConfig( shieldedInstanceConfig_ = subBuilder.buildPartial(); } + break; + } + case 186: + { + java.lang.String s = input.readStringRequireUtf8(); + + bootDiskKmsKey_ = s; break; } default: @@ -281,10 +345,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * *
    * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types) (e.g.
-   * `n1-standard-1`).
-   * If unspecified, the default machine type is
-   * `n1-standard-1`.
+   * type](https://cloud.google.com/compute/docs/machine-types)
+   * If unspecified, the default machine type is `e2-medium`.
    * 
* * string machine_type = 1; @@ -308,10 +370,8 @@ public java.lang.String getMachineType() { * *
    * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types) (e.g.
-   * `n1-standard-1`).
-   * If unspecified, the default machine type is
-   * `n1-standard-1`.
+   * type](https://cloud.google.com/compute/docs/machine-types)
+   * If unspecified, the default machine type is `e2-medium`.
    * 
* * string machine_type = 1; @@ -365,7 +425,8 @@ public int getDiskSizeGb() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -389,7 +450,8 @@ public com.google.protobuf.ProtocolStringList getOauthScopesList() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -413,7 +475,8 @@ public int getOauthScopesCount() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -438,7 +501,8 @@ public java.lang.String getOauthScopes(int index) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -458,8 +522,9 @@ public 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.
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
    * 
* * string service_account = 9; @@ -482,8 +547,9 @@ public 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.
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
    * 
* * string service_account = 9; @@ -533,29 +599,31 @@ public 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
+   * 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"
-   *  "containerd-configure-sh"
-   *  "enable-os-login"
-   *  "gci-update-strategy"
-   *  "gci-ensure-gke-docker"
-   *  "instance-template"
-   *  "kube-env"
-   *  "startup-script"
-   *  "user-data"
-   *  "disable-address-manager"
-   *  "windows-startup-script-ps1"
-   *  "common-psm1"
-   *  "k8s-node-setup-psm1"
-   *  "install-ssh-psm1"
-   *  "user-profile-psm1"
-   *  "serial-port-logging-enable"
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
    * 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.
@@ -582,29 +650,31 @@ public 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
+   * 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"
-   *  "containerd-configure-sh"
-   *  "enable-os-login"
-   *  "gci-update-strategy"
-   *  "gci-ensure-gke-docker"
-   *  "instance-template"
-   *  "kube-env"
-   *  "startup-script"
-   *  "user-data"
-   *  "disable-address-manager"
-   *  "windows-startup-script-ps1"
-   *  "common-psm1"
-   *  "k8s-node-setup-psm1"
-   *  "install-ssh-psm1"
-   *  "user-profile-psm1"
-   *  "serial-port-logging-enable"
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
    * 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.
@@ -622,29 +692,31 @@ public 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
+   * 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"
-   *  "containerd-configure-sh"
-   *  "enable-os-login"
-   *  "gci-update-strategy"
-   *  "gci-ensure-gke-docker"
-   *  "instance-template"
-   *  "kube-env"
-   *  "startup-script"
-   *  "user-data"
-   *  "disable-address-manager"
-   *  "windows-startup-script-ps1"
-   *  "common-psm1"
-   *  "k8s-node-setup-psm1"
-   *  "install-ssh-psm1"
-   *  "user-profile-psm1"
-   *  "serial-port-logging-enable"
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
    * 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.
@@ -667,29 +739,31 @@ public java.lang.String getMetadataOrDefault(
    *
    * 
    * 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
+   * 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"
-   *  "containerd-configure-sh"
-   *  "enable-os-login"
-   *  "gci-update-strategy"
-   *  "gci-ensure-gke-docker"
-   *  "instance-template"
-   *  "kube-env"
-   *  "startup-script"
-   *  "user-data"
-   *  "disable-address-manager"
-   *  "windows-startup-script-ps1"
-   *  "common-psm1"
-   *  "k8s-node-setup-psm1"
-   *  "install-ssh-psm1"
-   *  "user-profile-psm1"
-   *  "serial-port-logging-enable"
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
    * 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.
@@ -1087,7 +1161,8 @@ public com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuild
    *
    *
    * 
-   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
    * If unspecified, the default disk type is 'pd-standard'
    * 
* @@ -1111,7 +1186,8 @@ public java.lang.String getDiskType() { * * *
-   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
    * If unspecified, the default disk type is 'pd-standard'
    * 
* @@ -1141,8 +1217,8 @@ public 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 + * `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) *
@@ -1170,8 +1246,8 @@ public 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 + * `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) *
@@ -1193,6 +1269,55 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { } } + public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfig_ != null; + } + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + return workloadMetadataConfig_ == null + ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + return getWorkloadMetadataConfig(); + } + public static final int TAINTS_FIELD_NUMBER = 15; private java.util.List taints_; /** @@ -1272,6 +1397,166 @@ public com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index) return taints_.get(index); } + public static final int SANDBOX_CONFIG_FIELD_NUMBER = 17; + private com.google.container.v1.SandboxConfig sandboxConfig_; + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + * + * @return Whether the sandboxConfig field is set. + */ + @java.lang.Override + public boolean hasSandboxConfig() { + return sandboxConfig_ != null; + } + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + * + * @return The sandboxConfig. + */ + @java.lang.Override + public com.google.container.v1.SandboxConfig getSandboxConfig() { + return sandboxConfig_ == null + ? com.google.container.v1.SandboxConfig.getDefaultInstance() + : sandboxConfig_; + } + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + @java.lang.Override + public com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { + return getSandboxConfig(); + } + + public static final int NODE_GROUP_FIELD_NUMBER = 18; + private volatile java.lang.Object nodeGroup_; + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The nodeGroup. + */ + @java.lang.Override + public java.lang.String getNodeGroup() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroup_ = s; + return s; + } + } + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The bytes for nodeGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeGroupBytes() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 19; + private com.google.container.v1.ReservationAffinity reservationAffinity_; + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * + * @return Whether the reservationAffinity field is set. + */ + @java.lang.Override + public boolean hasReservationAffinity() { + return reservationAffinity_ != null; + } + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * + * @return The reservationAffinity. + */ + @java.lang.Override + public com.google.container.v1.ReservationAffinity getReservationAffinity() { + return reservationAffinity_ == null + ? com.google.container.v1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; + } + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + @java.lang.Override + public com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { + return getReservationAffinity(); + } + public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 20; private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; /** @@ -1321,6 +1606,65 @@ public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig( return getShieldedInstanceConfig(); } + public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 23; + private volatile java.lang.Object bootDiskKmsKey_; + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bootDiskKmsKey. + */ + @java.lang.Override + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } + } + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bytes for bootDiskKmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1372,12 +1716,27 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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)); } + if (sandboxConfig_ != null) { + output.writeMessage(17, getSandboxConfig()); + } + if (!getNodeGroupBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, nodeGroup_); + } + if (reservationAffinity_ != null) { + output.writeMessage(19, getReservationAffinity()); + } if (shieldedInstanceConfig_ != null) { output.writeMessage(20, getShieldedInstanceConfig()); } + if (!getBootDiskKmsKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, bootDiskKmsKey_); + } unknownFields.writeTo(output); } @@ -1450,13 +1809,30 @@ public int getSerializedSize() { 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)); } + if (sandboxConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getSandboxConfig()); + } + if (!getNodeGroupBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, nodeGroup_); + } + if (reservationAffinity_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(19, getReservationAffinity()); + } if (shieldedInstanceConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getShieldedInstanceConfig()); } + if (!getBootDiskKmsKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, bootDiskKmsKey_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1485,11 +1861,25 @@ public boolean equals(final java.lang.Object obj) { if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; if (!getDiskType().equals(other.getDiskType())) return false; if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; + if (hasWorkloadMetadataConfig() != other.hasWorkloadMetadataConfig()) return false; + if (hasWorkloadMetadataConfig()) { + if (!getWorkloadMetadataConfig().equals(other.getWorkloadMetadataConfig())) return false; + } if (!getTaintsList().equals(other.getTaintsList())) return false; + if (hasSandboxConfig() != other.hasSandboxConfig()) return false; + if (hasSandboxConfig()) { + if (!getSandboxConfig().equals(other.getSandboxConfig())) return false; + } + if (!getNodeGroup().equals(other.getNodeGroup())) return false; + if (hasReservationAffinity() != other.hasReservationAffinity()) return false; + if (hasReservationAffinity()) { + if (!getReservationAffinity().equals(other.getReservationAffinity())) return false; + } if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } + if (!getBootDiskKmsKey().equals(other.getBootDiskKmsKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1537,14 +1927,30 @@ public int hashCode() { 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(); } + if (hasSandboxConfig()) { + hash = (37 * hash) + SANDBOX_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSandboxConfig().hashCode(); + } + hash = (37 * hash) + NODE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getNodeGroup().hashCode(); + if (hasReservationAffinity()) { + hash = (37 * hash) + RESERVATION_AFFINITY_FIELD_NUMBER; + hash = (53 * hash) + getReservationAffinity().hashCode(); + } if (hasShieldedInstanceConfig()) { hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); } + hash = (37 * hash) + BOOT_DISK_KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getBootDiskKmsKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1744,18 +2150,40 @@ public Builder clear() { minCpuPlatform_ = ""; + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } if (taintsBuilder_ == null) { taints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { taintsBuilder_.clear(); } + if (sandboxConfigBuilder_ == null) { + sandboxConfig_ = null; + } else { + sandboxConfig_ = null; + sandboxConfigBuilder_ = null; + } + nodeGroup_ = ""; + + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = null; + } else { + reservationAffinity_ = null; + reservationAffinityBuilder_ = null; + } if (shieldedInstanceConfigBuilder_ == null) { shieldedInstanceConfig_ = null; } else { shieldedInstanceConfig_ = null; shieldedInstanceConfigBuilder_ = null; } + bootDiskKmsKey_ = ""; + return this; } @@ -1814,6 +2242,11 @@ public com.google.container.v1.NodeConfig buildPartial() { } result.diskType_ = diskType_; result.minCpuPlatform_ = minCpuPlatform_; + if (workloadMetadataConfigBuilder_ == null) { + result.workloadMetadataConfig_ = workloadMetadataConfig_; + } else { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); + } if (taintsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { taints_ = java.util.Collections.unmodifiableList(taints_); @@ -1823,11 +2256,23 @@ public com.google.container.v1.NodeConfig buildPartial() { } else { result.taints_ = taintsBuilder_.build(); } + if (sandboxConfigBuilder_ == null) { + result.sandboxConfig_ = sandboxConfig_; + } else { + result.sandboxConfig_ = sandboxConfigBuilder_.build(); + } + result.nodeGroup_ = nodeGroup_; + if (reservationAffinityBuilder_ == null) { + result.reservationAffinity_ = reservationAffinity_; + } else { + result.reservationAffinity_ = reservationAffinityBuilder_.build(); + } if (shieldedInstanceConfigBuilder_ == null) { result.shieldedInstanceConfig_ = shieldedInstanceConfig_; } else { result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); } + result.bootDiskKmsKey_ = bootDiskKmsKey_; onBuilt(); return result; } @@ -1955,6 +2400,9 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { minCpuPlatform_ = other.minCpuPlatform_; onChanged(); } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } if (taintsBuilder_ == null) { if (!other.taints_.isEmpty()) { if (taints_.isEmpty()) { @@ -1982,9 +2430,23 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { } } } + if (other.hasSandboxConfig()) { + mergeSandboxConfig(other.getSandboxConfig()); + } + if (!other.getNodeGroup().isEmpty()) { + nodeGroup_ = other.nodeGroup_; + onChanged(); + } + if (other.hasReservationAffinity()) { + mergeReservationAffinity(other.getReservationAffinity()); + } if (other.hasShieldedInstanceConfig()) { mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); } + if (!other.getBootDiskKmsKey().isEmpty()) { + bootDiskKmsKey_ = other.bootDiskKmsKey_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2022,10 +2484,8 @@ public Builder mergeFrom( * *
      * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types) (e.g.
-     * `n1-standard-1`).
-     * If unspecified, the default machine type is
-     * `n1-standard-1`.
+     * type](https://cloud.google.com/compute/docs/machine-types)
+     * If unspecified, the default machine type is `e2-medium`.
      * 
* * string machine_type = 1; @@ -2048,10 +2508,8 @@ public java.lang.String getMachineType() { * *
      * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types) (e.g.
-     * `n1-standard-1`).
-     * If unspecified, the default machine type is
-     * `n1-standard-1`.
+     * type](https://cloud.google.com/compute/docs/machine-types)
+     * If unspecified, the default machine type is `e2-medium`.
      * 
* * string machine_type = 1; @@ -2074,10 +2532,8 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { * *
      * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types) (e.g.
-     * `n1-standard-1`).
-     * If unspecified, the default machine type is
-     * `n1-standard-1`.
+     * type](https://cloud.google.com/compute/docs/machine-types)
+     * If unspecified, the default machine type is `e2-medium`.
      * 
* * string machine_type = 1; @@ -2099,10 +2555,8 @@ public Builder setMachineType(java.lang.String value) { * *
      * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types) (e.g.
-     * `n1-standard-1`).
-     * If unspecified, the default machine type is
-     * `n1-standard-1`.
+     * type](https://cloud.google.com/compute/docs/machine-types)
+     * If unspecified, the default machine type is `e2-medium`.
      * 
* * string machine_type = 1; @@ -2120,10 +2574,8 @@ public Builder clearMachineType() { * *
      * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types) (e.g.
-     * `n1-standard-1`).
-     * If unspecified, the default machine type is
-     * `n1-standard-1`.
+     * type](https://cloud.google.com/compute/docs/machine-types)
+     * If unspecified, the default machine type is `e2-medium`.
      * 
* * string machine_type = 1; @@ -2221,7 +2673,8 @@ private void ensureOauthScopesIsMutable() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. *
@@ -2245,7 +2698,8 @@ public com.google.protobuf.ProtocolStringList getOauthScopesList() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. *
@@ -2269,7 +2723,8 @@ public int getOauthScopesCount() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -2294,7 +2749,8 @@ public java.lang.String getOauthScopes(int index) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -2319,7 +2775,8 @@ public com.google.protobuf.ByteString getOauthScopesBytes(int index) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -2351,7 +2808,8 @@ public Builder setOauthScopes(int index, java.lang.String value) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -2382,7 +2840,8 @@ public Builder addOauthScopes(java.lang.String value) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -2410,7 +2869,8 @@ public Builder addAllOauthScopes(java.lang.Iterable values) { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -2437,7 +2897,8 @@ public Builder clearOauthScopes() { * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -2463,8 +2924,9 @@ public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { * * *
-     * 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.
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
      * 
* * string service_account = 9; @@ -2486,8 +2948,9 @@ public 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.
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
      * 
* * string service_account = 9; @@ -2509,8 +2972,9 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
-     * 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.
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
      * 
* * string service_account = 9; @@ -2531,8 +2995,9 @@ public Builder setServiceAccount(java.lang.String value) { * * *
-     * 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.
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
      * 
* * string service_account = 9; @@ -2549,8 +3014,9 @@ public Builder clearServiceAccount() { * * *
-     * 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.
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
      * 
* * string service_account = 9; @@ -2600,29 +3066,31 @@ public 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
+     * 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"
-     *  "containerd-configure-sh"
-     *  "enable-os-login"
-     *  "gci-update-strategy"
-     *  "gci-ensure-gke-docker"
-     *  "instance-template"
-     *  "kube-env"
-     *  "startup-script"
-     *  "user-data"
-     *  "disable-address-manager"
-     *  "windows-startup-script-ps1"
-     *  "common-psm1"
-     *  "k8s-node-setup-psm1"
-     *  "install-ssh-psm1"
-     *  "user-profile-psm1"
-     *  "serial-port-logging-enable"
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
      * 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.
@@ -2649,29 +3117,31 @@ public 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
+     * 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"
-     *  "containerd-configure-sh"
-     *  "enable-os-login"
-     *  "gci-update-strategy"
-     *  "gci-ensure-gke-docker"
-     *  "instance-template"
-     *  "kube-env"
-     *  "startup-script"
-     *  "user-data"
-     *  "disable-address-manager"
-     *  "windows-startup-script-ps1"
-     *  "common-psm1"
-     *  "k8s-node-setup-psm1"
-     *  "install-ssh-psm1"
-     *  "user-profile-psm1"
-     *  "serial-port-logging-enable"
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
      * 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.
@@ -2689,29 +3159,31 @@ public 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
+     * 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"
-     *  "containerd-configure-sh"
-     *  "enable-os-login"
-     *  "gci-update-strategy"
-     *  "gci-ensure-gke-docker"
-     *  "instance-template"
-     *  "kube-env"
-     *  "startup-script"
-     *  "user-data"
-     *  "disable-address-manager"
-     *  "windows-startup-script-ps1"
-     *  "common-psm1"
-     *  "k8s-node-setup-psm1"
-     *  "install-ssh-psm1"
-     *  "user-profile-psm1"
-     *  "serial-port-logging-enable"
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
      * 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.
@@ -2734,29 +3206,31 @@ public java.lang.String getMetadataOrDefault(
      *
      * 
      * 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
+     * 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"
-     *  "containerd-configure-sh"
-     *  "enable-os-login"
-     *  "gci-update-strategy"
-     *  "gci-ensure-gke-docker"
-     *  "instance-template"
-     *  "kube-env"
-     *  "startup-script"
-     *  "user-data"
-     *  "disable-address-manager"
-     *  "windows-startup-script-ps1"
-     *  "common-psm1"
-     *  "k8s-node-setup-psm1"
-     *  "install-ssh-psm1"
-     *  "user-profile-psm1"
-     *  "serial-port-logging-enable"
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
      * 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.
@@ -2786,29 +3260,31 @@ public Builder clearMetadata() {
      *
      * 
      * 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
+     * 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"
-     *  "containerd-configure-sh"
-     *  "enable-os-login"
-     *  "gci-update-strategy"
-     *  "gci-ensure-gke-docker"
-     *  "instance-template"
-     *  "kube-env"
-     *  "startup-script"
-     *  "user-data"
-     *  "disable-address-manager"
-     *  "windows-startup-script-ps1"
-     *  "common-psm1"
-     *  "k8s-node-setup-psm1"
-     *  "install-ssh-psm1"
-     *  "user-profile-psm1"
-     *  "serial-port-logging-enable"
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
      * 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.
@@ -2834,29 +3310,31 @@ public java.util.Map getMutableMetadata() {
      *
      * 
      * 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
+     * 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"
-     *  "containerd-configure-sh"
-     *  "enable-os-login"
-     *  "gci-update-strategy"
-     *  "gci-ensure-gke-docker"
-     *  "instance-template"
-     *  "kube-env"
-     *  "startup-script"
-     *  "user-data"
-     *  "disable-address-manager"
-     *  "windows-startup-script-ps1"
-     *  "common-psm1"
-     *  "k8s-node-setup-psm1"
-     *  "install-ssh-psm1"
-     *  "user-profile-psm1"
-     *  "serial-port-logging-enable"
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
      * 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.
@@ -2880,29 +3358,31 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) {
      *
      * 
      * 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
+     * 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"
-     *  "containerd-configure-sh"
-     *  "enable-os-login"
-     *  "gci-update-strategy"
-     *  "gci-ensure-gke-docker"
-     *  "instance-template"
-     *  "kube-env"
-     *  "startup-script"
-     *  "user-data"
-     *  "disable-address-manager"
-     *  "windows-startup-script-ps1"
-     *  "common-psm1"
-     *  "k8s-node-setup-psm1"
-     *  "install-ssh-psm1"
-     *  "user-profile-psm1"
-     *  "serial-port-logging-enable"
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
      * 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.
@@ -3942,7 +4422,8 @@ public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder(
      *
      *
      * 
-     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
      * If unspecified, the default disk type is 'pd-standard'
      * 
* @@ -3965,7 +4446,8 @@ public java.lang.String getDiskType() { * * *
-     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
      * If unspecified, the default disk type is 'pd-standard'
      * 
* @@ -3988,7 +4470,8 @@ public com.google.protobuf.ByteString getDiskTypeBytes() { * * *
-     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
      * If unspecified, the default disk type is 'pd-standard'
      * 
* @@ -4010,7 +4493,8 @@ public Builder setDiskType(java.lang.String value) { * * *
-     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
      * If unspecified, the default disk type is 'pd-standard'
      * 
* @@ -4028,7 +4512,8 @@ public Builder clearDiskType() { * * *
-     * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
      * If unspecified, the default disk type is 'pd-standard'
      * 
* @@ -4056,8 +4541,8 @@ public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { * 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 + * `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) *
@@ -4084,8 +4569,8 @@ public 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 + * `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) *
@@ -4112,8 +4597,8 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { * 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 + * `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) *
@@ -4139,8 +4624,8 @@ public Builder setMinCpuPlatform(java.lang.String value) { * 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 + * `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) *
@@ -4162,8 +4647,8 @@ public Builder clearMinCpuPlatform() { * 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 + * `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) *
@@ -4184,34 +4669,223 @@ public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List taints_ = - java.util.Collections.emptyList(); - - private void ensureTaintsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - taints_ = new java.util.ArrayList(taints_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodeTaint, - com.google.container.v1.NodeTaint.Builder, - com.google.container.v1.NodeTaintOrBuilder> - taintsBuilder_; - + private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, + com.google.container.v1.WorkloadMetadataConfig.Builder, + com.google.container.v1.WorkloadMetadataConfigOrBuilder> + workloadMetadataConfigBuilder_; /** * * *
-     * 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/
+     * The workload metadata configuration for this node.
      * 
* - * repeated .google.container.v1.NodeTaint taints = 15; + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. */ - public java.util.List getTaintsList() { + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + return workloadMetadataConfig_ == null + ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } else { + return workloadMetadataConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig(com.google.container.v1.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.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1.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.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder mergeWorkloadMetadataConfig( + com.google.container.v1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (workloadMetadataConfig_ != null) { + workloadMetadataConfig_ = + com.google.container.v1.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.v1.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.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1.WorkloadMetadataConfig.Builder + getWorkloadMetadataConfigBuilder() { + + onChanged(); + return getWorkloadMetadataConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + if (workloadMetadataConfigBuilder_ != null) { + return workloadMetadataConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadMetadataConfig_ == null + ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, + com.google.container.v1.WorkloadMetadataConfig.Builder, + com.google.container.v1.WorkloadMetadataConfigOrBuilder> + getWorkloadMetadataConfigFieldBuilder() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, + com.google.container.v1.WorkloadMetadataConfig.Builder, + com.google.container.v1.WorkloadMetadataConfigOrBuilder>( + getWorkloadMetadataConfig(), getParentForChildren(), isClean()); + workloadMetadataConfig_ = null; + } + return workloadMetadataConfigBuilder_; + } + + private java.util.List taints_ = + java.util.Collections.emptyList(); + + private void ensureTaintsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + taints_ = new java.util.ArrayList(taints_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodeTaint, + com.google.container.v1.NodeTaint.Builder, + com.google.container.v1.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.v1.NodeTaint taints = 15; + */ + public java.util.List getTaintsList() { if (taintsBuilder_ == null) { return java.util.Collections.unmodifiableList(taints_); } else { @@ -4566,64 +5240,64 @@ public java.util.List getTaintsBuilde return taintsBuilder_; } - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.container.v1.SandboxConfig sandboxConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder> - shieldedInstanceConfigBuilder_; + com.google.container.v1.SandboxConfig, + com.google.container.v1.SandboxConfig.Builder, + com.google.container.v1.SandboxConfigOrBuilder> + sandboxConfigBuilder_; /** * * *
-     * Shielded Instance options.
+     * Sandbox configuration for this node.
      * 
* - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * .google.container.v1.SandboxConfig sandbox_config = 17; * - * @return Whether the shieldedInstanceConfig field is set. + * @return Whether the sandboxConfig field is set. */ - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; + public boolean hasSandboxConfig() { + return sandboxConfigBuilder_ != null || sandboxConfig_ != null; } /** * * *
-     * Shielded Instance options.
+     * Sandbox configuration for this node.
      * 
* - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * .google.container.v1.SandboxConfig sandbox_config = 17; * - * @return The shieldedInstanceConfig. + * @return The sandboxConfig. */ - public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + public com.google.container.v1.SandboxConfig getSandboxConfig() { + if (sandboxConfigBuilder_ == null) { + return sandboxConfig_ == null + ? com.google.container.v1.SandboxConfig.getDefaultInstance() + : sandboxConfig_; } else { - return shieldedInstanceConfigBuilder_.getMessage(); + return sandboxConfigBuilder_.getMessage(); } } /** * * *
-     * Shielded Instance options.
+     * Sandbox configuration for this node.
      * 
* - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * .google.container.v1.SandboxConfig sandbox_config = 17; */ - public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { + public Builder setSandboxConfig(com.google.container.v1.SandboxConfig value) { + if (sandboxConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - shieldedInstanceConfig_ = value; + sandboxConfig_ = value; onChanged(); } else { - shieldedInstanceConfigBuilder_.setMessage(value); + sandboxConfigBuilder_.setMessage(value); } return this; @@ -4632,18 +5306,17 @@ public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanc * * *
-     * Shielded Instance options.
+     * Sandbox configuration for this node.
      * 
* - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * .google.container.v1.SandboxConfig sandbox_config = 17; */ - public Builder setShieldedInstanceConfig( - com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = builderForValue.build(); + public Builder setSandboxConfig(com.google.container.v1.SandboxConfig.Builder builderForValue) { + if (sandboxConfigBuilder_ == null) { + sandboxConfig_ = builderForValue.build(); onChanged(); } else { - shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + sandboxConfigBuilder_.setMessage(builderForValue.build()); } return this; @@ -4652,25 +5325,24 @@ public Builder setShieldedInstanceConfig( * * *
-     * Shielded Instance options.
+     * Sandbox configuration for this node.
      * 
* - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * .google.container.v1.SandboxConfig sandbox_config = 17; */ - public Builder mergeShieldedInstanceConfig( - com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (shieldedInstanceConfig_ != null) { - shieldedInstanceConfig_ = - com.google.container.v1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_) + public Builder mergeSandboxConfig(com.google.container.v1.SandboxConfig value) { + if (sandboxConfigBuilder_ == null) { + if (sandboxConfig_ != null) { + sandboxConfig_ = + com.google.container.v1.SandboxConfig.newBuilder(sandboxConfig_) .mergeFrom(value) .buildPartial(); } else { - shieldedInstanceConfig_ = value; + sandboxConfig_ = value; } onChanged(); } else { - shieldedInstanceConfigBuilder_.mergeFrom(value); + sandboxConfigBuilder_.mergeFrom(value); } return this; @@ -4679,18 +5351,18 @@ public Builder mergeShieldedInstanceConfig( * * *
-     * Shielded Instance options.
+     * Sandbox configuration for this node.
      * 
* - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * .google.container.v1.SandboxConfig sandbox_config = 17; */ - public Builder clearShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; + public Builder clearSandboxConfig() { + if (sandboxConfigBuilder_ == null) { + sandboxConfig_ = null; onChanged(); } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; + sandboxConfig_ = null; + sandboxConfigBuilder_ = null; } return this; @@ -4699,60 +5371,712 @@ public Builder clearShieldedInstanceConfig() { * * *
-     * Shielded Instance options.
+     * Sandbox configuration for this node.
      * 
* - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * .google.container.v1.SandboxConfig sandbox_config = 17; */ - public com.google.container.v1.ShieldedInstanceConfig.Builder - getShieldedInstanceConfigBuilder() { + public com.google.container.v1.SandboxConfig.Builder getSandboxConfigBuilder() { onChanged(); - return getShieldedInstanceConfigFieldBuilder().getBuilder(); + return getSandboxConfigFieldBuilder().getBuilder(); } /** * * *
-     * Shielded Instance options.
+     * Sandbox configuration for this node.
      * 
* - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * .google.container.v1.SandboxConfig sandbox_config = 17; */ - public com.google.container.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - if (shieldedInstanceConfigBuilder_ != null) { - return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + public com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { + if (sandboxConfigBuilder_ != null) { + return sandboxConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + return sandboxConfig_ == null + ? com.google.container.v1.SandboxConfig.getDefaultInstance() + : sandboxConfig_; } } /** * * *
-     * Shielded Instance options.
+     * Sandbox configuration for this node.
      * 
* - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * .google.container.v1.SandboxConfig sandbox_config = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder> - getShieldedInstanceConfigFieldBuilder() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = + com.google.container.v1.SandboxConfig, + com.google.container.v1.SandboxConfig.Builder, + com.google.container.v1.SandboxConfigOrBuilder> + getSandboxConfigFieldBuilder() { + if (sandboxConfigBuilder_ == null) { + sandboxConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), getParentForChildren(), isClean()); - shieldedInstanceConfig_ = null; + com.google.container.v1.SandboxConfig, + com.google.container.v1.SandboxConfig.Builder, + com.google.container.v1.SandboxConfigOrBuilder>( + getSandboxConfig(), getParentForChildren(), isClean()); + sandboxConfig_ = null; } - return shieldedInstanceConfigBuilder_; + return sandboxConfigBuilder_; + } + + private java.lang.Object nodeGroup_ = ""; + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @return The nodeGroup. + */ + public java.lang.String getNodeGroup() { + java.lang.Object ref = nodeGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @return The bytes for nodeGroup. + */ + public com.google.protobuf.ByteString getNodeGroupBytes() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @param value The nodeGroup to set. + * @return This builder for chaining. + */ + public Builder setNodeGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeGroup_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @return This builder for chaining. + */ + public Builder clearNodeGroup() { + + nodeGroup_ = getDefaultInstance().getNodeGroup(); + onChanged(); + return this; + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @param value The bytes for nodeGroup to set. + * @return This builder for chaining. + */ + public Builder setNodeGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeGroup_ = value; + onChanged(); + return this; + } + + private com.google.container.v1.ReservationAffinity reservationAffinity_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReservationAffinity, + com.google.container.v1.ReservationAffinity.Builder, + com.google.container.v1.ReservationAffinityOrBuilder> + reservationAffinityBuilder_; + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * + * @return Whether the reservationAffinity field is set. + */ + public boolean hasReservationAffinity() { + return reservationAffinityBuilder_ != null || reservationAffinity_ != null; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * + * @return The reservationAffinity. + */ + public com.google.container.v1.ReservationAffinity getReservationAffinity() { + if (reservationAffinityBuilder_ == null) { + return reservationAffinity_ == null + ? com.google.container.v1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; + } else { + return reservationAffinityBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public Builder setReservationAffinity(com.google.container.v1.ReservationAffinity value) { + if (reservationAffinityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reservationAffinity_ = value; + onChanged(); + } else { + reservationAffinityBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public Builder setReservationAffinity( + com.google.container.v1.ReservationAffinity.Builder builderForValue) { + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = builderForValue.build(); + onChanged(); + } else { + reservationAffinityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public Builder mergeReservationAffinity(com.google.container.v1.ReservationAffinity value) { + if (reservationAffinityBuilder_ == null) { + if (reservationAffinity_ != null) { + reservationAffinity_ = + com.google.container.v1.ReservationAffinity.newBuilder(reservationAffinity_) + .mergeFrom(value) + .buildPartial(); + } else { + reservationAffinity_ = value; + } + onChanged(); + } else { + reservationAffinityBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public Builder clearReservationAffinity() { + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = null; + onChanged(); + } else { + reservationAffinity_ = null; + reservationAffinityBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public com.google.container.v1.ReservationAffinity.Builder getReservationAffinityBuilder() { + + onChanged(); + return getReservationAffinityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { + if (reservationAffinityBuilder_ != null) { + return reservationAffinityBuilder_.getMessageOrBuilder(); + } else { + return reservationAffinity_ == null + ? com.google.container.v1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; + } + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReservationAffinity, + com.google.container.v1.ReservationAffinity.Builder, + com.google.container.v1.ReservationAffinityOrBuilder> + getReservationAffinityFieldBuilder() { + if (reservationAffinityBuilder_ == null) { + reservationAffinityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReservationAffinity, + com.google.container.v1.ReservationAffinity.Builder, + com.google.container.v1.ReservationAffinityOrBuilder>( + getReservationAffinity(), getParentForChildren(), isClean()); + reservationAffinity_ = null; + } + return reservationAffinityBuilder_; + } + + private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, + com.google.container.v1.ShieldedInstanceConfig.Builder, + com.google.container.v1.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return The shieldedInstanceConfig. + */ + public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null + ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder mergeShieldedInstanceConfig( + com.google.container.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (shieldedInstanceConfig_ != null) { + shieldedInstanceConfig_ = + com.google.container.v1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedInstanceConfig_ = value; + } + onChanged(); + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder clearShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + onChanged(); + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public com.google.container.v1.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public com.google.container.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null + ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, + com.google.container.v1.ShieldedInstanceConfig.Builder, + com.google.container.v1.ShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, + com.google.container.v1.ShieldedInstanceConfig.Builder, + com.google.container.v1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + + private java.lang.Object bootDiskKmsKey_ = ""; + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bootDiskKmsKey. + */ + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bytes for bootDiskKmsKey. + */ + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @param value The bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @return This builder for chaining. + */ + public Builder clearBootDiskKmsKey() { + + bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @param value The bytes for bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bootDiskKmsKey_ = value; + onChanged(); + return this; } @java.lang.Override diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java index 8bea69e6..a01dfa87 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java @@ -28,10 +28,8 @@ public interface NodeConfigOrBuilder * *
    * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types) (e.g.
-   * `n1-standard-1`).
-   * If unspecified, the default machine type is
-   * `n1-standard-1`.
+   * type](https://cloud.google.com/compute/docs/machine-types)
+   * If unspecified, the default machine type is `e2-medium`.
    * 
* * string machine_type = 1; @@ -44,10 +42,8 @@ public interface NodeConfigOrBuilder * *
    * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types) (e.g.
-   * `n1-standard-1`).
-   * If unspecified, the default machine type is
-   * `n1-standard-1`.
+   * type](https://cloud.google.com/compute/docs/machine-types)
+   * If unspecified, the default machine type is `e2-medium`.
    * 
* * string machine_type = 1; @@ -83,7 +79,8 @@ public interface NodeConfigOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. *
@@ -105,7 +102,8 @@ public interface NodeConfigOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. *
@@ -127,7 +125,8 @@ public interface NodeConfigOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -150,7 +149,8 @@ public interface NodeConfigOrBuilder * persistent storage on your nodes. * * `https://www.googleapis.com/auth/devstorage.read_only` is required for * communicating with **gcr.io** - * (the [Google Container Registry](https://cloud.google.com/container-registry/)). + * (the [Google Container + * Registry](https://cloud.google.com/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. * @@ -166,8 +166,9 @@ public interface NodeConfigOrBuilder * * *
-   * 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.
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
    * 
* * string service_account = 9; @@ -179,8 +180,9 @@ public interface NodeConfigOrBuilder * * *
-   * 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.
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
    * 
* * string service_account = 9; @@ -194,29 +196,31 @@ public interface NodeConfigOrBuilder * *
    * 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
+   * 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"
-   *  "containerd-configure-sh"
-   *  "enable-os-login"
-   *  "gci-update-strategy"
-   *  "gci-ensure-gke-docker"
-   *  "instance-template"
-   *  "kube-env"
-   *  "startup-script"
-   *  "user-data"
-   *  "disable-address-manager"
-   *  "windows-startup-script-ps1"
-   *  "common-psm1"
-   *  "k8s-node-setup-psm1"
-   *  "install-ssh-psm1"
-   *  "user-profile-psm1"
-   *  "serial-port-logging-enable"
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
    * 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.
@@ -231,29 +235,31 @@ public interface NodeConfigOrBuilder
    *
    * 
    * 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
+   * 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"
-   *  "containerd-configure-sh"
-   *  "enable-os-login"
-   *  "gci-update-strategy"
-   *  "gci-ensure-gke-docker"
-   *  "instance-template"
-   *  "kube-env"
-   *  "startup-script"
-   *  "user-data"
-   *  "disable-address-manager"
-   *  "windows-startup-script-ps1"
-   *  "common-psm1"
-   *  "k8s-node-setup-psm1"
-   *  "install-ssh-psm1"
-   *  "user-profile-psm1"
-   *  "serial-port-logging-enable"
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
    * 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.
@@ -271,29 +277,31 @@ public interface NodeConfigOrBuilder
    *
    * 
    * 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
+   * 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"
-   *  "containerd-configure-sh"
-   *  "enable-os-login"
-   *  "gci-update-strategy"
-   *  "gci-ensure-gke-docker"
-   *  "instance-template"
-   *  "kube-env"
-   *  "startup-script"
-   *  "user-data"
-   *  "disable-address-manager"
-   *  "windows-startup-script-ps1"
-   *  "common-psm1"
-   *  "k8s-node-setup-psm1"
-   *  "install-ssh-psm1"
-   *  "user-profile-psm1"
-   *  "serial-port-logging-enable"
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
    * 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.
@@ -308,29 +316,31 @@ public interface NodeConfigOrBuilder
    *
    * 
    * 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
+   * 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"
-   *  "containerd-configure-sh"
-   *  "enable-os-login"
-   *  "gci-update-strategy"
-   *  "gci-ensure-gke-docker"
-   *  "instance-template"
-   *  "kube-env"
-   *  "startup-script"
-   *  "user-data"
-   *  "disable-address-manager"
-   *  "windows-startup-script-ps1"
-   *  "common-psm1"
-   *  "k8s-node-setup-psm1"
-   *  "install-ssh-psm1"
-   *  "user-profile-psm1"
-   *  "serial-port-logging-enable"
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
    * 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.
@@ -345,29 +355,31 @@ public interface NodeConfigOrBuilder
    *
    * 
    * 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
+   * 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"
-   *  "containerd-configure-sh"
-   *  "enable-os-login"
-   *  "gci-update-strategy"
-   *  "gci-ensure-gke-docker"
-   *  "instance-template"
-   *  "kube-env"
-   *  "startup-script"
-   *  "user-data"
-   *  "disable-address-manager"
-   *  "windows-startup-script-ps1"
-   *  "common-psm1"
-   *  "k8s-node-setup-psm1"
-   *  "install-ssh-psm1"
-   *  "user-profile-psm1"
-   *  "serial-port-logging-enable"
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
    * 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.
@@ -655,7 +667,8 @@ public interface NodeConfigOrBuilder
    *
    *
    * 
-   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
    * If unspecified, the default disk type is 'pd-standard'
    * 
* @@ -668,7 +681,8 @@ public interface NodeConfigOrBuilder * * *
-   * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
    * If unspecified, the default disk type is 'pd-standard'
    * 
* @@ -685,8 +699,8 @@ public interface NodeConfigOrBuilder * 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 + * `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) *
@@ -703,8 +717,8 @@ public interface NodeConfigOrBuilder * 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 + * `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) *
@@ -715,6 +729,41 @@ public interface NodeConfigOrBuilder */ com.google.protobuf.ByteString getMinCpuPlatformBytes(); + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + boolean hasWorkloadMetadataConfig(); + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig(); + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); + /** * * @@ -776,6 +825,116 @@ public interface NodeConfigOrBuilder */ com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index); + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + * + * @return Whether the sandboxConfig field is set. + */ + boolean hasSandboxConfig(); + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + * + * @return The sandboxConfig. + */ + com.google.container.v1.SandboxConfig getSandboxConfig(); + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder(); + + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The nodeGroup. + */ + java.lang.String getNodeGroup(); + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The bytes for nodeGroup. + */ + com.google.protobuf.ByteString getNodeGroupBytes(); + + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * + * @return Whether the reservationAffinity field is set. + */ + boolean hasReservationAffinity(); + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * + * @return The reservationAffinity. + */ + com.google.container.v1.ReservationAffinity getReservationAffinity(); + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); + /** * * @@ -810,4 +969,39 @@ public interface NodeConfigOrBuilder * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; */ com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bootDiskKmsKey. + */ + java.lang.String getBootDiskKmsKey(); + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bytes for bootDiskKmsKey. + */ + com.google.protobuf.ByteString getBootDiskKmsKeyBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java index 2444a17a..d83d8557 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java @@ -44,6 +44,7 @@ private NodePool(com.google.protobuf.GeneratedMessageV3.Builder builder) { private NodePool() { name_ = ""; + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; selfLink_ = ""; version_ = ""; instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -162,6 +163,16 @@ private NodePool( podIpv4CidrSize_ = input.readInt32(); break; } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add(s); + break; + } case 802: { java.lang.String s = input.readStringRequireUtf8(); @@ -179,9 +190,9 @@ private NodePool( case 818: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } instanceGroupUrls_.add(s); break; @@ -202,15 +213,31 @@ private NodePool( } case 842: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { conditions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000004; } conditions_.add( input.readMessage( com.google.container.v1.StatusCondition.parser(), extensionRegistry)); break; } + case 858: + { + com.google.container.v1.NodePool.UpgradeSettings.Builder subBuilder = null; + if (upgradeSettings_ != null) { + subBuilder = upgradeSettings_.toBuilder(); + } + upgradeSettings_ = + input.readMessage( + com.google.container.v1.NodePool.UpgradeSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(upgradeSettings_); + upgradeSettings_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -226,9 +253,12 @@ private NodePool( throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + locations_ = locations_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); } this.unknownFields = unknownFields.build(); @@ -509,6 +539,708 @@ private Status(int value) { // @@protoc_insertion_point(enum_scope:google.container.v1.NodePool.Status) } + public interface UpgradeSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.UpgradeSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The maximum number of nodes that can be created beyond the current size
+     * of the node pool during the upgrade process.
+     * 
+ * + * int32 max_surge = 1; + * + * @return The maxSurge. + */ + int getMaxSurge(); + + /** + * + * + *
+     * The maximum number of nodes that can be simultaneously unavailable during
+     * the upgrade process. A node is considered available if its status is
+     * Ready.
+     * 
+ * + * int32 max_unavailable = 2; + * + * @return The maxUnavailable. + */ + int getMaxUnavailable(); + } + /** + * + * + *
+   * These upgrade settings control the level of parallelism and the level of
+   * disruption caused by an upgrade.
+   * maxUnavailable controls the number of nodes that can be simultaneously
+   * unavailable.
+   * maxSurge controls the number of additional nodes that can be added to the
+   * node pool temporarily for the time of the upgrade to increase the number of
+   * available nodes.
+   * (maxUnavailable + maxSurge) determines the level of parallelism (how many
+   * nodes are being upgraded at the same time).
+   * Note: upgrades inevitably introduce some disruption since workloads need to
+   * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
+   * this holds true. (Disruption stays within the limits of
+   * PodDisruptionBudget, if it is configured.)
+   * Consider a hypothetical node pool with 5 nodes having maxSurge=2,
+   * maxUnavailable=1. This means the upgrade process upgrades 3 nodes
+   * simultaneously. It creates 2 additional (upgraded) nodes, then it brings
+   * down 3 old (not yet upgraded) nodes at the same time. This ensures that
+   * there are always at least 4 nodes available.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodePool.UpgradeSettings} + */ + public static final class UpgradeSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.UpgradeSettings) + UpgradeSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpgradeSettings.newBuilder() to construct. + private UpgradeSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeSettings() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeSettings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpgradeSettings( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxSurge_ = input.readInt32(); + break; + } + case 16: + { + maxUnavailable_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.UpgradeSettings.class, + com.google.container.v1.NodePool.UpgradeSettings.Builder.class); + } + + public static final int MAX_SURGE_FIELD_NUMBER = 1; + private int maxSurge_; + /** + * + * + *
+     * The maximum number of nodes that can be created beyond the current size
+     * of the node pool during the upgrade process.
+     * 
+ * + * int32 max_surge = 1; + * + * @return The maxSurge. + */ + @java.lang.Override + public int getMaxSurge() { + return maxSurge_; + } + + public static final int MAX_UNAVAILABLE_FIELD_NUMBER = 2; + private int maxUnavailable_; + /** + * + * + *
+     * The maximum number of nodes that can be simultaneously unavailable during
+     * the upgrade process. A node is considered available if its status is
+     * Ready.
+     * 
+ * + * int32 max_unavailable = 2; + * + * @return The maxUnavailable. + */ + @java.lang.Override + public int getMaxUnavailable() { + return maxUnavailable_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (maxSurge_ != 0) { + output.writeInt32(1, maxSurge_); + } + if (maxUnavailable_ != 0) { + output.writeInt32(2, maxUnavailable_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxSurge_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxSurge_); + } + if (maxUnavailable_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxUnavailable_); + } + 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.NodePool.UpgradeSettings)) { + return super.equals(obj); + } + com.google.container.v1.NodePool.UpgradeSettings other = + (com.google.container.v1.NodePool.UpgradeSettings) obj; + + if (getMaxSurge() != other.getMaxSurge()) return false; + if (getMaxUnavailable() != other.getMaxUnavailable()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_SURGE_FIELD_NUMBER; + hash = (53 * hash) + getMaxSurge(); + hash = (37 * hash) + MAX_UNAVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + getMaxUnavailable(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodePool.UpgradeSettings 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.NodePool.UpgradeSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + 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.NodePool.UpgradeSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + java.io.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.NodePool.UpgradeSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePool.UpgradeSettings parseDelimitedFrom( + java.io.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.NodePool.UpgradeSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.NodePool.UpgradeSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * These upgrade settings control the level of parallelism and the level of
+     * disruption caused by an upgrade.
+     * maxUnavailable controls the number of nodes that can be simultaneously
+     * unavailable.
+     * maxSurge controls the number of additional nodes that can be added to the
+     * node pool temporarily for the time of the upgrade to increase the number of
+     * available nodes.
+     * (maxUnavailable + maxSurge) determines the level of parallelism (how many
+     * nodes are being upgraded at the same time).
+     * Note: upgrades inevitably introduce some disruption since workloads need to
+     * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
+     * this holds true. (Disruption stays within the limits of
+     * PodDisruptionBudget, if it is configured.)
+     * Consider a hypothetical node pool with 5 nodes having maxSurge=2,
+     * maxUnavailable=1. This means the upgrade process upgrades 3 nodes
+     * simultaneously. It creates 2 additional (upgraded) nodes, then it brings
+     * down 3 old (not yet upgraded) nodes at the same time. This ensures that
+     * there are always at least 4 nodes available.
+     * 
+ * + * Protobuf type {@code google.container.v1.NodePool.UpgradeSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.UpgradeSettings) + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.UpgradeSettings.class, + com.google.container.v1.NodePool.UpgradeSettings.Builder.class); + } + + // Construct using com.google.container.v1.NodePool.UpgradeSettings.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(); + maxSurge_ = 0; + + maxUnavailable_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings getDefaultInstanceForType() { + return com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings build() { + com.google.container.v1.NodePool.UpgradeSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings buildPartial() { + com.google.container.v1.NodePool.UpgradeSettings result = + new com.google.container.v1.NodePool.UpgradeSettings(this); + result.maxSurge_ = maxSurge_; + result.maxUnavailable_ = maxUnavailable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePool.UpgradeSettings) { + return mergeFrom((com.google.container.v1.NodePool.UpgradeSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePool.UpgradeSettings other) { + if (other == com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) + return this; + if (other.getMaxSurge() != 0) { + setMaxSurge(other.getMaxSurge()); + } + if (other.getMaxUnavailable() != 0) { + setMaxUnavailable(other.getMaxUnavailable()); + } + 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.NodePool.UpgradeSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.NodePool.UpgradeSettings) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int maxSurge_; + /** + * + * + *
+       * The maximum number of nodes that can be created beyond the current size
+       * of the node pool during the upgrade process.
+       * 
+ * + * int32 max_surge = 1; + * + * @return The maxSurge. + */ + @java.lang.Override + public int getMaxSurge() { + return maxSurge_; + } + /** + * + * + *
+       * The maximum number of nodes that can be created beyond the current size
+       * of the node pool during the upgrade process.
+       * 
+ * + * int32 max_surge = 1; + * + * @param value The maxSurge to set. + * @return This builder for chaining. + */ + public Builder setMaxSurge(int value) { + + maxSurge_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The maximum number of nodes that can be created beyond the current size
+       * of the node pool during the upgrade process.
+       * 
+ * + * int32 max_surge = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaxSurge() { + + maxSurge_ = 0; + onChanged(); + return this; + } + + private int maxUnavailable_; + /** + * + * + *
+       * The maximum number of nodes that can be simultaneously unavailable during
+       * the upgrade process. A node is considered available if its status is
+       * Ready.
+       * 
+ * + * int32 max_unavailable = 2; + * + * @return The maxUnavailable. + */ + @java.lang.Override + public int getMaxUnavailable() { + return maxUnavailable_; + } + /** + * + * + *
+       * The maximum number of nodes that can be simultaneously unavailable during
+       * the upgrade process. A node is considered available if its status is
+       * Ready.
+       * 
+ * + * int32 max_unavailable = 2; + * + * @param value The maxUnavailable to set. + * @return This builder for chaining. + */ + public Builder setMaxUnavailable(int value) { + + maxUnavailable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The maximum number of nodes that can be simultaneously unavailable during
+       * the upgrade process. A node is considered available if its status is
+       * Ready.
+       * 
+ * + * int32 max_unavailable = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxUnavailable() { + + maxUnavailable_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.UpgradeSettings) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.UpgradeSettings) + private static final com.google.container.v1.NodePool.UpgradeSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePool.UpgradeSettings(); + } + + public static com.google.container.v1.NodePool.UpgradeSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpgradeSettings(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.NodePool.UpgradeSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -625,6 +1357,95 @@ public int getInitialNodeCount() { return initialNodeCount_; } + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + public static final int SELF_LINK_FIELD_NUMBER = 100; private volatile java.lang.Object selfLink_; /** @@ -834,15 +1655,17 @@ public com.google.container.v1.NodePool.Status getStatus() { * * *
-   * [Output only] Additional information about the current status of this
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
    * node pool instance, if available.
    * 
* - * string status_message = 104; + * string status_message = 104 [deprecated = true]; * * @return The statusMessage. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { @@ -858,15 +1681,17 @@ public java.lang.String getStatusMessage() { * * *
-   * [Output only] Additional information about the current status of this
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
    * node pool instance, if available.
    * 
* - * string status_message = 104; + * string status_message = 104 [deprecated = true]; * * @return The bytes for statusMessage. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { @@ -1116,6 +1941,54 @@ public int getPodIpv4CidrSize() { return podIpv4CidrSize_; } + public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 107; + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return upgradeSettings_ != null; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + return getUpgradeSettings(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1151,6 +2024,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (podIpv4CidrSize_ != 0) { output.writeInt32(7, podIpv4CidrSize_); } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } if (!getSelfLinkBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); } @@ -1169,6 +2045,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(105, conditions_.get(i)); } + if (upgradeSettings_ != null) { + output.writeMessage(107, getUpgradeSettings()); + } unknownFields.writeTo(output); } @@ -1199,6 +2078,14 @@ public int getSerializedSize() { if (podIpv4CidrSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, podIpv4CidrSize_); } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } if (!getSelfLinkBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); } @@ -1222,6 +2109,9 @@ public int getSerializedSize() { for (int i = 0; i < conditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(105, conditions_.get(i)); } + if (upgradeSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(107, getUpgradeSettings()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1243,6 +2133,7 @@ public boolean equals(final java.lang.Object obj) { if (!getConfig().equals(other.getConfig())) return false; } if (getInitialNodeCount() != other.getInitialNodeCount()) return false; + if (!getLocationsList().equals(other.getLocationsList())) return false; if (!getSelfLink().equals(other.getSelfLink())) return false; if (!getVersion().equals(other.getVersion())) return false; if (!getInstanceGroupUrlsList().equals(other.getInstanceGroupUrlsList())) return false; @@ -1262,6 +2153,10 @@ public boolean equals(final java.lang.Object obj) { } if (!getConditionsList().equals(other.getConditionsList())) return false; if (getPodIpv4CidrSize() != other.getPodIpv4CidrSize()) return false; + if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; + if (hasUpgradeSettings()) { + if (!getUpgradeSettings().equals(other.getUpgradeSettings())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1281,6 +2176,10 @@ public int hashCode() { } hash = (37 * hash) + INITIAL_NODE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getInitialNodeCount(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; @@ -1311,6 +2210,10 @@ public int hashCode() { } hash = (37 * hash) + POD_IPV4_CIDR_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPodIpv4CidrSize(); + if (hasUpgradeSettings()) { + hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeSettings().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1472,12 +2375,14 @@ public Builder clear() { } initialNodeCount_ = 0; + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); selfLink_ = ""; version_ = ""; instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); status_ = 0; statusMessage_ = ""; @@ -1502,12 +2407,18 @@ public Builder clear() { } if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { conditionsBuilder_.clear(); } podIpv4CidrSize_ = 0; + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } return this; } @@ -1542,11 +2453,16 @@ public com.google.container.v1.NodePool buildPartial() { result.config_ = configBuilder_.build(); } result.initialNodeCount_ = initialNodeCount_; + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; result.selfLink_ = selfLink_; result.version_ = version_; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.instanceGroupUrls_ = instanceGroupUrls_; result.status_ = status_; @@ -1567,15 +2483,20 @@ public com.google.container.v1.NodePool buildPartial() { result.maxPodsConstraint_ = maxPodsConstraintBuilder_.build(); } if (conditionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.build(); } result.podIpv4CidrSize_ = podIpv4CidrSize_; + if (upgradeSettingsBuilder_ == null) { + result.upgradeSettings_ = upgradeSettings_; + } else { + result.upgradeSettings_ = upgradeSettingsBuilder_.build(); + } onBuilt(); return result; } @@ -1635,6 +2556,16 @@ public Builder mergeFrom(com.google.container.v1.NodePool other) { if (other.getInitialNodeCount() != 0) { setInitialNodeCount(other.getInitialNodeCount()); } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } if (!other.getSelfLink().isEmpty()) { selfLink_ = other.selfLink_; onChanged(); @@ -1646,7 +2577,7 @@ public Builder mergeFrom(com.google.container.v1.NodePool other) { if (!other.instanceGroupUrls_.isEmpty()) { if (instanceGroupUrls_.isEmpty()) { instanceGroupUrls_ = other.instanceGroupUrls_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInstanceGroupUrlsIsMutable(); instanceGroupUrls_.addAll(other.instanceGroupUrls_); @@ -1673,7 +2604,7 @@ public Builder mergeFrom(com.google.container.v1.NodePool other) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); @@ -1686,7 +2617,7 @@ public Builder mergeFrom(com.google.container.v1.NodePool other) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() @@ -1699,6 +2630,9 @@ public Builder mergeFrom(com.google.container.v1.NodePool other) { if (other.getPodIpv4CidrSize() != 0) { setPodIpv4CidrSize(other.getPodIpv4CidrSize()); } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2078,6 +3012,237 @@ public Builder clearInitialNodeCount() { return this; } + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + 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
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + 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
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + 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
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + 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 selfLink_ = ""; /** * @@ -2294,9 +3459,9 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -2447,7 +3612,7 @@ public Builder addAllInstanceGroupUrls(java.lang.Iterable valu */ public Builder clearInstanceGroupUrls() { instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2572,14 +3737,16 @@ public Builder clearStatus() { * * *
-     * [Output only] Additional information about the current status of this
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
      * node pool instance, if available.
      * 
* - * string status_message = 104; + * string status_message = 104 [deprecated = true]; * * @return The statusMessage. */ + @java.lang.Deprecated public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { @@ -2595,14 +3762,16 @@ public java.lang.String getStatusMessage() { * * *
-     * [Output only] Additional information about the current status of this
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
      * node pool instance, if available.
      * 
* - * string status_message = 104; + * string status_message = 104 [deprecated = true]; * * @return The bytes for statusMessage. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { @@ -2618,15 +3787,17 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
-     * [Output only] Additional information about the current status of this
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
      * node pool instance, if available.
      * 
* - * string status_message = 104; + * string status_message = 104 [deprecated = true]; * * @param value The statusMessage to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setStatusMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -2640,14 +3811,16 @@ public Builder setStatusMessage(java.lang.String value) { * * *
-     * [Output only] Additional information about the current status of this
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
      * node pool instance, if available.
      * 
* - * string status_message = 104; + * string status_message = 104 [deprecated = true]; * * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearStatusMessage() { statusMessage_ = getDefaultInstance().getStatusMessage(); @@ -2658,15 +3831,17 @@ public Builder clearStatusMessage() { * * *
-     * [Output only] Additional information about the current status of this
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
      * node pool instance, if available.
      * 
* - * string status_message = 104; + * string status_message = 104 [deprecated = true]; * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -3257,9 +4432,9 @@ public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOr java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { conditions_ = new java.util.ArrayList(conditions_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -3474,7 +4649,7 @@ public Builder addAllConditions( public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { conditionsBuilder_.clear(); @@ -3596,7 +4771,7 @@ public com.google.container.v1.StatusCondition.Builder addConditionsBuilder(int com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder>( - conditions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + conditions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; @@ -3654,6 +4829,192 @@ public Builder clearPodIpv4CidrSize() { return this; } + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + upgradeSettingsBuilder_; + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return The upgradeSettings. + */ + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder setUpgradeSettings( + com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (upgradeSettings_ != null) { + upgradeSettings_ = + com.google.container.v1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeSettings_ = value; + } + onChanged(); + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder clearUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + onChanged(); + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { + + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), getParentForChildren(), isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java index 861c8e62..7b27dcb1 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java @@ -99,6 +99,85 @@ public interface NodePoolOrBuilder */ int getInitialNodeCount(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + java.util.List getLocationsList(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + int getLocationsCount(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + java.lang.String getLocations(int index); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + com.google.protobuf.ByteString getLocationsBytes(int index); + /** * * @@ -237,27 +316,31 @@ public interface NodePoolOrBuilder * * *
-   * [Output only] Additional information about the current status of this
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
    * node pool instance, if available.
    * 
* - * string status_message = 104; + * string status_message = 104 [deprecated = true]; * * @return The statusMessage. */ + @java.lang.Deprecated java.lang.String getStatusMessage(); /** * * *
-   * [Output only] Additional information about the current status of this
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
    * node pool instance, if available.
    * 
* - * string status_message = 104; + * string status_message = 104 [deprecated = true]; * * @return The bytes for statusMessage. */ + @java.lang.Deprecated com.google.protobuf.ByteString getStatusMessageBytes(); /** @@ -435,4 +518,39 @@ public interface NodePoolOrBuilder * @return The podIpv4CidrSize. */ int getPodIpv4CidrSize(); + + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return Whether the upgradeSettings field is set. + */ + boolean hasUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return The upgradeSettings. + */ + com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java index d8a5caf4..7ff88cd0 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java @@ -24,8 +24,9 @@ *
  * 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/
+ * See
+ * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
+ * for more information, including usage and the valid values.
  * 
* * Protobuf type {@code google.container.v1.NodeTaint} @@ -624,8 +625,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * 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/
+   * See
+   * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
+   * for more information, including usage and the valid values.
    * 
* * Protobuf type {@code google.container.v1.NodeTaint} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java index 51eb259a..c1988733 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java @@ -159,6 +159,22 @@ private Operation( java.lang.String s = input.readStringRequireUtf8(); endTime_ = s; + break; + } + case 98: + { + com.google.container.v1.OperationProgress.Builder subBuilder = null; + if (progress_ != null) { + subBuilder = progress_.toBuilder(); + } + progress_ = + input.readMessage( + com.google.container.v1.OperationProgress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progress_); + progress_ = subBuilder.buildPartial(); + } + break; } case 106: @@ -947,9 +963,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation
-   * is taking place.
-   * This field is deprecated, use location instead.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation is taking place. This field is deprecated, use location instead.
    * 
* * string zone = 2 [deprecated = true]; @@ -974,9 +989,8 @@ public java.lang.String getZone() { * *
    * The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation
-   * is taking place.
-   * This field is deprecated, use location instead.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation is taking place. This field is deprecated, use location instead.
    * 
* * string zone = 2 [deprecated = true]; @@ -1124,10 +1138,10 @@ public com.google.protobuf.ByteString getDetailBytes() { * * *
-   * If an error has occurred, a textual description of the error.
+   * Output only. If an error has occurred, a textual description of the error.
    * 
* - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The statusMessage. */ @@ -1147,10 +1161,10 @@ public java.lang.String getStatusMessage() { * * *
-   * If an error has occurred, a textual description of the error.
+   * Output only. If an error has occurred, a textual description of the error.
    * 
* - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for statusMessage. */ @@ -1272,9 +1286,10 @@ public com.google.protobuf.ByteString getTargetLinkBytes() { * *
    * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-   * the cluster resides.
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
    * 
* * string location = 9; @@ -1298,9 +1313,10 @@ public java.lang.String getLocation() { * *
    * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-   * the cluster resides.
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
    * 
* * string location = 9; @@ -1422,6 +1438,60 @@ public com.google.protobuf.ByteString getEndTimeBytes() { } } + public static final int PROGRESS_FIELD_NUMBER = 12; + private com.google.container.v1.OperationProgress progress_; + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + @java.lang.Override + public boolean hasProgress() { + return progress_ != null; + } + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + @java.lang.Override + public com.google.container.v1.OperationProgress getProgress() { + return progress_ == null + ? com.google.container.v1.OperationProgress.getDefaultInstance() + : progress_; + } + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() { + return getProgress(); + } + public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; private java.util.List clusterConditions_; /** @@ -1608,6 +1678,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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)); } @@ -1656,6 +1729,9 @@ public int getSerializedSize() { 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)); @@ -1690,6 +1766,10 @@ public boolean equals(final java.lang.Object obj) { if (!getLocation().equals(other.getLocation())) return false; if (!getStartTime().equals(other.getStartTime())) return false; if (!getEndTime().equals(other.getEndTime())) return false; + if (hasProgress() != other.hasProgress()) return false; + if (hasProgress()) { + if (!getProgress().equals(other.getProgress())) return false; + } if (!getClusterConditionsList().equals(other.getClusterConditionsList())) return false; if (!getNodepoolConditionsList().equals(other.getNodepoolConditionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -1725,6 +1805,10 @@ public int hashCode() { 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(); @@ -1903,6 +1987,12 @@ public Builder clear() { endTime_ = ""; + if (progressBuilder_ == null) { + progress_ = null; + } else { + progress_ = null; + progressBuilder_ = null; + } if (clusterConditionsBuilder_ == null) { clusterConditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); @@ -1953,6 +2043,11 @@ public com.google.container.v1.Operation buildPartial() { 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_ & 0x00000001) != 0)) { clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); @@ -2062,6 +2157,9 @@ public Builder mergeFrom(com.google.container.v1.Operation other) { endTime_ = other.endTime_; onChanged(); } + if (other.hasProgress()) { + mergeProgress(other.getProgress()); + } if (clusterConditionsBuilder_ == null) { if (!other.clusterConditions_.isEmpty()) { if (clusterConditions_.isEmpty()) { @@ -2259,9 +2357,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation
-     * is taking place.
-     * This field is deprecated, use location instead.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
      * 
* * string zone = 2 [deprecated = true]; @@ -2285,9 +2382,8 @@ public java.lang.String getZone() { * *
      * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation
-     * is taking place.
-     * This field is deprecated, use location instead.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
      * 
* * string zone = 2 [deprecated = true]; @@ -2311,9 +2407,8 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation
-     * is taking place.
-     * This field is deprecated, use location instead.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
      * 
* * string zone = 2 [deprecated = true]; @@ -2336,9 +2431,8 @@ public Builder setZone(java.lang.String value) { * *
      * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation
-     * is taking place.
-     * This field is deprecated, use location instead.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
      * 
* * string zone = 2 [deprecated = true]; @@ -2357,9 +2451,8 @@ public Builder clearZone() { * *
      * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation
-     * is taking place.
-     * This field is deprecated, use location instead.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
      * 
* * string zone = 2 [deprecated = true]; @@ -2672,10 +2765,10 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { * * *
-     * If an error has occurred, a textual description of the error.
+     * Output only. If an error has occurred, a textual description of the error.
      * 
* - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The statusMessage. */ @@ -2694,10 +2787,10 @@ public java.lang.String getStatusMessage() { * * *
-     * If an error has occurred, a textual description of the error.
+     * Output only. If an error has occurred, a textual description of the error.
      * 
* - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for statusMessage. */ @@ -2716,10 +2809,10 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
-     * If an error has occurred, a textual description of the error.
+     * Output only. If an error has occurred, a textual description of the error.
      * 
* - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The statusMessage to set. * @return This builder for chaining. @@ -2737,10 +2830,10 @@ public Builder setStatusMessage(java.lang.String value) { * * *
-     * If an error has occurred, a textual description of the error.
+     * Output only. If an error has occurred, a textual description of the error.
      * 
* - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2754,10 +2847,10 @@ public Builder clearStatusMessage() { * * *
-     * If an error has occurred, a textual description of the error.
+     * Output only. If an error has occurred, a textual description of the error.
      * 
* - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for statusMessage to set. * @return This builder for chaining. @@ -2991,9 +3084,10 @@ public Builder setTargetLinkBytes(com.google.protobuf.ByteString value) { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
      * 
* * string location = 9; @@ -3016,9 +3110,10 @@ public java.lang.String getLocation() { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
      * 
* * string location = 9; @@ -3041,9 +3136,10 @@ public com.google.protobuf.ByteString getLocationBytes() { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
      * 
* * string location = 9; @@ -3065,9 +3161,10 @@ public Builder setLocation(java.lang.String value) { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
      * 
* * string location = 9; @@ -3085,9 +3182,10 @@ public Builder clearLocation() { * *
      * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
      * 
* * string location = 9; @@ -3328,6 +3426,209 @@ public Builder setEndTimeBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.container.v1.OperationProgress progress_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.OperationProgress, + com.google.container.v1.OperationProgress.Builder, + com.google.container.v1.OperationProgressOrBuilder> + progressBuilder_; + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + public boolean hasProgress() { + return progressBuilder_ != null || progress_ != null; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + public com.google.container.v1.OperationProgress getProgress() { + if (progressBuilder_ == null) { + return progress_ == null + ? com.google.container.v1.OperationProgress.getDefaultInstance() + : progress_; + } else { + return progressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProgress(com.google.container.v1.OperationProgress value) { + if (progressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progress_ = value; + onChanged(); + } else { + progressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProgress(com.google.container.v1.OperationProgress.Builder builderForValue) { + if (progressBuilder_ == null) { + progress_ = builderForValue.build(); + onChanged(); + } else { + progressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeProgress(com.google.container.v1.OperationProgress value) { + if (progressBuilder_ == null) { + if (progress_ != null) { + progress_ = + com.google.container.v1.OperationProgress.newBuilder(progress_) + .mergeFrom(value) + .buildPartial(); + } else { + progress_ = value; + } + onChanged(); + } else { + progressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProgress() { + if (progressBuilder_ == null) { + progress_ = null; + onChanged(); + } else { + progress_ = null; + progressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.container.v1.OperationProgress.Builder getProgressBuilder() { + + onChanged(); + return getProgressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() { + if (progressBuilder_ != null) { + return progressBuilder_.getMessageOrBuilder(); + } else { + return progress_ == null + ? com.google.container.v1.OperationProgress.getDefaultInstance() + : progress_; + } + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.OperationProgress, + com.google.container.v1.OperationProgress.Builder, + com.google.container.v1.OperationProgressOrBuilder> + getProgressFieldBuilder() { + if (progressBuilder_ == null) { + progressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.OperationProgress, + com.google.container.v1.OperationProgress.Builder, + com.google.container.v1.OperationProgressOrBuilder>( + getProgress(), getParentForChildren(), isClean()); + progress_ = null; + } + return progressBuilder_; + } + private java.util.List clusterConditions_ = java.util.Collections.emptyList(); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java index efdaafb3..5316cdcd 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java @@ -53,9 +53,8 @@ public interface OperationOrBuilder * *
    * The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation
-   * is taking place.
-   * This field is deprecated, use location instead.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation is taking place. This field is deprecated, use location instead.
    * 
* * string zone = 2 [deprecated = true]; @@ -69,9 +68,8 @@ public interface OperationOrBuilder * *
    * The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation
-   * is taking place.
-   * This field is deprecated, use location instead.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation is taking place. This field is deprecated, use location instead.
    * 
* * string zone = 2 [deprecated = true]; @@ -160,10 +158,10 @@ public interface OperationOrBuilder * * *
-   * If an error has occurred, a textual description of the error.
+   * Output only. If an error has occurred, a textual description of the error.
    * 
* - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The statusMessage. */ @@ -172,10 +170,10 @@ public interface OperationOrBuilder * * *
-   * If an error has occurred, a textual description of the error.
+   * Output only. If an error has occurred, a textual description of the error.
    * 
* - * string status_message = 5; + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for statusMessage. */ @@ -236,9 +234,10 @@ public interface OperationOrBuilder * *
    * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-   * the cluster resides.
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
    * 
* * string location = 9; @@ -251,9 +250,10 @@ public interface OperationOrBuilder * *
    * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
-   * the cluster resides.
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
    * 
* * string location = 9; @@ -316,6 +316,47 @@ public interface OperationOrBuilder */ com.google.protobuf.ByteString getEndTimeBytes(); + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + boolean hasProgress(); + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + com.google.container.v1.OperationProgress getProgress(); + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder(); + /** * * diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java new file mode 100644 index 00000000..55fce38c --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java @@ -0,0 +1,3101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Information about operation (or operation stage) progress.
+ * 
+ * + * Protobuf type {@code google.container.v1.OperationProgress} + */ +public final class OperationProgress extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.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 + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperationProgress(); + } + + @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_ & 0x00000001) != 0)) { + metrics_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + metrics_.add( + input.readMessage( + com.google.container.v1.OperationProgress.Metric.parser(), + extensionRegistry)); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + stages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + stages_.add( + input.readMessage( + com.google.container.v1.OperationProgress.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + } + 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_OperationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_OperationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.OperationProgress.class, + com.google.container.v1.OperationProgress.Builder.class); + } + + public interface MetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.OperationProgress.Metric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + * + * @return The intValue. + */ + long getIntValue(); + + /** + * + * + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + * + * @return The doubleValue. + */ + double getDoubleValue(); + + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return The stringValue. + */ + java.lang.String getStringValue(); + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return The bytes for stringValue. + */ + com.google.protobuf.ByteString getStringValueBytes(); + + public com.google.container.v1.OperationProgress.Metric.ValueCase getValueCase(); + } + /** + * + * + *
+   * Progress metric is (string, int|float|string) pair.
+   * 
+ * + * Protobuf type {@code google.container.v1.OperationProgress.Metric} + */ + public static final class Metric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.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 + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Metric(); + } + + @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(); + } + 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 (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.OperationProgress.Metric.class, + com.google.container.v1.OperationProgress.Metric.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INT_VALUE(2), + DOUBLE_VALUE(3), + STRING_VALUE(4), + VALUE_NOT_SET(0); + private final int value; + + private ValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static 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_; + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INT_VALUE_FIELD_NUMBER = 2; + /** + * + * + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + * + * @return The intValue. + */ + @java.lang.Override + 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; + * + * @return The doubleValue. + */ + @java.lang.Override + 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; + * + * @return The stringValue. + */ + 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; + * + * @return The bytes for stringValue. + */ + 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.v1.OperationProgress.Metric)) { + return super.equals(obj); + } + com.google.container.v1.OperationProgress.Metric other = + (com.google.container.v1.OperationProgress.Metric) obj; + + if (!getName().equals(other.getName())) return false; + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 2: + if (getIntValue() != other.getIntValue()) return false; + break; + case 3: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; + break; + case 4: + if (!getStringValue().equals(other.getStringValue())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + 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.v1.OperationProgress.Metric parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.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.v1.OperationProgress.Metric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.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.v1.OperationProgress.Metric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.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.v1.OperationProgress.Metric parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.OperationProgress.Metric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.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.v1.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.v1.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.v1.OperationProgress.Metric} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.OperationProgress.Metric) + com.google.container.v1.OperationProgress.MetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.OperationProgress.Metric.class, + com.google.container.v1.OperationProgress.Metric.Builder.class); + } + + // Construct using com.google.container.v1.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.v1.ClusterServiceProto + .internal_static_google_container_v1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress.Metric getDefaultInstanceForType() { + return com.google.container.v1.OperationProgress.Metric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.OperationProgress.Metric build() { + com.google.container.v1.OperationProgress.Metric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress.Metric buildPartial() { + com.google.container.v1.OperationProgress.Metric result = + new com.google.container.v1.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 super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.OperationProgress.Metric) { + return mergeFrom((com.google.container.v1.OperationProgress.Metric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.OperationProgress.Metric other) { + if (other == com.google.container.v1.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.v1.OperationProgress.Metric parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.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_ = ""; + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @return The intValue. + */ + public long getIntValue() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @param value The intValue to set. + * @return This builder for chaining. + */ + public Builder setIntValue(long value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearIntValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @return The doubleValue. + */ + public double getDoubleValue() { + if (valueCase_ == 3) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @return This builder for chaining. + */ + 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; + * + * @return The stringValue. + */ + @java.lang.Override + 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; + * + * @return The bytes for stringValue. + */ + @java.lang.Override + 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; + * + * @param value The stringValue to set. + * @return This builder for chaining. + */ + 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; + * + * @return This builder for chaining. + */ + 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; + * + * @param value The bytes for stringValue to set. + * @return This builder for chaining. + */ + 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.setUnknownFields(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.OperationProgress.Metric) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.OperationProgress.Metric) + private static final com.google.container.v1.OperationProgress.Metric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.OperationProgress.Metric(); + } + + public static com.google.container.v1.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.v1.OperationProgress.Metric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1.Operation.Status result = + com.google.container.v1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + 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.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + 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.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + 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.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public com.google.container.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public com.google.container.v1.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.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public java.util.List getStagesList() { + return stages_; + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public java.util.List + getStagesOrBuilderList() { + return stages_; + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public int getStagesCount() { + return stages_.size(); + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public com.google.container.v1.OperationProgress getStages(int index) { + return stages_.get(index); + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public com.google.container.v1.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.v1.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.v1.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.v1.OperationProgress)) { + return super.equals(obj); + } + com.google.container.v1.OperationProgress other = + (com.google.container.v1.OperationProgress) obj; + + if (!getName().equals(other.getName())) return false; + if (status_ != other.status_) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getStagesList().equals(other.getStagesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + 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.v1.OperationProgress parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.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.v1.OperationProgress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.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.v1.OperationProgress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.OperationProgress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.OperationProgress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.OperationProgress parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.OperationProgress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.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.v1.OperationProgress} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.OperationProgress) + com.google.container.v1.OperationProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_OperationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_OperationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.OperationProgress.class, + com.google.container.v1.OperationProgress.Builder.class); + } + + // Construct using com.google.container.v1.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_ & ~0x00000001); + } else { + metricsBuilder_.clear(); + } + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + stagesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_OperationProgress_descriptor; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress getDefaultInstanceForType() { + return com.google.container.v1.OperationProgress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.OperationProgress build() { + com.google.container.v1.OperationProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress buildPartial() { + com.google.container.v1.OperationProgress result = + new com.google.container.v1.OperationProgress(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.status_ = status_; + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (stagesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.stages_ = stages_; + } else { + result.stages_ = stagesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.OperationProgress) { + return mergeFrom((com.google.container.v1.OperationProgress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.OperationProgress other) { + if (other == com.google.container.v1.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_ & ~0x00000001); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000001); + 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_ & ~0x00000002); + } else { + ensureStagesIsMutable(); + stages_.addAll(other.stages_); + } + onChanged(); + } + } else { + if (!other.stages_.isEmpty()) { + if (stagesBuilder_.isEmpty()) { + stagesBuilder_.dispose(); + stagesBuilder_ = null; + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000002); + 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.v1.OperationProgress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.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; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + 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; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1.Operation.Status result = + com.google.container.v1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1.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.v1.Operation.Status status = 2; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + metrics_ = + new java.util.ArrayList(metrics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress.Metric, + com.google.container.v1.OperationProgress.Metric.Builder, + com.google.container.v1.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.v1.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.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics(int index, com.google.container.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics(com.google.container.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics(int index, com.google.container.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + com.google.container.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1.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.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + 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.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.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.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.OperationProgress.Metric.Builder addMetricsBuilder() { + return getMetricsFieldBuilder() + .addBuilder(com.google.container.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.OperationProgress.Metric.Builder addMetricsBuilder(int index) { + return getMetricsFieldBuilder() + .addBuilder(index, com.google.container.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress.Metric, + com.google.container.v1.OperationProgress.Metric.Builder, + com.google.container.v1.OperationProgress.MetricOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress.Metric, + com.google.container.v1.OperationProgress.Metric.Builder, + com.google.container.v1.OperationProgress.MetricOrBuilder>( + metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List stages_ = + java.util.Collections.emptyList(); + + private void ensureStagesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + stages_ = new java.util.ArrayList(stages_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress, + com.google.container.v1.OperationProgress.Builder, + com.google.container.v1.OperationProgressOrBuilder> + stagesBuilder_; + + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.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.v1.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.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.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.v1.OperationProgress stages = 4; + */ + public Builder setStages(int index, com.google.container.v1.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.v1.OperationProgress stages = 4; + */ + public Builder setStages( + int index, com.google.container.v1.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.v1.OperationProgress stages = 4; + */ + public Builder addStages(com.google.container.v1.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.v1.OperationProgress stages = 4; + */ + public Builder addStages(int index, com.google.container.v1.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.v1.OperationProgress stages = 4; + */ + public Builder addStages(com.google.container.v1.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.v1.OperationProgress stages = 4; + */ + public Builder addStages( + int index, com.google.container.v1.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.v1.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.v1.OperationProgress stages = 4; + */ + public Builder clearStages() { + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + stagesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.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.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgress.Builder getStagesBuilder(int index) { + return getStagesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.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.v1.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.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgress.Builder addStagesBuilder() { + return getStagesFieldBuilder() + .addBuilder(com.google.container.v1.OperationProgress.getDefaultInstance()); + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgress.Builder addStagesBuilder(int index) { + return getStagesFieldBuilder() + .addBuilder(index, com.google.container.v1.OperationProgress.getDefaultInstance()); + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public java.util.List + getStagesBuilderList() { + return getStagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress, + com.google.container.v1.OperationProgress.Builder, + com.google.container.v1.OperationProgressOrBuilder> + getStagesFieldBuilder() { + if (stagesBuilder_ == null) { + stagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress, + com.google.container.v1.OperationProgress.Builder, + com.google.container.v1.OperationProgressOrBuilder>( + stages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + stages_ = null; + } + return stagesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.OperationProgress) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.OperationProgress) + private static final com.google.container.v1.OperationProgress DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.OperationProgress(); + } + + public static com.google.container.v1.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.v1.OperationProgress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java new file mode 100644 index 00000000..5f11ca8c --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface OperationProgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.OperationProgress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1.Operation.Status status = 2; + * + * @return The status. + */ + com.google.container.v1.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.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1.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.v1.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.v1.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.v1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder(int index); + + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + java.util.List getStagesList(); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + com.google.container.v1.OperationProgress getStages(int index); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + int getStagesCount(); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + java.util.List + getStagesOrBuilderList(); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder(int index); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java index c368559c..94f0a10c 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java @@ -41,6 +41,7 @@ private PrivateClusterConfig() { masterIpv4CidrBlock_ = ""; privateEndpoint_ = ""; publicEndpoint_ = ""; + peeringName_ = ""; } @java.lang.Override @@ -101,6 +102,31 @@ private PrivateClusterConfig( java.lang.String s = input.readStringRequireUtf8(); publicEndpoint_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + peeringName_ = s; + break; + } + case 66: + { + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder subBuilder = + null; + if (masterGlobalAccessConfig_ != null) { + subBuilder = masterGlobalAccessConfig_.toBuilder(); + } + masterGlobalAccessConfig_ = + input.readMessage( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(masterGlobalAccessConfig_); + masterGlobalAccessConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -328,6 +354,111 @@ public com.google.protobuf.ByteString getPublicEndpointBytes() { } } + public static final int PEERING_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object peeringName_; + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The peeringName. + */ + @java.lang.Override + public java.lang.String getPeeringName() { + java.lang.Object ref = peeringName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peeringName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The bytes for peeringName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeeringNameBytes() { + java.lang.Object ref = peeringName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peeringName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1.PrivateClusterMasterGlobalAccessConfig masterGlobalAccessConfig_; + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return Whether the masterGlobalAccessConfig field is set. + */ + @java.lang.Override + public boolean hasMasterGlobalAccessConfig() { + return masterGlobalAccessConfig_ != null; + } + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return The masterGlobalAccessConfig. + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig + getMasterGlobalAccessConfig() { + return masterGlobalAccessConfig_ == null + ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() + : masterGlobalAccessConfig_; + } + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder + getMasterGlobalAccessConfigOrBuilder() { + return getMasterGlobalAccessConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -357,6 +488,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getPublicEndpointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicEndpoint_); } + if (!getPeeringNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, peeringName_); + } + if (masterGlobalAccessConfig_ != null) { + output.writeMessage(8, getMasterGlobalAccessConfig()); + } unknownFields.writeTo(output); } @@ -381,6 +518,14 @@ public int getSerializedSize() { if (!getPublicEndpointBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicEndpoint_); } + if (!getPeeringNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, peeringName_); + } + if (masterGlobalAccessConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getMasterGlobalAccessConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -402,6 +547,11 @@ public boolean equals(final java.lang.Object obj) { if (!getMasterIpv4CidrBlock().equals(other.getMasterIpv4CidrBlock())) return false; if (!getPrivateEndpoint().equals(other.getPrivateEndpoint())) return false; if (!getPublicEndpoint().equals(other.getPublicEndpoint())) return false; + if (!getPeeringName().equals(other.getPeeringName())) return false; + if (hasMasterGlobalAccessConfig() != other.hasMasterGlobalAccessConfig()) return false; + if (hasMasterGlobalAccessConfig()) { + if (!getMasterGlobalAccessConfig().equals(other.getMasterGlobalAccessConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -423,6 +573,12 @@ public int hashCode() { hash = (53 * hash) + getPrivateEndpoint().hashCode(); hash = (37 * hash) + PUBLIC_ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getPublicEndpoint().hashCode(); + hash = (37 * hash) + PEERING_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPeeringName().hashCode(); + if (hasMasterGlobalAccessConfig()) { + hash = (37 * hash) + MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMasterGlobalAccessConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -578,6 +734,14 @@ public Builder clear() { publicEndpoint_ = ""; + peeringName_ = ""; + + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = null; + } else { + masterGlobalAccessConfig_ = null; + masterGlobalAccessConfigBuilder_ = null; + } return this; } @@ -610,6 +774,12 @@ public com.google.container.v1.PrivateClusterConfig buildPartial() { result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; result.privateEndpoint_ = privateEndpoint_; result.publicEndpoint_ = publicEndpoint_; + result.peeringName_ = peeringName_; + if (masterGlobalAccessConfigBuilder_ == null) { + result.masterGlobalAccessConfig_ = masterGlobalAccessConfig_; + } else { + result.masterGlobalAccessConfig_ = masterGlobalAccessConfigBuilder_.build(); + } onBuilt(); return result; } @@ -677,6 +847,13 @@ public Builder mergeFrom(com.google.container.v1.PrivateClusterConfig other) { publicEndpoint_ = other.publicEndpoint_; onChanged(); } + if (!other.getPeeringName().isEmpty()) { + peeringName_ = other.peeringName_; + onChanged(); + } + if (other.hasMasterGlobalAccessConfig()) { + mergeMasterGlobalAccessConfig(other.getMasterGlobalAccessConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1149,6 +1326,323 @@ public Builder setPublicEndpointBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object peeringName_ = ""; + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @return The peeringName. + */ + public java.lang.String getPeeringName() { + java.lang.Object ref = peeringName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peeringName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @return The bytes for peeringName. + */ + public com.google.protobuf.ByteString getPeeringNameBytes() { + java.lang.Object ref = peeringName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peeringName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @param value The peeringName to set. + * @return This builder for chaining. + */ + public Builder setPeeringName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + peeringName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearPeeringName() { + + peeringName_ = getDefaultInstance().getPeeringName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @param value The bytes for peeringName to set. + * @return This builder for chaining. + */ + public Builder setPeeringNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + peeringName_ = value; + onChanged(); + return this; + } + + private com.google.container.v1.PrivateClusterMasterGlobalAccessConfig + masterGlobalAccessConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder> + masterGlobalAccessConfigBuilder_; + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return Whether the masterGlobalAccessConfig field is set. + */ + public boolean hasMasterGlobalAccessConfig() { + return masterGlobalAccessConfigBuilder_ != null || masterGlobalAccessConfig_ != null; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return The masterGlobalAccessConfig. + */ + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig + getMasterGlobalAccessConfig() { + if (masterGlobalAccessConfigBuilder_ == null) { + return masterGlobalAccessConfig_ == null + ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() + : masterGlobalAccessConfig_; + } else { + return masterGlobalAccessConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder setMasterGlobalAccessConfig( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { + if (masterGlobalAccessConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterGlobalAccessConfig_ = value; + onChanged(); + } else { + masterGlobalAccessConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder setMasterGlobalAccessConfig( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder builderForValue) { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = builderForValue.build(); + onChanged(); + } else { + masterGlobalAccessConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder mergeMasterGlobalAccessConfig( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { + if (masterGlobalAccessConfigBuilder_ == null) { + if (masterGlobalAccessConfig_ != null) { + masterGlobalAccessConfig_ = + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.newBuilder( + masterGlobalAccessConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + masterGlobalAccessConfig_ = value; + } + onChanged(); + } else { + masterGlobalAccessConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder clearMasterGlobalAccessConfig() { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = null; + onChanged(); + } else { + masterGlobalAccessConfig_ = null; + masterGlobalAccessConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder + getMasterGlobalAccessConfigBuilder() { + + onChanged(); + return getMasterGlobalAccessConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder + getMasterGlobalAccessConfigOrBuilder() { + if (masterGlobalAccessConfigBuilder_ != null) { + return masterGlobalAccessConfigBuilder_.getMessageOrBuilder(); + } else { + return masterGlobalAccessConfig_ == null + ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() + : masterGlobalAccessConfig_; + } + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder> + getMasterGlobalAccessConfigFieldBuilder() { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder>( + getMasterGlobalAccessConfig(), getParentForChildren(), isClean()); + masterGlobalAccessConfig_ = null; + } + return masterGlobalAccessConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java index 6049cad5..61470067 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java @@ -131,4 +131,71 @@ public interface PrivateClusterConfigOrBuilder * @return The bytes for publicEndpoint. */ com.google.protobuf.ByteString getPublicEndpointBytes(); + + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The peeringName. + */ + java.lang.String getPeeringName(); + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The bytes for peeringName. + */ + com.google.protobuf.ByteString getPeeringNameBytes(); + + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return Whether the masterGlobalAccessConfig field is set. + */ + boolean hasMasterGlobalAccessConfig(); + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return The masterGlobalAccessConfig. + */ + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig(); + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder + getMasterGlobalAccessConfigOrBuilder(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java new file mode 100644 index 00000000..8a98e852 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java @@ -0,0 +1,555 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for controlling master global access settings.
+ * 
+ * + * Protobuf type {@code google.container.v1.PrivateClusterMasterGlobalAccessConfig} + */ +public final class PrivateClusterMasterGlobalAccessConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + PrivateClusterMasterGlobalAccessConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateClusterMasterGlobalAccessConfig.newBuilder() to construct. + private PrivateClusterMasterGlobalAccessConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateClusterMasterGlobalAccessConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateClusterMasterGlobalAccessConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PrivateClusterMasterGlobalAccessConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.class, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whenever master is accessible globally or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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.v1.PrivateClusterMasterGlobalAccessConfig)) { + return super.equals(obj); + } + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig other = + (com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig 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.PrivateClusterMasterGlobalAccessConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + 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.PrivateClusterMasterGlobalAccessConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + java.io.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.PrivateClusterMasterGlobalAccessConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseDelimitedFrom( + java.io.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.PrivateClusterMasterGlobalAccessConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.PrivateClusterMasterGlobalAccessConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 master global access settings.
+   * 
+ * + * Protobuf type {@code google.container.v1.PrivateClusterMasterGlobalAccessConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.class, + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder.class); + } + + // Construct using com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.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.v1.ClusterServiceProto + .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig + getDefaultInstanceForType() { + return com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig build() { + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig buildPartial() { + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result = + new com.google.container.v1.PrivateClusterMasterGlobalAccessConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) { + return mergeFrom((com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.PrivateClusterMasterGlobalAccessConfig other) { + if (other + == com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.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.v1.PrivateClusterMasterGlobalAccessConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + private static final com.google.container.v1.PrivateClusterMasterGlobalAccessConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.PrivateClusterMasterGlobalAccessConfig(); + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterMasterGlobalAccessConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrivateClusterMasterGlobalAccessConfig(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.PrivateClusterMasterGlobalAccessConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java new file mode 100644 index 00000000..59fcbb68 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface PrivateClusterMasterGlobalAccessConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whenever master is accessible globally or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java index 45e800b8..7a96ac58 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java @@ -182,25 +182,25 @@ public com.google.container.v1.TimeWindowOrBuilder getWindowOrBuilder() { * this window reccurs. They go on for the span of time between the start and * end time. * For example, to have something repeat every weekday, you'd use: - * <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code> + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * <code>FREQ=DAILY</code> + * `FREQ=DAILY` * For the first weekend of every month: - * <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code> + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` * This specifies how frequently the window starts. Eg, if you wanted to have * a 9-5 UTC-4 window every weekday, you'd use something like: - * <code> - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * </code> + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` * Windows can span multiple days. Eg, to make the window encompass every * weekend from midnight Saturday till the last minute of Sunday UTC: - * <code> - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * </code> + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` * Note the start and end time's specific dates are largely arbitrary except * to specify duration of the window and when it first starts. * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. @@ -230,25 +230,25 @@ public java.lang.String getRecurrence() { * this window reccurs. They go on for the span of time between the start and * end time. * For example, to have something repeat every weekday, you'd use: - * <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code> + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * <code>FREQ=DAILY</code> + * `FREQ=DAILY` * For the first weekend of every month: - * <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code> + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` * This specifies how frequently the window starts. Eg, if you wanted to have * a 9-5 UTC-4 window every weekday, you'd use something like: - * <code> - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * </code> + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` * Windows can span multiple days. Eg, to make the window encompass every * weekend from midnight Saturday till the last minute of Sunday UTC: - * <code> - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * </code> + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` * Note the start and end time's specific dates are largely arbitrary except * to specify duration of the window and when it first starts. * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. @@ -805,25 +805,25 @@ public com.google.container.v1.TimeWindowOrBuilder getWindowOrBuilder() { * this window reccurs. They go on for the span of time between the start and * end time. * For example, to have something repeat every weekday, you'd use: - * <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code> + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * <code>FREQ=DAILY</code> + * `FREQ=DAILY` * For the first weekend of every month: - * <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code> + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` * This specifies how frequently the window starts. Eg, if you wanted to have * a 9-5 UTC-4 window every weekday, you'd use something like: - * <code> - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * </code> + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` * Windows can span multiple days. Eg, to make the window encompass every * weekend from midnight Saturday till the last minute of Sunday UTC: - * <code> - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * </code> + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` * Note the start and end time's specific dates are largely arbitrary except * to specify duration of the window and when it first starts. * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. @@ -852,25 +852,25 @@ public java.lang.String getRecurrence() { * this window reccurs. They go on for the span of time between the start and * end time. * For example, to have something repeat every weekday, you'd use: - * <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code> + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * <code>FREQ=DAILY</code> + * `FREQ=DAILY` * For the first weekend of every month: - * <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code> + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` * This specifies how frequently the window starts. Eg, if you wanted to have * a 9-5 UTC-4 window every weekday, you'd use something like: - * <code> - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * </code> + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` * Windows can span multiple days. Eg, to make the window encompass every * weekend from midnight Saturday till the last minute of Sunday UTC: - * <code> - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * </code> + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` * Note the start and end time's specific dates are largely arbitrary except * to specify duration of the window and when it first starts. * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. @@ -899,25 +899,25 @@ public com.google.protobuf.ByteString getRecurrenceBytes() { * this window reccurs. They go on for the span of time between the start and * end time. * For example, to have something repeat every weekday, you'd use: - * <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code> + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * <code>FREQ=DAILY</code> + * `FREQ=DAILY` * For the first weekend of every month: - * <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code> + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` * This specifies how frequently the window starts. Eg, if you wanted to have * a 9-5 UTC-4 window every weekday, you'd use something like: - * <code> - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * </code> + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` * Windows can span multiple days. Eg, to make the window encompass every * weekend from midnight Saturday till the last minute of Sunday UTC: - * <code> - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * </code> + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` * Note the start and end time's specific dates are largely arbitrary except * to specify duration of the window and when it first starts. * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. @@ -945,25 +945,25 @@ public Builder setRecurrence(java.lang.String value) { * this window reccurs. They go on for the span of time between the start and * end time. * For example, to have something repeat every weekday, you'd use: - * <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code> + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * <code>FREQ=DAILY</code> + * `FREQ=DAILY` * For the first weekend of every month: - * <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code> + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` * This specifies how frequently the window starts. Eg, if you wanted to have * a 9-5 UTC-4 window every weekday, you'd use something like: - * <code> - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * </code> + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` * Windows can span multiple days. Eg, to make the window encompass every * weekend from midnight Saturday till the last minute of Sunday UTC: - * <code> - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * </code> + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` * Note the start and end time's specific dates are largely arbitrary except * to specify duration of the window and when it first starts. * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. @@ -987,25 +987,25 @@ public Builder clearRecurrence() { * this window reccurs. They go on for the span of time between the start and * end time. * For example, to have something repeat every weekday, you'd use: - * <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code> + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * <code>FREQ=DAILY</code> + * `FREQ=DAILY` * For the first weekend of every month: - * <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code> + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` * This specifies how frequently the window starts. Eg, if you wanted to have * a 9-5 UTC-4 window every weekday, you'd use something like: - * <code> - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * </code> + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` * Windows can span multiple days. Eg, to make the window encompass every * weekend from midnight Saturday till the last minute of Sunday UTC: - * <code> - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * </code> + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` * Note the start and end time's specific dates are largely arbitrary except * to specify duration of the window and when it first starts. * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java index af82a2ea..c17f3e73 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java @@ -66,25 +66,25 @@ public interface RecurringTimeWindowOrBuilder * this window reccurs. They go on for the span of time between the start and * end time. * For example, to have something repeat every weekday, you'd use: - * <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code> + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * <code>FREQ=DAILY</code> + * `FREQ=DAILY` * For the first weekend of every month: - * <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code> + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` * This specifies how frequently the window starts. Eg, if you wanted to have * a 9-5 UTC-4 window every weekday, you'd use something like: - * <code> - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * </code> + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` * Windows can span multiple days. Eg, to make the window encompass every * weekend from midnight Saturday till the last minute of Sunday UTC: - * <code> - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * </code> + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` * Note the start and end time's specific dates are largely arbitrary except * to specify duration of the window and when it first starts. * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. @@ -103,25 +103,25 @@ public interface RecurringTimeWindowOrBuilder * this window reccurs. They go on for the span of time between the start and * end time. * For example, to have something repeat every weekday, you'd use: - * <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code> + * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * <code>FREQ=DAILY</code> + * `FREQ=DAILY` * For the first weekend of every month: - * <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code> + * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` * This specifies how frequently the window starts. Eg, if you wanted to have * a 9-5 UTC-4 window every weekday, you'd use something like: - * <code> - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * </code> + * ``` + * start time = 2019-01-01T09:00:00-0400 + * end time = 2019-01-01T17:00:00-0400 + * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * ``` * Windows can span multiple days. Eg, to make the window encompass every * weekend from midnight Saturday till the last minute of Sunday UTC: - * <code> - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * </code> + * ``` + * start time = 2019-01-05T00:00:00Z + * end time = 2019-01-07T23:59:00Z + * recurrence = FREQ=WEEKLY;BYDAY=SA + * ``` * Note the start and end time's specific dates are largely arbitrary except * to specify duration of the window and when it first starts. * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java new file mode 100644 index 00000000..a5f1daf7 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java @@ -0,0 +1,805 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * ReleaseChannel indicates which release channel a cluster is
+ * subscribed to. Release channels are arranged in order of risk.
+ * When a cluster is subscribed to a release channel, Google maintains
+ * both the master version and the node version. Node auto-upgrade
+ * defaults to true and cannot be disabled.
+ * 
+ * + * Protobuf type {@code google.container.v1.ReleaseChannel} + */ +public final class ReleaseChannel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ReleaseChannel) + ReleaseChannelOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseChannel.newBuilder() to construct. + private ReleaseChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReleaseChannel() { + channel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReleaseChannel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReleaseChannel( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + channel_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReleaseChannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ReleaseChannel.class, + com.google.container.v1.ReleaseChannel.Builder.class); + } + + /** + * + * + *
+   * Possible values for 'channel'.
+   * 
+ * + * Protobuf enum {@code google.container.v1.ReleaseChannel.Channel} + */ + public enum Channel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * No channel specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * RAPID channel is offered on an early access basis for customers who want
+     * to test new releases.
+     * WARNING: Versions available in the RAPID Channel may be subject to
+     * unresolved issues with no known workaround and are not subject to any
+     * SLAs.
+     * 
+ * + * RAPID = 1; + */ + RAPID(1), + /** + * + * + *
+     * Clusters subscribed to REGULAR receive versions that are considered GA
+     * quality. REGULAR is intended for production users who want to take
+     * advantage of new features.
+     * 
+ * + * REGULAR = 2; + */ + REGULAR(2), + /** + * + * + *
+     * Clusters subscribed to STABLE receive versions that are known to be
+     * stable and reliable in production.
+     * 
+ * + * STABLE = 3; + */ + STABLE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * No channel specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * RAPID channel is offered on an early access basis for customers who want
+     * to test new releases.
+     * WARNING: Versions available in the RAPID Channel may be subject to
+     * unresolved issues with no known workaround and are not subject to any
+     * SLAs.
+     * 
+ * + * RAPID = 1; + */ + public static final int RAPID_VALUE = 1; + /** + * + * + *
+     * Clusters subscribed to REGULAR receive versions that are considered GA
+     * quality. REGULAR is intended for production users who want to take
+     * advantage of new features.
+     * 
+ * + * REGULAR = 2; + */ + public static final int REGULAR_VALUE = 2; + /** + * + * + *
+     * Clusters subscribed to STABLE receive versions that are known to be
+     * stable and reliable in production.
+     * 
+ * + * STABLE = 3; + */ + public static final int STABLE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Channel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Channel forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return RAPID; + case 2: + return REGULAR; + case 3: + return STABLE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Channel findValueByNumber(int number) { + return Channel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.ReleaseChannel.getDescriptor().getEnumTypes().get(0); + } + + private static final Channel[] VALUES = values(); + + public static Channel 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 Channel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.ReleaseChannel.Channel) + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private int channel_; + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1.ReleaseChannel.Channel result = + com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); + return result == null ? com.google.container.v1.ReleaseChannel.Channel.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 (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + output.writeEnum(1, channel_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, channel_); + } + 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.ReleaseChannel)) { + return super.equals(obj); + } + com.google.container.v1.ReleaseChannel other = (com.google.container.v1.ReleaseChannel) obj; + + if (channel_ != other.channel_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + channel_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ReleaseChannel parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ReleaseChannel 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.ReleaseChannel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ReleaseChannel parseFrom( + 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.ReleaseChannel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ReleaseChannel parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ReleaseChannel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ReleaseChannel parseFrom( + java.io.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.ReleaseChannel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ReleaseChannel parseDelimitedFrom( + java.io.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.ReleaseChannel parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ReleaseChannel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.ReleaseChannel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ReleaseChannel indicates which release channel a cluster is
+   * subscribed to. Release channels are arranged in order of risk.
+   * When a cluster is subscribed to a release channel, Google maintains
+   * both the master version and the node version. Node auto-upgrade
+   * defaults to true and cannot be disabled.
+   * 
+ * + * Protobuf type {@code google.container.v1.ReleaseChannel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ReleaseChannel) + com.google.container.v1.ReleaseChannelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReleaseChannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ReleaseChannel.class, + com.google.container.v1.ReleaseChannel.Builder.class); + } + + // Construct using com.google.container.v1.ReleaseChannel.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(); + channel_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReleaseChannel_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ReleaseChannel getDefaultInstanceForType() { + return com.google.container.v1.ReleaseChannel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ReleaseChannel build() { + com.google.container.v1.ReleaseChannel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ReleaseChannel buildPartial() { + com.google.container.v1.ReleaseChannel result = + new com.google.container.v1.ReleaseChannel(this); + result.channel_ = channel_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ReleaseChannel) { + return mergeFrom((com.google.container.v1.ReleaseChannel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ReleaseChannel other) { + if (other == com.google.container.v1.ReleaseChannel.getDefaultInstance()) return this; + if (other.channel_ != 0) { + setChannelValue(other.getChannelValue()); + } + 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.ReleaseChannel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.ReleaseChannel) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int channel_ = 0; + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @param value The enum numeric value on the wire for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelValue(int value) { + + channel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1.ReleaseChannel.Channel result = + com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); + return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.container.v1.ReleaseChannel.Channel value) { + if (value == null) { + throw new NullPointerException(); + } + + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + + channel_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ReleaseChannel) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ReleaseChannel) + private static final com.google.container.v1.ReleaseChannel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ReleaseChannel(); + } + + public static com.google.container.v1.ReleaseChannel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseChannel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReleaseChannel(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.ReleaseChannel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java new file mode 100644 index 00000000..f529cad1 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface ReleaseChannelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ReleaseChannel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + int getChannelValue(); + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + com.google.container.v1.ReleaseChannel.Channel getChannel(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java new file mode 100644 index 00000000..0718551c --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java @@ -0,0 +1,1268 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+ * is the configuration of desired reservation which instances could take
+ * capacity from.
+ * 
+ * + * Protobuf type {@code google.container.v1.ReservationAffinity} + */ +public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ReservationAffinity) + ReservationAffinityOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReservationAffinity.newBuilder() to construct. + private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReservationAffinity() { + consumeReservationType_ = 0; + key_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReservationAffinity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReservationAffinity( + 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(); + + consumeReservationType_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + } + 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_ReservationAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ReservationAffinity.class, + com.google.container.v1.ReservationAffinity.Builder.class); + } + + /** + * + * + *
+   * Indicates whether to consume capacity from a reservation or not.
+   * 
+ * + * Protobuf enum {@code google.container.v1.ReservationAffinity.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * Do not consume from any reserved capacity.
+     * 
+ * + * NO_RESERVATION = 1; + */ + NO_RESERVATION(1), + /** + * + * + *
+     * Consume any reservation available.
+     * 
+ * + * ANY_RESERVATION = 2; + */ + ANY_RESERVATION(2), + /** + * + * + *
+     * Must consume from a specific reservation. Must specify key value fields
+     * for specifying the reservations.
+     * 
+ * + * SPECIFIC_RESERVATION = 3; + */ + SPECIFIC_RESERVATION(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Do not consume from any reserved capacity.
+     * 
+ * + * NO_RESERVATION = 1; + */ + public static final int NO_RESERVATION_VALUE = 1; + /** + * + * + *
+     * Consume any reservation available.
+     * 
+ * + * ANY_RESERVATION = 2; + */ + public static final int ANY_RESERVATION_VALUE = 2; + /** + * + * + *
+     * Must consume from a specific reservation. Must specify key value fields
+     * for specifying the reservations.
+     * 
+ * + * SPECIFIC_RESERVATION = 3; + */ + public static final int SPECIFIC_RESERVATION_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return NO_RESERVATION; + case 2: + return ANY_RESERVATION; + case 3: + return SPECIFIC_RESERVATION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.ReservationAffinity.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.ReservationAffinity.Type) + } + + public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1; + private int consumeReservationType_; + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The enum numeric value on the wire for consumeReservationType. + */ + @java.lang.Override + public int getConsumeReservationTypeValue() { + return consumeReservationType_; + } + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The consumeReservationType. + */ + @java.lang.Override + public com.google.container.v1.ReservationAffinity.Type getConsumeReservationType() { + @SuppressWarnings("deprecation") + com.google.container.v1.ReservationAffinity.Type result = + com.google.container.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null ? com.google.container.v1.ReservationAffinity.Type.UNRECOGNIZED : result; + } + + public static final int KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object key_; + /** + * + * + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+   * the key and specify the name of your reservation as its value.
+   * 
+ * + * string key = 2; + * + * @return The key. + */ + @java.lang.Override + 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; + } + } + /** + * + * + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+   * the key and specify the name of your reservation as its value.
+   * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + @java.lang.Override + 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 VALUES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList values_; + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.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 (consumeReservationType_ + != com.google.container.v1.ReservationAffinity.Type.UNSPECIFIED.getNumber()) { + output.writeEnum(1, consumeReservationType_); + } + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); + } + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (consumeReservationType_ + != com.google.container.v1.ReservationAffinity.Type.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumeReservationType_); + } + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); + } + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().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.v1.ReservationAffinity)) { + return super.equals(obj); + } + com.google.container.v1.ReservationAffinity other = + (com.google.container.v1.ReservationAffinity) obj; + + if (consumeReservationType_ != other.consumeReservationType_) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONSUME_RESERVATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + consumeReservationType_; + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ReservationAffinity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ReservationAffinity 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.ReservationAffinity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ReservationAffinity parseFrom( + 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.ReservationAffinity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ReservationAffinity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ReservationAffinity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ReservationAffinity parseFrom( + java.io.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.ReservationAffinity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ReservationAffinity parseDelimitedFrom( + java.io.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.ReservationAffinity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ReservationAffinity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.ReservationAffinity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * is the configuration of desired reservation which instances could take
+   * capacity from.
+   * 
+ * + * Protobuf type {@code google.container.v1.ReservationAffinity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ReservationAffinity) + com.google.container.v1.ReservationAffinityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReservationAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ReservationAffinity.class, + com.google.container.v1.ReservationAffinity.Builder.class); + } + + // Construct using com.google.container.v1.ReservationAffinity.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(); + consumeReservationType_ = 0; + + key_ = ""; + + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ReservationAffinity_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ReservationAffinity getDefaultInstanceForType() { + return com.google.container.v1.ReservationAffinity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ReservationAffinity build() { + com.google.container.v1.ReservationAffinity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ReservationAffinity buildPartial() { + com.google.container.v1.ReservationAffinity result = + new com.google.container.v1.ReservationAffinity(this); + int from_bitField0_ = bitField0_; + result.consumeReservationType_ = consumeReservationType_; + result.key_ = key_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ReservationAffinity) { + return mergeFrom((com.google.container.v1.ReservationAffinity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ReservationAffinity other) { + if (other == com.google.container.v1.ReservationAffinity.getDefaultInstance()) return this; + if (other.consumeReservationType_ != 0) { + setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + 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.ReservationAffinity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.ReservationAffinity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int consumeReservationType_ = 0; + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The enum numeric value on the wire for consumeReservationType. + */ + @java.lang.Override + public int getConsumeReservationTypeValue() { + return consumeReservationType_; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @param value The enum numeric value on the wire for consumeReservationType to set. + * @return This builder for chaining. + */ + public Builder setConsumeReservationTypeValue(int value) { + + consumeReservationType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The consumeReservationType. + */ + @java.lang.Override + public com.google.container.v1.ReservationAffinity.Type getConsumeReservationType() { + @SuppressWarnings("deprecation") + com.google.container.v1.ReservationAffinity.Type result = + com.google.container.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null + ? com.google.container.v1.ReservationAffinity.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @param value The consumeReservationType to set. + * @return This builder for chaining. + */ + public Builder setConsumeReservationType( + com.google.container.v1.ReservationAffinity.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + consumeReservationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearConsumeReservationType() { + + consumeReservationType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+     * the key and specify the name of your reservation as its value.
+     * 
+ * + * string key = 2; + * + * @return The key. + */ + 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; + } + } + /** + * + * + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+     * the key and specify the name of your reservation as its value.
+     * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + 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; + } + } + /** + * + * + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+     * the key and specify the name of your reservation as its value.
+     * 
+ * + * string key = 2; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+     * the key and specify the name of your reservation as its value.
+     * 
+ * + * string key = 2; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+     * the key and specify the name of your reservation as its value.
+     * 
+ * + * string key = 2; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ReservationAffinity) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ReservationAffinity) + private static final com.google.container.v1.ReservationAffinity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ReservationAffinity(); + } + + public static com.google.container.v1.ReservationAffinity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReservationAffinity(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.ReservationAffinity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java new file mode 100644 index 00000000..87fb27a1 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface ReservationAffinityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ReservationAffinity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The enum numeric value on the wire for consumeReservationType. + */ + int getConsumeReservationTypeValue(); + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The consumeReservationType. + */ + com.google.container.v1.ReservationAffinity.Type getConsumeReservationType(); + + /** + * + * + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+   * the key and specify the name of your reservation as its value.
+   * 
+ * + * string key = 2; + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+   * the key and specify the name of your reservation as its value.
+   * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java index 554f88b9..3b479e5f 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java @@ -208,9 +208,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -235,9 +235,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -929,9 +929,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -955,9 +955,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -981,9 +981,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1006,9 +1006,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1027,9 +1027,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java index dfa038d7..9007e5f8 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java new file mode 100644 index 00000000..df95fe1c --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java @@ -0,0 +1,738 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * SandboxConfig contains configurations of the sandbox to use for the node.
+ * 
+ * + * Protobuf type {@code google.container.v1.SandboxConfig} + */ +public final class SandboxConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.SandboxConfig) + SandboxConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SandboxConfig.newBuilder() to construct. + private SandboxConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SandboxConfig() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SandboxConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SandboxConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SandboxConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SandboxConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SandboxConfig.class, + com.google.container.v1.SandboxConfig.Builder.class); + } + + /** + * + * + *
+   * Possible types of sandboxes.
+   * 
+ * + * Protobuf enum {@code google.container.v1.SandboxConfig.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * Run sandbox using gvisor.
+     * 
+ * + * GVISOR = 1; + */ + GVISOR(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Run sandbox using gvisor.
+     * 
+ * + * GVISOR = 1; + */ + public static final int GVISOR_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return GVISOR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.SandboxConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.SandboxConfig.Type) + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1.SandboxConfig.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1.SandboxConfig.Type result = + com.google.container.v1.SandboxConfig.Type.valueOf(type_); + return result == null ? com.google.container.v1.SandboxConfig.Type.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 (type_ != com.google.container.v1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.google.container.v1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + 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.SandboxConfig)) { + return super.equals(obj); + } + com.google.container.v1.SandboxConfig other = (com.google.container.v1.SandboxConfig) obj; + + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SandboxConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SandboxConfig 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.SandboxConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SandboxConfig parseFrom( + 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.SandboxConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SandboxConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.SandboxConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.SandboxConfig parseFrom( + java.io.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.SandboxConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.SandboxConfig parseDelimitedFrom( + java.io.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.SandboxConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.SandboxConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.SandboxConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SandboxConfig contains configurations of the sandbox to use for the node.
+   * 
+ * + * Protobuf type {@code google.container.v1.SandboxConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SandboxConfig) + com.google.container.v1.SandboxConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SandboxConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SandboxConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SandboxConfig.class, + com.google.container.v1.SandboxConfig.Builder.class); + } + + // Construct using com.google.container.v1.SandboxConfig.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; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SandboxConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SandboxConfig getDefaultInstanceForType() { + return com.google.container.v1.SandboxConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SandboxConfig build() { + com.google.container.v1.SandboxConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SandboxConfig buildPartial() { + com.google.container.v1.SandboxConfig result = + new com.google.container.v1.SandboxConfig(this); + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SandboxConfig) { + return mergeFrom((com.google.container.v1.SandboxConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SandboxConfig other) { + if (other == com.google.container.v1.SandboxConfig.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + 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.SandboxConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.SandboxConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1.SandboxConfig.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1.SandboxConfig.Type result = + com.google.container.v1.SandboxConfig.Type.valueOf(type_); + return result == null ? com.google.container.v1.SandboxConfig.Type.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.container.v1.SandboxConfig.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.SandboxConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SandboxConfig) + private static final com.google.container.v1.SandboxConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.SandboxConfig(); + } + + public static com.google.container.v1.SandboxConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SandboxConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SandboxConfig(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.SandboxConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java new file mode 100644 index 00000000..14fa5bc2 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface SandboxConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SandboxConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * + * @return The type. + */ + com.google.container.v1.SandboxConfig.Type getType(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java index ddfe1bdc..cd48a830 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java @@ -43,6 +43,7 @@ private ServerConfig() { defaultImageType_ = ""; validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + channels_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -119,6 +120,20 @@ private ServerConfig( validMasterVersions_.add(s); break; } + case 74: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + channels_ = + new java.util.ArrayList< + com.google.container.v1.ServerConfig.ReleaseChannelConfig>(); + mutable_bitField0_ |= 0x00000008; + } + channels_.add( + input.readMessage( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.parser(), + extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -142,6 +157,9 @@ private ServerConfig( if (((mutable_bitField0_ & 0x00000004) != 0)) { validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + channels_ = java.util.Collections.unmodifiableList(channels_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -162,6 +180,1167 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.container.v1.ServerConfig.Builder.class); } + public interface ReleaseChannelConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ServerConfig.ReleaseChannelConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + int getChannelValue(); + /** + * + * + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + com.google.container.v1.ReleaseChannel.Channel getChannel(); + + /** + * + * + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * + * @return The defaultVersion. + */ + java.lang.String getDefaultVersion(); + /** + * + * + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * + * @return The bytes for defaultVersion. + */ + com.google.protobuf.ByteString getDefaultVersionBytes(); + + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @return A list containing the validVersions. + */ + java.util.List getValidVersionsList(); + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @return The count of validVersions. + */ + int getValidVersionsCount(); + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the element to return. + * @return The validVersions at the given index. + */ + java.lang.String getValidVersions(int index); + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the validVersions at the given index. + */ + com.google.protobuf.ByteString getValidVersionsBytes(int index); + } + /** + * + * + *
+   * ReleaseChannelConfig exposes configuration for a release channel.
+   * 
+ * + * Protobuf type {@code google.container.v1.ServerConfig.ReleaseChannelConfig} + */ + public static final class ReleaseChannelConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ServerConfig.ReleaseChannelConfig) + ReleaseChannelConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseChannelConfig.newBuilder() to construct. + private ReleaseChannelConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReleaseChannelConfig() { + channel_ = 0; + defaultVersion_ = ""; + validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReleaseChannelConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReleaseChannelConfig( + 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(); + + channel_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + defaultVersion_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + validVersions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + validVersions_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + validVersions_ = validVersions_.getUnmodifiableView(); + } + 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_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.class, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder.class); + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private int channel_; + /** + * + * + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1.ReleaseChannel.Channel result = + com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); + return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; + } + + public static final int DEFAULT_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object defaultVersion_; + /** + * + * + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * + * @return The defaultVersion. + */ + @java.lang.Override + public java.lang.String getDefaultVersion() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultVersion_ = s; + return s; + } + } + /** + * + * + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * + * @return The bytes for defaultVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultVersionBytes() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_VERSIONS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList validVersions_; + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @return A list containing the validVersions. + */ + public com.google.protobuf.ProtocolStringList getValidVersionsList() { + return validVersions_; + } + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @return The count of validVersions. + */ + public int getValidVersionsCount() { + return validVersions_.size(); + } + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the element to return. + * @return The validVersions at the given index. + */ + public java.lang.String getValidVersions(int index) { + return validVersions_.get(index); + } + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the validVersions at the given index. + */ + public com.google.protobuf.ByteString getValidVersionsBytes(int index) { + return validVersions_.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 (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + output.writeEnum(1, channel_); + } + if (!getDefaultVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultVersion_); + } + for (int i = 0; i < validVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, validVersions_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, channel_); + } + if (!getDefaultVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultVersion_); + } + { + int dataSize = 0; + for (int i = 0; i < validVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(validVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getValidVersionsList().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.v1.ServerConfig.ReleaseChannelConfig)) { + return super.equals(obj); + } + com.google.container.v1.ServerConfig.ReleaseChannelConfig other = + (com.google.container.v1.ServerConfig.ReleaseChannelConfig) obj; + + if (channel_ != other.channel_) return false; + if (!getDefaultVersion().equals(other.getDefaultVersion())) return false; + if (!getValidVersionsList().equals(other.getValidVersionsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + channel_; + hash = (37 * hash) + DEFAULT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDefaultVersion().hashCode(); + if (getValidVersionsCount() > 0) { + hash = (37 * hash) + VALID_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getValidVersionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig 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.ServerConfig.ReleaseChannelConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + 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.ServerConfig.ReleaseChannelConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + java.io.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.ServerConfig.ReleaseChannelConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseDelimitedFrom( + java.io.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.ServerConfig.ReleaseChannelConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.ServerConfig.ReleaseChannelConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * ReleaseChannelConfig exposes configuration for a release channel.
+     * 
+ * + * Protobuf type {@code google.container.v1.ServerConfig.ReleaseChannelConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ServerConfig.ReleaseChannelConfig) + com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.class, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder.class); + } + + // Construct using com.google.container.v1.ServerConfig.ReleaseChannelConfig.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(); + channel_ = 0; + + defaultVersion_ = ""; + + validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { + return com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig build() { + com.google.container.v1.ServerConfig.ReleaseChannelConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig buildPartial() { + com.google.container.v1.ServerConfig.ReleaseChannelConfig result = + new com.google.container.v1.ServerConfig.ReleaseChannelConfig(this); + int from_bitField0_ = bitField0_; + result.channel_ = channel_; + result.defaultVersion_ = defaultVersion_; + if (((bitField0_ & 0x00000001) != 0)) { + validVersions_ = validVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.validVersions_ = validVersions_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ServerConfig.ReleaseChannelConfig) { + return mergeFrom((com.google.container.v1.ServerConfig.ReleaseChannelConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ServerConfig.ReleaseChannelConfig other) { + if (other == com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()) + return this; + if (other.channel_ != 0) { + setChannelValue(other.getChannelValue()); + } + if (!other.getDefaultVersion().isEmpty()) { + defaultVersion_ = other.defaultVersion_; + onChanged(); + } + if (!other.validVersions_.isEmpty()) { + if (validVersions_.isEmpty()) { + validVersions_ = other.validVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValidVersionsIsMutable(); + validVersions_.addAll(other.validVersions_); + } + 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.ServerConfig.ReleaseChannelConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.ServerConfig.ReleaseChannelConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int channel_ = 0; + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @param value The enum numeric value on the wire for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelValue(int value) { + + channel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1.ReleaseChannel.Channel result = + com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); + return result == null + ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.container.v1.ReleaseChannel.Channel value) { + if (value == null) { + throw new NullPointerException(); + } + + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + + channel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object defaultVersion_ = ""; + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @return The defaultVersion. + */ + public java.lang.String getDefaultVersion() { + java.lang.Object ref = defaultVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @return The bytes for defaultVersion. + */ + public com.google.protobuf.ByteString getDefaultVersionBytes() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @param value The defaultVersion to set. + * @return This builder for chaining. + */ + public Builder setDefaultVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @return This builder for chaining. + */ + public Builder clearDefaultVersion() { + + defaultVersion_ = getDefaultInstance().getDefaultVersion(); + onChanged(); + return this; + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @param value The bytes for defaultVersion to set. + * @return This builder for chaining. + */ + public Builder setDefaultVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultVersion_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + validVersions_ = new com.google.protobuf.LazyStringArrayList(validVersions_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @return A list containing the validVersions. + */ + public com.google.protobuf.ProtocolStringList getValidVersionsList() { + return validVersions_.getUnmodifiableView(); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @return The count of validVersions. + */ + public int getValidVersionsCount() { + return validVersions_.size(); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the element to return. + * @return The validVersions at the given index. + */ + public java.lang.String getValidVersions(int index) { + return validVersions_.get(index); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the validVersions at the given index. + */ + public com.google.protobuf.ByteString getValidVersionsBytes(int index) { + return validVersions_.getByteString(index); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index to set the value at. + * @param value The validVersions to set. + * @return This builder for chaining. + */ + public Builder setValidVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidVersionsIsMutable(); + validVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param value The validVersions to add. + * @return This builder for chaining. + */ + public Builder addValidVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidVersionsIsMutable(); + validVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param values The validVersions to add. + * @return This builder for chaining. + */ + public Builder addAllValidVersions(java.lang.Iterable values) { + ensureValidVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validVersions_); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @return This builder for chaining. + */ + public Builder clearValidVersions() { + validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param value The bytes of the validVersions to add. + * @return This builder for chaining. + */ + public Builder addValidVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidVersionsIsMutable(); + validVersions_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ServerConfig.ReleaseChannelConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ServerConfig.ReleaseChannelConfig) + private static final com.google.container.v1.ServerConfig.ReleaseChannelConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ServerConfig.ReleaseChannelConfig(); + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseChannelConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReleaseChannelConfig(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.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object defaultClusterVersion_; /** @@ -217,7 +1396,7 @@ public com.google.protobuf.ByteString getDefaultClusterVersionBytes() { * * *
-   * List of valid node upgrade target versions.
+   * List of valid node upgrade target versions, in descending order.
    * 
* * repeated string valid_node_versions = 3; @@ -231,7 +1410,7 @@ public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { * * *
-   * List of valid node upgrade target versions.
+   * List of valid node upgrade target versions, in descending order.
    * 
* * repeated string valid_node_versions = 3; @@ -245,7 +1424,7 @@ public int getValidNodeVersionsCount() { * * *
-   * List of valid node upgrade target versions.
+   * List of valid node upgrade target versions, in descending order.
    * 
* * repeated string valid_node_versions = 3; @@ -260,7 +1439,7 @@ public java.lang.String getValidNodeVersions(int index) { * * *
-   * List of valid node upgrade target versions.
+   * List of valid node upgrade target versions, in descending order.
    * 
* * repeated string valid_node_versions = 3; @@ -363,84 +1542,156 @@ public int getValidImageTypesCount() { * @param index The index of the element to return. * @return The validImageTypes at the given index. */ - public java.lang.String getValidImageTypes(int index) { - return validImageTypes_.get(index); + public java.lang.String getValidImageTypes(int index) { + return validImageTypes_.get(index); + } + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the validImageTypes at the given index. + */ + 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, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @return A list containing the validMasterVersions. + */ + public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { + return validMasterVersions_; + } + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @return The count of validMasterVersions. + */ + public int getValidMasterVersionsCount() { + return validMasterVersions_.size(); + } + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the element to return. + * @return The validMasterVersions at the given index. + */ + public java.lang.String getValidMasterVersions(int index) { + return validMasterVersions_.get(index); + } + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the value to return. + * @return The bytes of the validMasterVersions at the given index. + */ + public com.google.protobuf.ByteString getValidMasterVersionsBytes(int index) { + return validMasterVersions_.getByteString(index); } + + public static final int CHANNELS_FIELD_NUMBER = 9; + private java.util.List channels_; /** * * *
-   * List of valid image types.
+   * List of release channel configurations.
    * 
* - * repeated string valid_image_types = 5; - * - * @param index The index of the value to return. - * @return The bytes of the validImageTypes at the given index. + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; */ - public com.google.protobuf.ByteString getValidImageTypesBytes(int index) { - return validImageTypes_.getByteString(index); + @java.lang.Override + public java.util.List + getChannelsList() { + return channels_; } - - public static final int VALID_MASTER_VERSIONS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList validMasterVersions_; /** * * *
-   * List of valid master versions.
+   * List of release channel configurations.
    * 
* - * repeated string valid_master_versions = 6; - * - * @return A list containing the validMasterVersions. + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; */ - public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { - return validMasterVersions_; + @java.lang.Override + public java.util.List< + ? extends com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> + getChannelsOrBuilderList() { + return channels_; } /** * * *
-   * List of valid master versions.
+   * List of release channel configurations.
    * 
* - * repeated string valid_master_versions = 6; - * - * @return The count of validMasterVersions. + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; */ - public int getValidMasterVersionsCount() { - return validMasterVersions_.size(); + @java.lang.Override + public int getChannelsCount() { + return channels_.size(); } /** * * *
-   * List of valid master versions.
+   * List of release channel configurations.
    * 
* - * repeated string valid_master_versions = 6; - * - * @param index The index of the element to return. - * @return The validMasterVersions at the given index. + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; */ - public java.lang.String getValidMasterVersions(int index) { - return validMasterVersions_.get(index); + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index) { + return channels_.get(index); } /** * * *
-   * List of valid master versions.
+   * List of release channel configurations.
    * 
* - * repeated string valid_master_versions = 6; - * - * @param index The index of the value to return. - * @return The bytes of the validMasterVersions at the given index. + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; */ - public com.google.protobuf.ByteString getValidMasterVersionsBytes(int index) { - return validMasterVersions_.getByteString(index); + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( + int index) { + return channels_.get(index); } private byte memoizedIsInitialized = -1; @@ -472,6 +1723,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < validMasterVersions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, validMasterVersions_.getRaw(i)); } + for (int i = 0; i < channels_.size(); i++) { + output.writeMessage(9, channels_.get(i)); + } unknownFields.writeTo(output); } @@ -511,6 +1765,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getValidMasterVersionsList().size(); } + for (int i = 0; i < channels_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, channels_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -531,6 +1788,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDefaultImageType().equals(other.getDefaultImageType())) return false; if (!getValidImageTypesList().equals(other.getValidImageTypesList())) return false; if (!getValidMasterVersionsList().equals(other.getValidMasterVersionsList())) return false; + if (!getChannelsList().equals(other.getChannelsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -558,6 +1816,10 @@ public int hashCode() { hash = (37 * hash) + VALID_MASTER_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getValidMasterVersionsList().hashCode(); } + if (getChannelsCount() > 0) { + hash = (37 * hash) + CHANNELS_FIELD_NUMBER; + hash = (53 * hash) + getChannelsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -696,7 +1958,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getChannelsFieldBuilder(); + } } @java.lang.Override @@ -712,6 +1976,12 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000002); validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + channelsBuilder_.clear(); + } return this; } @@ -756,6 +2026,15 @@ public com.google.container.v1.ServerConfig buildPartial() { bitField0_ = (bitField0_ & ~0x00000004); } result.validMasterVersions_ = validMasterVersions_; + if (channelsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + channels_ = java.util.Collections.unmodifiableList(channels_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.channels_ = channels_; + } else { + result.channels_ = channelsBuilder_.build(); + } onBuilt(); return result; } @@ -843,6 +2122,33 @@ public Builder mergeFrom(com.google.container.v1.ServerConfig other) { } onChanged(); } + if (channelsBuilder_ == null) { + if (!other.channels_.isEmpty()) { + if (channels_.isEmpty()) { + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureChannelsIsMutable(); + channels_.addAll(other.channels_); + } + onChanged(); + } + } else { + if (!other.channels_.isEmpty()) { + if (channelsBuilder_.isEmpty()) { + channelsBuilder_.dispose(); + channelsBuilder_ = null; + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000008); + channelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChannelsFieldBuilder() + : null; + } else { + channelsBuilder_.addAllMessages(other.channels_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -993,7 +2299,7 @@ private void ensureValidNodeVersionsIsMutable() { * * *
-     * List of valid node upgrade target versions.
+     * List of valid node upgrade target versions, in descending order.
      * 
* * repeated string valid_node_versions = 3; @@ -1007,7 +2313,7 @@ public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { * * *
-     * List of valid node upgrade target versions.
+     * List of valid node upgrade target versions, in descending order.
      * 
* * repeated string valid_node_versions = 3; @@ -1021,7 +2327,7 @@ public int getValidNodeVersionsCount() { * * *
-     * List of valid node upgrade target versions.
+     * List of valid node upgrade target versions, in descending order.
      * 
* * repeated string valid_node_versions = 3; @@ -1036,7 +2342,7 @@ public java.lang.String getValidNodeVersions(int index) { * * *
-     * List of valid node upgrade target versions.
+     * List of valid node upgrade target versions, in descending order.
      * 
* * repeated string valid_node_versions = 3; @@ -1051,7 +2357,7 @@ public com.google.protobuf.ByteString getValidNodeVersionsBytes(int index) { * * *
-     * List of valid node upgrade target versions.
+     * List of valid node upgrade target versions, in descending order.
      * 
* * repeated string valid_node_versions = 3; @@ -1073,7 +2379,7 @@ public Builder setValidNodeVersions(int index, java.lang.String value) { * * *
-     * List of valid node upgrade target versions.
+     * List of valid node upgrade target versions, in descending order.
      * 
* * repeated string valid_node_versions = 3; @@ -1094,7 +2400,7 @@ public Builder addValidNodeVersions(java.lang.String value) { * * *
-     * List of valid node upgrade target versions.
+     * List of valid node upgrade target versions, in descending order.
      * 
* * repeated string valid_node_versions = 3; @@ -1112,7 +2418,7 @@ public Builder addAllValidNodeVersions(java.lang.Iterable valu * * *
-     * List of valid node upgrade target versions.
+     * List of valid node upgrade target versions, in descending order.
      * 
* * repeated string valid_node_versions = 3; @@ -1129,7 +2435,7 @@ public Builder clearValidNodeVersions() { * * *
-     * List of valid node upgrade target versions.
+     * List of valid node upgrade target versions, in descending order.
      * 
* * repeated string valid_node_versions = 3; @@ -1435,7 +2741,7 @@ private void ensureValidMasterVersionsIsMutable() { * * *
-     * List of valid master versions.
+     * List of valid master versions, in descending order.
      * 
* * repeated string valid_master_versions = 6; @@ -1449,7 +2755,7 @@ public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { * * *
-     * List of valid master versions.
+     * List of valid master versions, in descending order.
      * 
* * repeated string valid_master_versions = 6; @@ -1463,7 +2769,7 @@ public int getValidMasterVersionsCount() { * * *
-     * List of valid master versions.
+     * List of valid master versions, in descending order.
      * 
* * repeated string valid_master_versions = 6; @@ -1478,7 +2784,7 @@ public java.lang.String getValidMasterVersions(int index) { * * *
-     * List of valid master versions.
+     * List of valid master versions, in descending order.
      * 
* * repeated string valid_master_versions = 6; @@ -1493,7 +2799,7 @@ public com.google.protobuf.ByteString getValidMasterVersionsBytes(int index) { * * *
-     * List of valid master versions.
+     * List of valid master versions, in descending order.
      * 
* * repeated string valid_master_versions = 6; @@ -1515,7 +2821,7 @@ public Builder setValidMasterVersions(int index, java.lang.String value) { * * *
-     * List of valid master versions.
+     * List of valid master versions, in descending order.
      * 
* * repeated string valid_master_versions = 6; @@ -1536,7 +2842,7 @@ public Builder addValidMasterVersions(java.lang.String value) { * * *
-     * List of valid master versions.
+     * List of valid master versions, in descending order.
      * 
* * repeated string valid_master_versions = 6; @@ -1554,7 +2860,7 @@ public Builder addAllValidMasterVersions(java.lang.Iterable va * * *
-     * List of valid master versions.
+     * List of valid master versions, in descending order.
      * 
* * repeated string valid_master_versions = 6; @@ -1571,7 +2877,7 @@ public Builder clearValidMasterVersions() { * * *
-     * List of valid master versions.
+     * List of valid master versions, in descending order.
      * 
* * repeated string valid_master_versions = 6; @@ -1590,6 +2896,371 @@ public Builder addValidMasterVersionsBytes(com.google.protobuf.ByteString value) return this; } + private java.util.List channels_ = + java.util.Collections.emptyList(); + + private void ensureChannelsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + channels_ = + new java.util.ArrayList( + channels_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ServerConfig.ReleaseChannelConfig, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, + com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> + channelsBuilder_; + + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public java.util.List + getChannelsList() { + if (channelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(channels_); + } else { + return channelsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public int getChannelsCount() { + if (channelsBuilder_ == null) { + return channels_.size(); + } else { + return channelsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder setChannels( + int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.set(index, value); + onChanged(); + } else { + channelsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder setChannels( + int index, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.set(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addChannels(com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(value); + onChanged(); + } else { + channelsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addChannels( + int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(index, value); + onChanged(); + } else { + channelsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addChannels( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addChannels( + int index, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addAllChannels( + java.lang.Iterable + values) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channels_); + onChanged(); + } else { + channelsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder clearChannels() { + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + channelsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder removeChannels(int index) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.remove(index); + onChanged(); + } else { + channelsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder getChannelsBuilder( + int index) { + return getChannelsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( + int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public java.util.List< + ? extends com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> + getChannelsOrBuilderList() { + if (channelsBuilder_ != null) { + return channelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(channels_); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder() { + return getChannelsFieldBuilder() + .addBuilder( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder( + int index) { + return getChannelsFieldBuilder() + .addBuilder( + index, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public java.util.List + getChannelsBuilderList() { + return getChannelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ServerConfig.ReleaseChannelConfig, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, + com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> + getChannelsFieldBuilder() { + if (channelsBuilder_ == null) { + channelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ServerConfig.ReleaseChannelConfig, + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, + com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder>( + channels_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + channels_ = null; + } + return channelsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java index 895799ab..e9170ae7 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java @@ -52,7 +52,7 @@ public interface ServerConfigOrBuilder * * *
-   * List of valid node upgrade target versions.
+   * List of valid node upgrade target versions, in descending order.
    * 
* * repeated string valid_node_versions = 3; @@ -64,7 +64,7 @@ public interface ServerConfigOrBuilder * * *
-   * List of valid node upgrade target versions.
+   * List of valid node upgrade target versions, in descending order.
    * 
* * repeated string valid_node_versions = 3; @@ -76,7 +76,7 @@ public interface ServerConfigOrBuilder * * *
-   * List of valid node upgrade target versions.
+   * List of valid node upgrade target versions, in descending order.
    * 
* * repeated string valid_node_versions = 3; @@ -89,7 +89,7 @@ public interface ServerConfigOrBuilder * * *
-   * List of valid node upgrade target versions.
+   * List of valid node upgrade target versions, in descending order.
    * 
* * repeated string valid_node_versions = 3; @@ -179,7 +179,7 @@ public interface ServerConfigOrBuilder * * *
-   * List of valid master versions.
+   * List of valid master versions, in descending order.
    * 
* * repeated string valid_master_versions = 6; @@ -191,7 +191,7 @@ public interface ServerConfigOrBuilder * * *
-   * List of valid master versions.
+   * List of valid master versions, in descending order.
    * 
* * repeated string valid_master_versions = 6; @@ -203,7 +203,7 @@ public interface ServerConfigOrBuilder * * *
-   * List of valid master versions.
+   * List of valid master versions, in descending order.
    * 
* * repeated string valid_master_versions = 6; @@ -216,7 +216,7 @@ public interface ServerConfigOrBuilder * * *
-   * List of valid master versions.
+   * List of valid master versions, in descending order.
    * 
* * repeated string valid_master_versions = 6; @@ -225,4 +225,57 @@ public interface ServerConfigOrBuilder * @return The bytes of the validMasterVersions at the given index. */ com.google.protobuf.ByteString getValidMasterVersionsBytes(int index); + + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + java.util.List getChannelsList(); + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index); + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + int getChannelsCount(); + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + java.util.List + getChannelsOrBuilderList(); + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( + int index); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java index 8117bfb8..8b999199 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java @@ -213,9 +213,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -240,9 +240,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -943,9 +943,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -969,9 +969,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -995,9 +995,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1020,9 +1020,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1041,9 +1041,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java index 4bc6e3db..1a57973f 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface SetAddonsConfigRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface SetAddonsConfigRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java index fc0d9d5d..c7368778 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java @@ -236,9 +236,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -263,9 +263,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -454,7 +454,7 @@ public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { * 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 + * updating or changing labels. Make a `get()` request to the * resource to get the latest fingerprint. *
* @@ -482,7 +482,7 @@ public java.lang.String getLabelFingerprint() { * 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 + * updating or changing labels. Make a `get()` request to the * resource to get the latest fingerprint. *
* @@ -1106,9 +1106,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1132,9 +1132,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1158,9 +1158,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1183,9 +1183,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1204,9 +1204,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1525,7 +1525,7 @@ public Builder putAllResourceLabels(java.util.Map * @@ -1552,7 +1552,7 @@ public java.lang.String getLabelFingerprint() { * 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 + * updating or changing labels. Make a `get()` request to the * resource to get the latest fingerprint. *
* @@ -1579,7 +1579,7 @@ public com.google.protobuf.ByteString getLabelFingerprintBytes() { * 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 + * updating or changing labels. Make a `get()` request to the * resource to get the latest fingerprint. * * @@ -1605,7 +1605,7 @@ public Builder setLabelFingerprint(java.lang.String value) { * 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 + * updating or changing labels. Make a `get()` request to the * resource to get the latest fingerprint. * * @@ -1627,7 +1627,7 @@ public Builder clearLabelFingerprint() { * 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 + * updating or changing labels. Make a `get()` request to the * resource to get the latest fingerprint. * * diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java index 678837d3..aee07533 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface SetLabelsRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface SetLabelsRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -183,7 +183,7 @@ public interface SetLabelsRequestOrBuilder * 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 + * updating or changing labels. Make a `get()` request to the * resource to get the latest fingerprint. * * @@ -200,7 +200,7 @@ public interface SetLabelsRequestOrBuilder * 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 + * updating or changing labels. Make a `get()` request to the * resource to get the latest fingerprint. * * diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java index ca98b260..55566986 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java @@ -203,9 +203,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -230,9 +230,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -882,9 +882,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -908,9 +908,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -934,9 +934,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -959,9 +959,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -980,9 +980,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java index 008f5b8c..9c8fe9d0 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface SetLegacyAbacRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface SetLegacyAbacRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java index bf5fbf3f..4f7add0b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java @@ -212,9 +212,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -239,9 +239,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -322,10 +322,10 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * *
    * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/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.
    * 
* @@ -341,10 +341,10 @@ public com.google.protobuf.ProtocolStringList getLocationsList() { * *
    * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/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.
    * 
* @@ -360,10 +360,10 @@ public int getLocationsCount() { * *
    * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/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.
    * 
* @@ -380,10 +380,10 @@ public java.lang.String getLocations(int index) { * *
    * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/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.
    * 
* @@ -974,9 +974,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1000,9 +1000,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1026,9 +1026,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1051,9 +1051,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1072,9 +1072,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1224,10 +1224,10 @@ private void ensureLocationsIsMutable() { * *
      * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/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.
      * 
* @@ -1243,10 +1243,10 @@ public com.google.protobuf.ProtocolStringList getLocationsList() { * *
      * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/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.
      * 
* @@ -1262,10 +1262,10 @@ public int getLocationsCount() { * *
      * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/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.
      * 
* @@ -1282,10 +1282,10 @@ public java.lang.String getLocations(int index) { * *
      * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/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.
      * 
* @@ -1302,10 +1302,10 @@ public com.google.protobuf.ByteString getLocationsBytes(int index) { * *
      * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/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.
      * 
* @@ -1329,10 +1329,10 @@ public Builder setLocations(int index, java.lang.String value) { * *
      * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/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.
      * 
* @@ -1355,10 +1355,10 @@ public Builder addLocations(java.lang.String value) { * *
      * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/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.
      * 
* @@ -1378,10 +1378,10 @@ public Builder addAllLocations(java.lang.Iterable values) { * *
      * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/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.
      * 
* @@ -1400,10 +1400,10 @@ public Builder clearLocations() { * *
      * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/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.
+     * [zones](https://cloud.google.com/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.
      * 
* diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java index 8bec7d47..bb07979e 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface SetLocationsRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface SetLocationsRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -121,10 +121,10 @@ public interface SetLocationsRequestOrBuilder * *
    * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/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.
    * 
* @@ -138,10 +138,10 @@ public interface SetLocationsRequestOrBuilder * *
    * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/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.
    * 
* @@ -155,10 +155,10 @@ public interface SetLocationsRequestOrBuilder * *
    * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/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.
    * 
* @@ -173,10 +173,10 @@ public interface SetLocationsRequestOrBuilder * *
    * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/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.
+   * [zones](https://cloud.google.com/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.
    * 
* diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java index ea9659fd..51b7adc9 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java @@ -205,9 +205,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -232,9 +232,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -314,10 +314,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * Required. The logging service the cluster should use to write metrics.
+   * Required. The logging service the cluster should use to write logs.
    * Currently available options:
-   * * "logging.googleapis.com" - the Google Cloud Logging service
-   * * "none" - no metrics will be exported from the cluster
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
    * 
* * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -340,10 +345,15 @@ public java.lang.String getLoggingService() { * * *
-   * Required. The logging service the cluster should use to write metrics.
+   * Required. The logging service the cluster should use to write logs.
    * Currently available options:
-   * * "logging.googleapis.com" - the Google Cloud Logging service
-   * * "none" - no metrics will be exported from the cluster
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
    * 
* * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -922,9 +932,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -948,9 +958,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -974,9 +984,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -999,9 +1009,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1020,9 +1030,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1163,10 +1173,15 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The logging service the cluster should use to write metrics.
+     * Required. The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com" - the Google Cloud Logging service
-     * * "none" - no metrics will be exported from the cluster
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1188,10 +1203,15 @@ public java.lang.String getLoggingService() { * * *
-     * Required. The logging service the cluster should use to write metrics.
+     * Required. The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com" - the Google Cloud Logging service
-     * * "none" - no metrics will be exported from the cluster
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1213,10 +1233,15 @@ public com.google.protobuf.ByteString getLoggingServiceBytes() { * * *
-     * Required. The logging service the cluster should use to write metrics.
+     * Required. The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com" - the Google Cloud Logging service
-     * * "none" - no metrics will be exported from the cluster
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1237,10 +1262,15 @@ public Builder setLoggingService(java.lang.String value) { * * *
-     * Required. The logging service the cluster should use to write metrics.
+     * Required. The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com" - the Google Cloud Logging service
-     * * "none" - no metrics will be exported from the cluster
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1257,10 +1287,15 @@ public Builder clearLoggingService() { * * *
-     * Required. The logging service the cluster should use to write metrics.
+     * Required. The logging service the cluster should use to write logs.
      * Currently available options:
-     * * "logging.googleapis.com" - the Google Cloud Logging service
-     * * "none" - no metrics will be exported from the cluster
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
      * 
* * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java index 77f5f7c9..073417d6 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface SetLoggingServiceRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface SetLoggingServiceRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -120,10 +120,15 @@ public interface SetLoggingServiceRequestOrBuilder * * *
-   * Required. The logging service the cluster should use to write metrics.
+   * Required. The logging service the cluster should use to write logs.
    * Currently available options:
-   * * "logging.googleapis.com" - the Google Cloud Logging service
-   * * "none" - no metrics will be exported from the cluster
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
    * 
* * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -135,10 +140,15 @@ public interface SetLoggingServiceRequestOrBuilder * * *
-   * Required. The logging service the cluster should use to write metrics.
+   * Required. The logging service the cluster should use to write logs.
    * Currently available options:
-   * * "logging.googleapis.com" - the Google Cloud Logging service
-   * * "none" - no metrics will be exported from the cluster
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
    * 
* * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java index 0c47afd8..b19d76d1 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java @@ -209,8 +209,8 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Required. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides.
    * 
* * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -234,8 +234,8 @@ public java.lang.String getZone() { * *
    * Required. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides.
    * 
* * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -925,8 +925,8 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
      * 
* * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -949,8 +949,8 @@ public java.lang.String getZone() { * *
      * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
      * 
* * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -973,8 +973,8 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
      * 
* * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -996,8 +996,8 @@ public Builder setZone(java.lang.String value) { * *
      * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
      * 
* * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1015,8 +1015,8 @@ public Builder clearZone() { * *
      * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
      * 
* * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java index d35f3884..15237d34 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java @@ -55,8 +55,8 @@ public interface SetMaintenancePolicyRequestOrBuilder * *
    * Required. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides.
    * 
* * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -69,8 +69,8 @@ public interface SetMaintenancePolicyRequestOrBuilder * *
    * Required. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides.
    * 
* * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java index c480c061..a66d5a73 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java @@ -405,9 +405,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -432,9 +432,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -1184,9 +1184,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1210,9 +1210,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1236,9 +1236,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1261,9 +1261,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1282,9 +1282,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java index f4a62683..8ef7013b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface SetMasterAuthRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface SetMasterAuthRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java index 8618b705..690c478d 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java @@ -205,9 +205,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -232,9 +232,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -316,10 +316,13 @@ public com.google.protobuf.ByteString getClusterIdBytes() { *
    * Required. 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
-   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-   * * "none" - no metrics will be exported from the cluster
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
    * 
* * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -344,10 +347,13 @@ public java.lang.String getMonitoringService() { *
    * Required. 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
-   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-   * * "none" - no metrics will be exported from the cluster
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
    * 
* * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -927,9 +933,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -953,9 +959,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -979,9 +985,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1004,9 +1010,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1025,9 +1031,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1170,10 +1176,13 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { *
      * Required. 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
-     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-     * * "none" - no metrics will be exported from the cluster
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1197,10 +1206,13 @@ public java.lang.String getMonitoringService() { *
      * Required. 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
-     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-     * * "none" - no metrics will be exported from the cluster
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1224,10 +1236,13 @@ public com.google.protobuf.ByteString getMonitoringServiceBytes() { *
      * Required. 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
-     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-     * * "none" - no metrics will be exported from the cluster
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1250,10 +1265,13 @@ public Builder setMonitoringService(java.lang.String value) { *
      * Required. 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
-     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-     * * "none" - no metrics will be exported from the cluster
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1272,10 +1290,13 @@ public Builder clearMonitoringService() { *
      * Required. 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
-     * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-     * * "none" - no metrics will be exported from the cluster
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
      * 
* * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java index ae748e84..b9c41c7a 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface SetMonitoringServiceRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface SetMonitoringServiceRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -122,10 +122,13 @@ public interface SetMonitoringServiceRequestOrBuilder *
    * Required. 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
-   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-   * * "none" - no metrics will be exported from the cluster
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
    * 
* * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -139,10 +142,13 @@ public interface SetMonitoringServiceRequestOrBuilder *
    * Required. 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
-   * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
-   * * "none" - no metrics will be exported from the cluster
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
    * 
* * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java index e505127e..754e4006 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java @@ -213,9 +213,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -240,9 +240,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -941,9 +941,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -967,9 +967,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -993,9 +993,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1018,9 +1018,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1039,9 +1039,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java index 4ff31d44..a90459fa 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface SetNetworkPolicyRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface SetNetworkPolicyRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java index 7f9f66e9..d8a57ed8 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java @@ -221,9 +221,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -248,9 +248,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -1022,9 +1022,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1048,9 +1048,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1074,9 +1074,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1099,9 +1099,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1120,9 +1120,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java index 36ef3b0a..92f28035 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java index e1d5830a..019ecf37 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java @@ -222,9 +222,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -249,9 +249,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -1023,9 +1023,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1049,9 +1049,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1075,9 +1075,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1100,9 +1100,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1121,9 +1121,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java index b4a7bb63..06669a73 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface SetNodePoolManagementRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface SetNodePoolManagementRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java index 3882d839..47f8d3cb 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java @@ -211,9 +211,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -238,9 +238,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -961,9 +961,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -987,9 +987,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1013,9 +1013,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1038,9 +1038,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1059,9 +1059,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java index 58a4d4c8..c107d3a0 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface SetNodePoolSizeRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface SetNodePoolSizeRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java new file mode 100644 index 00000000..dcda1198 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java @@ -0,0 +1,542 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration of Shielded Nodes feature.
+ * 
+ * + * Protobuf type {@code google.container.v1.ShieldedNodes} + */ +public final class ShieldedNodes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ShieldedNodes) + ShieldedNodesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShieldedNodes.newBuilder() to construct. + private ShieldedNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShieldedNodes() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShieldedNodes(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ShieldedNodes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ShieldedNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ShieldedNodes.class, + com.google.container.v1.ShieldedNodes.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + 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.v1.ShieldedNodes)) { + return super.equals(obj); + } + com.google.container.v1.ShieldedNodes other = (com.google.container.v1.ShieldedNodes) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + 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.v1.ShieldedNodes parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ShieldedNodes 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.ShieldedNodes parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ShieldedNodes parseFrom( + 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.ShieldedNodes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ShieldedNodes parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ShieldedNodes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ShieldedNodes parseFrom( + java.io.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.ShieldedNodes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ShieldedNodes parseDelimitedFrom( + java.io.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.ShieldedNodes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ShieldedNodes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.ShieldedNodes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration of Shielded Nodes feature.
+   * 
+ * + * Protobuf type {@code google.container.v1.ShieldedNodes} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ShieldedNodes) + com.google.container.v1.ShieldedNodesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ShieldedNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ShieldedNodes.class, + com.google.container.v1.ShieldedNodes.Builder.class); + } + + // Construct using com.google.container.v1.ShieldedNodes.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.v1.ClusterServiceProto + .internal_static_google_container_v1_ShieldedNodes_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ShieldedNodes getDefaultInstanceForType() { + return com.google.container.v1.ShieldedNodes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ShieldedNodes build() { + com.google.container.v1.ShieldedNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ShieldedNodes buildPartial() { + com.google.container.v1.ShieldedNodes result = + new com.google.container.v1.ShieldedNodes(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ShieldedNodes) { + return mergeFrom((com.google.container.v1.ShieldedNodes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ShieldedNodes other) { + if (other == com.google.container.v1.ShieldedNodes.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.v1.ShieldedNodes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.ShieldedNodes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ShieldedNodes) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ShieldedNodes) + private static final com.google.container.v1.ShieldedNodes DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ShieldedNodes(); + } + + public static com.google.container.v1.ShieldedNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ShieldedNodes(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.ShieldedNodes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java new file mode 100644 index 00000000..d933e9bd --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface ShieldedNodesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ShieldedNodes) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java index 92d4753c..f836ad58 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java @@ -203,9 +203,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -230,9 +230,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -882,9 +882,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -908,9 +908,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -934,9 +934,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -959,9 +959,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -980,9 +980,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java index 37bd42ea..9e3d8040 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface StartIPRotationRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface StartIPRotationRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java index 9787773d..337cdc90 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java @@ -144,7 +144,8 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * GCE_STOCKOUT indicates a Google Compute Engine stockout.
+     * GCE_STOCKOUT indicates that Google Compute Engine resources are
+     * temporarily unavailable.
      * 
* * GCE_STOCKOUT = 1; @@ -210,7 +211,8 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * GCE_STOCKOUT indicates a Google Compute Engine stockout.
+     * GCE_STOCKOUT indicates that Google Compute Engine resources are
+     * temporarily unavailable.
      * 
* * GCE_STOCKOUT = 1; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java index 6fdc3cb5..11400894 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java @@ -213,9 +213,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -240,9 +240,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -935,9 +935,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -961,9 +961,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -987,9 +987,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1012,9 +1012,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1033,9 +1033,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java index f04c1cef..92695e7f 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface UpdateClusterRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface UpdateClusterRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java index c3ff7afd..06d8349f 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java @@ -205,9 +205,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -232,9 +232,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -929,9 +929,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -955,9 +955,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -981,9 +981,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1006,9 +1006,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1027,9 +1027,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java index 17057d30..09fc4a4b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface UpdateMasterRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface UpdateMasterRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java index 091ed485..72675743 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java @@ -45,6 +45,7 @@ private UpdateNodePoolRequest() { nodeVersion_ = ""; imageType_ = ""; name_ = ""; + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -66,6 +67,7 @@ private UpdateNodePoolRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -123,6 +125,48 @@ private UpdateNodePoolRequest( java.lang.String s = input.readStringRequireUtf8(); name_ = s; + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add(s); + break; + } + case 114: + { + com.google.container.v1.WorkloadMetadataConfig.Builder subBuilder = null; + if (workloadMetadataConfig_ != null) { + subBuilder = workloadMetadataConfig_.toBuilder(); + } + workloadMetadataConfig_ = + input.readMessage( + com.google.container.v1.WorkloadMetadataConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workloadMetadataConfig_); + workloadMetadataConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 122: + { + com.google.container.v1.NodePool.UpgradeSettings.Builder subBuilder = null; + if (upgradeSettings_ != null) { + subBuilder = upgradeSettings_.toBuilder(); + } + upgradeSettings_ = + input.readMessage( + com.google.container.v1.NodePool.UpgradeSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(upgradeSettings_); + upgradeSettings_ = subBuilder.buildPartial(); + } + break; } default: @@ -139,6 +183,9 @@ private UpdateNodePoolRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -221,9 +268,9 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -248,9 +295,9 @@ public java.lang.String getZone() { * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -544,6 +591,180 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfig_ != null; + } + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + return workloadMetadataConfig_ == null + ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + return getWorkloadMetadataConfig(); + } + + public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 15; + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return upgradeSettings_ != null; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + return getUpgradeSettings(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -579,6 +800,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, name_); } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (workloadMetadataConfig_ != null) { + output.writeMessage(14, getWorkloadMetadataConfig()); + } + if (upgradeSettings_ != null) { + output.writeMessage(15, getUpgradeSettings()); + } unknownFields.writeTo(output); } @@ -609,6 +839,21 @@ public int getSerializedSize() { if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, name_); } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + if (workloadMetadataConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, getWorkloadMetadataConfig()); + } + if (upgradeSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUpgradeSettings()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -632,6 +877,15 @@ public boolean equals(final java.lang.Object obj) { if (!getNodeVersion().equals(other.getNodeVersion())) return false; if (!getImageType().equals(other.getImageType())) return false; if (!getName().equals(other.getName())) return false; + if (!getLocationsList().equals(other.getLocationsList())) return false; + if (hasWorkloadMetadataConfig() != other.hasWorkloadMetadataConfig()) return false; + if (hasWorkloadMetadataConfig()) { + if (!getWorkloadMetadataConfig().equals(other.getWorkloadMetadataConfig())) return false; + } + if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; + if (hasUpgradeSettings()) { + if (!getUpgradeSettings().equals(other.getUpgradeSettings())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -657,6 +911,18 @@ public int hashCode() { hash = (53 * hash) + getImageType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + if (hasWorkloadMetadataConfig()) { + hash = (37 * hash) + WORKLOAD_METADATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadMetadataConfig().hashCode(); + } + if (hasUpgradeSettings()) { + hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeSettings().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -816,6 +1082,20 @@ public Builder clear() { name_ = ""; + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } return this; } @@ -843,6 +1123,7 @@ public com.google.container.v1.UpdateNodePoolRequest build() { public com.google.container.v1.UpdateNodePoolRequest buildPartial() { com.google.container.v1.UpdateNodePoolRequest result = new com.google.container.v1.UpdateNodePoolRequest(this); + int from_bitField0_ = bitField0_; result.projectId_ = projectId_; result.zone_ = zone_; result.clusterId_ = clusterId_; @@ -850,6 +1131,21 @@ public com.google.container.v1.UpdateNodePoolRequest buildPartial() { result.nodeVersion_ = nodeVersion_; result.imageType_ = imageType_; result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + if (workloadMetadataConfigBuilder_ == null) { + result.workloadMetadataConfig_ = workloadMetadataConfig_; + } else { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); + } + if (upgradeSettingsBuilder_ == null) { + result.upgradeSettings_ = upgradeSettings_; + } else { + result.upgradeSettings_ = upgradeSettingsBuilder_.build(); + } onBuilt(); return result; } @@ -927,6 +1223,22 @@ public Builder mergeFrom(com.google.container.v1.UpdateNodePoolRequest other) { name_ = other.name_; onChanged(); } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -956,6 +1268,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object projectId_ = ""; /** * @@ -1083,9 +1397,9 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1109,9 +1423,9 @@ public java.lang.String getZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1135,9 +1449,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1160,9 +1474,9 @@ public Builder setZone(java.lang.String value) { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1181,9 +1495,9 @@ public Builder clearZone() { * *
      * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field has been deprecated and replaced by the name field.
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
      * 
* * string zone = 2 [deprecated = true]; @@ -1803,6 +2117,585 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + 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
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + 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
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + 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
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, + com.google.container.v1.WorkloadMetadataConfig.Builder, + com.google.container.v1.WorkloadMetadataConfigOrBuilder> + workloadMetadataConfigBuilder_; + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + return workloadMetadataConfig_ == null + ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } else { + return workloadMetadataConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadMetadataConfig_ = value; + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1.WorkloadMetadataConfig.Builder builderForValue) { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder mergeWorkloadMetadataConfig( + com.google.container.v1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (workloadMetadataConfig_ != null) { + workloadMetadataConfig_ = + com.google.container.v1.WorkloadMetadataConfig.newBuilder(workloadMetadataConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadMetadataConfig_ = value; + } + onChanged(); + } else { + workloadMetadataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder clearWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + onChanged(); + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1.WorkloadMetadataConfig.Builder + getWorkloadMetadataConfigBuilder() { + + onChanged(); + return getWorkloadMetadataConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + if (workloadMetadataConfigBuilder_ != null) { + return workloadMetadataConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadMetadataConfig_ == null + ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, + com.google.container.v1.WorkloadMetadataConfig.Builder, + com.google.container.v1.WorkloadMetadataConfigOrBuilder> + getWorkloadMetadataConfigFieldBuilder() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, + com.google.container.v1.WorkloadMetadataConfig.Builder, + com.google.container.v1.WorkloadMetadataConfigOrBuilder>( + getWorkloadMetadataConfig(), getParentForChildren(), isClean()); + workloadMetadataConfig_ = null; + } + return workloadMetadataConfigBuilder_; + } + + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + upgradeSettingsBuilder_; + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return The upgradeSettings. + */ + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder setUpgradeSettings( + com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (upgradeSettings_ != null) { + upgradeSettings_ = + com.google.container.v1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeSettings_ = value; + } + onChanged(); + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder clearUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + onChanged(); + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { + + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null + ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, + com.google.container.v1.NodePool.UpgradeSettings.Builder, + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), getParentForChildren(), isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java index 1c3423a3..957bde6a 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java @@ -59,9 +59,9 @@ public interface UpdateNodePoolRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -75,9 +75,9 @@ public interface UpdateNodePoolRequestOrBuilder * *
    * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field has been deprecated and replaced by the name field.
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
    * 
* * string zone = 2 [deprecated = true]; @@ -239,4 +239,141 @@ public interface UpdateNodePoolRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + java.util.List getLocationsList(); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + int getLocationsCount(); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + java.lang.String getLocations(int index); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + com.google.protobuf.ByteString getLocationsBytes(int index); + + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + boolean hasWorkloadMetadataConfig(); + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig(); + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); + + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return Whether the upgradeSettings field is set. + */ + boolean hasUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return The upgradeSettings. + */ + com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java new file mode 100644 index 00000000..8d8a69f4 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java @@ -0,0 +1,636 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+ * policies.
+ * 
+ * + * Protobuf type {@code google.container.v1.WorkloadIdentityConfig} + */ +public final class WorkloadIdentityConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadIdentityConfig) + WorkloadIdentityConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkloadIdentityConfig.newBuilder() to construct. + private WorkloadIdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkloadIdentityConfig() { + workloadPool_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkloadIdentityConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WorkloadIdentityConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + workloadPool_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WorkloadIdentityConfig.class, + com.google.container.v1.WorkloadIdentityConfig.Builder.class); + } + + public static final int WORKLOAD_POOL_FIELD_NUMBER = 2; + private volatile java.lang.Object workloadPool_; + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The workloadPool. + */ + @java.lang.Override + public java.lang.String getWorkloadPool() { + java.lang.Object ref = workloadPool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadPool_ = s; + return s; + } + } + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The bytes for workloadPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkloadPoolBytes() { + java.lang.Object ref = workloadPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadPool_ = 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 (!getWorkloadPoolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workloadPool_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getWorkloadPoolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workloadPool_); + } + 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.WorkloadIdentityConfig)) { + return super.equals(obj); + } + com.google.container.v1.WorkloadIdentityConfig other = + (com.google.container.v1.WorkloadIdentityConfig) obj; + + if (!getWorkloadPool().equals(other.getWorkloadPool())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKLOAD_POOL_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadPool().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.WorkloadIdentityConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.WorkloadIdentityConfig 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.WorkloadIdentityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.WorkloadIdentityConfig parseFrom( + 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.WorkloadIdentityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.WorkloadIdentityConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.WorkloadIdentityConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.WorkloadIdentityConfig parseFrom( + java.io.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.WorkloadIdentityConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.WorkloadIdentityConfig parseDelimitedFrom( + java.io.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.WorkloadIdentityConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.WorkloadIdentityConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.WorkloadIdentityConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * Protobuf type {@code google.container.v1.WorkloadIdentityConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.WorkloadIdentityConfig) + com.google.container.v1.WorkloadIdentityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WorkloadIdentityConfig.class, + com.google.container.v1.WorkloadIdentityConfig.Builder.class); + } + + // Construct using com.google.container.v1.WorkloadIdentityConfig.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(); + workloadPool_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig getDefaultInstanceForType() { + return com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig build() { + com.google.container.v1.WorkloadIdentityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig buildPartial() { + com.google.container.v1.WorkloadIdentityConfig result = + new com.google.container.v1.WorkloadIdentityConfig(this); + result.workloadPool_ = workloadPool_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.WorkloadIdentityConfig) { + return mergeFrom((com.google.container.v1.WorkloadIdentityConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.WorkloadIdentityConfig other) { + if (other == com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance()) return this; + if (!other.getWorkloadPool().isEmpty()) { + workloadPool_ = other.workloadPool_; + 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.WorkloadIdentityConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.WorkloadIdentityConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object workloadPool_ = ""; + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @return The workloadPool. + */ + public java.lang.String getWorkloadPool() { + java.lang.Object ref = workloadPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @return The bytes for workloadPool. + */ + public com.google.protobuf.ByteString getWorkloadPoolBytes() { + java.lang.Object ref = workloadPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @param value The workloadPool to set. + * @return This builder for chaining. + */ + public Builder setWorkloadPool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workloadPool_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadPool() { + + workloadPool_ = getDefaultInstance().getWorkloadPool(); + onChanged(); + return this; + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @param value The bytes for workloadPool to set. + * @return This builder for chaining. + */ + public Builder setWorkloadPoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workloadPool_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.WorkloadIdentityConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadIdentityConfig) + private static final com.google.container.v1.WorkloadIdentityConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.WorkloadIdentityConfig(); + } + + public static com.google.container.v1.WorkloadIdentityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadIdentityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkloadIdentityConfig(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.WorkloadIdentityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java new file mode 100644 index 00000000..759c92b4 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface WorkloadIdentityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadIdentityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The workloadPool. + */ + java.lang.String getWorkloadPool(); + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The bytes for workloadPool. + */ + com.google.protobuf.ByteString getWorkloadPoolBytes(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java new file mode 100644 index 00000000..846a98fd --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java @@ -0,0 +1,784 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +/** + * + * + *
+ * WorkloadMetadataConfig defines the metadata configuration to expose to
+ * workloads on the node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1.WorkloadMetadataConfig} + */ +public final class WorkloadMetadataConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.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() { + mode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkloadMetadataConfig(); + } + + @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(); + } + 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 16: + { + int rawValue = input.readEnum(); + + mode_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WorkloadMetadataConfig.class, + com.google.container.v1.WorkloadMetadataConfig.Builder.class); + } + + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node.
+   * 
+ * + * Protobuf enum {@code google.container.v1.WorkloadMetadataConfig.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Expose all Compute Engine metadata to pods.
+     * 
+ * + * GCE_METADATA = 1; + */ + GCE_METADATA(1), + /** + * + * + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA = 2; + */ + GKE_METADATA(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Expose all Compute Engine metadata to pods.
+     * 
+ * + * GCE_METADATA = 1; + */ + public static final int GCE_METADATA_VALUE = 1; + /** + * + * + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA = 2; + */ + public static final int GKE_METADATA_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return GCE_METADATA; + case 2: + return GKE_METADATA; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1.WorkloadMetadataConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.WorkloadMetadataConfig.Mode) + } + + public static final int MODE_FIELD_NUMBER = 2; + private int mode_; + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig.Mode getMode() { + @SuppressWarnings("deprecation") + com.google.container.v1.WorkloadMetadataConfig.Mode result = + com.google.container.v1.WorkloadMetadataConfig.Mode.valueOf(mode_); + return result == null + ? com.google.container.v1.WorkloadMetadataConfig.Mode.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 (mode_ != com.google.container.v1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, mode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ != com.google.container.v1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mode_); + } + 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.WorkloadMetadataConfig)) { + return super.equals(obj); + } + com.google.container.v1.WorkloadMetadataConfig other = + (com.google.container.v1.WorkloadMetadataConfig) obj; + + if (mode_ != other.mode_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.WorkloadMetadataConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.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.v1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.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.v1.WorkloadMetadataConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.WorkloadMetadataConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.WorkloadMetadataConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.WorkloadMetadataConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.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.v1.WorkloadMetadataConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.WorkloadMetadataConfig) + com.google.container.v1.WorkloadMetadataConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WorkloadMetadataConfig.class, + com.google.container.v1.WorkloadMetadataConfig.Builder.class); + } + + // Construct using com.google.container.v1.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(); + mode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig getDefaultInstanceForType() { + return com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig build() { + com.google.container.v1.WorkloadMetadataConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig buildPartial() { + com.google.container.v1.WorkloadMetadataConfig result = + new com.google.container.v1.WorkloadMetadataConfig(this); + result.mode_ = mode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.WorkloadMetadataConfig) { + return mergeFrom((com.google.container.v1.WorkloadMetadataConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.WorkloadMetadataConfig other) { + if (other == com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance()) return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + 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.WorkloadMetadataConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.WorkloadMetadataConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int mode_ = 0; + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + + mode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig.Mode getMode() { + @SuppressWarnings("deprecation") + com.google.container.v1.WorkloadMetadataConfig.Mode result = + com.google.container.v1.WorkloadMetadataConfig.Mode.valueOf(mode_); + return result == null + ? com.google.container.v1.WorkloadMetadataConfig.Mode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.container.v1.WorkloadMetadataConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + + mode_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.WorkloadMetadataConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadMetadataConfig) + private static final com.google.container.v1.WorkloadMetadataConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.WorkloadMetadataConfig(); + } + + public static com.google.container.v1.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.v1.WorkloadMetadataConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java new file mode 100644 index 00000000..d24b40fb --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface WorkloadMetadataConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadMetadataConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The mode. + */ + com.google.container.v1.WorkloadMetadataConfig.Mode getMode(); +} diff --git a/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto b/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto index 6363fc94..040173ec 100644 --- a/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto +++ b/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -65,7 +64,8 @@ service ClusterManager { // Compute Engine instances. // // By default, the cluster is created in the project's - // [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + // [default + // network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). // // One firewall is added for the cluster. After cluster creation, // the Kubelet creates routes for each node to allow the containers @@ -168,7 +168,11 @@ service ClusterManager { } // Sets the locations for a specific cluster. + // Deprecated. Use + // [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) + // instead. rpc SetLocations(SetLocationsRequest) returns (Operation) { + option deprecated = true; option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*}:setLocations" body: "*" @@ -249,6 +253,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,operation_id"; + option (google.api.method_signature) = "name"; } // Cancels the specified operation. @@ -277,6 +282,16 @@ service ClusterManager { option (google.api.method_signature) = "name"; } + // Gets the public component of the cluster signing keys in + // JSON Web Key format. + // This API is not yet intended for general use, and is not available for all + // clusters. + rpc GetJSONWebKeys(GetJSONWebKeysRequest) returns (GetJSONWebKeysResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/clusters/*}/jwks" + }; + } + // Lists the node pools for a cluster. rpc ListNodePools(ListNodePoolsRequest) returns (ListNodePoolsResponse) { option (google.api.http) = { @@ -459,11 +474,9 @@ service ClusterManager { // Parameters that describe the nodes in a cluster. message NodeConfig { // The name of a Google Compute Engine [machine - // type](https://cloud.google.com/compute/docs/machine-types) (e.g. - // `n1-standard-1`). + // type](https://cloud.google.com/compute/docs/machine-types) // - // If unspecified, the default machine type is - // `n1-standard-1`. + // If unspecified, the default machine type is `e2-medium`. string machine_type = 1; // Size of the disk attached to each node, specified in GB. @@ -482,41 +495,46 @@ message NodeConfig { // persistent storage on your nodes. // * `https://www.googleapis.com/auth/devstorage.read_only` is required for // communicating with **gcr.io** - // (the [Google Container Registry](https://cloud.google.com/container-registry/)). + // (the [Google Container + // Registry](https://cloud.google.com/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. + // The Google Cloud Platform Service Account to be used by the node VMs. + // Specify the email address of the Service Account; otherwise, 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 + // 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" - // "containerd-configure-sh" - // "enable-os-login" - // "gci-update-strategy" - // "gci-ensure-gke-docker" - // "instance-template" - // "kube-env" - // "startup-script" - // "user-data" - // "disable-address-manager" - // "windows-startup-script-ps1" - // "common-psm1" - // "k8s-node-setup-psm1" - // "install-ssh-psm1" - // "user-profile-psm1" - // "serial-port-logging-enable" + // - "cluster-location" + // - "cluster-name" + // - "cluster-uid" + // - "configure-sh" + // - "containerd-configure-sh" + // - "enable-os-login" + // - "gci-ensure-gke-docker" + // - "gci-metrics-enabled" + // - "gci-update-strategy" + // - "instance-template" + // - "kube-env" + // - "startup-script" + // - "user-data" + // - "disable-address-manager" + // - "windows-startup-script-ps1" + // - "common-psm1" + // - "k8s-node-setup-psm1" + // - "install-ssh-psm1" + // - "user-profile-psm1" + // + // The following keys are reserved for Windows nodes: + // - "serial-port-logging-enable" // // 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 @@ -563,7 +581,8 @@ message NodeConfig { // support for GPUs. repeated AcceleratorConfig accelerators = 11; - // Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') + // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + // 'pd-balanced') // // If unspecified, the default disk type is 'pd-standard' string disk_type = 12; @@ -571,20 +590,47 @@ message NodeConfig { // 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 + // `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; + // Sandbox configuration for this node. + SandboxConfig sandbox_config = 17; + + // Setting this field will assign instances of this + // pool to run on the specified node group. This is useful for running + // workloads on [sole tenant + // nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + string node_group = 18; + + // The optional reservation affinity. Setting this field will apply + // the specified [Zonal Compute + // Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + // to this node pool. + ReservationAffinity reservation_affinity = 19; + // Shielded Instance options. ShieldedInstanceConfig shielded_instance_config = 20; + + // + // The Customer Managed Encryption Key used to encrypt the boot disk attached + // to each node in the node pool. This should be of the form + // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + // For more information about protecting resources with Cloud KMS Keys please + // see: + // https://cloud.google.com/compute/docs/disks/customer-managed-encryption + string boot_disk_kms_key = 23; } // A set of Shielded Instance options. @@ -605,11 +651,59 @@ message ShieldedInstanceConfig { bool enable_integrity_monitoring = 2; } +// SandboxConfig contains configurations of the sandbox to use for the node. +message SandboxConfig { + // Possible types of sandboxes. + enum Type { + // Default value. This should not be used. + UNSPECIFIED = 0; + + // Run sandbox using gvisor. + GVISOR = 1; + } + + // Type of the sandbox to use for the node. + Type type = 2; +} + +// [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) +// is the configuration of desired reservation which instances could take +// capacity from. +message ReservationAffinity { + // Indicates whether to consume capacity from a reservation or not. + enum Type { + // Default value. This should not be used. + UNSPECIFIED = 0; + + // Do not consume from any reserved capacity. + NO_RESERVATION = 1; + + // Consume any reservation available. + ANY_RESERVATION = 2; + + // Must consume from a specific reservation. Must specify key value fields + // for specifying the reservations. + SPECIFIC_RESERVATION = 3; + } + + // Corresponds to the type of reservation consumption. + Type consume_reservation_type = 1; + + // Corresponds to the label key of a reservation resource. To target a + // SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as + // the key and specify the name of your reservation as its value. + string key = 2; + + // Corresponds to the label value(s) of reservation resource(s). + repeated string values = 3; +} + // 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/ +// See +// [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) +// for more information, including usage and the valid values. message NodeTaint { // Possible values for Effect in taint. enum Effect { @@ -643,13 +737,23 @@ message MasterAuth { // The username to use for HTTP basic authentication to the master endpoint. // For clusters v1.6.0 and later, basic authentication can be disabled by // leaving username unspecified (or setting it to the empty string). - string username = 1; + // + // Warning: basic authentication is deprecated, and will be removed in GKE + // control plane versions 1.19 and newer. For a list of recommended + // authentication methods, see: + // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + string username = 1 [deprecated = true]; // 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; + // + // Warning: basic authentication is deprecated, and will be removed in GKE + // control plane versions 1.19 and newer. For a list of recommended + // authentication methods, see: + // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + string password = 2 [deprecated = true]; // Configuration for client certificate authentication on the cluster. For // clusters before v1.12, if no configuration is specified, a client @@ -702,6 +806,13 @@ message AddonsConfig { // Configuration for the Cloud Run addon, which allows the user to use a // managed Knative service. CloudRunConfig cloud_run_config = 7; + + // Configuration for NodeLocalDNS, a dns cache running on cluster nodes + DnsCacheConfig dns_cache_config = 8; + + // Configuration for the ConfigConnector add-on, a Kubernetes + // extension to manage hosted GCP services through the Kubernetes API + ConfigConnectorConfig config_connector_config = 10; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -718,8 +829,8 @@ message HttpLoadBalancing { // 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. + // When enabled, it ensures that metrics are collected into Stackdriver + // Monitoring. bool disabled = 1; } @@ -737,6 +848,18 @@ message NetworkPolicyConfig { bool disabled = 1; } +// Configuration for NodeLocal DNSCache +message DnsCacheConfig { + // Whether NodeLocal DNSCache is enabled for this cluster. + bool enabled = 1; +} + +// Configuration for controlling master global access settings. +message PrivateClusterMasterGlobalAccessConfig { + // Whenever master is accessible globally or not. + bool enabled = 1; +} + // Configuration options for private clusters. message PrivateClusterConfig { // Whether nodes have internal IP addresses only. If enabled, all nodes are @@ -758,6 +881,12 @@ message PrivateClusterConfig { // Output only. The external IP address of this cluster's master endpoint. string public_endpoint = 5; + + // Output only. The peering name in the customer VPC used by this cluster. + string peering_name = 7; + + // Controls master global access settings. + PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; } // Configuration for returning group information from authenticators. @@ -773,8 +902,29 @@ message AuthenticatorGroupsConfig { // Configuration options for the Cloud Run feature. message CloudRunConfig { + // Load balancer type of ingress service of Cloud Run. + enum LoadBalancerType { + // Load balancer type for Cloud Run is unspecified. + LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + + // Install external load balancer for Cloud Run. + LOAD_BALANCER_TYPE_EXTERNAL = 1; + + // Install internal load balancer for Cloud Run. + LOAD_BALANCER_TYPE_INTERNAL = 2; + } + // Whether Cloud Run addon is enabled for this cluster. bool disabled = 1; + + // Which load balancer type is installed for Cloud Run. + LoadBalancerType load_balancer_type = 3; +} + +// Configuration options for the Config Connector add-on. +message ConfigConnectorConfig { + // Whether Cloud Connector is enabled for this cluster. + bool enabled = 1; } // Configuration options for the master authorized networks feature. Enabled @@ -838,6 +988,9 @@ message BinaryAuthorization { // Configuration for controlling how IPs are allocated in the cluster. message IPAllocationPolicy { // Whether alias IPs will be used for pod IPs in the cluster. + // This is used in conjunction with use_routes. It cannot + // be true if use_routes is true. If both use_ip_aliases and use_routes are + // false, then the server picks the default IP allocation mode bool use_ip_aliases = 1; // Whether a new subnetwork will be created automatically for the cluster. @@ -943,6 +1096,12 @@ message IPAllocationPolicy { // `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; + + // Whether routes will be used for pod IPs in the cluster. + // This is used in conjunction with use_ip_aliases. It cannot be true if + // use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + // then the server picks the default IP allocation mode + bool use_routes = 15; } // A Google Kubernetes Engine cluster. @@ -967,8 +1126,8 @@ message Cluster { // 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. + // The ERROR state indicates the cluster is unusable. It will be + // automatically deleted. Details can be found in the `statusMessage` field. ERROR = 5; // The DEGRADED state indicates the cluster requires user action to restore @@ -1023,25 +1182,33 @@ message Cluster { // The logging service the cluster should use to write logs. // Currently available options: // - // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging - // service with Kubernetes-native resource model - // * `logging.googleapis.com` - the Google Cloud Logging service. + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). // * `none` - no logs will be exported from the cluster. - // * if left as an empty string,`logging.googleapis.com` will be used. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. 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. + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. string monitoring_service = 7; // The name of the Google Compute Engine - // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the - // cluster is connected. If left unspecified, the `default` network - // will be used. + // [network](https://cloud.google.com/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 @@ -1054,8 +1221,8 @@ message Cluster { AddonsConfig addons_config = 10; // The name of the Google Compute Engine - // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the - // cluster is connected. + // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which + // the cluster is connected. string subnetwork = 11; // The node pools associated with this cluster. @@ -1064,8 +1231,16 @@ message Cluster { repeated NodePool node_pools = 12; // The list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - // should be located. + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. + // + // This field provides a default value if + // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + // are not specified during node pool creation. + // + // Warning: changing cluster locations will update the + // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + // of all node pools and will result in nodes being added and/or removed. repeated string locations = 13; // Kubernetes alpha features are enabled on this cluster. This includes alpha @@ -1128,13 +1303,22 @@ message Cluster { // Cluster-level Vertical Pod Autoscaling configuration. VerticalPodAutoscaling vertical_pod_autoscaling = 39; + // Shielded Nodes configuration. + ShieldedNodes shielded_nodes = 40; + + // Release channel configuration. + ReleaseChannel release_channel = 41; + + // Configuration for the use of Kubernetes Service Accounts in GCP IAM + // policies. + WorkloadIdentityConfig workload_identity_config = 43; + // [Output only] Server-defined URL for the resource. string self_link = 100; // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field is deprecated, use location instead. + // [zone](https://cloud.google.com/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. @@ -1164,7 +1348,7 @@ message Cluster { string current_master_version = 104; // [Output only] Deprecated, use - // [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools) + // [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) // 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. @@ -1177,9 +1361,10 @@ message Cluster { // [Output only] The current status of this cluster. Status status = 107; - // [Output only] Additional information about the current status of this + // [Output only] Deprecated. Use conditions instead. + // Additional information about the current status of this // cluster, if available. - string status_message = 108; + 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` @@ -1206,9 +1391,10 @@ message Cluster { string expire_time = 113; // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or - // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which - // the cluster resides. + // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // or + // [region](https://cloud.google.com/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. @@ -1243,10 +1429,14 @@ message ClusterUpdate { // 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 - // * "monitoring.googleapis.com" - the Google Cloud Monitoring service - // * "none" - no metrics will be exported from the cluster + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. string desired_monitoring_service = 5; // Configurations for the various addons available to run in the cluster. @@ -1265,6 +1455,12 @@ message ClusterUpdate { // Configuration of etcd encryption. DatabaseEncryption desired_database_encryption = 46; + // Configuration for Workload Identity. + WorkloadIdentityConfig desired_workload_identity_config = 47; + + // Configuration for Shielded Nodes. + ShieldedNodes desired_shielded_nodes = 48; + // 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 @@ -1272,12 +1468,13 @@ message ClusterUpdate { NodePoolAutoscaling desired_node_pool_autoscaling = 9; // The desired list of Google Compute Engine - // [zones](https://cloud.google.com/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. + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. // // This list must always include the cluster's primary zone. + // + // Warning: changing cluster locations will update the locations of all node + // pools and will result in nodes being added and/or removed. repeated string desired_locations = 10; // The desired configuration options for master authorized networks feature. @@ -1292,10 +1489,14 @@ message ClusterUpdate { // The logging service the cluster should use to write logs. // Currently available options: // - // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging - // service with Kubernetes-native resource model - // * "logging.googleapis.com" - the Google Cloud Logging service - // * "none" - no logs will be exported from the cluster + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). + // * `none` - no logs will be exported from the cluster. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. string desired_logging_service = 19; // The desired configuration for exporting resource usage. @@ -1304,9 +1505,18 @@ message ClusterUpdate { // Cluster-level Vertical Pod Autoscaling configuration. VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + // The desired private cluster configuration. + PrivateClusterConfig desired_private_cluster_config = 25; + // The desired config of Intra-node visibility. IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + // The desired status of whether to disable default sNAT for this cluster. + DefaultSnatStatus desired_default_snat_status = 28; + + // The desired release channel configuration. + ReleaseChannel desired_release_channel = 31; + // The Kubernetes version to change the master to. // // Users may specify either explicit versions offered by @@ -1399,9 +1609,8 @@ message Operation { string name = 1; // The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation - // is taking place. - // This field is deprecated, use location instead. + // [zone](https://cloud.google.com/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. @@ -1413,8 +1622,8 @@ message Operation { // Detailed operation progress, if available. string detail = 8; - // If an error has occurred, a textual description of the error. - string status_message = 5; + // Output only. If an error has occurred, a textual description of the error. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Server-defined URL for the resource. string self_link = 6; @@ -1423,9 +1632,10 @@ message Operation { string target_link = 7; // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or - // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which - // the cluster resides. + // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // or + // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // in which the cluster resides. string location = 9; // [Output only] The time the operation started, in @@ -1436,6 +1646,9 @@ message Operation { // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. string end_time = 11; + // Output only. [Output only] Progress information for an operation. + OperationProgress progress = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Which conditions caused the current cluster state. repeated StatusCondition cluster_conditions = 13; @@ -1443,6 +1656,46 @@ message Operation { repeated StatusCondition nodepool_conditions = 14; } +// Information about operation (or operation stage) progress. +message OperationProgress { + // Progress metric is (string, int|float|string) pair. + message Metric { + // Required. Metric name, e.g., "nodes total", "percent done". + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // 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 @@ -1451,13 +1704,13 @@ message CreateClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/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]; // Required. A [cluster - // resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) + // resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; // The parent (project and location) where the cluster will be created. @@ -1473,9 +1726,9 @@ message GetClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -1495,9 +1748,9 @@ message UpdateClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -1520,9 +1773,9 @@ message UpdateNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -1553,6 +1806,19 @@ message UpdateNodePoolRequest { // update. Specified in the format // `projects/*/locations/*/clusters/*/nodePools/*`. string name = 8; + + // The desired list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // node pool's nodes should be located. Changing the locations for a node pool + // will result in nodes being either created or removed from the node pool, + // depending on whether locations are being added or removed. + repeated string locations = 13; + + // The desired workload metadata config for the node pool. + WorkloadMetadataConfig workload_metadata_config = 14; + + // Upgrade settings control disruption and speed of the upgrade. + NodePool.UpgradeSettings upgrade_settings = 15; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -1563,9 +1829,9 @@ message SetNodePoolAutoscalingRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -1593,20 +1859,26 @@ message SetLoggingServiceRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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]; - // Required. The logging service the cluster should use to write metrics. + // Required. The logging service the cluster should use to write logs. // Currently available options: // - // * "logging.googleapis.com" - the Google Cloud Logging service - // * "none" - no metrics will be exported from the cluster + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). + // * `none` - no logs will be exported from the cluster. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. string logging_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set logging. @@ -1622,9 +1894,9 @@ message SetMonitoringServiceRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -1634,10 +1906,14 @@ message SetMonitoringServiceRequest { // Required. 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 - // * "monitoring.googleapis.com" - the Google Cloud Monitoring service - // * "none" - no metrics will be exported from the cluster + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. string monitoring_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set monitoring. @@ -1653,9 +1929,9 @@ message SetAddonsConfigRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -1679,9 +1955,9 @@ message SetLocationsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -1689,10 +1965,10 @@ message SetLocationsRequest { string cluster_id = 3 [deprecated = true]; // Required. The desired list of Google Compute Engine - // [zones](https://cloud.google.com/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. + // [zones](https://cloud.google.com/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 [(google.api.field_behavior) = REQUIRED]; @@ -1710,9 +1986,9 @@ message UpdateMasterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -1762,9 +2038,9 @@ message SetMasterAuthRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -1790,9 +2066,9 @@ message DeleteClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -1812,9 +2088,9 @@ message ListClustersRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides, or "-" for all zones. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/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. @@ -1842,9 +2118,9 @@ message GetOperationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -1864,8 +2140,9 @@ message ListOperationsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for - // all zones. This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/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. @@ -1882,8 +2159,9 @@ message CancelOperationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/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. @@ -1913,8 +2191,9 @@ message GetServerConfigRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/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, @@ -1924,10 +2203,22 @@ message GetServerConfigRequest { // Kubernetes Engine service configuration. message ServerConfig { + // ReleaseChannelConfig exposes configuration for a release channel. + message ReleaseChannelConfig { + // The release channel this configuration applies to. + ReleaseChannel.Channel channel = 1; + + // The default version for newly created clusters on the channel. + string default_version = 2; + + // List of valid versions for the channel. + repeated string valid_versions = 4; + } + // Version of Kubernetes the service deploys by default. string default_cluster_version = 1; - // List of valid node upgrade target versions. + // List of valid node upgrade target versions, in descending order. repeated string valid_node_versions = 3; // Default image type. @@ -1936,8 +2227,11 @@ message ServerConfig { // List of valid image types. repeated string valid_image_types = 5; - // List of valid master versions. + // List of valid master versions, in descending order. repeated string valid_master_versions = 6; + + // List of release channel configurations. + repeated ReleaseChannelConfig channels = 9; } // CreateNodePoolRequest creates a node pool for a cluster. @@ -1948,9 +2242,9 @@ message CreateNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/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. @@ -1974,9 +2268,9 @@ message DeleteNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -2001,9 +2295,9 @@ message ListNodePoolsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/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. @@ -2023,9 +2317,9 @@ message GetNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -2049,6 +2343,40 @@ message GetNodePoolRequest { // during pod scheduling. They may also be resized up or down, to accommodate // the workload. message NodePool { + // These upgrade settings control the level of parallelism and the level of + // disruption caused by an upgrade. + // + // maxUnavailable controls the number of nodes that can be simultaneously + // unavailable. + // + // maxSurge controls the number of additional nodes that can be added to the + // node pool temporarily for the time of the upgrade to increase the number of + // available nodes. + // + // (maxUnavailable + maxSurge) determines the level of parallelism (how many + // nodes are being upgraded at the same time). + // + // Note: upgrades inevitably introduce some disruption since workloads need to + // be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, + // this holds true. (Disruption stays within the limits of + // PodDisruptionBudget, if it is configured.) + // + // Consider a hypothetical node pool with 5 nodes having maxSurge=2, + // maxUnavailable=1. This means the upgrade process upgrades 3 nodes + // simultaneously. It creates 2 additional (upgraded) nodes, then it brings + // down 3 old (not yet upgraded) nodes at the same time. This ensures that + // there are always at least 4 nodes available. + message UpgradeSettings { + // The maximum number of nodes that can be created beyond the current size + // of the node pool during the upgrade process. + int32 max_surge = 1; + + // The maximum number of nodes that can be simultaneously unavailable during + // the upgrade process. A node is considered available if its status is + // Ready. + int32 max_unavailable = 2; + } + // The current status of the node pool instance. enum Status { // Not set. @@ -2092,6 +2420,18 @@ message NodePool { // firewall and routes quota. int32 initial_node_count = 3; + // The list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // NodePool's nodes should be located. + // + // If this value is unspecified during node pool creation, the + // [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + // value will be used, instead. + // + // Warning: changing node pool locations will result in nodes being added + // and/or removed. + repeated string locations = 13; + // [Output only] Server-defined URL for the resource. string self_link = 100; @@ -2106,9 +2446,10 @@ message NodePool { // [Output only] The status of the nodes in this pool instance. Status status = 103; - // [Output only] Additional information about the current status of this + // [Output only] Deprecated. Use conditions instead. + // Additional information about the current status of this // node pool instance, if available. - string status_message = 104; + string status_message = 104 [deprecated = true]; // Autoscaler configuration for this NodePool. Autoscaler is enabled // only if a valid configuration is present. @@ -2126,6 +2467,9 @@ message NodePool { // [Output only] The pod CIDR block size per node in this node pool. int32 pod_ipv4_cidr_size = 7; + + // Upgrade settings control disruption and speed of the upgrade. + UpgradeSettings upgrade_settings = 107; } // NodeManagement defines the set of node management services turned on for the @@ -2167,7 +2511,7 @@ message MaintenancePolicy { // A hash identifying the version of this policy, so that updates to fields of // the policy won't accidentally undo intermediate changes (and so that users // of the API unaware of some fields won't accidentally remove other fields). - // Make a get() request to the cluster to get the current + // Make a `get()` request to the cluster to get the current // resource version and include it with requests to set the policy. string resource_version = 3; } @@ -2209,25 +2553,30 @@ message RecurringTimeWindow { // end time. // // For example, to have something repeat every weekday, you'd use: - // FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + // `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` + // // To repeat some window daily (equivalent to the DailyMaintenanceWindow): - // FREQ=DAILY + // `FREQ=DAILY` + // // For the first weekend of every month: - // FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU + // `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` + // // This specifies how frequently the window starts. Eg, if you wanted to have // a 9-5 UTC-4 window every weekday, you'd use something like: - // - // start time = 2019-01-01T09:00:00-0400 - // end time = 2019-01-01T17:00:00-0400 - // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - // + // ``` + // start time = 2019-01-01T09:00:00-0400 + // end time = 2019-01-01T17:00:00-0400 + // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + // ``` + // // Windows can span multiple days. Eg, to make the window encompass every // weekend from midnight Saturday till the last minute of Sunday UTC: - // - // start time = 2019-01-05T00:00:00Z - // end time = 2019-01-07T23:59:00Z - // recurrence = FREQ=WEEKLY;BYDAY=SA - // + // ``` + // start time = 2019-01-05T00:00:00Z + // end time = 2019-01-07T23:59:00Z + // recurrence = FREQ=WEEKLY;BYDAY=SA + // ``` + // // Note the start and end time's specific dates are largely arbitrary except // to specify duration of the window and when it first starts. // The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. @@ -2257,9 +2606,9 @@ message SetNodePoolManagementRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -2288,9 +2637,9 @@ message SetNodePoolSizeRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -2320,9 +2669,9 @@ message RollbackNodePoolUpgradeRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -2361,21 +2710,60 @@ message ClusterAutoscaling { // created by NAP. AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - // The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) - // in which the NodePool's nodes can be created by NAP. + // The list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // NodePool's nodes can be created by NAP. repeated string autoprovisioning_locations = 5; } // AutoprovisioningNodePoolDefaults contains defaults for a node pool created // by NAP. message AutoprovisioningNodePoolDefaults { - // Scopes that are used by NAP when creating node pools. If oauth_scopes are - // specified, service_account should be empty. + // Scopes that are used by NAP when creating node pools. repeated string oauth_scopes = 1; - // The Google Cloud Platform Service Account to be used by the node VMs. If - // service_account is specified, scopes should be empty. + // The Google Cloud Platform Service Account to be used by the node VMs. string service_account = 2; + + // Specifies the upgrade settings for NAP created node pools + NodePool.UpgradeSettings upgrade_settings = 3; + + // Specifies the node management options for NAP created node-pools. + NodeManagement management = 4; + + // Minimum CPU platform to be used for NAP created node pools. + // 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) + // To unset the min cpu platform field pass "automatic" + // as field value. + string min_cpu_platform = 5; + + // 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 = 6; + + // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + // 'pd-balanced') + // + // If unspecified, the default disk type is 'pd-standard' + string disk_type = 7; + + // Shielded Instance options. + ShieldedInstanceConfig shielded_instance_config = 8; + + // The Customer Managed Encryption Key used to encrypt the boot disk attached + // to each node in the node pool. This should be of the form + // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + // For more information about protecting resources with Cloud KMS Keys please + // see: + // https://cloud.google.com/compute/docs/disks/customer-managed-encryption + string boot_disk_kms_key = 9; } // Contains information about amount of some resource in the cluster. @@ -2419,9 +2807,9 @@ message SetLabelsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -2435,7 +2823,7 @@ message SetLabelsRequest { // 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 + // updating or changing labels. Make a `get()` request to the // resource to get the latest fingerprint. string label_fingerprint = 5 [(google.api.field_behavior) = REQUIRED]; @@ -2453,9 +2841,9 @@ message SetLegacyAbacRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -2479,9 +2867,9 @@ message StartIPRotationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -2504,9 +2892,9 @@ message CompleteIPRotationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -2528,6 +2916,31 @@ message AcceleratorConfig { string accelerator_type = 2; } +// WorkloadMetadataConfig defines the metadata configuration to expose to +// workloads on the node pool. +message WorkloadMetadataConfig { + // Mode is the configuration for how to expose metadata to workloads running + // on the node. + enum Mode { + // Not set. + MODE_UNSPECIFIED = 0; + + // Expose all Compute Engine metadata to pods. + GCE_METADATA = 1; + + // Run the GKE Metadata Server on this node. The GKE Metadata Server exposes + // a metadata API to workloads that is compatible with the V1 Compute + // Metadata APIs exposed by the Compute Engine and App Engine Metadata + // Servers. This feature can only be enabled if Workload Identity is enabled + // at the cluster level. + GKE_METADATA = 2; + } + + // Mode is the configuration for how to expose metadata to workloads running + // on the node pool. + Mode mode = 2; +} + // SetNetworkPolicyRequest enables/disables network policy for a cluster. message SetNetworkPolicyRequest { // Deprecated. The Google Developers Console [project ID or project @@ -2536,9 +2949,9 @@ message SetNetworkPolicyRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/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. @@ -2560,8 +2973,8 @@ message SetMaintenancePolicyRequest { string project_id = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. string zone = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The name of the cluster to update. @@ -2585,7 +2998,8 @@ message StatusCondition { // UNKNOWN indicates a generic condition. UNKNOWN = 0; - // GCE_STOCKOUT indicates a Google Compute Engine stockout. + // GCE_STOCKOUT indicates that Google Compute Engine resources are + // temporarily unavailable. GCE_STOCKOUT = 1; // GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot @@ -2614,19 +3028,140 @@ message StatusCondition { // 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](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which - // the cluster is connected. - // Example: projects/my-project/global/networks/my-network + // [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + // to which the cluster is connected. Example: + // projects/my-project/global/networks/my-network string network = 1; // Output only. The relative name of the Google Compute Engine - // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected. - // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + // cluster is connected. Example: + // projects/my-project/regions/us-central1/subnetworks/my-subnet string subnetwork = 2; // Whether Intra-node visibility is enabled for this cluster. // This makes same node pod to pod traffic visible for VPC network. bool enable_intra_node_visibility = 5; + + // Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + // will be disabled when default_snat_status is disabled. When disabled is set + // to false, default IP masquerade rules will be applied to the nodes to + // prevent sNAT on cluster internal traffic. + DefaultSnatStatus default_snat_status = 7; +} + +// GetOpenIDConfigRequest gets the OIDC discovery document for the +// cluster. See the OpenID Connect Discovery 1.0 specification for details. +message GetOpenIDConfigRequest { + // The cluster (project, location, cluster id) to get the discovery document + // for. Specified in the format `projects/*/locations/*/clusters/*`. + string parent = 1; +} + +// GetOpenIDConfigResponse is an OIDC discovery document for the cluster. +// See the OpenID Connect Discovery 1.0 specification for details. +message GetOpenIDConfigResponse { + // OIDC Issuer. + string issuer = 1; + + // JSON Web Key uri. + string jwks_uri = 2; + + // Supported response types. + repeated string response_types_supported = 3; + + // Supported subject types. + repeated string subject_types_supported = 4; + + // supported ID Token signing Algorithms. + repeated string id_token_signing_alg_values_supported = 5; + + // Supported claims. + repeated string claims_supported = 6; + + // Supported grant types. + repeated string grant_types = 7; +} + +// GetJSONWebKeysRequest gets the public component of the keys used by the +// cluster to sign token requests. This will be the jwks_uri for the discover +// document returned by getOpenIDConfig. See the OpenID Connect +// Discovery 1.0 specification for details. +message GetJSONWebKeysRequest { + // The cluster (project, location, cluster id) to get keys for. Specified in + // the format `projects/*/locations/*/clusters/*`. + string parent = 1; +} + +// Jwk is a JSON Web Key as specified in RFC 7517 +message Jwk { + // Key Type. + string kty = 1; + + // Algorithm. + string alg = 2; + + // Permitted uses for the public keys. + string use = 3; + + // Key ID. + string kid = 4; + + // Used for RSA keys. + string n = 5; + + // Used for RSA keys. + string e = 6; + + // Used for ECDSA keys. + string x = 7; + + // Used for ECDSA keys. + string y = 8; + + // Used for ECDSA keys. + string crv = 9; +} + +// GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517 +message GetJSONWebKeysResponse { + // The public component of the keys used by the cluster to sign token + // requests. + repeated Jwk keys = 1; +} + +// ReleaseChannel indicates which release channel a cluster is +// subscribed to. Release channels are arranged in order of risk. +// +// When a cluster is subscribed to a release channel, Google maintains +// both the master version and the node version. Node auto-upgrade +// defaults to true and cannot be disabled. +message ReleaseChannel { + // Possible values for 'channel'. + enum Channel { + // No channel specified. + UNSPECIFIED = 0; + + // RAPID channel is offered on an early access basis for customers who want + // to test new releases. + // + // WARNING: Versions available in the RAPID Channel may be subject to + // unresolved issues with no known workaround and are not subject to any + // SLAs. + RAPID = 1; + + // Clusters subscribed to REGULAR receive versions that are considered GA + // quality. REGULAR is intended for production users who want to take + // advantage of new features. + REGULAR = 2; + + // Clusters subscribed to STABLE receive versions that are known to be + // stable and reliable in production. + STABLE = 3; + } + + // channel specifies which release channel the cluster is subscribed to. + Channel channel = 1; } // IntraNodeVisibilityConfig contains the desired config of the intra-node @@ -2642,6 +3177,13 @@ message MaxPodsConstraint { int64 max_pods_per_node = 1; } +// Configuration for the use of Kubernetes Service Accounts in GCP IAM +// policies. +message WorkloadIdentityConfig { + // The workload pool to attach all Kubernetes service accounts to. + string workload_pool = 2; +} + // Configuration of etcd encryption. message DatabaseEncryption { // State of etcd encryption. @@ -2653,7 +3195,7 @@ message DatabaseEncryption { ENCRYPTED = 1; // Secrets in etcd are stored in plain text (at etcd level) - this is - // unrelated to GCE level full disk encryption. + // unrelated to Compute Engine level full disk encryption. DECRYPTED = 2; } @@ -2795,3 +3337,16 @@ message VerticalPodAutoscaling { // Enables vertical pod autoscaling. bool enabled = 1; } + +// DefaultSnatStatus contains the desired state of whether default sNAT should +// be disabled on the cluster. +message DefaultSnatStatus { + // Disables cluster default sNAT rules. + bool disabled = 1; +} + +// Configuration of Shielded Nodes feature. +message ShieldedNodes { + // Whether Shielded Nodes features are enabled on all nodes in this cluster. + bool enabled = 1; +} diff --git a/synth.metadata b/synth.metadata index 572865f0..e7485737 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,22 +4,22 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-container.git", - "sha": "2d9e67d0f934549e9aa6e11a195335c5958882ee" + "sha": "e6e61ada17d6efd52f4e14f50b4005f8b43e7d93" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "cd24bd2d870ee5b9e046a2bfa0d0d0afda29be60", - "internalRef": "317953021" + "sha": "75d1324fff65abad6435e6d501e050439b5a616b", + "internalRef": "342116206" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279" + "sha": "e89175cf074dccc4babb4eca66ae913696e47a71" } } ], @@ -141,6 +141,8 @@ "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java", @@ -149,14 +151,26 @@ "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java", @@ -169,6 +183,8 @@ "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java", @@ -217,16 +233,26 @@ "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java", @@ -255,6 +281,8 @@ "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java", @@ -273,6 +301,10 @@ "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java", "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java", + "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java", "proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto", "renovate.json", "samples/install-without-bom/pom.xml",