diff --git a/README.md b/README.md index f57e774c..f7243c4b 100644 --- a/README.md +++ b/README.md @@ -199,7 +199,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-container/java8-win.html [kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-container/java11.svg [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-container/java11.html -[stability-image]: https://img.shields.io/badge/stability-ga-green +[stability-image]: https://img.shields.io/badge/stability-unknown-red [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-container.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-container&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication 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 6ee205d2..3a04c391 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 @@ -697,6 +697,10 @@ public final UnaryCallable updateClusterCallabl * .addAllLocations(new ArrayList()) * .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build()) * .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) + * .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build()) + * .setKubeletConfig(NodeKubeletConfig.newBuilder().build()) + * .setGcfsConfig(GcfsConfig.newBuilder().build()) + * .setGvnic(VirtualNIC.newBuilder().build()) * .build(); * Operation response = clusterManagerClient.updateNodePool(request); * } @@ -729,6 +733,10 @@ public final Operation updateNodePool(UpdateNodePoolRequest request) { * .addAllLocations(new ArrayList()) * .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build()) * .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) + * .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build()) + * .setKubeletConfig(NodeKubeletConfig.newBuilder().build()) + * .setGcfsConfig(GcfsConfig.newBuilder().build()) + * .setGvnic(VirtualNIC.newBuilder().build()) * .build(); * ApiFuture future = * clusterManagerClient.updateNodePoolCallable().futureCall(request); @@ -3146,7 +3154,9 @@ public final UnaryCallable completeIPRotat // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the size for a specific node pool. + * Sets the size for a specific node pool. The new size will be used for all replicas, including + * future replicas created by modifying + * [NodePool.locations][google.container.v1.NodePool.locations]. * *

Sample code: * @@ -3174,7 +3184,9 @@ public final Operation setNodePoolSize(SetNodePoolSizeRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the size for a specific node pool. + * Sets the size for a specific node pool. The new size will be used for all replicas, including + * future replicas created by modifying + * [NodePool.locations][google.container.v1.NodePool.locations]. * *

Sample code: * diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java index 466b9275..8649c1c6 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Kubernetes Engine API + * + *

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

======================= ClusterManagerClient ======================= * diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java index 5d0a95e4..0e8ee291 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java @@ -601,6 +601,7 @@ public final UnaryCallable updateClusterCallabl * .setLabels(NodeLabels.newBuilder().build()) * .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build()) * .setKubeletConfig(NodeKubeletConfig.newBuilder().build()) + * .setGcfsConfig(GcfsConfig.newBuilder().build()) * .setGvnic(VirtualNIC.newBuilder().build()) * .build(); * Operation response = clusterManagerClient.updateNodePool(request); @@ -639,6 +640,7 @@ public final Operation updateNodePool(UpdateNodePoolRequest request) { * .setLabels(NodeLabels.newBuilder().build()) * .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build()) * .setKubeletConfig(NodeKubeletConfig.newBuilder().build()) + * .setGcfsConfig(GcfsConfig.newBuilder().build()) * .setGvnic(VirtualNIC.newBuilder().build()) * .build(); * ApiFuture future = diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java index bb6d7a01..140fe3eb 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Kubernetes Engine API + * + *

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

======================= ClusterManagerClient ======================= * 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 b0c93465..7b7b410d 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 @@ -28,17 +28,20 @@ import com.google.common.collect.Lists; import com.google.container.v1.AddonsConfig; import com.google.container.v1.AuthenticatorGroupsConfig; +import com.google.container.v1.Autopilot; import com.google.container.v1.BinaryAuthorization; import com.google.container.v1.CancelOperationRequest; import com.google.container.v1.Cluster; import com.google.container.v1.ClusterAutoscaling; import com.google.container.v1.ClusterUpdate; import com.google.container.v1.CompleteIPRotationRequest; +import com.google.container.v1.ConfidentialNodes; import com.google.container.v1.CreateClusterRequest; import com.google.container.v1.CreateNodePoolRequest; import com.google.container.v1.DatabaseEncryption; import com.google.container.v1.DeleteClusterRequest; import com.google.container.v1.DeleteNodePoolRequest; +import com.google.container.v1.GcfsConfig; import com.google.container.v1.GetClusterRequest; import com.google.container.v1.GetJSONWebKeysRequest; import com.google.container.v1.GetJSONWebKeysResponse; @@ -48,6 +51,7 @@ import com.google.container.v1.IPAllocationPolicy; import com.google.container.v1.Jwk; import com.google.container.v1.LegacyAbac; +import com.google.container.v1.LinuxNodeConfig; import com.google.container.v1.ListClustersRequest; import com.google.container.v1.ListClustersResponse; import com.google.container.v1.ListNodePoolsRequest; @@ -56,16 +60,23 @@ import com.google.container.v1.ListOperationsResponse; import com.google.container.v1.ListUsableSubnetworksRequest; import com.google.container.v1.ListUsableSubnetworksResponse; +import com.google.container.v1.LoggingConfig; import com.google.container.v1.MaintenancePolicy; import com.google.container.v1.MasterAuth; import com.google.container.v1.MasterAuthorizedNetworksConfig; import com.google.container.v1.MaxPodsConstraint; +import com.google.container.v1.MeshCertificates; +import com.google.container.v1.MonitoringConfig; import com.google.container.v1.NetworkConfig; import com.google.container.v1.NetworkPolicy; import com.google.container.v1.NodeConfig; +import com.google.container.v1.NodeKubeletConfig; import com.google.container.v1.NodeManagement; +import com.google.container.v1.NodeNetworkConfig; import com.google.container.v1.NodePool; import com.google.container.v1.NodePoolAutoscaling; +import com.google.container.v1.NodePoolDefaults; +import com.google.container.v1.NotificationConfig; import com.google.container.v1.Operation; import com.google.container.v1.OperationProgress; import com.google.container.v1.PrivateClusterConfig; @@ -93,10 +104,12 @@ import com.google.container.v1.UpdateNodePoolRequest; import com.google.container.v1.UsableSubnetwork; import com.google.container.v1.VerticalPodAutoscaling; +import com.google.container.v1.VirtualNIC; import com.google.container.v1.WorkloadIdentityConfig; import com.google.container.v1.WorkloadMetadataConfig; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; +import com.google.rpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; import java.util.ArrayList; @@ -268,6 +281,9 @@ public void getClusterTest() throws Exception { .setShieldedNodes(ShieldedNodes.newBuilder().build()) .setReleaseChannel(ReleaseChannel.newBuilder().build()) .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setMeshCertificates(MeshCertificates.newBuilder().build()) + .setNotificationConfig(NotificationConfig.newBuilder().build()) + .setConfidentialNodes(ConfidentialNodes.newBuilder().build()) .setSelfLink("selfLink1191800166") .setZone("zone3744684") .setEndpoint("endpoint1741102485") @@ -285,6 +301,11 @@ public void getClusterTest() throws Exception { .setEnableTpu(true) .setTpuIpv4CidrBlock("tpuIpv4CidrBlock997172251") .addAllConditions(new ArrayList()) + .setAutopilot(Autopilot.newBuilder().build()) + .setId("id3355") + .setNodePoolDefaults(NodePoolDefaults.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -355,6 +376,9 @@ public void getClusterTest2() throws Exception { .setShieldedNodes(ShieldedNodes.newBuilder().build()) .setReleaseChannel(ReleaseChannel.newBuilder().build()) .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setMeshCertificates(MeshCertificates.newBuilder().build()) + .setNotificationConfig(NotificationConfig.newBuilder().build()) + .setConfidentialNodes(ConfidentialNodes.newBuilder().build()) .setSelfLink("selfLink1191800166") .setZone("zone3744684") .setEndpoint("endpoint1741102485") @@ -372,6 +396,11 @@ public void getClusterTest2() throws Exception { .setEnableTpu(true) .setTpuIpv4CidrBlock("tpuIpv4CidrBlock997172251") .addAllConditions(new ArrayList()) + .setAutopilot(Autopilot.newBuilder().build()) + .setId("id3355") + .setNodePoolDefaults(NodePoolDefaults.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -427,6 +456,7 @@ public void createClusterTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -479,6 +509,7 @@ public void createClusterTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -534,6 +565,7 @@ public void updateClusterTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -586,6 +618,7 @@ public void updateClusterTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -644,6 +677,7 @@ public void updateNodePoolTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -659,6 +693,10 @@ public void updateNodePoolTest() throws Exception { .addAllLocations(new ArrayList()) .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build()) .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) + .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build()) + .setKubeletConfig(NodeKubeletConfig.newBuilder().build()) + .setGcfsConfig(GcfsConfig.newBuilder().build()) + .setGvnic(VirtualNIC.newBuilder().build()) .build(); Operation actualResponse = client.updateNodePool(request); @@ -679,6 +717,10 @@ public void updateNodePoolTest() throws Exception { Assert.assertEquals( request.getWorkloadMetadataConfig(), actualRequest.getWorkloadMetadataConfig()); Assert.assertEquals(request.getUpgradeSettings(), actualRequest.getUpgradeSettings()); + Assert.assertEquals(request.getLinuxNodeConfig(), actualRequest.getLinuxNodeConfig()); + Assert.assertEquals(request.getKubeletConfig(), actualRequest.getKubeletConfig()); + Assert.assertEquals(request.getGcfsConfig(), actualRequest.getGcfsConfig()); + Assert.assertEquals(request.getGvnic(), actualRequest.getGvnic()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -703,6 +745,10 @@ public void updateNodePoolExceptionTest() throws Exception { .addAllLocations(new ArrayList()) .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build()) .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) + .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build()) + .setKubeletConfig(NodeKubeletConfig.newBuilder().build()) + .setGcfsConfig(GcfsConfig.newBuilder().build()) + .setGvnic(VirtualNIC.newBuilder().build()) .build(); client.updateNodePool(request); Assert.fail("No exception raised"); @@ -727,6 +773,7 @@ public void setNodePoolAutoscalingTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -798,6 +845,7 @@ public void setLoggingServiceTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -850,6 +898,7 @@ public void setLoggingServiceTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -908,6 +957,7 @@ public void setMonitoringServiceTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -961,6 +1011,7 @@ public void setMonitoringServiceTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1021,6 +1072,7 @@ public void setAddonsConfigTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1073,6 +1125,7 @@ public void setAddonsConfigTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1131,6 +1184,7 @@ public void setLocationsTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1183,6 +1237,7 @@ public void setLocationsTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1241,6 +1296,7 @@ public void updateMasterTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1293,6 +1349,7 @@ public void updateMasterTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1351,6 +1408,7 @@ public void setMasterAuthTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1419,6 +1477,7 @@ public void deleteClusterTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1468,6 +1527,7 @@ public void deleteClusterTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1565,6 +1625,7 @@ public void getOperationTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1614,6 +1675,7 @@ public void getOperationTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1940,6 +2002,7 @@ public void getNodePoolTest() throws Exception { .setConfig(NodeConfig.newBuilder().build()) .setInitialNodeCount(1682564205) .addAllLocations(new ArrayList()) + .setNetworkConfig(NodeNetworkConfig.newBuilder().build()) .setSelfLink("selfLink1191800166") .setVersion("version351608024") .addAllInstanceGroupUrls(new ArrayList()) @@ -1991,6 +2054,7 @@ public void getNodePoolTest2() throws Exception { .setConfig(NodeConfig.newBuilder().build()) .setInitialNodeCount(1682564205) .addAllLocations(new ArrayList()) + .setNetworkConfig(NodeNetworkConfig.newBuilder().build()) .setSelfLink("selfLink1191800166") .setVersion("version351608024") .addAllInstanceGroupUrls(new ArrayList()) @@ -2059,6 +2123,7 @@ public void createNodePoolTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2111,6 +2176,7 @@ public void createNodePoolTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2169,6 +2235,7 @@ public void deleteNodePoolTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2218,6 +2285,7 @@ public void deleteNodePoolTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2276,6 +2344,7 @@ public void rollbackNodePoolUpgradeTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2326,6 +2395,7 @@ public void rollbackNodePoolUpgradeTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2386,6 +2456,7 @@ public void setNodePoolManagementTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2457,6 +2528,7 @@ public void setLabelsTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2527,6 +2599,7 @@ public void setLegacyAbacTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2579,6 +2652,7 @@ public void setLegacyAbacTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2637,6 +2711,7 @@ public void startIPRotationTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2686,6 +2761,7 @@ public void startIPRotationTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2741,6 +2817,7 @@ public void completeIPRotationTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2790,6 +2867,7 @@ public void completeIPRotationTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2845,6 +2923,7 @@ public void setNodePoolSizeTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2915,6 +2994,7 @@ public void setNetworkPolicyTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -2967,6 +3047,7 @@ public void setNetworkPolicyTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -3025,6 +3106,7 @@ public void setMaintenancePolicyTest() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); @@ -3078,6 +3160,7 @@ public void setMaintenancePolicyTest2() throws Exception { .setProgress(OperationProgress.newBuilder().build()) .addAllClusterConditions(new ArrayList()) .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); diff --git a/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java b/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java index 1b9e8772..88722273 100644 --- a/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java +++ b/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java @@ -42,6 +42,7 @@ import com.google.container.v1beta1.DatabaseEncryption; import com.google.container.v1beta1.DeleteClusterRequest; import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GcfsConfig; import com.google.container.v1beta1.GetClusterRequest; import com.google.container.v1beta1.GetJSONWebKeysRequest; import com.google.container.v1beta1.GetJSONWebKeysResponse; @@ -70,6 +71,7 @@ import com.google.container.v1beta1.MasterAuth; import com.google.container.v1beta1.MasterAuthorizedNetworksConfig; import com.google.container.v1beta1.MaxPodsConstraint; +import com.google.container.v1beta1.MeshCertificates; import com.google.container.v1beta1.MonitoringConfig; import com.google.container.v1beta1.NetworkConfig; import com.google.container.v1beta1.NetworkPolicy; @@ -257,6 +259,7 @@ public void getClusterTest() throws Exception { .setReleaseChannel(ReleaseChannel.newBuilder().build()) .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) .setWorkloadCertificates(WorkloadCertificates.newBuilder().build()) + .setMeshCertificates(MeshCertificates.newBuilder().build()) .setClusterTelemetry(ClusterTelemetry.newBuilder().build()) .setTpuConfig(TpuConfig.newBuilder().build()) .setNotificationConfig(NotificationConfig.newBuilder().build()) @@ -477,6 +480,7 @@ public void updateNodePoolTest() throws Exception { .setLabels(NodeLabels.newBuilder().build()) .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build()) .setKubeletConfig(NodeKubeletConfig.newBuilder().build()) + .setGcfsConfig(GcfsConfig.newBuilder().build()) .setGvnic(VirtualNIC.newBuilder().build()) .build(); @@ -503,6 +507,7 @@ public void updateNodePoolTest() throws Exception { Assert.assertEquals(request.getLabels(), actualRequest.getLabels()); Assert.assertEquals(request.getLinuxNodeConfig(), actualRequest.getLinuxNodeConfig()); Assert.assertEquals(request.getKubeletConfig(), actualRequest.getKubeletConfig()); + Assert.assertEquals(request.getGcfsConfig(), actualRequest.getGcfsConfig()); Assert.assertEquals(request.getGvnic(), actualRequest.getGvnic()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -533,6 +538,7 @@ public void updateNodePoolExceptionTest() throws Exception { .setLabels(NodeLabels.newBuilder().build()) .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build()) .setKubeletConfig(NodeKubeletConfig.newBuilder().build()) + .setGcfsConfig(GcfsConfig.newBuilder().build()) .setGvnic(VirtualNIC.newBuilder().build()) .build(); client.updateNodePool(request); @@ -1320,6 +1326,7 @@ public void getNodePoolTest() throws Exception { .addAllConditions(new ArrayList()) .setPodIpv4CidrSize(1098768716) .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) + .setPlacementPolicy(NodePool.PlacementPolicy.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); 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 140d3840..8636716b 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 @@ -1892,7 +1892,9 @@ public void completeIPRotation( * * *

-     * Sets the size for a specific node pool.
+     * Sets the size for a specific node pool. The new size will be used for all
+     * replicas, including future replicas created by modifying
+     * [NodePool.locations][google.container.v1.NodePool.locations].
      * 
*/ public void setNodePoolSize( @@ -2646,7 +2648,9 @@ public void completeIPRotation( * * *
-     * Sets the size for a specific node pool.
+     * Sets the size for a specific node pool. The new size will be used for all
+     * replicas, including future replicas created by modifying
+     * [NodePool.locations][google.container.v1.NodePool.locations].
      * 
*/ public void setNodePoolSize( @@ -3122,7 +3126,9 @@ public com.google.container.v1.Operation completeIPRotation( * * *
-     * Sets the size for a specific node pool.
+     * Sets the size for a specific node pool. The new size will be used for all
+     * replicas, including future replicas created by modifying
+     * [NodePool.locations][google.container.v1.NodePool.locations].
      * 
*/ public com.google.container.v1.Operation setNodePoolSize( @@ -3589,7 +3595,9 @@ protected ClusterManagerFutureStub build( * * *
-     * Sets the size for a specific node pool.
+     * Sets the size for a specific node pool. The new size will be used for all
+     * replicas, including future replicas created by modifying
+     * [NodePool.locations][google.container.v1.NodePool.locations].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java index a3e57574..b078091b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java @@ -39,6 +39,7 @@ private AcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder buil private AcceleratorConfig() { acceleratorType_ = ""; + gpuPartitionSize_ = ""; } @java.lang.Override @@ -82,6 +83,13 @@ private AcceleratorConfig( acceleratorType_ = s; break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + gpuPartitionSize_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -185,6 +193,59 @@ public com.google.protobuf.ByteString getAcceleratorTypeBytes() { } } + public static final int GPU_PARTITION_SIZE_FIELD_NUMBER = 3; + private volatile java.lang.Object gpuPartitionSize_; + /** + * + * + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * + * @return The gpuPartitionSize. + */ + @java.lang.Override + public java.lang.String getGpuPartitionSize() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpuPartitionSize_ = s; + return s; + } + } + /** + * + * + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * + * @return The bytes for gpuPartitionSize. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gpuPartitionSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -205,6 +266,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acceleratorType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gpuPartitionSize_); + } unknownFields.writeTo(output); } @@ -220,6 +284,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gpuPartitionSize_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -238,6 +305,7 @@ public boolean equals(final java.lang.Object obj) { if (getAcceleratorCount() != other.getAcceleratorCount()) return false; if (!getAcceleratorType().equals(other.getAcceleratorType())) return false; + if (!getGpuPartitionSize().equals(other.getGpuPartitionSize())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -253,6 +321,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAcceleratorCount()); hash = (37 * hash) + ACCELERATOR_TYPE_FIELD_NUMBER; hash = (53 * hash) + getAcceleratorType().hashCode(); + hash = (37 * hash) + GPU_PARTITION_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getGpuPartitionSize().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -402,6 +472,8 @@ public Builder clear() { acceleratorType_ = ""; + gpuPartitionSize_ = ""; + return this; } @@ -431,6 +503,7 @@ public com.google.container.v1.AcceleratorConfig buildPartial() { new com.google.container.v1.AcceleratorConfig(this); result.acceleratorCount_ = acceleratorCount_; result.acceleratorType_ = acceleratorType_; + result.gpuPartitionSize_ = gpuPartitionSize_; onBuilt(); return result; } @@ -487,6 +560,10 @@ public Builder mergeFrom(com.google.container.v1.AcceleratorConfig other) { acceleratorType_ = other.acceleratorType_; onChanged(); } + if (!other.getGpuPartitionSize().isEmpty()) { + gpuPartitionSize_ = other.gpuPartitionSize_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -679,6 +756,122 @@ public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object gpuPartitionSize_ = ""; + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @return The gpuPartitionSize. + */ + public java.lang.String getGpuPartitionSize() { + java.lang.Object ref = gpuPartitionSize_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpuPartitionSize_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @return The bytes for gpuPartitionSize. + */ + public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gpuPartitionSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @param value The gpuPartitionSize to set. + * @return This builder for chaining. + */ + public Builder setGpuPartitionSize(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gpuPartitionSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearGpuPartitionSize() { + + gpuPartitionSize_ = getDefaultInstance().getGpuPartitionSize(); + onChanged(); + return this; + } + /** + * + * + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * + * @param value The bytes for gpuPartitionSize to set. + * @return This builder for chaining. + */ + public Builder setGpuPartitionSizeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gpuPartitionSize_ = 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/AcceleratorConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java index 7ab425bd..88f57103 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java @@ -62,4 +62,33 @@ public interface AcceleratorConfigOrBuilder * @return The bytes for acceleratorType. */ com.google.protobuf.ByteString getAcceleratorTypeBytes(); + + /** + * + * + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * + * @return The gpuPartitionSize. + */ + java.lang.String getGpuPartitionSize(); + /** + * + * + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * + * @return The bytes for gpuPartitionSize. + */ + com.google.protobuf.ByteString getGpuPartitionSizeBytes(); } 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 ebca6571..0b28cfb8 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 @@ -179,6 +179,40 @@ private AddonsConfig( configConnectorConfig_ = subBuilder.buildPartial(); } + break; + } + case 90: + { + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder subBuilder = null; + if (gcePersistentDiskCsiDriverConfig_ != null) { + subBuilder = gcePersistentDiskCsiDriverConfig_.toBuilder(); + } + gcePersistentDiskCsiDriverConfig_ = + input.readMessage( + com.google.container.v1.GcePersistentDiskCsiDriverConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcePersistentDiskCsiDriverConfig_); + gcePersistentDiskCsiDriverConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 114: + { + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder subBuilder = null; + if (gcpFilestoreCsiDriverConfig_ != null) { + subBuilder = gcpFilestoreCsiDriverConfig_.toBuilder(); + } + gcpFilestoreCsiDriverConfig_ = + input.readMessage( + com.google.container.v1.GcpFilestoreCsiDriverConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcpFilestoreCsiDriverConfig_); + gcpFilestoreCsiDriverConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -592,6 +626,115 @@ public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() return getConfigConnectorConfig(); } + public static final int GCE_PERSISTENT_DISK_CSI_DRIVER_CONFIG_FIELD_NUMBER = 11; + private com.google.container.v1.GcePersistentDiskCsiDriverConfig + gcePersistentDiskCsiDriverConfig_; + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return Whether the gcePersistentDiskCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasGcePersistentDiskCsiDriverConfig() { + return gcePersistentDiskCsiDriverConfig_ != null; + } + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return The gcePersistentDiskCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig + getGcePersistentDiskCsiDriverConfig() { + return gcePersistentDiskCsiDriverConfig_ == null + ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() + : gcePersistentDiskCsiDriverConfig_; + } + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder + getGcePersistentDiskCsiDriverConfigOrBuilder() { + return getGcePersistentDiskCsiDriverConfig(); + } + + public static final int GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfig_ != null; + } + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return The gcpFilestoreCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfig_ == null + ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() + : gcpFilestoreCsiDriverConfig_; + } + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder + getGcpFilestoreCsiDriverConfigOrBuilder() { + return getGcpFilestoreCsiDriverConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -627,6 +770,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (configConnectorConfig_ != null) { output.writeMessage(10, getConfigConnectorConfig()); } + if (gcePersistentDiskCsiDriverConfig_ != null) { + output.writeMessage(11, getGcePersistentDiskCsiDriverConfig()); + } + if (gcpFilestoreCsiDriverConfig_ != null) { + output.writeMessage(14, getGcpFilestoreCsiDriverConfig()); + } unknownFields.writeTo(output); } @@ -660,6 +809,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getConfigConnectorConfig()); } + if (gcePersistentDiskCsiDriverConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, getGcePersistentDiskCsiDriverConfig()); + } + if (gcpFilestoreCsiDriverConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, getGcpFilestoreCsiDriverConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -703,6 +862,17 @@ public boolean equals(final java.lang.Object obj) { if (hasConfigConnectorConfig()) { if (!getConfigConnectorConfig().equals(other.getConfigConnectorConfig())) return false; } + if (hasGcePersistentDiskCsiDriverConfig() != other.hasGcePersistentDiskCsiDriverConfig()) + return false; + if (hasGcePersistentDiskCsiDriverConfig()) { + if (!getGcePersistentDiskCsiDriverConfig() + .equals(other.getGcePersistentDiskCsiDriverConfig())) return false; + } + if (hasGcpFilestoreCsiDriverConfig() != other.hasGcpFilestoreCsiDriverConfig()) return false; + if (hasGcpFilestoreCsiDriverConfig()) { + if (!getGcpFilestoreCsiDriverConfig().equals(other.getGcpFilestoreCsiDriverConfig())) + return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -742,6 +912,14 @@ public int hashCode() { hash = (37 * hash) + CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfigConnectorConfig().hashCode(); } + if (hasGcePersistentDiskCsiDriverConfig()) { + hash = (37 * hash) + GCE_PERSISTENT_DISK_CSI_DRIVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcePersistentDiskCsiDriverConfig().hashCode(); + } + if (hasGcpFilestoreCsiDriverConfig()) { + hash = (37 * hash) + GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcpFilestoreCsiDriverConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -929,6 +1107,18 @@ public Builder clear() { configConnectorConfig_ = null; configConnectorConfigBuilder_ = null; } + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfig_ = null; + } else { + gcePersistentDiskCsiDriverConfig_ = null; + gcePersistentDiskCsiDriverConfigBuilder_ = null; + } + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = null; + } else { + gcpFilestoreCsiDriverConfig_ = null; + gcpFilestoreCsiDriverConfigBuilder_ = null; + } return this; } @@ -990,6 +1180,16 @@ public com.google.container.v1.AddonsConfig buildPartial() { } else { result.configConnectorConfig_ = configConnectorConfigBuilder_.build(); } + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfig_; + } else { + result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfigBuilder_.build(); + } + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfig_; + } else { + result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfigBuilder_.build(); + } onBuilt(); return result; } @@ -1060,6 +1260,12 @@ public Builder mergeFrom(com.google.container.v1.AddonsConfig other) { if (other.hasConfigConnectorConfig()) { mergeConfigConnectorConfig(other.getConfigConnectorConfig()); } + if (other.hasGcePersistentDiskCsiDriverConfig()) { + mergeGcePersistentDiskCsiDriverConfig(other.getGcePersistentDiskCsiDriverConfig()); + } + if (other.hasGcpFilestoreCsiDriverConfig()) { + mergeGcpFilestoreCsiDriverConfig(other.getGcpFilestoreCsiDriverConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2512,6 +2718,418 @@ public com.google.container.v1.ConfigConnectorConfig.Builder getConfigConnectorC return configConnectorConfigBuilder_; } + private com.google.container.v1.GcePersistentDiskCsiDriverConfig + gcePersistentDiskCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcePersistentDiskCsiDriverConfig, + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, + com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder> + gcePersistentDiskCsiDriverConfigBuilder_; + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return Whether the gcePersistentDiskCsiDriverConfig field is set. + */ + public boolean hasGcePersistentDiskCsiDriverConfig() { + return gcePersistentDiskCsiDriverConfigBuilder_ != null + || gcePersistentDiskCsiDriverConfig_ != null; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return The gcePersistentDiskCsiDriverConfig. + */ + public com.google.container.v1.GcePersistentDiskCsiDriverConfig + getGcePersistentDiskCsiDriverConfig() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + return gcePersistentDiskCsiDriverConfig_ == null + ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() + : gcePersistentDiskCsiDriverConfig_; + } else { + return gcePersistentDiskCsiDriverConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder setGcePersistentDiskCsiDriverConfig( + com.google.container.v1.GcePersistentDiskCsiDriverConfig value) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcePersistentDiskCsiDriverConfig_ = value; + onChanged(); + } else { + gcePersistentDiskCsiDriverConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder setGcePersistentDiskCsiDriverConfig( + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder builderForValue) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfig_ = builderForValue.build(); + onChanged(); + } else { + gcePersistentDiskCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder mergeGcePersistentDiskCsiDriverConfig( + com.google.container.v1.GcePersistentDiskCsiDriverConfig value) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + if (gcePersistentDiskCsiDriverConfig_ != null) { + gcePersistentDiskCsiDriverConfig_ = + com.google.container.v1.GcePersistentDiskCsiDriverConfig.newBuilder( + gcePersistentDiskCsiDriverConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcePersistentDiskCsiDriverConfig_ = value; + } + onChanged(); + } else { + gcePersistentDiskCsiDriverConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder clearGcePersistentDiskCsiDriverConfig() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfig_ = null; + onChanged(); + } else { + gcePersistentDiskCsiDriverConfig_ = null; + gcePersistentDiskCsiDriverConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder + getGcePersistentDiskCsiDriverConfigBuilder() { + + onChanged(); + return getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder + getGcePersistentDiskCsiDriverConfigOrBuilder() { + if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { + return gcePersistentDiskCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcePersistentDiskCsiDriverConfig_ == null + ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() + : gcePersistentDiskCsiDriverConfig_; + } + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcePersistentDiskCsiDriverConfig, + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, + com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder> + getGcePersistentDiskCsiDriverConfigFieldBuilder() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcePersistentDiskCsiDriverConfig, + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, + com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder>( + getGcePersistentDiskCsiDriverConfig(), getParentForChildren(), isClean()); + gcePersistentDiskCsiDriverConfig_ = null; + } + return gcePersistentDiskCsiDriverConfigBuilder_; + } + + private com.google.container.v1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcpFilestoreCsiDriverConfig, + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, + com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder> + gcpFilestoreCsiDriverConfigBuilder_; + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + public boolean hasGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfigBuilder_ != null || gcpFilestoreCsiDriverConfig_ != null; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return The gcpFilestoreCsiDriverConfig. + */ + public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + return gcpFilestoreCsiDriverConfig_ == null + ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() + : gcpFilestoreCsiDriverConfig_; + } else { + return gcpFilestoreCsiDriverConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder setGcpFilestoreCsiDriverConfig( + com.google.container.v1.GcpFilestoreCsiDriverConfig value) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcpFilestoreCsiDriverConfig_ = value; + onChanged(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder setGcpFilestoreCsiDriverConfig( + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder builderForValue) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = builderForValue.build(); + onChanged(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder mergeGcpFilestoreCsiDriverConfig( + com.google.container.v1.GcpFilestoreCsiDriverConfig value) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + if (gcpFilestoreCsiDriverConfig_ != null) { + gcpFilestoreCsiDriverConfig_ = + com.google.container.v1.GcpFilestoreCsiDriverConfig.newBuilder( + gcpFilestoreCsiDriverConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcpFilestoreCsiDriverConfig_ = value; + } + onChanged(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder clearGcpFilestoreCsiDriverConfig() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = null; + onChanged(); + } else { + gcpFilestoreCsiDriverConfig_ = null; + gcpFilestoreCsiDriverConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder + getGcpFilestoreCsiDriverConfigBuilder() { + + onChanged(); + return getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder + getGcpFilestoreCsiDriverConfigOrBuilder() { + if (gcpFilestoreCsiDriverConfigBuilder_ != null) { + return gcpFilestoreCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcpFilestoreCsiDriverConfig_ == null + ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() + : gcpFilestoreCsiDriverConfig_; + } + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcpFilestoreCsiDriverConfig, + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, + com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder> + getGcpFilestoreCsiDriverConfigFieldBuilder() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcpFilestoreCsiDriverConfig, + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, + com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder>( + getGcpFilestoreCsiDriverConfig(), getParentForChildren(), isClean()); + gcpFilestoreCsiDriverConfig_ = null; + } + return gcpFilestoreCsiDriverConfigBuilder_; + } + @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 bd48987b..8e0706bb 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 @@ -306,4 +306,85 @@ public interface AddonsConfigOrBuilder * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; */ com.google.container.v1.ConfigConnectorConfigOrBuilder getConfigConnectorConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return Whether the gcePersistentDiskCsiDriverConfig field is set. + */ + boolean hasGcePersistentDiskCsiDriverConfig(); + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return The gcePersistentDiskCsiDriverConfig. + */ + com.google.container.v1.GcePersistentDiskCsiDriverConfig getGcePersistentDiskCsiDriverConfig(); + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder + getGcePersistentDiskCsiDriverConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + boolean hasGcpFilestoreCsiDriverConfig(); + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return The gcpFilestoreCsiDriverConfig. + */ + com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig(); + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder + getGcpFilestoreCsiDriverConfigOrBuilder(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java new file mode 100644 index 00000000..3e542a9b --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java @@ -0,0 +1,603 @@ +/* + * 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; + +/** + * + * + *
+ * Specifies options for controlling advanced machine features.
+ * 
+ * + * Protobuf type {@code google.container.v1.AdvancedMachineFeatures} + */ +public final class AdvancedMachineFeatures extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.AdvancedMachineFeatures) + AdvancedMachineFeaturesOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdvancedMachineFeatures.newBuilder() to construct. + private AdvancedMachineFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdvancedMachineFeatures() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdvancedMachineFeatures(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AdvancedMachineFeatures( + 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: + { + bitField0_ |= 0x00000001; + threadsPerCore_ = input.readInt64(); + 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_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_AdvancedMachineFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdvancedMachineFeatures.class, + com.google.container.v1.AdvancedMachineFeatures.Builder.class); + } + + private int bitField0_; + public static final int THREADS_PER_CORE_FIELD_NUMBER = 1; + private long threadsPerCore_; + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return Whether the threadsPerCore field is set. + */ + @java.lang.Override + public boolean hasThreadsPerCore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return The threadsPerCore. + */ + @java.lang.Override + public long getThreadsPerCore() { + return threadsPerCore_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(1, threadsPerCore_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, threadsPerCore_); + } + 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.AdvancedMachineFeatures)) { + return super.equals(obj); + } + com.google.container.v1.AdvancedMachineFeatures other = + (com.google.container.v1.AdvancedMachineFeatures) obj; + + if (hasThreadsPerCore() != other.hasThreadsPerCore()) return false; + if (hasThreadsPerCore()) { + if (getThreadsPerCore() != other.getThreadsPerCore()) 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 (hasThreadsPerCore()) { + hash = (37 * hash) + THREADS_PER_CORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getThreadsPerCore()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AdvancedMachineFeatures parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.AdvancedMachineFeatures 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.AdvancedMachineFeatures parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.AdvancedMachineFeatures parseFrom( + 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.AdvancedMachineFeatures parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.AdvancedMachineFeatures parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.AdvancedMachineFeatures parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.AdvancedMachineFeatures parseFrom( + java.io.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.AdvancedMachineFeatures parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.AdvancedMachineFeatures parseDelimitedFrom( + java.io.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.AdvancedMachineFeatures parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.AdvancedMachineFeatures prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Specifies options for controlling advanced machine features.
+   * 
+ * + * Protobuf type {@code google.container.v1.AdvancedMachineFeatures} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AdvancedMachineFeatures) + com.google.container.v1.AdvancedMachineFeaturesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_AdvancedMachineFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdvancedMachineFeatures.class, + com.google.container.v1.AdvancedMachineFeatures.Builder.class); + } + + // Construct using com.google.container.v1.AdvancedMachineFeatures.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(); + threadsPerCore_ = 0L; + 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_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures getDefaultInstanceForType() { + return com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures build() { + com.google.container.v1.AdvancedMachineFeatures result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures buildPartial() { + com.google.container.v1.AdvancedMachineFeatures result = + new com.google.container.v1.AdvancedMachineFeatures(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.threadsPerCore_ = threadsPerCore_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + 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.AdvancedMachineFeatures) { + return mergeFrom((com.google.container.v1.AdvancedMachineFeatures) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AdvancedMachineFeatures other) { + if (other == com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance()) + return this; + if (other.hasThreadsPerCore()) { + setThreadsPerCore(other.getThreadsPerCore()); + } + 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.AdvancedMachineFeatures parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.AdvancedMachineFeatures) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long threadsPerCore_; + /** + * + * + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * + * @return Whether the threadsPerCore field is set. + */ + @java.lang.Override + public boolean hasThreadsPerCore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * + * @return The threadsPerCore. + */ + @java.lang.Override + public long getThreadsPerCore() { + return threadsPerCore_; + } + /** + * + * + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * + * @param value The threadsPerCore to set. + * @return This builder for chaining. + */ + public Builder setThreadsPerCore(long value) { + bitField0_ |= 0x00000001; + threadsPerCore_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * + * @return This builder for chaining. + */ + public Builder clearThreadsPerCore() { + bitField0_ = (bitField0_ & ~0x00000001); + threadsPerCore_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.AdvancedMachineFeatures) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AdvancedMachineFeatures) + private static final com.google.container.v1.AdvancedMachineFeatures DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.AdvancedMachineFeatures(); + } + + public static com.google.container.v1.AdvancedMachineFeatures getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedMachineFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdvancedMachineFeatures(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.AdvancedMachineFeatures getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java new file mode 100644 index 00000000..afd7ee39 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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 AdvancedMachineFeaturesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.AdvancedMachineFeatures) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return Whether the threadsPerCore field is set. + */ + boolean hasThreadsPerCore(); + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return The threadsPerCore. + */ + long getThreadsPerCore(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java new file mode 100644 index 00000000..d770f6dc --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java @@ -0,0 +1,541 @@ +/* + * 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; + +/** + * + * + *
+ * Autopilot is the configuration for Autopilot settings on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.Autopilot} + */ +public final class Autopilot extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.Autopilot) + AutopilotOrBuilder { + private static final long serialVersionUID = 0L; + // Use Autopilot.newBuilder() to construct. + private Autopilot(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Autopilot() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Autopilot(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Autopilot( + 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_Autopilot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Autopilot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Autopilot.class, + com.google.container.v1.Autopilot.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enable Autopilot
+   * 
+ * + * 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.Autopilot)) { + return super.equals(obj); + } + com.google.container.v1.Autopilot other = (com.google.container.v1.Autopilot) 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.Autopilot parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.Autopilot 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.Autopilot parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.Autopilot parseFrom( + 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.Autopilot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.Autopilot parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.Autopilot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.Autopilot parseFrom( + java.io.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.Autopilot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.Autopilot parseDelimitedFrom( + java.io.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.Autopilot parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.Autopilot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.Autopilot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Autopilot is the configuration for Autopilot settings on the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1.Autopilot} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.Autopilot) + com.google.container.v1.AutopilotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Autopilot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_Autopilot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Autopilot.class, + com.google.container.v1.Autopilot.Builder.class); + } + + // Construct using com.google.container.v1.Autopilot.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_Autopilot_descriptor; + } + + @java.lang.Override + public com.google.container.v1.Autopilot getDefaultInstanceForType() { + return com.google.container.v1.Autopilot.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.Autopilot build() { + com.google.container.v1.Autopilot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.Autopilot buildPartial() { + com.google.container.v1.Autopilot result = new com.google.container.v1.Autopilot(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.Autopilot) { + return mergeFrom((com.google.container.v1.Autopilot) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.Autopilot other) { + if (other == com.google.container.v1.Autopilot.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.Autopilot parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.Autopilot) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable Autopilot
+     * 
+ * + * 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.Autopilot) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.Autopilot) + private static final com.google.container.v1.Autopilot DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.Autopilot(); + } + + public static com.google.container.v1.Autopilot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Autopilot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Autopilot(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.Autopilot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java new file mode 100644 index 00000000..8a90c260 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.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 AutopilotOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.Autopilot) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enable Autopilot
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} 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 92159a32..e952532f 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 @@ -63,6 +63,7 @@ private Cluster() { location_ = ""; tpuIpv4CidrBlock_ = ""; conditions_ = java.util.Collections.emptyList(); + id_ = ""; } @java.lang.Override @@ -516,6 +517,54 @@ private Cluster( workloadIdentityConfig_ = subBuilder.buildPartial(); } + break; + } + case 394: + { + com.google.container.v1.NotificationConfig.Builder subBuilder = null; + if (notificationConfig_ != null) { + subBuilder = notificationConfig_.toBuilder(); + } + notificationConfig_ = + input.readMessage( + com.google.container.v1.NotificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notificationConfig_); + notificationConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 402: + { + com.google.container.v1.ConfidentialNodes.Builder subBuilder = null; + if (confidentialNodes_ != null) { + subBuilder = confidentialNodes_.toBuilder(); + } + confidentialNodes_ = + input.readMessage( + com.google.container.v1.ConfidentialNodes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(confidentialNodes_); + confidentialNodes_ = subBuilder.buildPartial(); + } + + break; + } + case 538: + { + com.google.container.v1.MeshCertificates.Builder subBuilder = null; + if (meshCertificates_ != null) { + subBuilder = meshCertificates_.toBuilder(); + } + meshCertificates_ = + input.readMessage( + com.google.container.v1.MeshCertificates.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(meshCertificates_); + meshCertificates_ = subBuilder.buildPartial(); + } + break; } case 802: @@ -645,6 +694,76 @@ private Cluster( com.google.container.v1.StatusCondition.parser(), extensionRegistry)); break; } + case 1026: + { + com.google.container.v1.Autopilot.Builder subBuilder = null; + if (autopilot_ != null) { + subBuilder = autopilot_.toBuilder(); + } + autopilot_ = + input.readMessage(com.google.container.v1.Autopilot.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autopilot_); + autopilot_ = subBuilder.buildPartial(); + } + + break; + } + case 1034: + { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 1050: + { + com.google.container.v1.NodePoolDefaults.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) != 0)) { + subBuilder = nodePoolDefaults_.toBuilder(); + } + nodePoolDefaults_ = + input.readMessage( + com.google.container.v1.NodePoolDefaults.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodePoolDefaults_); + nodePoolDefaults_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 1058: + { + com.google.container.v1.LoggingConfig.Builder subBuilder = null; + if (loggingConfig_ != null) { + subBuilder = loggingConfig_.toBuilder(); + } + loggingConfig_ = + input.readMessage( + com.google.container.v1.LoggingConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(loggingConfig_); + loggingConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 1066: + { + com.google.container.v1.MonitoringConfig.Builder subBuilder = null; + if (monitoringConfig_ != null) { + subBuilder = monitoringConfig_.toBuilder(); + } + monitoringConfig_ = + input.readMessage( + com.google.container.v1.MonitoringConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(monitoringConfig_); + monitoringConfig_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -956,6 +1075,7 @@ private Status(int value) { // @@protoc_insertion_point(enum_scope:google.container.v1.Cluster.Status) } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -2759,6 +2879,153 @@ public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig( return getWorkloadIdentityConfig(); } + public static final int MESH_CERTIFICATES_FIELD_NUMBER = 67; + private com.google.container.v1.MeshCertificates meshCertificates_; + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + * + * @return Whether the meshCertificates field is set. + */ + @java.lang.Override + public boolean hasMeshCertificates() { + return meshCertificates_ != null; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + * + * @return The meshCertificates. + */ + @java.lang.Override + public com.google.container.v1.MeshCertificates getMeshCertificates() { + return meshCertificates_ == null + ? com.google.container.v1.MeshCertificates.getDefaultInstance() + : meshCertificates_; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + @java.lang.Override + public com.google.container.v1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { + return getMeshCertificates(); + } + + public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 49; + private com.google.container.v1.NotificationConfig notificationConfig_; + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + * + * @return Whether the notificationConfig field is set. + */ + @java.lang.Override + public boolean hasNotificationConfig() { + return notificationConfig_ != null; + } + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + * + * @return The notificationConfig. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig getNotificationConfig() { + return notificationConfig_ == null + ? com.google.container.v1.NotificationConfig.getDefaultInstance() + : notificationConfig_; + } + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + @java.lang.Override + public com.google.container.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + return getNotificationConfig(); + } + + public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 50; + private com.google.container.v1.ConfidentialNodes confidentialNodes_; + /** + * + * + *
+   * Configuration of Confidential Nodes
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * + * @return Whether the confidentialNodes field is set. + */ + @java.lang.Override + public boolean hasConfidentialNodes() { + return confidentialNodes_ != null; + } + /** + * + * + *
+   * Configuration of Confidential Nodes
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * + * @return The confidentialNodes. + */ + @java.lang.Override + public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { + return confidentialNodes_ == null + ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() + : confidentialNodes_; + } + /** + * + * + *
+   * Configuration of Confidential Nodes
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + @java.lang.Override + public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + return getConfidentialNodes(); + } + public static final int SELF_LINK_FIELD_NUMBER = 100; private volatile java.lang.Object selfLink_; /** @@ -3650,61 +3917,305 @@ public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(i return conditions_.get(index); } - private byte memoizedIsInitialized = -1; - + public static final int AUTOPILOT_FIELD_NUMBER = 128; + private com.google.container.v1.Autopilot autopilot_; + /** + * + * + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * + * @return Whether the autopilot field is set. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public boolean hasAutopilot() { + return autopilot_ != null; + } + /** + * + * + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * + * @return The autopilot. + */ + @java.lang.Override + public com.google.container.v1.Autopilot getAutopilot() { + return autopilot_ == null ? com.google.container.v1.Autopilot.getDefaultInstance() : autopilot_; + } + /** + * + * + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + @java.lang.Override + public com.google.container.v1.AutopilotOrBuilder getAutopilotOrBuilder() { + return getAutopilot(); } + public static final int ID_FIELD_NUMBER = 129; + private volatile java.lang.Object id_; + /** + * + * + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (initialNodeCount_ != 0) { - output.writeInt32(3, initialNodeCount_); - } - if (nodeConfig_ != null) { - output.writeMessage(4, getNodeConfig()); - } - if (masterAuth_ != null) { - output.writeMessage(5, getMasterAuth()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); - } - if (addonsConfig_ != null) { - output.writeMessage(10, getAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); - } - for (int i = 0; i < nodePools_.size(); i++) { - output.writeMessage(12, nodePools_.get(i)); - } - for (int i = 0; i < locations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; } - if (enableKubernetesAlpha_ != false) { - output.writeBool(14, enableKubernetesAlpha_); + } + /** + * + * + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_DEFAULTS_FIELD_NUMBER = 131; + private com.google.container.v1.NodePoolDefaults nodePoolDefaults_; + /** + * + * + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * + * @return Whether the nodePoolDefaults field is set. + */ + @java.lang.Override + public boolean hasNodePoolDefaults() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * + * @return The nodePoolDefaults. + */ + @java.lang.Override + public com.google.container.v1.NodePoolDefaults getNodePoolDefaults() { + return nodePoolDefaults_ == null + ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() + : nodePoolDefaults_; + } + /** + * + * + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + @java.lang.Override + public com.google.container.v1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder() { + return nodePoolDefaults_ == null + ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() + : nodePoolDefaults_; + } + + public static final int LOGGING_CONFIG_FIELD_NUMBER = 132; + private com.google.container.v1.LoggingConfig loggingConfig_; + /** + * + * + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return loggingConfig_ != null; + } + /** + * + * + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.container.v1.LoggingConfig getLoggingConfig() { + return loggingConfig_ == null + ? com.google.container.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } + /** + * + * + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + @java.lang.Override + public com.google.container.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return getLoggingConfig(); + } + + public static final int MONITORING_CONFIG_FIELD_NUMBER = 133; + private com.google.container.v1.MonitoringConfig monitoringConfig_; + /** + * + * + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * + * @return Whether the monitoringConfig field is set. + */ + @java.lang.Override + public boolean hasMonitoringConfig() { + return monitoringConfig_ != null; + } + /** + * + * + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * + * @return The monitoringConfig. + */ + @java.lang.Override + public com.google.container.v1.MonitoringConfig getMonitoringConfig() { + return monitoringConfig_ == null + ? com.google.container.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } + /** + * + * + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + @java.lang.Override + public com.google.container.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { + return getMonitoringConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (nodeConfig_ != null) { + output.writeMessage(4, getNodeConfig()); + } + if (masterAuth_ != null) { + output.writeMessage(5, getMasterAuth()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); + } + if (addonsConfig_ != null) { + output.writeMessage(10, getAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); + } + for (int i = 0; i < nodePools_.size(); i++) { + output.writeMessage(12, nodePools_.get(i)); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (enableKubernetesAlpha_ != false) { + output.writeBool(14, enableKubernetesAlpha_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 15); @@ -3762,6 +4273,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (workloadIdentityConfig_ != null) { output.writeMessage(43, getWorkloadIdentityConfig()); } + if (notificationConfig_ != null) { + output.writeMessage(49, getNotificationConfig()); + } + if (confidentialNodes_ != null) { + output.writeMessage(50, getConfidentialNodes()); + } + if (meshCertificates_ != null) { + output.writeMessage(67, getMeshCertificates()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); } @@ -3816,6 +4336,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(118, conditions_.get(i)); } + if (autopilot_ != null) { + output.writeMessage(128, getAutopilot()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 129, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(131, getNodePoolDefaults()); + } + if (loggingConfig_ != null) { + output.writeMessage(132, getLoggingConfig()); + } + if (monitoringConfig_ != null) { + output.writeMessage(133, getMonitoringConfig()); + } unknownFields.writeTo(output); } @@ -3948,6 +4483,15 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(43, getWorkloadIdentityConfig()); } + if (notificationConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(49, getNotificationConfig()); + } + if (confidentialNodes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, getConfidentialNodes()); + } + if (meshCertificates_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(67, getMeshCertificates()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); } @@ -4007,6 +4551,21 @@ public int getSerializedSize() { for (int i = 0; i < conditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(118, conditions_.get(i)); } + if (autopilot_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(128, getAutopilot()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(129, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(131, getNodePoolDefaults()); + } + if (loggingConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(132, getLoggingConfig()); + } + if (monitoringConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(133, getMonitoringConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4119,6 +4678,18 @@ public boolean equals(final java.lang.Object obj) { if (hasWorkloadIdentityConfig()) { if (!getWorkloadIdentityConfig().equals(other.getWorkloadIdentityConfig())) return false; } + if (hasMeshCertificates() != other.hasMeshCertificates()) return false; + if (hasMeshCertificates()) { + if (!getMeshCertificates().equals(other.getMeshCertificates())) return false; + } + if (hasNotificationConfig() != other.hasNotificationConfig()) return false; + if (hasNotificationConfig()) { + if (!getNotificationConfig().equals(other.getNotificationConfig())) return false; + } + if (hasConfidentialNodes() != other.hasConfidentialNodes()) return false; + if (hasConfidentialNodes()) { + if (!getConfidentialNodes().equals(other.getConfidentialNodes())) return false; + } if (!getSelfLink().equals(other.getSelfLink())) return false; if (!getZone().equals(other.getZone())) return false; if (!getEndpoint().equals(other.getEndpoint())) return false; @@ -4137,6 +4708,23 @@ public boolean equals(final java.lang.Object obj) { if (getEnableTpu() != other.getEnableTpu()) return false; if (!getTpuIpv4CidrBlock().equals(other.getTpuIpv4CidrBlock())) return false; if (!getConditionsList().equals(other.getConditionsList())) return false; + if (hasAutopilot() != other.hasAutopilot()) return false; + if (hasAutopilot()) { + if (!getAutopilot().equals(other.getAutopilot())) return false; + } + if (!getId().equals(other.getId())) return false; + if (hasNodePoolDefaults() != other.hasNodePoolDefaults()) return false; + if (hasNodePoolDefaults()) { + if (!getNodePoolDefaults().equals(other.getNodePoolDefaults())) return false; + } + if (hasLoggingConfig() != other.hasLoggingConfig()) return false; + if (hasLoggingConfig()) { + if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; + } + if (hasMonitoringConfig() != other.hasMonitoringConfig()) return false; + if (hasMonitoringConfig()) { + if (!getMonitoringConfig().equals(other.getMonitoringConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4260,6 +4848,18 @@ public int hashCode() { hash = (37 * hash) + WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getWorkloadIdentityConfig().hashCode(); } + if (hasMeshCertificates()) { + hash = (37 * hash) + MESH_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getMeshCertificates().hashCode(); + } + if (hasNotificationConfig()) { + hash = (37 * hash) + NOTIFICATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNotificationConfig().hashCode(); + } + if (hasConfidentialNodes()) { + hash = (37 * hash) + CONFIDENTIAL_NODES_FIELD_NUMBER; + hash = (53 * hash) + getConfidentialNodes().hashCode(); + } hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); hash = (37 * hash) + ZONE_FIELD_NUMBER; @@ -4300,6 +4900,24 @@ public int hashCode() { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } + if (hasAutopilot()) { + hash = (37 * hash) + AUTOPILOT_FIELD_NUMBER; + hash = (53 * hash) + getAutopilot().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasNodePoolDefaults()) { + hash = (37 * hash) + NODE_POOL_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolDefaults().hashCode(); + } + if (hasLoggingConfig()) { + hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLoggingConfig().hashCode(); + } + if (hasMonitoringConfig()) { + hash = (37 * hash) + MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -4460,6 +5078,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNodePoolsFieldBuilder(); getConditionsFieldBuilder(); + getNodePoolDefaultsFieldBuilder(); } } @@ -4615,6 +5234,24 @@ public Builder clear() { workloadIdentityConfig_ = null; workloadIdentityConfigBuilder_ = null; } + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = null; + } else { + meshCertificates_ = null; + meshCertificatesBuilder_ = null; + } + if (notificationConfigBuilder_ == null) { + notificationConfig_ = null; + } else { + notificationConfig_ = null; + notificationConfigBuilder_ = null; + } + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } selfLink_ = ""; zone_ = ""; @@ -4655,6 +5292,32 @@ public Builder clear() { } else { conditionsBuilder_.clear(); } + if (autopilotBuilder_ == null) { + autopilot_ = null; + } else { + autopilot_ = null; + autopilotBuilder_ = null; + } + id_ = ""; + + if (nodePoolDefaultsBuilder_ == null) { + nodePoolDefaults_ = null; + } else { + nodePoolDefaultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; + } else { + loggingConfig_ = null; + loggingConfigBuilder_ = null; + } + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + } else { + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; + } return this; } @@ -4682,6 +5345,7 @@ public com.google.container.v1.Cluster build() { public com.google.container.v1.Cluster buildPartial() { com.google.container.v1.Cluster result = new com.google.container.v1.Cluster(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; result.name_ = name_; result.description_ = description_; result.initialNodeCount_ = initialNodeCount_; @@ -4808,6 +5472,21 @@ public com.google.container.v1.Cluster buildPartial() { } else { result.workloadIdentityConfig_ = workloadIdentityConfigBuilder_.build(); } + if (meshCertificatesBuilder_ == null) { + result.meshCertificates_ = meshCertificates_; + } else { + result.meshCertificates_ = meshCertificatesBuilder_.build(); + } + if (notificationConfigBuilder_ == null) { + result.notificationConfig_ = notificationConfig_; + } else { + result.notificationConfig_ = notificationConfigBuilder_.build(); + } + if (confidentialNodesBuilder_ == null) { + result.confidentialNodes_ = confidentialNodes_; + } else { + result.confidentialNodes_ = confidentialNodesBuilder_.build(); + } result.selfLink_ = selfLink_; result.zone_ = zone_; result.endpoint_ = endpoint_; @@ -4838,6 +5517,31 @@ public com.google.container.v1.Cluster buildPartial() { } else { result.conditions_ = conditionsBuilder_.build(); } + if (autopilotBuilder_ == null) { + result.autopilot_ = autopilot_; + } else { + result.autopilot_ = autopilotBuilder_.build(); + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000020) != 0)) { + if (nodePoolDefaultsBuilder_ == null) { + result.nodePoolDefaults_ = nodePoolDefaults_; + } else { + result.nodePoolDefaults_ = nodePoolDefaultsBuilder_.build(); + } + to_bitField0_ |= 0x00000001; + } + if (loggingConfigBuilder_ == null) { + result.loggingConfig_ = loggingConfig_; + } else { + result.loggingConfig_ = loggingConfigBuilder_.build(); + } + if (monitoringConfigBuilder_ == null) { + result.monitoringConfig_ = monitoringConfig_; + } else { + result.monitoringConfig_ = monitoringConfigBuilder_.build(); + } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -5023,6 +5727,15 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { if (other.hasWorkloadIdentityConfig()) { mergeWorkloadIdentityConfig(other.getWorkloadIdentityConfig()); } + if (other.hasMeshCertificates()) { + mergeMeshCertificates(other.getMeshCertificates()); + } + if (other.hasNotificationConfig()) { + mergeNotificationConfig(other.getNotificationConfig()); + } + if (other.hasConfidentialNodes()) { + mergeConfidentialNodes(other.getConfidentialNodes()); + } if (!other.getSelfLink().isEmpty()) { selfLink_ = other.selfLink_; onChanged(); @@ -5120,6 +5833,22 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { } } } + if (other.hasAutopilot()) { + mergeAutopilot(other.getAutopilot()); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasNodePoolDefaults()) { + mergeNodePoolDefaults(other.getNodePoolDefaults()); + } + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasMonitoringConfig()) { + mergeMonitoringConfig(other.getMonitoringConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -11007,644 +11736,591 @@ public Builder clearWorkloadIdentityConfig() { return workloadIdentityConfigBuilder_; } - private java.lang.Object selfLink_ = ""; + private com.google.container.v1.MeshCertificates meshCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, + com.google.container.v1.MeshCertificates.Builder, + com.google.container.v1.MeshCertificatesOrBuilder> + meshCertificatesBuilder_; /** * * *
-     * [Output only] Server-defined URL for the resource.
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
      * 
* - * string self_link = 100; + * .google.container.v1.MeshCertificates mesh_certificates = 67; * - * @return The selfLink. + * @return Whether the meshCertificates field is set. */ - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasMeshCertificates() { + return meshCertificatesBuilder_ != null || meshCertificates_ != null; } /** * * *
-     * [Output only] Server-defined URL for the resource.
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
      * 
* - * string self_link = 100; + * .google.container.v1.MeshCertificates mesh_certificates = 67; * - * @return The bytes for selfLink. + * @return The meshCertificates. */ - public com.google.protobuf.ByteString getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selfLink_ = b; - return b; + public com.google.container.v1.MeshCertificates getMeshCertificates() { + if (meshCertificatesBuilder_ == null) { + return meshCertificates_ == null + ? com.google.container.v1.MeshCertificates.getDefaultInstance() + : meshCertificates_; } else { - return (com.google.protobuf.ByteString) ref; + return meshCertificatesBuilder_.getMessage(); } } /** * * *
-     * [Output only] Server-defined URL for the resource.
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
      * 
* - * string self_link = 100; - * - * @param value The selfLink to set. - * @return This builder for chaining. + * .google.container.v1.MeshCertificates mesh_certificates = 67; */ - public Builder setSelfLink(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setMeshCertificates(com.google.container.v1.MeshCertificates value) { + if (meshCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meshCertificates_ = value; + onChanged(); + } else { + meshCertificatesBuilder_.setMessage(value); } - selfLink_ = value; - onChanged(); return this; } /** * * *
-     * [Output only] Server-defined URL for the resource.
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
      * 
* - * string self_link = 100; - * - * @return This builder for chaining. + * .google.container.v1.MeshCertificates mesh_certificates = 67; */ - public Builder clearSelfLink() { + public Builder setMeshCertificates( + com.google.container.v1.MeshCertificates.Builder builderForValue) { + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = builderForValue.build(); + onChanged(); + } else { + meshCertificatesBuilder_.setMessage(builderForValue.build()); + } - selfLink_ = getDefaultInstance().getSelfLink(); - onChanged(); return this; } /** * * *
-     * [Output only] Server-defined URL for the resource.
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
      * 
* - * string self_link = 100; - * - * @param value The bytes for selfLink to set. - * @return This builder for chaining. + * .google.container.v1.MeshCertificates mesh_certificates = 67; */ - public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeMeshCertificates(com.google.container.v1.MeshCertificates value) { + if (meshCertificatesBuilder_ == null) { + if (meshCertificates_ != null) { + meshCertificates_ = + com.google.container.v1.MeshCertificates.newBuilder(meshCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + meshCertificates_ = value; + } + onChanged(); + } else { + meshCertificatesBuilder_.mergeFrom(value); } - checkByteStringIsUtf8(value); - selfLink_ = value; - onChanged(); return this; } - - private java.lang.Object zone_ = ""; /** * * *
-     * [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.
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
      * 
* - * string zone = 101 [deprecated = true]; - * - * @return The zone. + * .google.container.v1.MeshCertificates mesh_certificates = 67; */ - @java.lang.Deprecated - public java.lang.String getZone() { - java.lang.Object ref = zone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zone_ = s; - return s; + public Builder clearMeshCertificates() { + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = null; + onChanged(); } else { - return (java.lang.String) ref; + meshCertificates_ = null; + meshCertificatesBuilder_ = null; } + + return this; } /** * * *
-     * [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.
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
      * 
* - * string zone = 101 [deprecated = true]; + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + public com.google.container.v1.MeshCertificates.Builder getMeshCertificatesBuilder() { + + onChanged(); + return getMeshCertificatesFieldBuilder().getBuilder(); + } + /** * - * @return The bytes for zone. + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getZoneBytes() { - java.lang.Object ref = zone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - zone_ = b; - return b; + public com.google.container.v1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { + if (meshCertificatesBuilder_ != null) { + return meshCertificatesBuilder_.getMessageOrBuilder(); } else { - return (com.google.protobuf.ByteString) ref; + return meshCertificates_ == null + ? com.google.container.v1.MeshCertificates.getDefaultInstance() + : meshCertificates_; } } /** * * *
-     * [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.
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
      * 
* - * string zone = 101 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. + * .google.container.v1.MeshCertificates mesh_certificates = 67; */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, + com.google.container.v1.MeshCertificates.Builder, + com.google.container.v1.MeshCertificatesOrBuilder> + getMeshCertificatesFieldBuilder() { + if (meshCertificatesBuilder_ == null) { + meshCertificatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, + com.google.container.v1.MeshCertificates.Builder, + com.google.container.v1.MeshCertificatesOrBuilder>( + getMeshCertificates(), getParentForChildren(), isClean()); + meshCertificates_ = null; } - - zone_ = value; - onChanged(); - return this; + return meshCertificatesBuilder_; } + + private com.google.container.v1.NotificationConfig notificationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, + com.google.container.v1.NotificationConfig.Builder, + com.google.container.v1.NotificationConfigOrBuilder> + notificationConfigBuilder_; /** * * *
-     * [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.
+     * Notification configuration of the cluster.
      * 
* - * string zone = 101 [deprecated = true]; + * .google.container.v1.NotificationConfig notification_config = 49; * - * @return This builder for chaining. + * @return Whether the notificationConfig field is set. */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; + public boolean hasNotificationConfig() { + return notificationConfigBuilder_ != null || notificationConfig_ != null; } /** * * *
-     * [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.
+     * Notification configuration of the cluster.
      * 
* - * string zone = 101 [deprecated = true]; + * .google.container.v1.NotificationConfig notification_config = 49; * - * @param value The bytes for zone to set. - * @return This builder for chaining. + * @return The notificationConfig. */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.container.v1.NotificationConfig getNotificationConfig() { + if (notificationConfigBuilder_ == null) { + return notificationConfig_ == null + ? com.google.container.v1.NotificationConfig.getDefaultInstance() + : notificationConfig_; + } else { + return notificationConfigBuilder_.getMessage(); } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; } - - private java.lang.Object endpoint_ = ""; /** * * *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
+     * Notification configuration of the cluster.
      * 
* - * string endpoint = 102; - * - * @return The endpoint. + * .google.container.v1.NotificationConfig notification_config = 49; */ - public java.lang.String getEndpoint() { - java.lang.Object ref = endpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endpoint_ = s; - return s; + public Builder setNotificationConfig(com.google.container.v1.NotificationConfig value) { + if (notificationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notificationConfig_ = value; + onChanged(); } else { - return (java.lang.String) ref; + notificationConfigBuilder_.setMessage(value); } + + return this; } /** * * *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
+     * Notification configuration of the cluster.
      * 
* - * string endpoint = 102; - * - * @return The bytes for endpoint. + * .google.container.v1.NotificationConfig notification_config = 49; */ - public com.google.protobuf.ByteString getEndpointBytes() { - java.lang.Object ref = endpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - endpoint_ = b; - return b; + public Builder setNotificationConfig( + com.google.container.v1.NotificationConfig.Builder builderForValue) { + if (notificationConfigBuilder_ == null) { + notificationConfig_ = builderForValue.build(); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + notificationConfigBuilder_.setMessage(builderForValue.build()); } + + return this; } /** * * *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
+     * Notification configuration of the cluster.
      * 
* - * string endpoint = 102; - * - * @param value The endpoint to set. - * @return This builder for chaining. + * .google.container.v1.NotificationConfig notification_config = 49; */ - public Builder setEndpoint(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeNotificationConfig(com.google.container.v1.NotificationConfig value) { + if (notificationConfigBuilder_ == null) { + if (notificationConfig_ != null) { + notificationConfig_ = + com.google.container.v1.NotificationConfig.newBuilder(notificationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + notificationConfig_ = value; + } + onChanged(); + } else { + notificationConfigBuilder_.mergeFrom(value); } - endpoint_ = value; - onChanged(); return this; } /** * * *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
+     * Notification configuration of the cluster.
      * 
* - * string endpoint = 102; - * - * @return This builder for chaining. + * .google.container.v1.NotificationConfig notification_config = 49; */ - public Builder clearEndpoint() { + public Builder clearNotificationConfig() { + if (notificationConfigBuilder_ == null) { + notificationConfig_ = null; + onChanged(); + } else { + notificationConfig_ = null; + notificationConfigBuilder_ = null; + } - endpoint_ = getDefaultInstance().getEndpoint(); - onChanged(); return this; } /** * * *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
+     * Notification configuration of the cluster.
      * 
* - * string endpoint = 102; - * - * @param value The bytes for endpoint to set. - * @return This builder for chaining. + * .google.container.v1.NotificationConfig notification_config = 49; */ - public Builder setEndpointBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public com.google.container.v1.NotificationConfig.Builder getNotificationConfigBuilder() { - endpoint_ = value; onChanged(); - return this; + return getNotificationConfigFieldBuilder().getBuilder(); } - - private java.lang.Object initialClusterVersion_ = ""; /** * * *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
+     * Notification configuration of the cluster.
      * 
* - * string initial_cluster_version = 103; - * - * @return The initialClusterVersion. + * .google.container.v1.NotificationConfig notification_config = 49; */ - public java.lang.String getInitialClusterVersion() { - java.lang.Object ref = initialClusterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - initialClusterVersion_ = s; - return s; + public com.google.container.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + if (notificationConfigBuilder_ != null) { + return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return notificationConfig_ == null + ? com.google.container.v1.NotificationConfig.getDefaultInstance() + : notificationConfig_; } } /** * * *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
+     * Notification configuration of the cluster.
      * 
* - * string initial_cluster_version = 103; - * - * @return The bytes for initialClusterVersion. + * .google.container.v1.NotificationConfig notification_config = 49; */ - public com.google.protobuf.ByteString getInitialClusterVersionBytes() { - java.lang.Object ref = initialClusterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - initialClusterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, + com.google.container.v1.NotificationConfig.Builder, + com.google.container.v1.NotificationConfigOrBuilder> + getNotificationConfigFieldBuilder() { + if (notificationConfigBuilder_ == null) { + notificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, + com.google.container.v1.NotificationConfig.Builder, + com.google.container.v1.NotificationConfigOrBuilder>( + getNotificationConfig(), getParentForChildren(), isClean()); + notificationConfig_ = null; } + return notificationConfigBuilder_; } + + private com.google.container.v1.ConfidentialNodes confidentialNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfidentialNodes, + com.google.container.v1.ConfidentialNodes.Builder, + com.google.container.v1.ConfidentialNodesOrBuilder> + confidentialNodesBuilder_; /** * * *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
+     * Configuration of Confidential Nodes
      * 
* - * string initial_cluster_version = 103; + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; * - * @param value The initialClusterVersion to set. - * @return This builder for chaining. + * @return Whether the confidentialNodes field is set. */ - public Builder setInitialClusterVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - initialClusterVersion_ = value; - onChanged(); - return this; + public boolean hasConfidentialNodes() { + return confidentialNodesBuilder_ != null || confidentialNodes_ != null; } /** * * *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
+     * Configuration of Confidential Nodes
      * 
* - * string initial_cluster_version = 103; + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; * - * @return This builder for chaining. + * @return The confidentialNodes. */ - public Builder clearInitialClusterVersion() { - - initialClusterVersion_ = getDefaultInstance().getInitialClusterVersion(); - onChanged(); - return this; + public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { + if (confidentialNodesBuilder_ == null) { + return confidentialNodes_ == null + ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() + : confidentialNodes_; + } else { + return confidentialNodesBuilder_.getMessage(); + } } /** * * *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
+     * Configuration of Confidential Nodes
      * 
* - * string initial_cluster_version = 103; - * - * @param value The bytes for initialClusterVersion to set. - * @return This builder for chaining. + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; */ - public Builder setInitialClusterVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confidentialNodes_ = value; + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(value); } - checkByteStringIsUtf8(value); - initialClusterVersion_ = value; - onChanged(); return this; } - - private java.lang.Object currentMasterVersion_ = ""; /** * * *
-     * [Output only] The current software version of the master endpoint.
+     * Configuration of Confidential Nodes
      * 
* - * string current_master_version = 104; - * - * @return The currentMasterVersion. + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; */ - public java.lang.String getCurrentMasterVersion() { - java.lang.Object ref = currentMasterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentMasterVersion_ = s; - return s; + public Builder setConfidentialNodes( + com.google.container.v1.ConfidentialNodes.Builder builderForValue) { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = builderForValue.build(); + onChanged(); } else { - return (java.lang.String) ref; + confidentialNodesBuilder_.setMessage(builderForValue.build()); } + + return this; } /** * * *
-     * [Output only] The current software version of the master endpoint.
+     * Configuration of Confidential Nodes
      * 
* - * string current_master_version = 104; - * - * @return The bytes for currentMasterVersion. + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; */ - public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { - java.lang.Object ref = currentMasterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentMasterVersion_ = b; - return b; + public Builder mergeConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (confidentialNodes_ != null) { + confidentialNodes_ = + com.google.container.v1.ConfidentialNodes.newBuilder(confidentialNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + confidentialNodes_ = value; + } + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + confidentialNodesBuilder_.mergeFrom(value); } + + return this; } /** * * *
-     * [Output only] The current software version of the master endpoint.
+     * Configuration of Confidential Nodes
      * 
* - * string current_master_version = 104; - * - * @param value The currentMasterVersion to set. - * @return This builder for chaining. + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; */ - public Builder setCurrentMasterVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearConfidentialNodes() { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + onChanged(); + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; } - currentMasterVersion_ = value; - onChanged(); return this; } /** * * *
-     * [Output only] The current software version of the master endpoint.
+     * Configuration of Confidential Nodes
      * 
* - * string current_master_version = 104; - * - * @return This builder for chaining. + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; */ - public Builder clearCurrentMasterVersion() { + public com.google.container.v1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { - currentMasterVersion_ = getDefaultInstance().getCurrentMasterVersion(); onChanged(); - return this; + return getConfidentialNodesFieldBuilder().getBuilder(); } /** * * *
-     * [Output only] The current software version of the master endpoint.
+     * Configuration of Confidential Nodes
      * 
* - * string current_master_version = 104; + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + if (confidentialNodesBuilder_ != null) { + return confidentialNodesBuilder_.getMessageOrBuilder(); + } else { + return confidentialNodes_ == null + ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() + : confidentialNodes_; + } + } + /** * - * @param value The bytes for currentMasterVersion to set. - * @return This builder for chaining. + * + *
+     * Configuration of Confidential Nodes
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; */ - public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfidentialNodes, + com.google.container.v1.ConfidentialNodes.Builder, + com.google.container.v1.ConfidentialNodesOrBuilder> + getConfidentialNodesFieldBuilder() { + if (confidentialNodesBuilder_ == null) { + confidentialNodesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfidentialNodes, + com.google.container.v1.ConfidentialNodes.Builder, + com.google.container.v1.ConfidentialNodesOrBuilder>( + getConfidentialNodes(), getParentForChildren(), isClean()); + confidentialNodes_ = null; } - checkByteStringIsUtf8(value); - - currentMasterVersion_ = value; - onChanged(); - return this; + return confidentialNodesBuilder_; } - private java.lang.Object currentNodeVersion_ = ""; + private java.lang.Object selfLink_ = ""; /** * * *
-     * [Output only] Deprecated, use
-     * [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.
+     * [Output only] Server-defined URL for the resource.
      * 
* - * string current_node_version = 105 [deprecated = true]; + * string self_link = 100; * - * @return The currentNodeVersion. + * @return The selfLink. */ - @java.lang.Deprecated - public java.lang.String getCurrentNodeVersion() { - java.lang.Object ref = currentNodeVersion_; + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - currentNodeVersion_ = s; + selfLink_ = s; return s; } else { return (java.lang.String) ref; @@ -11654,24 +12330,19 @@ public java.lang.String getCurrentNodeVersion() { * * *
-     * [Output only] Deprecated, use
-     * [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.
+     * [Output only] Server-defined URL for the resource.
      * 
* - * string current_node_version = 105 [deprecated = true]; + * string self_link = 100; * - * @return The bytes for currentNodeVersion. + * @return The bytes for selfLink. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { - java.lang.Object ref = currentNodeVersion_; + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentNodeVersion_ = b; + selfLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -11681,25 +12352,20 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { * * *
-     * [Output only] Deprecated, use
-     * [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.
+     * [Output only] Server-defined URL for the resource.
      * 
* - * string current_node_version = 105 [deprecated = true]; + * string self_link = 100; * - * @param value The currentNodeVersion to set. + * @param value The selfLink to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setCurrentNodeVersion(java.lang.String value) { + public Builder setSelfLink(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - currentNodeVersion_ = value; + selfLink_ = value; onChanged(); return this; } @@ -11707,21 +12373,16 @@ public Builder setCurrentNodeVersion(java.lang.String value) { * * *
-     * [Output only] Deprecated, use
-     * [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.
+     * [Output only] Server-defined URL for the resource.
      * 
* - * string current_node_version = 105 [deprecated = true]; + * string self_link = 100; * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearCurrentNodeVersion() { + public Builder clearSelfLink() { - currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); + selfLink_ = getDefaultInstance().getSelfLink(); onChanged(); return this; } @@ -11729,49 +12390,46 @@ public Builder clearCurrentNodeVersion() { * * *
-     * [Output only] Deprecated, use
-     * [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.
+     * [Output only] Server-defined URL for the resource.
      * 
* - * string current_node_version = 105 [deprecated = true]; + * string self_link = 100; * - * @param value The bytes for currentNodeVersion to set. + * @param value The bytes for selfLink to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setCurrentNodeVersionBytes(com.google.protobuf.ByteString value) { + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - currentNodeVersion_ = value; + selfLink_ = value; onChanged(); return this; } - private java.lang.Object createTime_ = ""; + private java.lang.Object zone_ = ""; /** * * *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * [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.
      * 
* - * string create_time = 106; + * string zone = 101 [deprecated = true]; * - * @return The createTime. + * @return The zone. */ - public java.lang.String getCreateTime() { - java.lang.Object ref = createTime_; + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - createTime_ = s; + zone_ = s; return s; } else { return (java.lang.String) ref; @@ -11781,20 +12439,22 @@ public java.lang.String getCreateTime() { * * *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * [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.
      * 
* - * string create_time = 106; + * string zone = 101 [deprecated = true]; * - * @return The bytes for createTime. + * @return The bytes for zone. */ - public com.google.protobuf.ByteString getCreateTimeBytes() { - java.lang.Object ref = createTime_; + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - createTime_ = b; + zone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -11804,21 +12464,23 @@ public com.google.protobuf.ByteString getCreateTimeBytes() { * * *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * [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.
      * 
* - * string create_time = 106; + * string zone = 101 [deprecated = true]; * - * @param value The createTime to set. + * @param value The zone to set. * @return This builder for chaining. */ - public Builder setCreateTime(java.lang.String value) { + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - createTime_ = value; + zone_ = value; onChanged(); return this; } @@ -11826,17 +12488,19 @@ public Builder setCreateTime(java.lang.String value) { * * *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * [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.
      * 
* - * string create_time = 106; + * string zone = 101 [deprecated = true]; * * @return This builder for chaining. */ - public Builder clearCreateTime() { + @java.lang.Deprecated + public Builder clearZone() { - createTime_ = getDefaultInstance().getCreateTime(); + zone_ = getDefaultInstance().getZone(); onChanged(); return this; } @@ -11844,96 +12508,124 @@ public Builder clearCreateTime() { * * *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * [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.
      * 
* - * string create_time = 106; + * string zone = 101 [deprecated = true]; * - * @param value The bytes for createTime to set. + * @param value The bytes for zone to set. * @return This builder for chaining. */ - public Builder setCreateTimeBytes(com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - createTime_ = value; + zone_ = value; onChanged(); return this; } - private int status_ = 0; + private java.lang.Object endpoint_ = ""; /** * * *
-     * [Output only] The current status of this cluster.
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
      * 
* - * .google.container.v1.Cluster.Status status = 107; + * string endpoint = 102; * - * @return The enum numeric value on the wire for status. + * @return The endpoint. */ - @java.lang.Override - public int getStatusValue() { - return status_; + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * [Output only] The current status of this cluster.
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
      * 
* - * .google.container.v1.Cluster.Status status = 107; + * string endpoint = 102; * - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. + * @return The bytes for endpoint. */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * [Output only] The current status of this cluster.
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
      * 
* - * .google.container.v1.Cluster.Status status = 107; + * string endpoint = 102; * - * @return The status. + * @param value The endpoint to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.container.v1.Cluster.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.Cluster.Status result = - com.google.container.v1.Cluster.Status.valueOf(status_); - return result == null ? com.google.container.v1.Cluster.Status.UNRECOGNIZED : result; + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endpoint_ = value; + onChanged(); + return this; } /** * * *
-     * [Output only] The current status of this cluster.
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
      * 
* - * .google.container.v1.Cluster.Status status = 107; + * string endpoint = 102; * - * @param value The status to set. * @return This builder for chaining. */ - public Builder setStatus(com.google.container.v1.Cluster.Status value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder clearEndpoint() { - status_ = value.getNumber(); + endpoint_ = getDefaultInstance().getEndpoint(); onChanged(); return this; } @@ -11941,41 +12633,57 @@ public Builder setStatus(com.google.container.v1.Cluster.Status value) { * * *
-     * [Output only] The current status of this cluster.
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
      * 
* - * .google.container.v1.Cluster.Status status = 107; + * string endpoint = 102; * + * @param value The bytes for endpoint to set. * @return This builder for chaining. */ - public Builder clearStatus() { + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - status_ = 0; + endpoint_ = value; onChanged(); return this; } - private java.lang.Object statusMessage_ = ""; + private java.lang.Object initialClusterVersion_ = ""; /** * * *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
      * 
* - * string status_message = 108 [deprecated = true]; + * string initial_cluster_version = 103; * - * @return The statusMessage. + * @return The initialClusterVersion. */ - @java.lang.Deprecated - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; + public java.lang.String getInitialClusterVersion() { + java.lang.Object ref = initialClusterVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; + initialClusterVersion_ = s; return s; } else { return (java.lang.String) ref; @@ -11985,22 +12693,29 @@ public java.lang.String getStatusMessage() { * * *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
      * 
* - * string status_message = 108 [deprecated = true]; + * string initial_cluster_version = 103; * - * @return The bytes for statusMessage. + * @return The bytes for initialClusterVersion. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; + public com.google.protobuf.ByteString getInitialClusterVersionBytes() { + java.lang.Object ref = initialClusterVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusMessage_ = b; + initialClusterVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -12010,23 +12725,30 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
      * 
* - * string status_message = 108 [deprecated = true]; + * string initial_cluster_version = 103; * - * @param value The statusMessage to set. + * @param value The initialClusterVersion to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setStatusMessage(java.lang.String value) { + public Builder setInitialClusterVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - statusMessage_ = value; + initialClusterVersion_ = value; onChanged(); return this; } @@ -12034,19 +12756,26 @@ public Builder setStatusMessage(java.lang.String value) { * * *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
      * 
* - * string status_message = 108 [deprecated = true]; + * string initial_cluster_version = 103; * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearStatusMessage() { + public Builder clearInitialClusterVersion() { - statusMessage_ = getDefaultInstance().getStatusMessage(); + initialClusterVersion_ = getDefaultInstance().getInitialClusterVersion(); onChanged(); return this; } @@ -12054,65 +12783,98 @@ public Builder clearStatusMessage() { * * *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
      * 
* - * string status_message = 108 [deprecated = true]; + * string initial_cluster_version = 103; * - * @param value The bytes for statusMessage to set. + * @param value The bytes for initialClusterVersion to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setInitialClusterVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - statusMessage_ = value; + initialClusterVersion_ = value; onChanged(); return this; } - private int nodeIpv4CidrSize_; + private java.lang.Object currentMasterVersion_ = ""; /** * * *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range. This field will only be set when cluster is in route-based network
-     * mode.
+     * [Output only] The current software version of the master endpoint.
      * 
* - * int32 node_ipv4_cidr_size = 109; + * string current_master_version = 104; * - * @return The nodeIpv4CidrSize. + * @return The currentMasterVersion. */ - @java.lang.Override - public int getNodeIpv4CidrSize() { - return nodeIpv4CidrSize_; + public java.lang.String getCurrentMasterVersion() { + java.lang.Object ref = currentMasterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentMasterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range. This field will only be set when cluster is in route-based network
-     * mode.
+     * [Output only] The current software version of the master endpoint.
      * 
* - * int32 node_ipv4_cidr_size = 109; + * string current_master_version = 104; * - * @param value The nodeIpv4CidrSize to set. + * @return The bytes for currentMasterVersion. + */ + public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @param value The currentMasterVersion to set. * @return This builder for chaining. */ - public Builder setNodeIpv4CidrSize(int value) { + public Builder setCurrentMasterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - nodeIpv4CidrSize_ = value; + currentMasterVersion_ = value; onChanged(); return this; } @@ -12120,45 +12882,65 @@ public Builder setNodeIpv4CidrSize(int value) { * * *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range. This field will only be set when cluster is in route-based network
-     * mode.
+     * [Output only] The current software version of the master endpoint.
      * 
* - * int32 node_ipv4_cidr_size = 109; + * string current_master_version = 104; * * @return This builder for chaining. */ - public Builder clearNodeIpv4CidrSize() { + public Builder clearCurrentMasterVersion() { - nodeIpv4CidrSize_ = 0; + currentMasterVersion_ = getDefaultInstance().getCurrentMasterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @param value The bytes for currentMasterVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentMasterVersion_ = value; onChanged(); return this; } - private java.lang.Object servicesIpv4Cidr_ = ""; + private java.lang.Object currentNodeVersion_ = ""; /** * * *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
+     * [Output only] Deprecated, use
+     * [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.
      * 
* - * string services_ipv4_cidr = 110; + * string current_node_version = 105 [deprecated = true]; * - * @return The servicesIpv4Cidr. + * @return The currentNodeVersion. */ - public java.lang.String getServicesIpv4Cidr() { - java.lang.Object ref = servicesIpv4Cidr_; + @java.lang.Deprecated + public java.lang.String getCurrentNodeVersion() { + java.lang.Object ref = currentNodeVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - servicesIpv4Cidr_ = s; + currentNodeVersion_ = s; return s; } else { return (java.lang.String) ref; @@ -12168,23 +12950,24 @@ public java.lang.String getServicesIpv4Cidr() { * * *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
+     * [Output only] Deprecated, use
+     * [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.
      * 
* - * string services_ipv4_cidr = 110; + * string current_node_version = 105 [deprecated = true]; * - * @return The bytes for servicesIpv4Cidr. + * @return The bytes for currentNodeVersion. */ - public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { - java.lang.Object ref = servicesIpv4Cidr_; + @java.lang.Deprecated + public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { + java.lang.Object ref = currentNodeVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesIpv4Cidr_ = b; + currentNodeVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -12194,24 +12977,25 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * * *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
+     * [Output only] Deprecated, use
+     * [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.
      * 
* - * string services_ipv4_cidr = 110; + * string current_node_version = 105 [deprecated = true]; * - * @param value The servicesIpv4Cidr to set. + * @param value The currentNodeVersion to set. * @return This builder for chaining. */ - public Builder setServicesIpv4Cidr(java.lang.String value) { + @java.lang.Deprecated + public Builder setCurrentNodeVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - servicesIpv4Cidr_ = value; + currentNodeVersion_ = value; onChanged(); return this; } @@ -12219,20 +13003,21 @@ public Builder setServicesIpv4Cidr(java.lang.String value) { * * *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
+     * [Output only] Deprecated, use
+     * [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.
      * 
* - * string services_ipv4_cidr = 110; + * string current_node_version = 105 [deprecated = true]; * * @return This builder for chaining. */ - public Builder clearServicesIpv4Cidr() { + @java.lang.Deprecated + public Builder clearCurrentNodeVersion() { - servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); onChanged(); return this; } @@ -12240,120 +13025,172 @@ public Builder clearServicesIpv4Cidr() { * * *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
+     * [Output only] Deprecated, use
+     * [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.
      * 
* - * string services_ipv4_cidr = 110; + * string current_node_version = 105 [deprecated = true]; * - * @param value The bytes for servicesIpv4Cidr to set. + * @param value The bytes for currentNodeVersion to set. * @return This builder for chaining. */ - public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setCurrentNodeVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - servicesIpv4Cidr_ = value; + currentNodeVersion_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList instanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - bitField0_ |= 0x00000008; - } - } + private java.lang.Object createTime_ = ""; /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * string create_time = 106; * - * @return A list containing the instanceGroupUrls. + * @return The createTime. */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { - return instanceGroupUrls_.getUnmodifiableView(); + public java.lang.String getCreateTime() { + java.lang.Object ref = createTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + createTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * string create_time = 106; * - * @return The count of instanceGroupUrls. + * @return The bytes for createTime. */ - @java.lang.Deprecated - public int getInstanceGroupUrlsCount() { - return instanceGroupUrls_.size(); - } + public com.google.protobuf.ByteString getCreateTimeBytes() { + java.lang.Object ref = createTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + createTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * string create_time = 106; * - * @param index The index of the element to return. - * @return The instanceGroupUrls at the given index. + * @param value The createTime to set. + * @return This builder for chaining. */ - @java.lang.Deprecated - public java.lang.String getInstanceGroupUrls(int index) { - return instanceGroupUrls_.get(index); + public Builder setCreateTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + createTime_ = value; + onChanged(); + return this; } /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * string create_time = 106; * - * @param index The index of the value to return. - * @return The bytes of the instanceGroupUrls at the given index. + * @return This builder for chaining. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { - return instanceGroupUrls_.getByteString(index); + public Builder clearCreateTime() { + + createTime_ = getDefaultInstance().getCreateTime(); + onChanged(); + return this; } /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * string create_time = 106; * - * @param index The index to set the value at. - * @param value The instanceGroupUrls to set. + * @param value The bytes for createTime to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setInstanceGroupUrls(int index, java.lang.String value) { + public Builder setCreateTimeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.set(index, value); + checkByteStringIsUtf8(value); + + createTime_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * + * @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; } @@ -12361,21 +13198,38 @@ public Builder setInstanceGroupUrls(int index, java.lang.String value) { * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [Output only] The current status of this cluster.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * .google.container.v1.Cluster.Status status = 107; * - * @param value The instanceGroupUrls to add. + * @return The status. + */ + @java.lang.Override + public com.google.container.v1.Cluster.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1.Cluster.Status result = + com.google.container.v1.Cluster.Status.valueOf(status_); + return result == null ? com.google.container.v1.Cluster.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * + * @param value The status to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder addInstanceGroupUrls(java.lang.String value) { + public Builder setStatus(com.google.container.v1.Cluster.Status value) { if (value == null) { throw new NullPointerException(); } - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(value); + + status_ = value.getNumber(); onChanged(); return this; } @@ -12383,18 +13237,92 @@ public Builder addInstanceGroupUrls(java.lang.String value) { * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [Output only] The current status of this cluster.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * .google.container.v1.Cluster.Status status = 107; * - * @param values The instanceGroupUrls to add. * @return This builder for chaining. */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + * + * @return The statusMessage. + */ @java.lang.Deprecated - public Builder addAllInstanceGroupUrls(java.lang.Iterable values) { - ensureInstanceGroupUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceGroupUrls_); + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * 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) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * 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(); + } + + statusMessage_ = value; onChanged(); return this; } @@ -12402,17 +13330,19 @@ public Builder addAllInstanceGroupUrls(java.lang.Iterable valu * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * cluster, if available.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * string status_message = 108 [deprecated = true]; * * @return This builder for chaining. */ @java.lang.Deprecated - public Builder clearInstanceGroupUrls() { - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } @@ -12420,217 +13350,1407 @@ public Builder clearInstanceGroupUrls() { * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * cluster, if available.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * string status_message = 108 [deprecated = true]; * - * @param value The bytes of the instanceGroupUrls to add. + * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ @java.lang.Deprecated - public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(value); + + statusMessage_ = value; onChanged(); return this; } - private int currentNodeCount_; + private int nodeIpv4CidrSize_; + /** + * + * + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range. This field will only be set when cluster is in route-based network
+     * mode.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + * + * @return The nodeIpv4CidrSize. + */ + @java.lang.Override + public int getNodeIpv4CidrSize() { + return nodeIpv4CidrSize_; + } + /** + * + * + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range. This field will only be set when cluster is in route-based network
+     * mode.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + * + * @param value The nodeIpv4CidrSize to set. + * @return This builder for chaining. + */ + public Builder setNodeIpv4CidrSize(int value) { + + nodeIpv4CidrSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range. This field will only be set when cluster is in route-based network
+     * mode.
+     * 
+ * + * int32 node_ipv4_cidr_size = 109; + * + * @return This builder for chaining. + */ + public Builder clearNodeIpv4CidrSize() { + + nodeIpv4CidrSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4Cidr_ = ""; + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The servicesIpv4Cidr. + */ + public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The bytes for servicesIpv4Cidr. + */ + public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @param value The servicesIpv4Cidr to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @return This builder for chaining. + */ + public Builder clearServicesIpv4Cidr() { + + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address range of the Kubernetes services in
+     * this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`). Service addresses are
+     * typically put in the last `/16` from the container CIDR.
+     * 
+ * + * string services_ipv4_cidr = 110; + * + * @param value The bytes for servicesIpv4Cidr to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureInstanceGroupUrlsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return A list containing the instanceGroupUrls. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { + return instanceGroupUrls_.getUnmodifiableView(); + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return The count of instanceGroupUrls. + */ + @java.lang.Deprecated + public int getInstanceGroupUrlsCount() { + return instanceGroupUrls_.size(); + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The instanceGroupUrls at the given index. + */ + @java.lang.Deprecated + public java.lang.String getInstanceGroupUrls(int index) { + return instanceGroupUrls_.get(index); + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the instanceGroupUrls at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param index The index to set the value at. + * @param value The instanceGroupUrls to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setInstanceGroupUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param value The instanceGroupUrls to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addInstanceGroupUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param values The instanceGroupUrls to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllInstanceGroupUrls(java.lang.Iterable values) { + ensureInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceGroupUrls_); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param value The bytes of the instanceGroupUrls to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + + private int currentNodeCount_; + /** + * + * + *
+     * [Output only]  The number of nodes currently in the cluster. Deprecated.
+     * Call Kubernetes API directly to retrieve node information.
+     * 
+ * + * int32 current_node_count = 112 [deprecated = true]; + * + * @return The currentNodeCount. + */ + @java.lang.Override + @java.lang.Deprecated + public int getCurrentNodeCount() { + return currentNodeCount_; + } + /** + * + * + *
+     * [Output only]  The number of nodes currently in the cluster. Deprecated.
+     * Call Kubernetes API directly to retrieve node information.
+     * 
+ * + * int32 current_node_count = 112 [deprecated = true]; + * + * @param value The currentNodeCount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCurrentNodeCount(int value) { + + currentNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only]  The number of nodes currently in the cluster. Deprecated.
+     * Call Kubernetes API directly to retrieve node information.
+     * 
+ * + * int32 current_node_count = 112 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearCurrentNodeCount() { + + currentNodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object expireTime_ = ""; + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @return The expireTime. + */ + public java.lang.String getExpireTime() { + java.lang.Object ref = expireTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expireTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @return The bytes for expireTime. + */ + public com.google.protobuf.ByteString getExpireTimeBytes() { + java.lang.Object ref = expireTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expireTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @param value The expireTime to set. + * @return This builder for chaining. + */ + public Builder setExpireTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + expireTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @return This builder for chaining. + */ + public Builder clearExpireTime() { + + expireTime_ = getDefaultInstance().getExpireTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string expire_time = 113; + * + * @param value The bytes for expireTime to set. + * @return This builder for chaining. + */ + public Builder setExpireTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + expireTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](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; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](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; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](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; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](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; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + * + * + *
+     * [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.
+     * 
+ * + * string location = 114; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private boolean enableTpu_; + /** + * + * + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * 
+ * + * bool enable_tpu = 115; + * + * @return The enableTpu. + */ + @java.lang.Override + public boolean getEnableTpu() { + return enableTpu_; + } + /** + * + * + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * 
+ * + * bool enable_tpu = 115; + * + * @param value The enableTpu to set. + * @return This builder for chaining. + */ + public Builder setEnableTpu(boolean value) { + + enableTpu_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * 
+ * + * bool enable_tpu = 115; + * + * @return This builder for chaining. + */ + public Builder clearEnableTpu() { + + enableTpu_ = false; + onChanged(); + return this; + } + + private java.lang.Object tpuIpv4CidrBlock_ = ""; + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The tpuIpv4CidrBlock. + */ + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The bytes for tpuIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tpuIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @param value The tpuIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setTpuIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return This builder for chaining. + */ + public Builder clearTpuIpv4CidrBlock() { + + tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `1.2.3.4/29`).
+     * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @param value The bytes for tpuIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setTpuIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, + com.google.container.v1.StatusCondition.Builder, + com.google.container.v1.StatusConditionOrBuilder> + conditionsBuilder_; + + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder setConditions(int index, com.google.container.v1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder setConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addConditions(com.google.container.v1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addConditions(int index, com.google.container.v1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addConditions(com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusCondition.Builder getConditionsBuilder(int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder() + .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusCondition.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, + com.google.container.v1.StatusCondition.Builder, + com.google.container.v1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, + com.google.container.v1.StatusCondition.Builder, + com.google.container.v1.StatusConditionOrBuilder>( + conditions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private com.google.container.v1.Autopilot autopilot_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Autopilot, + com.google.container.v1.Autopilot.Builder, + com.google.container.v1.AutopilotOrBuilder> + autopilotBuilder_; + /** + * + * + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * + * @return Whether the autopilot field is set. + */ + public boolean hasAutopilot() { + return autopilotBuilder_ != null || autopilot_ != null; + } /** * * *
-     * [Output only]  The number of nodes currently in the cluster. Deprecated.
-     * Call Kubernetes API directly to retrieve node information.
+     * Autopilot configuration for the cluster.
      * 
* - * int32 current_node_count = 112 [deprecated = true]; + * .google.container.v1.Autopilot autopilot = 128; * - * @return The currentNodeCount. + * @return The autopilot. */ - @java.lang.Override - @java.lang.Deprecated - public int getCurrentNodeCount() { - return currentNodeCount_; + public com.google.container.v1.Autopilot getAutopilot() { + if (autopilotBuilder_ == null) { + return autopilot_ == null + ? com.google.container.v1.Autopilot.getDefaultInstance() + : autopilot_; + } else { + return autopilotBuilder_.getMessage(); + } } /** * * *
-     * [Output only]  The number of nodes currently in the cluster. Deprecated.
-     * Call Kubernetes API directly to retrieve node information.
+     * Autopilot configuration for the cluster.
      * 
* - * int32 current_node_count = 112 [deprecated = true]; - * - * @param value The currentNodeCount to set. - * @return This builder for chaining. + * .google.container.v1.Autopilot autopilot = 128; */ - @java.lang.Deprecated - public Builder setCurrentNodeCount(int value) { + public Builder setAutopilot(com.google.container.v1.Autopilot value) { + if (autopilotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autopilot_ = value; + onChanged(); + } else { + autopilotBuilder_.setMessage(value); + } - currentNodeCount_ = value; - onChanged(); return this; } /** * * *
-     * [Output only]  The number of nodes currently in the cluster. Deprecated.
-     * Call Kubernetes API directly to retrieve node information.
+     * Autopilot configuration for the cluster.
      * 
* - * int32 current_node_count = 112 [deprecated = true]; - * - * @return This builder for chaining. + * .google.container.v1.Autopilot autopilot = 128; */ - @java.lang.Deprecated - public Builder clearCurrentNodeCount() { + public Builder setAutopilot(com.google.container.v1.Autopilot.Builder builderForValue) { + if (autopilotBuilder_ == null) { + autopilot_ = builderForValue.build(); + onChanged(); + } else { + autopilotBuilder_.setMessage(builderForValue.build()); + } - currentNodeCount_ = 0; - onChanged(); return this; } - - private java.lang.Object expireTime_ = ""; /** * * *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Autopilot configuration for the cluster.
      * 
* - * string expire_time = 113; - * - * @return The expireTime. + * .google.container.v1.Autopilot autopilot = 128; */ - public java.lang.String getExpireTime() { - java.lang.Object ref = expireTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expireTime_ = s; - return s; + public Builder mergeAutopilot(com.google.container.v1.Autopilot value) { + if (autopilotBuilder_ == null) { + if (autopilot_ != null) { + autopilot_ = + com.google.container.v1.Autopilot.newBuilder(autopilot_) + .mergeFrom(value) + .buildPartial(); + } else { + autopilot_ = value; + } + onChanged(); } else { - return (java.lang.String) ref; + autopilotBuilder_.mergeFrom(value); } + + return this; } /** * * *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Autopilot configuration for the cluster.
      * 
* - * string expire_time = 113; - * - * @return The bytes for expireTime. + * .google.container.v1.Autopilot autopilot = 128; */ - public com.google.protobuf.ByteString getExpireTimeBytes() { - java.lang.Object ref = expireTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - expireTime_ = b; - return b; + public Builder clearAutopilot() { + if (autopilotBuilder_ == null) { + autopilot_ = null; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + autopilot_ = null; + autopilotBuilder_ = null; } + + return this; } /** * * *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Autopilot configuration for the cluster.
      * 
* - * string expire_time = 113; - * - * @param value The expireTime to set. - * @return This builder for chaining. + * .google.container.v1.Autopilot autopilot = 128; */ - public Builder setExpireTime(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public com.google.container.v1.Autopilot.Builder getAutopilotBuilder() { - expireTime_ = value; onChanged(); - return this; + return getAutopilotFieldBuilder().getBuilder(); } /** * * *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Autopilot configuration for the cluster.
      * 
* - * string expire_time = 113; - * - * @return This builder for chaining. + * .google.container.v1.Autopilot autopilot = 128; */ - public Builder clearExpireTime() { - - expireTime_ = getDefaultInstance().getExpireTime(); - onChanged(); - return this; + public com.google.container.v1.AutopilotOrBuilder getAutopilotOrBuilder() { + if (autopilotBuilder_ != null) { + return autopilotBuilder_.getMessageOrBuilder(); + } else { + return autopilot_ == null + ? com.google.container.v1.Autopilot.getDefaultInstance() + : autopilot_; + } } /** * * *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Autopilot configuration for the cluster.
      * 
* - * string expire_time = 113; - * - * @param value The bytes for expireTime to set. - * @return This builder for chaining. + * .google.container.v1.Autopilot autopilot = 128; */ - public Builder setExpireTimeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Autopilot, + com.google.container.v1.Autopilot.Builder, + com.google.container.v1.AutopilotOrBuilder> + getAutopilotFieldBuilder() { + if (autopilotBuilder_ == null) { + autopilotBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Autopilot, + com.google.container.v1.Autopilot.Builder, + com.google.container.v1.AutopilotOrBuilder>( + getAutopilot(), getParentForChildren(), isClean()); + autopilot_ = null; } - checkByteStringIsUtf8(value); - - expireTime_ = value; - onChanged(); - return this; + return autopilotBuilder_; } - private java.lang.Object location_ = ""; + private java.lang.Object id_ = ""; /** * * *
-     * [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.
+     * Output only. Unique id for the cluster.
      * 
* - * string location = 114; + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The location. + * @return The id. */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; + public java.lang.String getId() { + java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - location_ = s; + id_ = s; return s; } else { return (java.lang.String) ref; @@ -12640,23 +14760,19 @@ 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.
+     * Output only. Unique id for the cluster.
      * 
* - * string location = 114; + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for location. + * @return The bytes for id. */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; + id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -12666,24 +14782,20 @@ 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.
+     * Output only. Unique id for the cluster.
      * 
* - * string location = 114; + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The location to set. + * @param value The id to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - location_ = value; + id_ = value; onChanged(); return this; } @@ -12691,20 +14803,16 @@ 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.
+     * Output only. Unique id for the cluster.
      * 
* - * string location = 114; + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearLocation() { + public Builder clearId() { - location_ = getDefaultInstance().getLocation(); + id_ = getDefaultInstance().getId(); onChanged(); return this; } @@ -12712,544 +14820,590 @@ 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.
+     * Output only. Unique id for the cluster.
      * 
* - * string location = 114; + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes for location to set. + * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - location_ = value; + id_ = value; onChanged(); return this; } - private boolean enableTpu_; - /** - * - * - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * 
- * - * bool enable_tpu = 115; - * - * @return The enableTpu. - */ - @java.lang.Override - public boolean getEnableTpu() { - return enableTpu_; - } + private com.google.container.v1.NodePoolDefaults nodePoolDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolDefaults, + com.google.container.v1.NodePoolDefaults.Builder, + com.google.container.v1.NodePoolDefaultsOrBuilder> + nodePoolDefaultsBuilder_; /** * * *
-     * Enable the ability to use Cloud TPUs in this cluster.
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
      * 
* - * bool enable_tpu = 115; + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; * - * @param value The enableTpu to set. - * @return This builder for chaining. + * @return Whether the nodePoolDefaults field is set. */ - public Builder setEnableTpu(boolean value) { - - enableTpu_ = value; - onChanged(); - return this; + public boolean hasNodePoolDefaults() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
-     * Enable the ability to use Cloud TPUs in this cluster.
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
      * 
* - * bool enable_tpu = 115; + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; * - * @return This builder for chaining. + * @return The nodePoolDefaults. */ - public Builder clearEnableTpu() { - - enableTpu_ = false; - onChanged(); - return this; + public com.google.container.v1.NodePoolDefaults getNodePoolDefaults() { + if (nodePoolDefaultsBuilder_ == null) { + return nodePoolDefaults_ == null + ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() + : nodePoolDefaults_; + } else { + return nodePoolDefaultsBuilder_.getMessage(); + } } - - private java.lang.Object tpuIpv4CidrBlock_ = ""; /** * * *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
      * 
* - * string tpu_ipv4_cidr_block = 116; - * - * @return The tpuIpv4CidrBlock. + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; */ - public java.lang.String getTpuIpv4CidrBlock() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuIpv4CidrBlock_ = s; - return s; + public Builder setNodePoolDefaults(com.google.container.v1.NodePoolDefaults value) { + if (nodePoolDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePoolDefaults_ = value; + onChanged(); } else { - return (java.lang.String) ref; + nodePoolDefaultsBuilder_.setMessage(value); } + bitField0_ |= 0x00000020; + return this; } /** * * *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
      * 
* - * string tpu_ipv4_cidr_block = 116; - * - * @return The bytes for tpuIpv4CidrBlock. + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; */ - public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tpuIpv4CidrBlock_ = b; - return b; + public Builder setNodePoolDefaults( + com.google.container.v1.NodePoolDefaults.Builder builderForValue) { + if (nodePoolDefaultsBuilder_ == null) { + nodePoolDefaults_ = builderForValue.build(); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + nodePoolDefaultsBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000020; + return this; } /** * * *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
      * 
* - * string tpu_ipv4_cidr_block = 116; - * - * @param value The tpuIpv4CidrBlock to set. - * @return This builder for chaining. + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; */ - public Builder setTpuIpv4CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeNodePoolDefaults(com.google.container.v1.NodePoolDefaults value) { + if (nodePoolDefaultsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && nodePoolDefaults_ != null + && nodePoolDefaults_ != com.google.container.v1.NodePoolDefaults.getDefaultInstance()) { + nodePoolDefaults_ = + com.google.container.v1.NodePoolDefaults.newBuilder(nodePoolDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + nodePoolDefaults_ = value; + } + onChanged(); + } else { + nodePoolDefaultsBuilder_.mergeFrom(value); } - - tpuIpv4CidrBlock_ = value; - onChanged(); + bitField0_ |= 0x00000020; return this; } /** * * *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
      * 
* - * string tpu_ipv4_cidr_block = 116; - * - * @return This builder for chaining. + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; */ - public Builder clearTpuIpv4CidrBlock() { - - tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); - onChanged(); + public Builder clearNodePoolDefaults() { + if (nodePoolDefaultsBuilder_ == null) { + nodePoolDefaults_ = null; + onChanged(); + } else { + nodePoolDefaultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * * *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
      * 
* - * string tpu_ipv4_cidr_block = 116; - * - * @param value The bytes for tpuIpv4CidrBlock to set. - * @return This builder for chaining. + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; */ - public Builder setTpuIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tpuIpv4CidrBlock_ = value; + public com.google.container.v1.NodePoolDefaults.Builder getNodePoolDefaultsBuilder() { + bitField0_ |= 0x00000020; onChanged(); - return this; - } - - private java.util.List conditions_ = - java.util.Collections.emptyList(); - - private void ensureConditionsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - conditions_ = new java.util.ArrayList(conditions_); - bitField0_ |= 0x00000010; - } + return getNodePoolDefaultsFieldBuilder().getBuilder(); } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - conditionsBuilder_; - /** * * *
-     * Which conditions caused the current cluster state.
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; */ - public java.util.List getConditionsList() { - if (conditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(conditions_); + public com.google.container.v1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder() { + if (nodePoolDefaultsBuilder_ != null) { + return nodePoolDefaultsBuilder_.getMessageOrBuilder(); } else { - return conditionsBuilder_.getMessageList(); + return nodePoolDefaults_ == null + ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() + : nodePoolDefaults_; } } /** * * *
-     * Which conditions caused the current cluster state.
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; */ - public int getConditionsCount() { - if (conditionsBuilder_ == null) { - return conditions_.size(); - } else { - return conditionsBuilder_.getCount(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolDefaults, + com.google.container.v1.NodePoolDefaults.Builder, + com.google.container.v1.NodePoolDefaultsOrBuilder> + getNodePoolDefaultsFieldBuilder() { + if (nodePoolDefaultsBuilder_ == null) { + nodePoolDefaultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolDefaults, + com.google.container.v1.NodePoolDefaults.Builder, + com.google.container.v1.NodePoolDefaultsOrBuilder>( + getNodePoolDefaults(), getParentForChildren(), isClean()); + nodePoolDefaults_ = null; } + return nodePoolDefaultsBuilder_; } + + private com.google.container.v1.LoggingConfig loggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, + com.google.container.v1.LoggingConfig.Builder, + com.google.container.v1.LoggingConfigOrBuilder> + loggingConfigBuilder_; /** * * *
-     * Which conditions caused the current cluster state.
+     * Logging configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.LoggingConfig logging_config = 132; + * + * @return Whether the loggingConfig field is set. */ - public com.google.container.v1.StatusCondition getConditions(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); + public boolean hasLoggingConfig() { + return loggingConfigBuilder_ != null || loggingConfig_ != null; + } + /** + * + * + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * + * @return The loggingConfig. + */ + public com.google.container.v1.LoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null + ? com.google.container.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } else { - return conditionsBuilder_.getMessage(index); + return loggingConfigBuilder_.getMessage(); } } /** * * *
-     * Which conditions caused the current cluster state.
+     * Logging configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.LoggingConfig logging_config = 132; */ - public Builder setConditions(int index, com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { + public Builder setLoggingConfig(com.google.container.v1.LoggingConfig value) { + if (loggingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureConditionsIsMutable(); - conditions_.set(index, value); + loggingConfig_ = value; onChanged(); } else { - conditionsBuilder_.setMessage(index, value); + loggingConfigBuilder_.setMessage(value); } + return this; } /** * * *
-     * Which conditions caused the current cluster state.
+     * Logging configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.LoggingConfig logging_config = 132; */ - public Builder setConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.set(index, builderForValue.build()); + public Builder setLoggingConfig(com.google.container.v1.LoggingConfig.Builder builderForValue) { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = builderForValue.build(); onChanged(); } else { - conditionsBuilder_.setMessage(index, builderForValue.build()); + loggingConfigBuilder_.setMessage(builderForValue.build()); } + return this; } /** * * *
-     * Which conditions caused the current cluster state.
+     * Logging configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.LoggingConfig logging_config = 132; */ - public Builder addConditions(com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeLoggingConfig(com.google.container.v1.LoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (loggingConfig_ != null) { + loggingConfig_ = + com.google.container.v1.LoggingConfig.newBuilder(loggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + loggingConfig_ = value; } - ensureConditionsIsMutable(); - conditions_.add(value); onChanged(); } else { - conditionsBuilder_.addMessage(value); + loggingConfigBuilder_.mergeFrom(value); } + return this; } /** * * *
-     * Which conditions caused the current cluster state.
+     * Logging configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.LoggingConfig logging_config = 132; */ - public Builder addConditions(int index, com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(index, value); + public Builder clearLoggingConfig() { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = null; onChanged(); } else { - conditionsBuilder_.addMessage(index, value); + loggingConfig_ = null; + loggingConfigBuilder_ = null; } + return this; } /** * * *
-     * Which conditions caused the current cluster state.
+     * Logging configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.LoggingConfig logging_config = 132; */ - public Builder addConditions(com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(builderForValue.build()); - } - return this; + public com.google.container.v1.LoggingConfig.Builder getLoggingConfigBuilder() { + + onChanged(); + return getLoggingConfigFieldBuilder().getBuilder(); } /** * * *
-     * Which conditions caused the current cluster state.
+     * Logging configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.LoggingConfig logging_config = 132; */ - public Builder addConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(index, builderForValue.build()); - onChanged(); + public com.google.container.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + if (loggingConfigBuilder_ != null) { + return loggingConfigBuilder_.getMessageOrBuilder(); } else { - conditionsBuilder_.addMessage(index, builderForValue.build()); + return loggingConfig_ == null + ? com.google.container.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } - return this; } /** * * *
-     * Which conditions caused the current cluster state.
+     * Logging configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.LoggingConfig logging_config = 132; */ - public Builder addAllConditions( - java.lang.Iterable values) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); - onChanged(); - } else { - conditionsBuilder_.addAllMessages(values); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, + com.google.container.v1.LoggingConfig.Builder, + com.google.container.v1.LoggingConfigOrBuilder> + getLoggingConfigFieldBuilder() { + if (loggingConfigBuilder_ == null) { + loggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, + com.google.container.v1.LoggingConfig.Builder, + com.google.container.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), getParentForChildren(), isClean()); + loggingConfig_ = null; } - return this; + return loggingConfigBuilder_; } + + private com.google.container.v1.MonitoringConfig monitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, + com.google.container.v1.MonitoringConfig.Builder, + com.google.container.v1.MonitoringConfigOrBuilder> + monitoringConfigBuilder_; /** * * *
-     * Which conditions caused the current cluster state.
+     * Monitoring configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * + * @return Whether the monitoringConfig field is set. */ - public Builder clearConditions() { - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); + public boolean hasMonitoringConfig() { + return monitoringConfigBuilder_ != null || monitoringConfig_ != null; + } + /** + * + * + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * + * @return The monitoringConfig. + */ + public com.google.container.v1.MonitoringConfig getMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + return monitoringConfig_ == null + ? com.google.container.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; } else { - conditionsBuilder_.clear(); + return monitoringConfigBuilder_.getMessage(); } - return this; } /** * * *
-     * Which conditions caused the current cluster state.
+     * Monitoring configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.MonitoringConfig monitoring_config = 133; */ - public Builder removeConditions(int index) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.remove(index); + public Builder setMonitoringConfig(com.google.container.v1.MonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitoringConfig_ = value; onChanged(); } else { - conditionsBuilder_.remove(index); + monitoringConfigBuilder_.setMessage(value); } + return this; } /** * * *
-     * Which conditions caused the current cluster state.
+     * Monitoring configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.MonitoringConfig monitoring_config = 133; */ - public com.google.container.v1.StatusCondition.Builder getConditionsBuilder(int index) { - return getConditionsFieldBuilder().getBuilder(index); + public Builder setMonitoringConfig( + com.google.container.v1.MonitoringConfig.Builder builderForValue) { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = builderForValue.build(); + onChanged(); + } else { + monitoringConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; } /** * * *
-     * Which conditions caused the current cluster state.
+     * Monitoring configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.MonitoringConfig monitoring_config = 133; */ - public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); + public Builder mergeMonitoringConfig(com.google.container.v1.MonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (monitoringConfig_ != null) { + monitoringConfig_ = + com.google.container.v1.MonitoringConfig.newBuilder(monitoringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + monitoringConfig_ = value; + } + onChanged(); } else { - return conditionsBuilder_.getMessageOrBuilder(index); + monitoringConfigBuilder_.mergeFrom(value); } + + return this; } /** * * *
-     * Which conditions caused the current cluster state.
+     * Monitoring configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.MonitoringConfig monitoring_config = 133; */ - public java.util.List - getConditionsOrBuilderList() { - if (conditionsBuilder_ != null) { - return conditionsBuilder_.getMessageOrBuilderList(); + public Builder clearMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = null; + onChanged(); } else { - return java.util.Collections.unmodifiableList(conditions_); + monitoringConfig_ = null; + monitoringConfigBuilder_ = null; } + + return this; } /** * * *
-     * Which conditions caused the current cluster state.
+     * Monitoring configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.MonitoringConfig monitoring_config = 133; */ - public com.google.container.v1.StatusCondition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder() - .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); + public com.google.container.v1.MonitoringConfig.Builder getMonitoringConfigBuilder() { + + onChanged(); + return getMonitoringConfigFieldBuilder().getBuilder(); } /** * * *
-     * Which conditions caused the current cluster state.
+     * Monitoring configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.MonitoringConfig monitoring_config = 133; */ - public com.google.container.v1.StatusCondition.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); + public com.google.container.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { + if (monitoringConfigBuilder_ != null) { + return monitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return monitoringConfig_ == null + ? com.google.container.v1.MonitoringConfig.getDefaultInstance() + : monitoringConfig_; + } } /** * * *
-     * Which conditions caused the current cluster state.
+     * Monitoring configuration for the cluster.
      * 
* - * repeated .google.container.v1.StatusCondition conditions = 118; + * .google.container.v1.MonitoringConfig monitoring_config = 133; */ - public java.util.List - getConditionsBuilderList() { - return getConditionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - getConditionsFieldBuilder() { - if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder>( - conditions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - conditions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, + com.google.container.v1.MonitoringConfig.Builder, + com.google.container.v1.MonitoringConfigOrBuilder> + getMonitoringConfigFieldBuilder() { + if (monitoringConfigBuilder_ == null) { + monitoringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, + com.google.container.v1.MonitoringConfig.Builder, + com.google.container.v1.MonitoringConfigOrBuilder>( + getMonitoringConfig(), getParentForChildren(), isClean()); + monitoringConfig_ = null; } - return conditionsBuilder_; + return monitoringConfigBuilder_; } @java.lang.Override 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 9af8f7c3..b3c5ffe8 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 @@ -42,6 +42,7 @@ private ClusterAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder bui private ClusterAutoscaling() { resourceLimits_ = java.util.Collections.emptyList(); + autoscalingProfile_ = 0; autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @@ -91,6 +92,13 @@ private ClusterAutoscaling( com.google.container.v1.ResourceLimit.parser(), extensionRegistry)); break; } + case 24: + { + int rawValue = input.readEnum(); + + autoscalingProfile_ = rawValue; + break; + } case 34: { com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder subBuilder = null; @@ -158,6 +166,166 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.container.v1.ClusterAutoscaling.Builder.class); } + /** + * + * + *
+   * Defines possible options for autoscaling_profile field.
+   * 
+ * + * Protobuf enum {@code google.container.v1.ClusterAutoscaling.AutoscalingProfile} + */ + public enum AutoscalingProfile implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * No change to autoscaling configuration.
+     * 
+ * + * PROFILE_UNSPECIFIED = 0; + */ + PROFILE_UNSPECIFIED(0), + /** + * + * + *
+     * Prioritize optimizing utilization of resources.
+     * 
+ * + * OPTIMIZE_UTILIZATION = 1; + */ + OPTIMIZE_UTILIZATION(1), + /** + * + * + *
+     * Use default (balanced) autoscaling configuration.
+     * 
+ * + * BALANCED = 2; + */ + BALANCED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * No change to autoscaling configuration.
+     * 
+ * + * PROFILE_UNSPECIFIED = 0; + */ + public static final int PROFILE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Prioritize optimizing utilization of resources.
+     * 
+ * + * OPTIMIZE_UTILIZATION = 1; + */ + public static final int OPTIMIZE_UTILIZATION_VALUE = 1; + /** + * + * + *
+     * Use default (balanced) autoscaling configuration.
+     * 
+ * + * BALANCED = 2; + */ + public static final int BALANCED_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 AutoscalingProfile 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 AutoscalingProfile forNumber(int value) { + switch (value) { + case 0: + return PROFILE_UNSPECIFIED; + case 1: + return OPTIMIZE_UTILIZATION; + case 2: + return BALANCED; + 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 AutoscalingProfile findValueByNumber(int number) { + return AutoscalingProfile.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.ClusterAutoscaling.getDescriptor().getEnumTypes().get(0); + } + + private static final AutoscalingProfile[] VALUES = values(); + + public static AutoscalingProfile 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 AutoscalingProfile(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.ClusterAutoscaling.AutoscalingProfile) + } + public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; private boolean enableNodeAutoprovisioning_; /** @@ -250,6 +418,46 @@ public com.google.container.v1.ResourceLimitOrBuilder getResourceLimitsOrBuilder return resourceLimits_.get(index); } + public static final int AUTOSCALING_PROFILE_FIELD_NUMBER = 3; + private int autoscalingProfile_; + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The enum numeric value on the wire for autoscalingProfile. + */ + @java.lang.Override + public int getAutoscalingProfileValue() { + return autoscalingProfile_; + } + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The autoscalingProfile. + */ + @java.lang.Override + public com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { + @SuppressWarnings("deprecation") + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile result = + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.valueOf(autoscalingProfile_); + return result == null + ? com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED + : result; + } + public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER = 4; private com.google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioningNodePoolDefaults_; @@ -399,6 +607,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < resourceLimits_.size(); i++) { output.writeMessage(2, resourceLimits_.get(i)); } + if (autoscalingProfile_ + != com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.PROFILE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, autoscalingProfile_); + } if (autoprovisioningNodePoolDefaults_ != null) { output.writeMessage(4, getAutoprovisioningNodePoolDefaults()); } @@ -421,6 +634,11 @@ public int getSerializedSize() { for (int i = 0; i < resourceLimits_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, resourceLimits_.get(i)); } + if (autoscalingProfile_ + != com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.PROFILE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, autoscalingProfile_); + } if (autoprovisioningNodePoolDefaults_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -452,6 +670,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableNodeAutoprovisioning() != other.getEnableNodeAutoprovisioning()) return false; if (!getResourceLimitsList().equals(other.getResourceLimitsList())) return false; + if (autoscalingProfile_ != other.autoscalingProfile_) return false; if (hasAutoprovisioningNodePoolDefaults() != other.hasAutoprovisioningNodePoolDefaults()) return false; if (hasAutoprovisioningNodePoolDefaults()) { @@ -477,6 +696,8 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LIMITS_FIELD_NUMBER; hash = (53 * hash) + getResourceLimitsList().hashCode(); } + hash = (37 * hash) + AUTOSCALING_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + autoscalingProfile_; if (hasAutoprovisioningNodePoolDefaults()) { hash = (37 * hash) + AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER; hash = (53 * hash) + getAutoprovisioningNodePoolDefaults().hashCode(); @@ -643,6 +864,8 @@ public Builder clear() { } else { resourceLimitsBuilder_.clear(); } + autoscalingProfile_ = 0; + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { autoprovisioningNodePoolDefaults_ = null; } else { @@ -689,6 +912,7 @@ public com.google.container.v1.ClusterAutoscaling buildPartial() { } else { result.resourceLimits_ = resourceLimitsBuilder_.build(); } + result.autoscalingProfile_ = autoscalingProfile_; if (autoprovisioningNodePoolDefaultsBuilder_ == null) { result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaults_; } else { @@ -778,6 +1002,9 @@ public Builder mergeFrom(com.google.container.v1.ClusterAutoscaling other) { } } } + if (other.autoscalingProfile_ != 0) { + setAutoscalingProfileValue(other.getAutoscalingProfileValue()); + } if (other.hasAutoprovisioningNodePoolDefaults()) { mergeAutoprovisioningNodePoolDefaults(other.getAutoprovisioningNodePoolDefaults()); } @@ -1246,6 +1473,106 @@ public com.google.container.v1.ResourceLimit.Builder addResourceLimitsBuilder(in return resourceLimitsBuilder_; } + private int autoscalingProfile_ = 0; + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The enum numeric value on the wire for autoscalingProfile. + */ + @java.lang.Override + public int getAutoscalingProfileValue() { + return autoscalingProfile_; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @param value The enum numeric value on the wire for autoscalingProfile to set. + * @return This builder for chaining. + */ + public Builder setAutoscalingProfileValue(int value) { + + autoscalingProfile_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The autoscalingProfile. + */ + @java.lang.Override + public com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { + @SuppressWarnings("deprecation") + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile result = + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.valueOf( + autoscalingProfile_); + return result == null + ? com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @param value The autoscalingProfile to set. + * @return This builder for chaining. + */ + public Builder setAutoscalingProfile( + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile value) { + if (value == null) { + throw new NullPointerException(); + } + + autoscalingProfile_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoscalingProfile() { + + autoscalingProfile_ = 0; + onChanged(); + return this; + } + private com.google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioningNodePoolDefaults_; private com.google.protobuf.SingleFieldBuilderV3< 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 de0b9900..21b42e12 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 @@ -93,6 +93,33 @@ public interface ClusterAutoscalingOrBuilder */ com.google.container.v1.ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index); + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The enum numeric value on the wire for autoscalingProfile. + */ + int getAutoscalingProfileValue(); + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The autoscalingProfile. + */ + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile(); + /** * * 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 b30a285f..5fd402d2 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 @@ -1287,6 +1287,114 @@ public interface ClusterOrBuilder */ com.google.container.v1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder(); + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + * + * @return Whether the meshCertificates field is set. + */ + boolean hasMeshCertificates(); + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + * + * @return The meshCertificates. + */ + com.google.container.v1.MeshCertificates getMeshCertificates(); + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + com.google.container.v1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder(); + + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + * + * @return Whether the notificationConfig field is set. + */ + boolean hasNotificationConfig(); + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + * + * @return The notificationConfig. + */ + com.google.container.v1.NotificationConfig getNotificationConfig(); + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + com.google.container.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); + + /** + * + * + *
+   * Configuration of Confidential Nodes
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * + * @return Whether the confidentialNodes field is set. + */ + boolean hasConfidentialNodes(); + /** + * + * + *
+   * Configuration of Confidential Nodes
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * + * @return The confidentialNodes. + */ + com.google.container.v1.ConfidentialNodes getConfidentialNodes(); + /** + * + * + *
+   * Configuration of Confidential Nodes
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); + /** * * @@ -1836,4 +1944,172 @@ public interface ClusterOrBuilder * repeated .google.container.v1.StatusCondition conditions = 118; */ com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index); + + /** + * + * + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * + * @return Whether the autopilot field is set. + */ + boolean hasAutopilot(); + /** + * + * + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * + * @return The autopilot. + */ + com.google.container.v1.Autopilot getAutopilot(); + /** + * + * + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + com.google.container.v1.AutopilotOrBuilder getAutopilotOrBuilder(); + + /** + * + * + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * + * @return Whether the nodePoolDefaults field is set. + */ + boolean hasNodePoolDefaults(); + /** + * + * + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * + * @return The nodePoolDefaults. + */ + com.google.container.v1.NodePoolDefaults getNodePoolDefaults(); + /** + * + * + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + com.google.container.v1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder(); + + /** + * + * + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * + * @return Whether the loggingConfig field is set. + */ + boolean hasLoggingConfig(); + /** + * + * + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * + * @return The loggingConfig. + */ + com.google.container.v1.LoggingConfig getLoggingConfig(); + /** + * + * + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + com.google.container.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + * + * + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * + * @return Whether the monitoringConfig field is set. + */ + boolean hasMonitoringConfig(); + /** + * + * + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * + * @return The monitoringConfig. + */ + com.google.container.v1.MonitoringConfig getMonitoringConfig(); + /** + * + * + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + com.google.container.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder(); } 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 884d53ab..51b00970 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 @@ -27,6 +27,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LinuxNodeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LinuxNodeConfig_SysctlsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LinuxNodeConfig_SysctlsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeKubeletConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeKubeletConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_NodeConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -39,6 +51,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_NodeConfig_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_NodeConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_AdvancedMachineFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeNetworkConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeNetworkConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -47,6 +67,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_GcfsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GcfsConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_ReservationAffinity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -107,6 +131,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_GcePersistentDiskCsiDriverConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -139,6 +171,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_Cluster_ResourceLabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_Cluster_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodePoolDefaults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodePoolDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeConfigDefaults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeConfigDefaults_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_ClusterUpdate_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -287,6 +327,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_TimeWindow_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_TimeWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MaintenanceExclusionOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_RecurringTimeWindow_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -371,6 +415,10 @@ 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_ServiceExternalIPsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ServiceExternalIPsConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -399,6 +447,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_IntraNodeVisibilityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ILBSubsettingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ILBSubsettingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_DNSConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_DNSConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_MaxPodsConstraint_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -407,6 +463,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_MeshCertificates_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MeshCertificates_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_DatabaseEncryption_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -451,6 +511,58 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_ShieldedNodes_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_VirtualNIC_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_VirtualNIC_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NotificationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NotificationConfig_Filter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ConfidentialNodes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_UpgradeEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SecurityBulletinEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_Autopilot_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_Autopilot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LoggingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LoggingComponentConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LoggingComponentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MonitoringConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MonitoringComponentConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MonitoringComponentConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -463,430 +575,516 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n)google/container/v1/cluster_service.pr" + "oto\022\023google.container.v1\032\034google/api/ann" + "otations.proto\032\027google/api/client.proto\032" - + "\037google/api/field_behavior.proto\032\033google" - + "/protobuf/empty.proto\032\037google/protobuf/t" - + "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" - + ".NodeConfig.MetadataEntry\022\022\n\nimage_type\030" - + "\005 \001(\t\022;\n\006labels\030\006 \003(\0132+.google.container" - + ".v1.NodeConfig.LabelsEntry\022\027\n\017local_ssd_" - + "count\030\007 \001(\005\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptible" - + "\030\n \001(\010\022<\n\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\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\"\277\013\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[\n#desired_authenticator_" - + "groups_config\030? \001(\0132..google.container.v" - + "1.AuthenticatorGroupsConfig\022\036\n\026desired_m" - + "aster_version\030d \001(\t\"\304\007\n\tOperation\022\014\n\004nam" - + "e\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001\022;\n\016operation_t" - + "ype\030\003 \001(\0162#.google.container.v1.Operatio" - + "n.Type\0225\n\006status\030\004 \001(\0162%.google.containe" - + "r.v1.Operation.Status\022\016\n\006detail\030\010 \001(\t\022\033\n" - + "\016status_message\030\005 \001(\tB\003\340A\003\022\021\n\tself_link\030" - + "\006 \001(\t\022\023\n\013target_link\030\007 \001(\t\022\020\n\010location\030\t" - + " \001(\t\022\022\n\nstart_time\030\n \001(\t\022\020\n\010end_time\030\013 \001" - + "(\t\022=\n\010progress\030\014 \001(\0132&.google.container." - + "v1.OperationProgressB\003\340A\003\022@\n\022cluster_con" - + "ditions\030\r \003(\0132$.google.container.v1.Stat" - + "usCondition\022A\n\023nodepool_conditions\030\016 \003(\013" - + "2$.google.container.v1.StatusCondition\"R" - + "\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PEND" - + "ING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING" - + "\020\004\"\375\002\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CRE" - + "ATE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPG" - + "RADE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPA" - + "IR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREA" - + "TE_NODE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030" - + "SET_NODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REPAI" - + "R_NODES\020\n\022\026\n\022AUTO_UPGRADE_NODES\020\013\022\016\n\nSET" - + "_LABELS\020\014\022\023\n\017SET_MASTER_AUTH\020\r\022\026\n\022SET_NO" - + "DE_POOL_SIZE\020\016\022\026\n\022SET_NETWORK_POLICY\020\017\022\032" - + "\n\026SET_MAINTENANCE_POLICY\020\020\"\273\002\n\021Operation" - + "Progress\022\014\n\004name\030\001 \001(\t\0225\n\006status\030\002 \001(\0162%" - + ".google.container.v1.Operation.Status\022>\n" - + "\007metrics\030\003 \003(\0132-.google.container.v1.Ope" - + "rationProgress.Metric\0226\n\006stages\030\004 \003(\0132&." - + "google.container.v1.OperationProgress\032i\n" - + "\006Metric\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030" - + "\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n\014strin" - + "g_value\030\004 \001(\tH\000B\007\n\005value\"\204\001\n\024CreateClust" - + "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\0222\n\007cluster\030\003 \001(\0132\034.google.co" - + "ntainer.v1.ClusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"" - + "c\n\021GetClusterRequest\022\026\n\nproject_id\030\001 \001(\t" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032\033google/protobuf/emp" + + "ty.proto\032\037google/protobuf/timestamp.prot" + + "o\032\036google/protobuf/wrappers.proto\032\025googl" + + "e/rpc/code.proto\032\027google/rpc/status.prot" + + "o\"\205\001\n\017LinuxNodeConfig\022B\n\007sysctls\030\001 \003(\01321" + + ".google.container.v1.LinuxNodeConfig.Sys" + + "ctlsEntry\032.\n\014SysctlsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\021NodeKubeletConfig\022" + + "\032\n\022cpu_manager_policy\030\001 \001(\t\0221\n\rcpu_cfs_q" + + "uota\030\002 \001(\0132\032.google.protobuf.BoolValue\022\034" + + "\n\024cpu_cfs_quota_period\030\003 \001(\t\"\271\t\n\nNodeCon" + + "fig\022\024\n\014machine_type\030\001 \001(\t\022\024\n\014disk_size_g" + + "b\030\002 \001(\005\022\024\n\014oauth_scopes\030\003 \003(\t\022\027\n\017service" + + "_account\030\t \001(\t\022?\n\010metadata\030\004 \003(\0132-.googl" + + "e.container.v1.NodeConfig.MetadataEntry\022" + + "\022\n\nimage_type\030\005 \001(\t\022;\n\006labels\030\006 \003(\0132+.go" + + "ogle.container.v1.NodeConfig.LabelsEntry" + + "\022\027\n\017local_ssd_count\030\007 \001(\005\022\014\n\004tags\030\010 \003(\t\022" + + "\023\n\013preemptible\030\n \001(\010\022<\n\014accelerators\030\013 \003" + + "(\0132&.google.container.v1.AcceleratorConf" + + "ig\022\021\n\tdisk_type\030\014 \001(\t\022\030\n\020min_cpu_platfor" + + "m\030\r \001(\t\022M\n\030workload_metadata_config\030\016 \001(" + + "\0132+.google.container.v1.WorkloadMetadata" + + "Config\022.\n\006taints\030\017 \003(\0132\036.google.containe" + + "r.v1.NodeTaint\022:\n\016sandbox_config\030\021 \001(\0132\"" + + ".google.container.v1.SandboxConfig\022\022\n\nno" + + "de_group\030\022 \001(\t\022F\n\024reservation_affinity\030\023" + + " \001(\0132(.google.container.v1.ReservationAf" + + "finity\022M\n\030shielded_instance_config\030\024 \001(\013" + + "2+.google.container.v1.ShieldedInstanceC" + + "onfig\022?\n\021linux_node_config\030\025 \001(\0132$.googl" + + "e.container.v1.LinuxNodeConfig\022>\n\016kubele" + + "t_config\030\026 \001(\0132&.google.container.v1.Nod" + + "eKubeletConfig\022\031\n\021boot_disk_kms_key\030\027 \001(" + + "\t\0224\n\013gcfs_config\030\031 \001(\0132\037.google.containe" + + "r.v1.GcfsConfig\022O\n\031advanced_machine_feat" + + "ures\030\032 \001(\0132,.google.container.v1.Advance" + + "dMachineFeatures\022.\n\005gvnic\030\035 \001(\0132\037.google" + + ".container.v1.VirtualNIC\032/\n\rMetadataEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"M\n\027AdvancedMachineFeatures\022\035\n\020threads_p" + + "er_core\030\001 \001(\003H\000\210\001\001B\023\n\021_threads_per_core\"" + + "b\n\021NodeNetworkConfig\022\035\n\020create_pod_range" + + "\030\004 \001(\010B\003\340A\004\022\021\n\tpod_range\030\005 \001(\t\022\033\n\023pod_ip" + + "v4_cidr_block\030\006 \001(\t\"Y\n\026ShieldedInstanceC" + + "onfig\022\032\n\022enable_secure_boot\030\001 \001(\010\022#\n\033ena" + + "ble_integrity_monitoring\030\002 \001(\010\"k\n\rSandbo" + + "xConfig\0225\n\004type\030\002 \001(\0162\'.google.container" + + ".v1.SandboxConfig.Type\"#\n\004Type\022\017\n\013UNSPEC" + + "IFIED\020\000\022\n\n\006GVISOR\020\001\"\035\n\nGcfsConfig\022\017\n\007ena" + + "bled\030\001 \001(\010\"\337\001\n\023ReservationAffinity\022O\n\030co" + + "nsume_reservation_type\030\001 \001(\0162-.google.co" + + "ntainer.v1.ReservationAffinity.Type\022\013\n\003k" + + "ey\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNSP" + + "ECIFIED\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RES" + + "ERVATION\020\002\022\030\n\024SPECIFIC_RESERVATION\020\003\"\271\001\n" + + "\tNodeTaint\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.Nod" + + "eTaint.Effect\"Y\n\006Effect\022\026\n\022EFFECT_UNSPEC" + + "IFIED\020\000\022\017\n\013NO_SCHEDULE\020\001\022\026\n\022PREFER_NO_SC" + + "HEDULE\020\002\022\016\n\nNO_EXECUTE\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_certificate_config\030\003 \001(\0132," + + ".google.container.v1.ClientCertificateCo" + + "nfig\022\036\n\026cluster_ca_certificate\030d \001(\t\022\032\n\022" + + "client_certificate\030e \001(\t\022\022\n\nclient_key\030f" + + " \001(\t\";\n\027ClientCertificateConfig\022 \n\030issue" + + "_client_certificate\030\001 \001(\010\"\307\005\n\014AddonsConf" + + "ig\022C\n\023http_load_balancing\030\001 \001(\0132&.google" + + ".container.v1.HttpLoadBalancing\022Q\n\032horiz" + + "ontal_pod_autoscaling\030\002 \001(\0132-.google.con" + + "tainer.v1.HorizontalPodAutoscaling\022J\n\024ku" + + "bernetes_dashboard\030\003 \001(\0132(.google.contai" + + "ner.v1.KubernetesDashboardB\002\030\001\022G\n\025networ" + + "k_policy_config\030\004 \001(\0132(.google.container" + + ".v1.NetworkPolicyConfig\022=\n\020cloud_run_con" + + "fig\030\007 \001(\0132#.google.container.v1.CloudRun" + + "Config\022=\n\020dns_cache_config\030\010 \001(\0132#.googl" + + "e.container.v1.DnsCacheConfig\022K\n\027config_" + + "connector_config\030\n \001(\0132*.google.containe" + + "r.v1.ConfigConnectorConfig\022d\n%gce_persis" + + "tent_disk_csi_driver_config\030\013 \001(\01325.goog" + + "le.container.v1.GcePersistentDiskCsiDriv" + + "erConfig\022Y\n\037gcp_filestore_csi_driver_con" + + "fig\030\016 \001(\01320.google.container.v1.GcpFiles" + + "toreCsiDriverConfig\"%\n\021HttpLoadBalancing" + + "\022\020\n\010disabled\030\001 \001(\010\",\n\030HorizontalPodAutos" + + "caling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023KubernetesDa" + + "shboard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023NetworkPoli" + + "cyConfig\022\020\n\010disabled\030\001 \001(\010\"!\n\016DnsCacheCo" + + "nfig\022\017\n\007enabled\030\001 \001(\010\"9\n&PrivateClusterM" + + "asterGlobalAccessConfig\022\017\n\007enabled\030\001 \001(\010" + + "\"\240\002\n\024PrivateClusterConfig\022\034\n\024enable_priv" + + "ate_nodes\030\001 \001(\010\022\037\n\027enable_private_endpoi" + + "nt\030\002 \001(\010\022\036\n\026master_ipv4_cidr_block\030\003 \001(\t" + + "\022\030\n\020private_endpoint\030\004 \001(\t\022\027\n\017public_end" + + "point\030\005 \001(\t\022\024\n\014peering_name\030\007 \001(\t\022`\n\033mas" + + "ter_global_access_config\030\010 \001(\0132;.google." + + "container.v1.PrivateClusterMasterGlobalA" + + "ccessConfig\"D\n\031AuthenticatorGroupsConfig" + + "\022\017\n\007enabled\030\001 \001(\010\022\026\n\016security_group\030\002 \001(" + + "\t\"\356\001\n\016CloudRunConfig\022\020\n\010disabled\030\001 \001(\010\022P" + + "\n\022load_balancer_type\030\003 \001(\01624.google.cont" + + "ainer.v1.CloudRunConfig.LoadBalancerType" + + "\"x\n\020LoadBalancerType\022\"\n\036LOAD_BALANCER_TY" + + "PE_UNSPECIFIED\020\000\022\037\n\033LOAD_BALANCER_TYPE_E" + + "XTERNAL\020\001\022\037\n\033LOAD_BALANCER_TYPE_INTERNAL" + + "\020\002\"(\n\025ConfigConnectorConfig\022\017\n\007enabled\030\001" + + " \001(\010\"3\n GcePersistentDiskCsiDriverConfig" + + "\022\017\n\007enabled\030\001 \001(\010\".\n\033GcpFilestoreCsiDriv" + + "erConfig\022\017\n\007enabled\030\001 \001(\010\"\274\001\n\036MasterAuth" + + "orizedNetworksConfig\022\017\n\007enabled\030\001 \001(\010\022R\n" + + "\013cidr_blocks\030\002 \003(\0132=.google.container.v1" + + ".MasterAuthorizedNetworksConfig.CidrBloc" + + "k\0325\n\tCidrBlock\022\024\n\014display_name\030\001 \001(\t\022\022\n\n" + + "cidr_block\030\002 \001(\t\"\035\n\nLegacyAbac\022\017\n\007enable" + + "d\030\001 \001(\010\"\221\001\n\rNetworkPolicy\022=\n\010provider\030\001 " + + "\001(\0162+.google.container.v1.NetworkPolicy." + + "Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Provider\022\030\n" + + "\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CALICO\020\001\"&\n\023B" + + "inaryAuthorization\022\017\n\007enabled\030\001 \001(\010\"\232\003\n\022" + + "IPAllocationPolicy\022\026\n\016use_ip_aliases\030\001 \001" + + "(\010\022\031\n\021create_subnetwork\030\002 \001(\010\022\027\n\017subnetw" + + "ork_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\022ser" + + "vices_ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n\034cluster_sec" + + "ondary_range_name\030\007 \001(\t\022%\n\035services_seco" + + "ndary_range_name\030\010 \001(\t\022\037\n\027cluster_ipv4_c" + + "idr_block\030\t \001(\t\022\034\n\024node_ipv4_cidr_block\030" + + "\n \001(\t\022 \n\030services_ipv4_cidr_block\030\013 \001(\t\022" + + "\033\n\023tpu_ipv4_cidr_block\030\r \001(\t\022\022\n\nuse_rout" + + "es\030\017 \001(\010\"\246\027\n\007Cluster\022\014\n\004name\030\001 \001(\t\022\023\n\013de" + + "scription\030\002 \001(\t\022\036\n\022initial_node_count\030\003 " + + "\001(\005B\002\030\001\0228\n\013node_config\030\004 \001(\0132\037.google.co" + + "ntainer.v1.NodeConfigB\002\030\001\0224\n\013master_auth" + + "\030\005 \001(\0132\037.google.container.v1.MasterAuth\022" + + "\027\n\017logging_service\030\006 \001(\t\022\032\n\022monitoring_s" + + "ervice\030\007 \001(\t\022\017\n\007network\030\010 \001(\t\022\031\n\021cluster" + + "_ipv4_cidr\030\t \001(\t\0228\n\raddons_config\030\n \001(\0132" + + "!.google.container.v1.AddonsConfig\022\022\n\nsu" + + "bnetwork\030\013 \001(\t\0221\n\nnode_pools\030\014 \003(\0132\035.goo" + + "gle.container.v1.NodePool\022\021\n\tlocations\030\r" + + " \003(\t\022\037\n\027enable_kubernetes_alpha\030\016 \001(\010\022I\n" + + "\017resource_labels\030\017 \003(\01320.google.containe" + + "r.v1.Cluster.ResourceLabelsEntry\022\031\n\021labe" + + "l_fingerprint\030\020 \001(\t\0224\n\013legacy_abac\030\022 \001(\013" + + "2\037.google.container.v1.LegacyAbac\022:\n\016net" + + "work_policy\030\023 \001(\0132\".google.container.v1." + + "NetworkPolicy\022E\n\024ip_allocation_policy\030\024 " + + "\001(\0132\'.google.container.v1.IPAllocationPo" + + "licy\022^\n!master_authorized_networks_confi" + + "g\030\026 \001(\01323.google.container.v1.MasterAuth" + + "orizedNetworksConfig\022B\n\022maintenance_poli" + + "cy\030\027 \001(\0132&.google.container.v1.Maintenan" + + "cePolicy\022F\n\024binary_authorization\030\030 \001(\0132(" + + ".google.container.v1.BinaryAuthorization" + + "\022<\n\013autoscaling\030\032 \001(\0132\'.google.container" + + ".v1.ClusterAutoscaling\022:\n\016network_config" + + "\030\033 \001(\0132\".google.container.v1.NetworkConf" + + "ig\022K\n\033default_max_pods_constraint\030\036 \001(\0132" + + "&.google.container.v1.MaxPodsConstraint\022" + + "T\n\034resource_usage_export_config\030! \001(\0132.." + + "google.container.v1.ResourceUsageExportC" + + "onfig\022S\n\033authenticator_groups_config\030\" \001" + + "(\0132..google.container.v1.AuthenticatorGr" + + "oupsConfig\022I\n\026private_cluster_config\030% \001" + + "(\0132).google.container.v1.PrivateClusterC" + + "onfig\022D\n\023database_encryption\030& \001(\0132\'.goo" + + "gle.container.v1.DatabaseEncryption\022M\n\030v" + + "ertical_pod_autoscaling\030\' \001(\0132+.google.c" + + "ontainer.v1.VerticalPodAutoscaling\022:\n\016sh" + + "ielded_nodes\030( \001(\0132\".google.container.v1" + + ".ShieldedNodes\022<\n\017release_channel\030) \001(\0132" + + "#.google.container.v1.ReleaseChannel\022M\n\030" + + "workload_identity_config\030+ \001(\0132+.google." + + "container.v1.WorkloadIdentityConfig\022@\n\021m" + + "esh_certificates\030C \001(\0132%.google.containe" + + "r.v1.MeshCertificates\022D\n\023notification_co" + + "nfig\0301 \001(\0132\'.google.container.v1.Notific" + + "ationConfig\022B\n\022confidential_nodes\0302 \001(\0132" + + "&.google.container.v1.ConfidentialNodes\022" + + "\021\n\tself_link\030d \001(\t\022\020\n\004zone\030e \001(\tB\002\030\001\022\020\n\010" + + "endpoint\030f \001(\t\022\037\n\027initial_cluster_versio" + + "n\030g \001(\t\022\036\n\026current_master_version\030h \001(\t\022" + + " \n\024current_node_version\030i \001(\tB\002\030\001\022\023\n\013cre" + + "ate_time\030j \001(\t\0223\n\006status\030k \001(\0162#.google." + + "container.v1.Cluster.Status\022\032\n\016status_me" + + "ssage\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\023inst" + + "ance_group_urls\030o \003(\tB\002\030\001\022\036\n\022current_nod" + + "e_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\023" + + "tpu_ipv4_cidr_block\030t \001(\t\0228\n\nconditions\030" + + "v \003(\0132$.google.container.v1.StatusCondit" + + "ion\0222\n\tautopilot\030\200\001 \001(\0132\036.google.contain" + + "er.v1.Autopilot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003\022G\n\022nod" + + "e_pool_defaults\030\203\001 \001(\0132%.google.containe" + + "r.v1.NodePoolDefaultsH\000\210\001\001\022;\n\016logging_co" + + "nfig\030\204\001 \001(\0132\".google.container.v1.Loggin" + + "gConfig\022A\n\021monitoring_config\030\205\001 \001(\0132%.go" + + "ogle.container.v1.MonitoringConfig\0325\n\023Re" + + "sourceLabelsEntry\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_UNSPECIFIE" + + "D\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RE" + + "CONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010" + + "DEGRADED\020\006B\025\n\023_node_pool_defaults\"Y\n\020Nod" + + "ePoolDefaults\022E\n\024node_config_defaults\030\001 " + + "\001(\0132\'.google.container.v1.NodeConfigDefa" + + "ults\"J\n\022NodeConfigDefaults\0224\n\013gcfs_confi" + + "g\030\001 \001(\0132\037.google.container.v1.GcfsConfig" + + "\"\262\021\n\rClusterUpdate\022\034\n\024desired_node_versi" + + "on\030\004 \001(\t\022\"\n\032desired_monitoring_service\030\005" + + " \001(\t\022@\n\025desired_addons_config\030\006 \001(\0132!.go" + + "ogle.container.v1.AddonsConfig\022\034\n\024desire" + + "d_node_pool_id\030\007 \001(\t\022\032\n\022desired_image_ty" + + "pe\030\010 \001(\t\022L\n\033desired_database_encryption\030" + + ". \001(\0132\'.google.container.v1.DatabaseEncr" + + "yption\022U\n desired_workload_identity_conf" + + "ig\030/ \001(\0132+.google.container.v1.WorkloadI" + + "dentityConfig\022H\n\031desired_mesh_certificat" + + "es\030C \001(\0132%.google.container.v1.MeshCerti" + + "ficates\022B\n\026desired_shielded_nodes\0300 \001(\0132" + + "\".google.container.v1.ShieldedNodes\022:\n\022d" + + "esired_dns_config\0305 \001(\0132\036.google.contain" + + "er.v1.DNSConfig\022O\n\035desired_node_pool_aut" + + "oscaling\030\t \001(\0132(.google.container.v1.Nod" + + "ePoolAutoscaling\022\031\n\021desired_locations\030\n " + + "\003(\t\022f\n)desired_master_authorized_network" + + "s_config\030\014 \001(\01323.google.container.v1.Mas" + + "terAuthorizedNetworksConfig\022L\n\033desired_c" + + "luster_autoscaling\030\017 \001(\0132\'.google.contai" + + "ner.v1.ClusterAutoscaling\022N\n\034desired_bin" + + "ary_authorization\030\020 \001(\0132(.google.contain" + + "er.v1.BinaryAuthorization\022\037\n\027desired_log" + + "ging_service\030\023 \001(\t\022\\\n$desired_resource_u" + + "sage_export_config\030\025 \001(\0132..google.contai" + + "ner.v1.ResourceUsageExportConfig\022U\n desi" + + "red_vertical_pod_autoscaling\030\026 \001(\0132+.goo" + + "gle.container.v1.VerticalPodAutoscaling\022" + + "Q\n\036desired_private_cluster_config\030\031 \001(\0132" + + ").google.container.v1.PrivateClusterConf" + + "ig\022\\\n$desired_intra_node_visibility_conf" + + "ig\030\032 \001(\0132..google.container.v1.IntraNode" + + "VisibilityConfig\022K\n\033desired_default_snat" + + "_status\030\034 \001(\0132&.google.container.v1.Defa" + + "ultSnatStatus\022D\n\027desired_release_channel" + + "\030\037 \001(\0132#.google.container.v1.ReleaseChan" + + "nel\022Q\n\037desired_l4ilb_subsetting_config\030\'" + + " \001(\0132(.google.container.v1.ILBSubsetting" + + "Config\022H\n\031desired_datapath_provider\0302 \001(" + + "\0162%.google.container.v1.DatapathProvider" + + "\022X\n\"desired_private_ipv6_google_access\0303" + + " \001(\0162,.google.container.v1.PrivateIPv6Go" + + "ogleAccess\022L\n\033desired_notification_confi" + + "g\0307 \001(\0132\'.google.container.v1.Notificati" + + "onConfig\022[\n#desired_authenticator_groups" + + "_config\030? \001(\0132..google.container.v1.Auth" + + "enticatorGroupsConfig\022B\n\026desired_logging" + + "_config\030@ \001(\0132\".google.container.v1.Logg" + + "ingConfig\022H\n\031desired_monitoring_config\030A" + + " \001(\0132%.google.container.v1.MonitoringCon" + + "fig\022Z\n#desired_service_external_ips_conf" + + "ig\030< \001(\0132-.google.container.v1.ServiceEx" + + "ternalIPsConfig\022\036\n\026desired_master_versio" + + "n\030d \001(\t\022<\n\023desired_gcfs_config\030m \001(\0132\037.g" + + "oogle.container.v1.GcfsConfig\"\361\007\n\tOperat" + + "ion\022\014\n\004name\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001\022;\n\016o" + + "peration_type\030\003 \001(\0162#.google.container.v" + + "1.Operation.Type\0225\n\006status\030\004 \001(\0162%.googl" + + "e.container.v1.Operation.Status\022\016\n\006detai" + + "l\030\010 \001(\t\022\035\n\016status_message\030\005 \001(\tB\005\030\001\340A\003\022\021" + + "\n\tself_link\030\006 \001(\t\022\023\n\013target_link\030\007 \001(\t\022\020" + + "\n\010location\030\t \001(\t\022\022\n\nstart_time\030\n \001(\t\022\020\n\010" + + "end_time\030\013 \001(\t\022=\n\010progress\030\014 \001(\0132&.googl" + + "e.container.v1.OperationProgressB\003\340A\003\022D\n" + + "\022cluster_conditions\030\r \003(\0132$.google.conta" + + "iner.v1.StatusConditionB\002\030\001\022E\n\023nodepool_" + + "conditions\030\016 \003(\0132$.google.container.v1.S" + + "tatusConditionB\002\030\001\022!\n\005error\030\017 \001(\0132\022.goog" + + "le.rpc.Status\"R\n\006Status\022\026\n\022STATUS_UNSPEC" + + "IFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DON" + + "E\020\003\022\014\n\010ABORTING\020\004\"\375\002\n\004Type\022\024\n\020TYPE_UNSPE" + + "CIFIED\020\000\022\022\n\016CREATE_CLUSTER\020\001\022\022\n\016DELETE_C" + + "LUSTER\020\002\022\022\n\016UPGRADE_MASTER\020\003\022\021\n\rUPGRADE_" + + "NODES\020\004\022\022\n\016REPAIR_CLUSTER\020\005\022\022\n\016UPDATE_CL" + + "USTER\020\006\022\024\n\020CREATE_NODE_POOL\020\007\022\024\n\020DELETE_" + + "NODE_POOL\020\010\022\034\n\030SET_NODE_POOL_MANAGEMENT\020" + + "\t\022\025\n\021AUTO_REPAIR_NODES\020\n\022\026\n\022AUTO_UPGRADE" + + "_NODES\020\013\022\016\n\nSET_LABELS\020\014\022\023\n\017SET_MASTER_A" + + "UTH\020\r\022\026\n\022SET_NODE_POOL_SIZE\020\016\022\026\n\022SET_NET" + + "WORK_POLICY\020\017\022\032\n\026SET_MAINTENANCE_POLICY\020" + + "\020\"\273\002\n\021OperationProgress\022\014\n\004name\030\001 \001(\t\0225\n" + + "\006status\030\002 \001(\0162%.google.container.v1.Oper" + + "ation.Status\022>\n\007metrics\030\003 \003(\0132-.google.c" + + "ontainer.v1.OperationProgress.Metric\0226\n\006" + + "stages\030\004 \003(\0132&.google.container.v1.Opera" + + "tionProgress\032i\n\006Metric\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\002\022\023\n\tint_value\030\002 \001(\003H\000\022\026\n\014double_value\030\003" + + " \001(\001H\000\022\026\n\014string_value\030\004 \001(\tH\000B\007\n\005value\"" + + "\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\021GetClusterRequest\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\014\n\004name\030\005 \001(\t\"\237\001\n\024" + + "UpdateClusterRequest\022\026\n\nproject_id\030\001 \001(\t" + "B\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001" - + "(\tB\002\030\001\022\014\n\004name\030\005 \001(\t\"\237\001\n\024UpdateClusterRe" - + "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\026\n\ncluster_id\030\003 \001(\tB\002\030\001\0227\n\006updat" - + "e\030\004 \001(\0132\".google.container.v1.ClusterUpd" - + "ateB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\340\002\n\025UpdateNodePoo" - + "lRequest\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\014no" - + "de_pool_id\030\004 \001(\tB\002\030\001\022\031\n\014node_version\030\005 \001" - + "(\tB\003\340A\002\022\027\n\nimage_type\030\006 \001(\tB\003\340A\002\022\014\n\004name" - + "\030\010 \001(\t\022\021\n\tlocations\030\r \003(\t\022M\n\030workload_me" - + "tadata_config\030\016 \001(\0132+.google.container.v" - + "1.WorkloadMetadataConfig\022G\n\020upgrade_sett" - + "ings\030\017 \001(\0132-.google.container.v1.NodePoo" - + "l.UpgradeSettings\"\315\001\n\035SetNodePoolAutosca" - + "lingRequest\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\030\n" - + "\014node_pool_id\030\004 \001(\tB\002\030\001\022B\n\013autoscaling\030\005" - + " \001(\0132(.google.container.v1.NodePoolAutos" - + "calingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\210\001\n\030SetLogging" - + "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\034\n\017logging_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005" - + " \001(\t\"\216\001\n\033SetMonitoringServiceRequest\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\037\n\022monitoring_ser" - + "vice\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\247\001\n\026SetAdd" - + "onsConfigRequest\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.conta" - + "iner.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\0227\n\006update\030\004 \001(\0132\".google.containe" + + "r.v1.ClusterUpdateB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\307\004" + + "\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\014n" + + "ode_version\030\005 \001(\tB\003\340A\002\022\027\n\nimage_type\030\006 \001" + + "(\tB\003\340A\002\022\014\n\004name\030\010 \001(\t\022\021\n\tlocations\030\r \003(\t" + + "\022M\n\030workload_metadata_config\030\016 \001(\0132+.goo" + + "gle.container.v1.WorkloadMetadataConfig\022" + + "G\n\020upgrade_settings\030\017 \001(\0132-.google.conta" + + "iner.v1.NodePool.UpgradeSettings\022?\n\021linu" + + "x_node_config\030\023 \001(\0132$.google.container.v" + + "1.LinuxNodeConfig\022>\n\016kubelet_config\030\024 \001(" + + "\0132&.google.container.v1.NodeKubeletConfi" + + "g\0224\n\013gcfs_config\030\026 \001(\0132\037.google.containe" + + "r.v1.GcfsConfig\022.\n\005gvnic\030\035 \001(\0132\037.google." + + "container.v1.VirtualNIC\"\315\001\n\035SetNodePoolA" + + "utoscalingRequest\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\013autosca" + + "ling\030\005 \001(\0132(.google.container.v1.NodePoo" + + "lAutoscalingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\210\001\n\030SetL" + + "oggingServiceRequest\022\026\n\nproject_id\030\001 \001(\t" + + "B\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_service\030\004 \001(\tB\003\340A\002\022\014\n\004" + + "name\030\005 \001(\t\"\216\001\n\033SetMonitoringServiceReque" + + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" + + "B\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\037\n\022monitori" + + "ng_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\247\001\n\026" + + "SetAddonsConfigRequest\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\023UpdateMasterRequest\022\026\n\nprojec" + + " \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\ncluste" + + "r_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\023UpdateMasterRequest\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\033\n\016master_version" + + "\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMasterA" + + "uthRequest\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\022E\n\006" + + "action\030\004 \001(\01620.google.container.v1.SetMa" + + "sterAuthRequest.ActionB\003\340A\002\0224\n\006update\030\005 " + + "\001(\0132\037.google.container.v1.MasterAuthB\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\024DeleteClusterReques" + + "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\014\n\004name\030\004 \001(" + + "\t\"O\n\023ListClustersRequest\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\024ListClustersResponse\022.\n\010clusters\030\001" + + " \003(\0132\034.google.container.v1.Cluster\022\025\n\rmi" + + "ssing_zones\030\002 \003(\t\"g\n\023GetOperationRequest" + + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" + + "\030\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001" + + "(\t\"Q\n\025ListOperationsRequest\022\026\n\nproject_i" + + "d\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030" + + "\004 \001(\t\"j\n\026CancelOperationRequest\022\026\n\nproje" + + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014ope" + + "ration_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n\026Lis" + + "tOperationsResponse\0222\n\noperations\030\001 \003(\0132" + + "\036.google.container.v1.Operation\022\025\n\rmissi" + + "ng_zones\030\002 \003(\t\"P\n\026GetServerConfigRequest" + + "\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\027def" + + "ault_cluster_version\030\001 \001(\t\022\033\n\023valid_node" + + "_versions\030\003 \003(\t\022\032\n\022default_image_type\030\004 " + + "\001(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025valid_" + + "master_versions\030\006 \003(\t\022H\n\010channels\030\t \003(\0132" + + "6.google.container.v1.ServerConfig.Relea" + + "seChannelConfig\032\205\001\n\024ReleaseChannelConfig" + + "\022<\n\007channel\030\001 \001(\0162+.google.container.v1." + + "ReleaseChannel.Channel\022\027\n\017default_versio" + + "n\030\002 \001(\t\022\026\n\016valid_versions\030\004 \003(\t\"\240\001\n\025Crea" + + "teNodePoolRequest\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.containe" + + "r.v1.NodePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201\001\n\025D" + + "eleteNodePoolRequest\022\026\n\nproject_id\030\001 \001(\t" + + "B\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\024ListNodePoolsRequest\022\026\n\nprojec" + "t_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclus" - + "ter_id\030\003 \001(\tB\002\030\001\022\033\n\016master_version\030\004 \001(\t" - + "B\003\340A\002\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMasterAuthReq" - + "uest\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.container.v1.SetMasterAu" - + "thRequest.ActionB\003\340A\002\0224\n\006update\030\005 \001(\0132\037." - + "google.container.v1.MasterAuthB\003\340A\002\022\014\n\004n" - + "ame\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\024DeleteClusterRequest\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\014\n\004name\030\004 \001(\t\"O\n\023L" - + "istClustersRequest\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\024" - + "ListClustersResponse\022.\n\010clusters\030\001 \003(\0132\034" - + ".google.container.v1.Cluster\022\025\n\rmissing_" - + "zones\030\002 \003(\t\"g\n\023GetOperationRequest\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\030\n\014" - + "operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001(\t\"Q\n\025" - + "ListOperationsRequest\022\026\n\nproject_id\030\001 \001(" - + "\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001(\t\"" - + "j\n\026CancelOperationRequest\022\026\n\nproject_id\030" - + "\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014operation" - + "_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n\026ListOpera" - + "tionsResponse\0222\n\noperations\030\001 \003(\0132\036.goog" - + "le.container.v1.Operation\022\025\n\rmissing_zon" - + "es\030\002 \003(\t\"P\n\026GetServerConfigRequest\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\014\n\004" - + "name\030\004 \001(\t\"\364\002\n\014ServerConfig\022\037\n\027default_c" - + "luster_version\030\001 \001(\t\022\033\n\023valid_node_versi" - + "ons\030\003 \003(\t\022\032\n\022default_image_type\030\004 \001(\t\022\031\n" - + "\021valid_image_types\030\005 \003(\t\022\035\n\025valid_master" - + "_versions\030\006 \003(\t\022H\n\010channels\030\t \003(\01326.goog" - + "le.container.v1.ServerConfig.ReleaseChan" - + "nelConfig\032\205\001\n\024ReleaseChannelConfig\022<\n\007ch" - + "annel\030\001 \001(\0162+.google.container.v1.Releas" - + "eChannel.Channel\022\027\n\017default_version\030\002 \001(" - + "\t\022\026\n\016valid_versions\030\004 \003(\t\"\240\001\n\025CreateNode" - + "PoolRequest\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\0225\n" - + "\tnode_pool\030\004 \001(\0132\035.google.container.v1.N" - + "odePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201\001\n\025DeleteN" + + "ter_id\030\003 \001(\tB\002\030\001\022\016\n\006parent\030\005 \001(\t\"~\n\022GetN" + "odePoolRequest\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\024ListNodePoolsRequest\022\026\n\nproject_id\030\001" + + "\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" + + "\"\352\006\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\022" + + "initial_node_count\030\003 \001(\005\022\021\n\tlocations\030\r " + + "\003(\t\022>\n\016network_config\030\016 \001(\0132&.google.con" + + "tainer.v1.NodeNetworkConfig\022\021\n\tself_link" + + "\030d \001(\t\022\017\n\007version\030e \001(\t\022\033\n\023instance_grou" + + "p_urls\030f \003(\t\0224\n\006status\030g \001(\0162$.google.co" + + "ntainer.v1.NodePool.Status\022\032\n\016status_mes" + + "sage\030h \001(\tB\002\030\001\022=\n\013autoscaling\030\004 \001(\0132(.go" + + "ogle.container.v1.NodePoolAutoscaling\0227\n" + + "\nmanagement\030\005 \001(\0132#.google.container.v1." + + "NodeManagement\022C\n\023max_pods_constraint\030\006 " + + "\001(\0132&.google.container.v1.MaxPodsConstra" + + "int\0228\n\nconditions\030i \003(\0132$.google.contain" + + "er.v1.StatusCondition\022\032\n\022pod_ipv4_cidr_s" + + "ize\030\007 \001(\005\022G\n\020upgrade_settings\030k \001(\0132-.go" + + "ogle.container.v1.NodePool.UpgradeSettin" + + "gs\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\022" + + "STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013" + + "\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH_ERROR\020\003\022\017\n\013R" + + "ECONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ERROR\020\006\"}\n" + + "\016NodeManagement\022\024\n\014auto_upgrade\030\001 \001(\010\022\023\n" + + "\013auto_repair\030\002 \001(\010\022@\n\017upgrade_options\030\n " + + "\001(\0132\'.google.container.v1.AutoUpgradeOpt" + + "ions\"J\n\022AutoUpgradeOptions\022\037\n\027auto_upgra" + + "de_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.MaintenanceWindow\022\030\n" + + "\020resource_version\030\003 \001(\t\"\366\002\n\021MaintenanceW" + + "indow\022O\n\030daily_maintenance_window\030\002 \001(\0132" + + "+.google.container.v1.DailyMaintenanceWi" + + "ndowH\000\022D\n\020recurring_window\030\003 \001(\0132(.googl" + + "e.container.v1.RecurringTimeWindowH\000\022a\n\026" + + "maintenance_exclusions\030\004 \003(\0132A.google.co" + + "ntainer.v1.MaintenanceWindow.Maintenance" + + "ExclusionsEntry\032]\n\032MaintenanceExclusions" + + "Entry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.goog" + + "le.container.v1.TimeWindow:\0028\001B\010\n\006policy" + + "\"\320\001\n\nTimeWindow\022Y\n\035maintenance_exclusion" + + "_options\030\003 \001(\01320.google.container.v1.Mai" + + "ntenanceExclusionOptionsH\000\022.\n\nstart_time" + + "\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en" + + "d_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "B\t\n\007options\"\264\001\n\033MaintenanceExclusionOpti" + + "ons\022E\n\005scope\030\001 \001(\01626.google.container.v1" + + ".MaintenanceExclusionOptions.Scope\"N\n\005Sc" + + "ope\022\017\n\013NO_UPGRADES\020\000\022\025\n\021NO_MINOR_UPGRADE" + + "S\020\001\022\035\n\031NO_MINOR_OR_NODE_UPGRADES\020\002\"Z\n\023Re" + + "curringTimeWindow\022/\n\006window\030\001 \001(\0132\037.goog" + + "le.container.v1.TimeWindow\022\022\n\nrecurrence" + + "\030\002 \001(\t\">\n\026DailyMaintenanceWindow\022\022\n\nstar" + + "t_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t\"\306\001\n\034SetNo" + + "dePoolManagementRequest\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\nm" + + "anagement\030\005 \001(\0132#.google.container.v1.No" + + "deManagementB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\233\001\n\026SetN" + + "odePoolSizeRequest\022\026\n\nproject_id\030\001 \001(\tB\002" + + "\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\t" + + "B\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\027\n\nnode_c" + + "ount\030\005 \001(\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\"\212\001\n\036Rollba" + + "ckNodePoolUpgradeRequest\022\026\n\nproject_id\030\001" + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id" - + "\030\003 \001(\tB\002\030\001\022\016\n\006parent\030\005 \001(\t\"~\n\022GetNodePoo" - + "lRequest\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\014no" - + "de_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"\252\006\n\010N" - + "odePool\022\014\n\004name\030\001 \001(\t\022/\n\006config\030\002 \001(\0132\037." - + "google.container.v1.NodeConfig\022\032\n\022initia" - + "l_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\023ins" - + "tance_group_urls\030f \003(\t\0224\n\006status\030g \001(\0162$" - + ".google.container.v1.NodePool.Status\022\032\n\016" - + "status_message\030h \001(\tB\002\030\001\022=\n\013autoscaling\030" - + "\004 \001(\0132(.google.container.v1.NodePoolAuto" - + "scaling\0227\n\nmanagement\030\005 \001(\0132#.google.con" - + "tainer.v1.NodeManagement\022C\n\023max_pods_con" - + "straint\030\006 \001(\0132&.google.container.v1.MaxP" - + "odsConstraint\0228\n\nconditions\030i \003(\0132$.goog" - + "le.container.v1.StatusCondition\022\032\n\022pod_i" - + "pv4_cidr_size\030\007 \001(\005\022G\n\020upgrade_settings\030" - + "k \001(\0132-.google.container.v1.NodePool.Upg" - + "radeSettings\032=\n\017UpgradeSettings\022\021\n\tmax_s" - + "urge\030\001 \001(\005\022\027\n\017max_unavailable\030\002 \001(\005\"\201\001\n\006" - + "Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVIS" - + "IONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH_ER" - + "ROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005" - + "ERROR\020\006\"}\n\016NodeManagement\022\024\n\014auto_upgrad" - + "e\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022@\n\017upgrade_" - + "options\030\n \001(\0132\'.google.container.v1.Auto" - + "UpgradeOptions\"J\n\022AutoUpgradeOptions\022\037\n\027" - + "auto_upgrade_start_time\030\001 \001(\t\022\023\n\013descrip" - + "tion\030\002 \001(\t\"e\n\021MaintenancePolicy\0226\n\006windo" - + "w\030\001 \001(\0132&.google.container.v1.Maintenanc" - + "eWindow\022\030\n\020resource_version\030\003 \001(\t\"\366\002\n\021Ma" - + "intenanceWindow\022O\n\030daily_maintenance_win" - + "dow\030\002 \001(\0132+.google.container.v1.DailyMai" - + "ntenanceWindowH\000\022D\n\020recurring_window\030\003 \001" - + "(\0132(.google.container.v1.RecurringTimeWi" - + "ndowH\000\022a\n\026maintenance_exclusions\030\004 \003(\0132A" - + ".google.container.v1.MaintenanceWindow.M" - + "aintenanceExclusionsEntry\032]\n\032Maintenance" - + "ExclusionsEntry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 " - + "\001(\0132\037.google.container.v1.TimeWindow:\0028\001" - + "B\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\023RecurringTimeWindow\022/\n\006window\030\001 \001(\0132\037." - + "google.container.v1.TimeWindow\022\022\n\nrecurr" - + "ence\030\002 \001(\t\">\n\026DailyMaintenanceWindow\022\022\n\n" - + "start_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t\"\306\001\n\034S" - + "etNodePoolManagementRequest\022\026\n\nproject_i" - + "d\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster" - + "_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022" - + "<\n\nmanagement\030\005 \001(\0132#.google.container.v" - + "1.NodeManagementB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\233\001\n\026" - + "SetNodePoolSizeRequest\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\027\n\nno" - + "de_count\030\005 \001(\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\"\212\001\n\036Ro" - + "llbackNodePoolUpgradeRequest\022\026\n\nproject_" - + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluste" - + "r_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001" - + "\022\014\n\004name\030\006 \001(\t\"J\n\025ListNodePoolsResponse\022" - + "1\n\nnode_pools\030\001 \003(\0132\035.google.container.v" - + "1.NodePool\"\377\001\n\022ClusterAutoscaling\022$\n\034ena" - + "ble_node_autoprovisioning\030\001 \001(\010\022;\n\017resou" - + "rce_limits\030\002 \003(\0132\".google.container.v1.R" - + "esourceLimit\022b\n#autoprovisioning_node_po" - + "ol_defaults\030\004 \001(\01325.google.container.v1." - + "AutoprovisioningNodePoolDefaults\022\"\n\032auto" - + "provisioning_locations\030\005 \003(\t\"\224\003\n Autopro" - + "visioningNodePoolDefaults\022\024\n\014oauth_scope" - + "s\030\001 \003(\t\022\027\n\017service_account\030\002 \001(\t\022G\n\020upgr" - + "ade_settings\030\003 \001(\0132-.google.container.v1" - + ".NodePool.UpgradeSettings\0227\n\nmanagement\030" - + "\004 \001(\0132#.google.container.v1.NodeManageme" - + "nt\022\030\n\020min_cpu_platform\030\005 \001(\t\022\024\n\014disk_siz", - "e_gb\030\006 \001(\005\022\021\n\tdisk_type\030\007 \001(\t\022M\n\030shielde" - + "d_instance_config\030\010 \001(\0132+.google.contain" - + "er.v1.ShieldedInstanceConfig\022\031\n\021boot_dis" - + "k_kms_key\030\t \001(\t\022\022\n\nimage_type\030\n \001(\t\"H\n\rR" - + "esourceLimit\022\025\n\rresource_type\030\001 \001(\t\022\017\n\007m" - + "inimum\030\002 \001(\003\022\017\n\007maximum\030\003 \001(\003\"o\n\023NodePoo" - + "lAutoscaling\022\017\n\007enabled\030\001 \001(\010\022\026\n\016min_nod" - + "e_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\020SetLabelsRequ" - + "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\022W\n\017resourc" - + "e_labels\030\004 \003(\01329.google.container.v1.Set" - + "LabelsRequest.ResourceLabelsEntryB\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\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\024SetLegacyAbacRequ" - + "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\024\n\007enabled" - + "\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026StartIPRot" - + "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\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\nproject" - + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclust" - + "er_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"H\n\021Acceler" - + "atorConfig\022\031\n\021accelerator_count\030\001 \001(\003\022\030\n" - + "\020accelerator_type\030\002 \001(\t\"\232\001\n\026WorkloadMeta" + + "\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004" + + "name\030\006 \001(\t\"J\n\025ListNodePoolsResponse\0221\n\nn" + + "ode_pools\030\001 \003(\0132\035.google.container.v1.No" + + "dePool\"\257\003\n\022ClusterAutoscaling\022$\n\034enable_" + + "node_autoprovisioning\030\001 \001(\010\022;\n\017resource_" + + "limits\030\002 \003(\0132\".google.container.v1.Resou" + + "rceLimit\022W\n\023autoscaling_profile\030\003 \001(\0162:." + + "google.container.v1.ClusterAutoscaling.A" + + "utoscalingProfile\022b\n#autoprovisioning_no" + + "de_pool_defaults\030\004 \001(\01325.google.containe" + + "r.v1.AutoprovisioningNodePoolDefaults\022\"\n" + + "\032autoprovisioning_locations\030\005 \003(\t\"U\n\022Aut" + + "oscalingProfile\022\027\n\023PROFILE_UNSPECIFIED\020\000" + + "\022\030\n\024OPTIMIZE_UTILIZATION\020\001\022\014\n\010BALANCED\020\002" + + "\"\224\003\n AutoprovisioningNodePoolDefaults\022\024\n" + + "\014oauth_scopes\030\001 \003(\t\022\027\n\017service_account\030\002" + + " \001(\t\022G\n\020upgrade_settings\030\003 \001(\0132-.google." + + "container.v1.NodePool.UpgradeSettings\0227\n" + + "\nmanagement\030\004 \001(\0132#.google.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_config\030\010 \001(\0132+.go" + + "ogle.container.v1.ShieldedInstanceConfig" + + "\022\031\n\021boot_disk_kms_key\030\t \001(\t\022\022\n\nimage_typ" + + "e\030\n \001(\t\"H\n\rResourceLimit\022\025\n\rresource_typ" + + "e\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007maximum\030\003 \001(" + + "\003\"o\n\023NodePoolAutoscaling\022\017\n\007enabled\030\001 \001(" + + "\010\022\026\n\016min_node_count\030\002 \001(\005\022\026\n\016max_node_co" + + "unt\030\003 \001(\005\022\027\n\017autoprovisioned\030\004 \001(\010\"\222\002\n\020S" + + "etLabelsRequest\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\017resource_labels\030\004 \003(\01329.google.cont" + + "ainer.v1.SetLabelsRequest.ResourceLabels" + + "EntryB\003\340A\002\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340" + + "A\002\022\014\n\004name\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\024SetLe" + + "gacyAbacRequest\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\007enabled\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001" + + "\n\026StartIPRotationRequest\022\026\n\nproject_id\030\001" + + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id" + + "\030\003 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\032\n\022rotate_crede" + + "ntials\030\007 \001(\010\"k\n\031CompleteIPRotationReques" + + "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\014\n\004name\030\007 \001(" + + "\t\"d\n\021AcceleratorConfig\022\031\n\021accelerator_co" + + "unt\030\001 \001(\003\022\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022g" + + "pu_partition_size\030\003 \001(\t\"\232\001\n\026WorkloadMeta" + "dataConfig\022>\n\004mode\030\002 \001(\01620.google.contai" + "ner.v1.WorkloadMetadataConfig.Mode\"@\n\004Mo" + "de\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n\014GCE_METADATA" @@ -899,298 +1097,375 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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_policy\030\004 \001" + "(\0132&.google.container.v1.MaintenancePoli" - + "cyB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\352\001\n\017StatusConditio" - + "n\0227\n\004code\030\001 \001(\0162).google.container.v1.St" - + "atusCondition.Code\022\017\n\007message\030\002 \001(\t\"\214\001\n\004" - + "Code\022\013\n\007UNKNOWN\020\000\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033G" - + "KE_SERVICE_ACCOUNT_DELETED\020\002\022\026\n\022GCE_QUOT" - + "A_EXCEEDED\020\003\022\023\n\017SET_BY_OPERATOR\020\004\022\027\n\023CLO" - + "UD_KMS_KEY_ERROR\020\007\"\237\001\n\rNetworkConfig\022\017\n\007" - + "network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022$\n\034ena" - + "ble_intra_node_visibility\030\005 \001(\010\022C\n\023defau" - + "lt_snat_status\030\007 \001(\0132&.google.container." - + "v1.DefaultSnatStatus\"(\n\026GetOpenIDConfigR" - + "equest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027GetOpenIDConf" - + "igResponse\022\016\n\006issuer\030\001 \001(\t\022\020\n\010jwks_uri\030\002" - + " \001(\t\022 \n\030response_types_supported\030\003 \003(\t\022\037" - + "\n\027subject_types_supported\030\004 \003(\t\022-\n%id_to" - + "ken_signing_alg_values_supported\030\005 \003(\t\022\030" - + "\n\020claims_supported\030\006 \003(\t\022\023\n\013grant_types\030" - + "\007 \003(\t\"\'\n\025GetJSONWebKeysRequest\022\016\n\006parent" - + "\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013\n\003alg\030\002 \001(\t\022" - + "\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n\001n\030\005 \001(\t\022\t\n\001" - + "e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003crv\030\t \001" - + "(\t\"@\n\026GetJSONWebKeysResponse\022&\n\004keys\030\001 \003" - + "(\0132\030.google.container.v1.Jwk\"\216\001\n\016Release" - + "Channel\022<\n\007channel\030\001 \001(\0162+.google.contai" - + "ner.v1.ReleaseChannel.Channel\">\n\007Channel" - + "\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007REGULAR\020" - + "\002\022\n\n\006STABLE\020\003\",\n\031IntraNodeVisibilityConf" - + "ig\022\017\n\007enabled\030\001 \001(\010\".\n\021MaxPodsConstraint" - + "\022\031\n\021max_pods_per_node\030\001 \001(\003\"/\n\026WorkloadI" - + "dentityConfig\022\025\n\rworkload_pool\030\002 \001(\t\"\230\001\n" - + "\022DatabaseEncryption\022<\n\005state\030\002 \001(\0162-.goo" - + "gle.container.v1.DatabaseEncryption.Stat" - + "e\022\020\n\010key_name\030\001 \001(\t\"2\n\005State\022\013\n\007UNKNOWN\020" - + "\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"e\n\034ListU" - + "sableSubnetworksRequest\022\016\n\006parent\030\001 \001(\t\022" - + "\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npa" - + "ge_token\030\004 \001(\t\"t\n\035ListUsableSubnetworksR" - + "esponse\022:\n\013subnetworks\030\001 \003(\0132%.google.co" - + "ntainer.v1.UsableSubnetwork\022\027\n\017next_page" - + "_token\030\002 \001(\t\"\200\002\n\036UsableSubnetworkSeconda" - + "ryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip_cidr_r" - + "ange\030\002 \001(\t\022J\n\006status\030\003 \001(\0162:.google.cont" - + "ainer.v1.UsableSubnetworkSecondaryRange." - + "Status\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006UNUSED\020" - + "\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_USE_SHAREABL" - + "E_POD\020\003\022\026\n\022IN_USE_MANAGED_POD\020\004\"\270\001\n\020Usab" - + "leSubnetwork\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n\007netw" - + "ork\030\002 \001(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022P\n\023seco" - + "ndary_ip_ranges\030\004 \003(\01323.google.container" - + ".v1.UsableSubnetworkSecondaryRange\022\026\n\016st" - + "atus_message\030\005 \001(\t\"\355\002\n\031ResourceUsageExpo" - + "rtConfig\022`\n\024bigquery_destination\030\001 \001(\0132B" - + ".google.container.v1.ResourceUsageExport" - + "Config.BigQueryDestination\022&\n\036enable_net" - + "work_egress_metering\030\002 \001(\010\022m\n\033consumptio" - + "n_metering_config\030\003 \001(\0132H.google.contain" - + "er.v1.ResourceUsageExportConfig.Consumpt" - + "ionMeteringConfig\032)\n\023BigQueryDestination" - + "\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031ConsumptionMeter" - + "ingConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026VerticalPo" - + "dAutoscaling\022\017\n\007enabled\030\001 \001(\010\"%\n\021Default" - + "SnatStatus\022\020\n\010disabled\030\001 \001(\010\" \n\rShielded" - + "Nodes\022\017\n\007enabled\030\001 \001(\0102\205F\n\016ClusterManage" - + "r\022\350\001\n\014ListClusters\022(.google.container.v1" - + ".ListClustersRequest\032).google.container." - + "v1.ListClustersResponse\"\202\001\202\323\344\223\002a\022,/v1/{p" - + "arent=projects/*/locations/*}/clustersZ1" - + "\022//v1/projects/{project_id}/zones/{zone}" - + "/clusters\332A\017project_id,zone\332A\006parent\022\355\001\n" - + "\nGetCluster\022&.google.container.v1.GetClu" - + "sterRequest\032\034.google.container.v1.Cluste" - + "r\"\230\001\202\323\344\223\002n\022,/v1/{name=projects/*/locatio" - + "ns/*/clusters/*}Z>\022\n\007Channel\022\017\n\013UNSPECIFIED" + + "\020\000\022\t\n\005RAPID\020\001\022\013\n\007REGULAR\020\002\022\n\n\006STABLE\020\003\"," + + "\n\031IntraNodeVisibilityConfig\022\017\n\007enabled\030\001" + + " \001(\010\"&\n\023ILBSubsettingConfig\022\017\n\007enabled\030\001" + + " \001(\010\"\252\002\n\tDNSConfig\022<\n\013cluster_dns\030\001 \001(\0162" + + "\'.google.container.v1.DNSConfig.Provider" + + "\022B\n\021cluster_dns_scope\030\002 \001(\0162\'.google.con" + + "tainer.v1.DNSConfig.DNSScope\022\032\n\022cluster_" + + "dns_domain\030\003 \001(\t\"I\n\010Provider\022\030\n\024PROVIDER" + + "_UNSPECIFIED\020\000\022\024\n\020PLATFORM_DEFAULT\020\001\022\r\n\t" + + "CLOUD_DNS\020\002\"4\n\010DNSScope\022\031\n\025DNS_SCOPE_UNS" + + "PECIFIED\020\000\022\r\n\tVPC_SCOPE\020\002\".\n\021MaxPodsCons" + + "traint\022\031\n\021max_pods_per_node\030\001 \001(\003\"/\n\026Wor" + + "kloadIdentityConfig\022\025\n\rworkload_pool\030\002 \001" + + "(\t\"K\n\020MeshCertificates\0227\n\023enable_certifi" + + "cates\030\001 \001(\0132\032.google.protobuf.BoolValue\"" + + "\230\001\n\022DatabaseEncryption\022<\n\005state\030\002 \001(\0162-." + + "google.container.v1.DatabaseEncryption.S" + + "tate\022\020\n\010key_name\030\001 \001(\t\"2\n\005State\022\013\n\007UNKNO" + + "WN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"e\n\034Li" + + "stUsableSubnetworksRequest\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\035ListUsableSubnetwor" + + "ksResponse\022:\n\013subnetworks\030\001 \003(\0132%.google" + + ".container.v1.UsableSubnetwork\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"\200\002\n\036UsableSubnetworkSeco" + + "ndaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip_cid" + + "r_range\030\002 \001(\t\022J\n\006status\030\003 \001(\0162:.google.c" + + "ontainer.v1.UsableSubnetworkSecondaryRan" + + "ge.Status\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006UNUS" + + "ED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_USE_SHARE" + + "ABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_POD\020\004\"\270\001\n\020U" + + "sableSubnetwork\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n\007n" + + "etwork\030\002 \001(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022P\n\023s" + + "econdary_ip_ranges\030\004 \003(\01323.google.contai" + + "ner.v1.UsableSubnetworkSecondaryRange\022\026\n" + + "\016status_message\030\005 \001(\t\"\355\002\n\031ResourceUsageE" + + "xportConfig\022`\n\024bigquery_destination\030\001 \001(" + + "\0132B.google.container.v1.ResourceUsageExp" + + "ortConfig.BigQueryDestination\022&\n\036enable_" + + "network_egress_metering\030\002 \001(\010\022m\n\033consump" + + "tion_metering_config\030\003 \001(\0132H.google.cont" + + "ainer.v1.ResourceUsageExportConfig.Consu" + + "mptionMeteringConfig\032)\n\023BigQueryDestinat" + + "ion\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031ConsumptionMe" + + "teringConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026Vertica" + + "lPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"%\n\021Defa" + + "ultSnatStatus\022\020\n\010disabled\030\001 \001(\010\" \n\rShiel" + + "dedNodes\022\017\n\007enabled\030\001 \001(\010\"\035\n\nVirtualNIC\022" + + "\017\n\007enabled\030\001 \001(\010\"\250\003\n\022NotificationConfig\022" + + ">\n\006pubsub\030\001 \001(\0132..google.container.v1.No" + + "tificationConfig.PubSub\032\212\001\n\006PubSub\022\017\n\007en" + + "abled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub." + + "googleapis.com/Topic\022>\n\006filter\030\003 \001(\0132..g" + + "oogle.container.v1.NotificationConfig.Fi" + + "lter\032O\n\006Filter\022E\n\nevent_type\030\001 \003(\01621.goo" + + "gle.container.v1.NotificationConfig.Even" + + "tType\"t\n\tEventType\022\032\n\026EVENT_TYPE_UNSPECI" + + "FIED\020\000\022\033\n\027UPGRADE_AVAILABLE_EVENT\020\001\022\021\n\rU" + + "PGRADE_EVENT\020\002\022\033\n\027SECURITY_BULLETIN_EVEN" + + "T\020\003\"$\n\021ConfidentialNodes\022\017\n\007enabled\030\001 \001(" + + "\010\"\337\001\n\014UpgradeEvent\022?\n\rresource_type\030\001 \001(" + + "\0162(.google.container.v1.UpgradeResourceT" + + "ype\022\021\n\toperation\030\002 \001(\t\0228\n\024operation_star" + + "t_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "\022\027\n\017current_version\030\004 \001(\t\022\026\n\016target_vers" + + "ion\030\005 \001(\t\022\020\n\010resource\030\006 \001(\t\"\271\001\n\025UpgradeA" + + "vailableEvent\022\017\n\007version\030\001 \001(\t\022?\n\rresour" + + "ce_type\030\002 \001(\0162(.google.container.v1.Upgr" + + "adeResourceType\022<\n\017release_channel\030\003 \001(\013" + + "2#.google.container.v1.ReleaseChannel\022\020\n" + + "\010resource\030\004 \001(\t\"\236\002\n\025SecurityBulletinEven" + + "t\022\036\n\026resource_type_affected\030\001 \001(\t\022\023\n\013bul" + + "letin_id\030\002 \001(\t\022\017\n\007cve_ids\030\003 \003(\t\022\020\n\010sever" + + "ity\030\004 \001(\t\022\024\n\014bulletin_uri\030\005 \001(\t\022\031\n\021brief" + + "_description\030\006 \001(\t\022!\n\031affected_supported" + + "_minors\030\007 \003(\t\022\030\n\020patched_versions\030\010 \003(\t\022" + + " \n\030suggested_upgrade_target\030\t \001(\t\022\035\n\025man" + + "ual_steps_required\030\n \001(\010\"\034\n\tAutopilot\022\017\n" + + "\007enabled\030\001 \001(\010\"V\n\rLoggingConfig\022E\n\020compo" + + "nent_config\030\001 \001(\0132+.google.container.v1." + + "LoggingComponentConfig\"\270\001\n\026LoggingCompon" + + "entConfig\022P\n\021enable_components\030\001 \003(\01625.g" + + "oogle.container.v1.LoggingComponentConfi" + + "g.Component\"L\n\tComponent\022\031\n\025COMPONENT_UN" + + "SPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tWO" + + "RKLOADS\020\002\"\\\n\020MonitoringConfig\022H\n\020compone" + + "nt_config\030\001 \001(\0132..google.container.v1.Mo" + + "nitoringComponentConfig\"\257\001\n\031MonitoringCo" + + "mponentConfig\022S\n\021enable_components\030\001 \003(\016" + + "28.google.container.v1.MonitoringCompone" + + "ntConfig.Component\"=\n\tComponent\022\031\n\025COMPO" + + "NENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020" + + "\001*\306\001\n\027PrivateIPv6GoogleAccess\022*\n&PRIVATE" + + "_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\'\n#PRI" + + "VATE_IPV6_GOOGLE_ACCESS_DISABLED\020\001\022(\n$PR" + + "IVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE\020\002\022,\n(" + + "PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL" + + "\020\003*a\n\020DatapathProvider\022!\n\035DATAPATH_PROVI" + + "DER_UNSPECIFIED\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025" + + "\n\021ADVANCED_DATAPATH\020\002*W\n\023UpgradeResource" + + "Type\022%\n!UPGRADE_RESOURCE_TYPE_UNSPECIFIE" + + "D\020\000\022\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\0022\205F\n\016Clust" + + "erManager\022\350\001\n\014ListClusters\022(.google.cont" + + "ainer.v1.ListClustersRequest\032).google.co" + + "ntainer.v1.ListClustersResponse\"\202\001\202\323\344\223\002a" + + "\022,/v1/{parent=projects/*/locations/*}/cl" + + "ustersZ1\022//v1/projects/{project_id}/zone" + + "s/{zone}/clusters\332A\017project_id,zone\332A\006pa" + + "rent\022\355\001\n\nGetCluster\022&.google.container.v" + + "1.GetClusterRequest\032\034.google.container.v" + + "1.Cluster\"\230\001\202\323\344\223\002n\022,/v1/{name=projects/*" + + "/locations/*/clusters/*}Z>\022*/v1/{name=projects/*/locat" - + "ions/*/clusters/*}:setResourceLabels:\001*Z" - + "P\"K/v1/projects/{project_id}/zones/{zone" - + "}/clusters/{cluster_id}/resourceLabels:\001" - + "*\022\245\002\n\rSetLegacyAbac\022).google.container.v" - + "1.SetLegacyAbacRequest\032\036.google.containe" - + "r.v1.Operation\"\310\001\202\323\344\223\002\215\001\":/v1/{name=proj" - + "ects/*/locations/*/clusters/*}:setLegacy" - + "Abac:\001*ZL\"G/v1/projects/{project_id}/zon" - + "es/{zone}/clusters/{cluster_id}/legacyAb" - + "ac:\001*\332A\"project_id,zone,cluster_id,enabl" - + "ed\332A\014name,enabled\022\240\002\n\017StartIPRotation\022+." - + "google.container.v1.StartIPRotationReque" - + "st\032\036.google.container.v1.Operation\"\277\001\202\323\344" - + "\223\002\224\001\"*/v1/{name=projects" + + "/*/locations/*/clusters/*}:setResourceLa" + + "bels:\001*ZP\"K/v1/projects/{project_id}/zon" + + "es/{zone}/clusters/{cluster_id}/resource" + + "Labels:\001*\022\245\002\n\rSetLegacyAbac\022).google.con" + + "tainer.v1.SetLegacyAbacRequest\032\036.google." + + "container.v1.Operation\"\310\001\202\323\344\223\002\215\001\":/v1/{n" + + "ame=projects/*/locations/*/clusters/*}:s" + + "etLegacyAbac:\001*ZL\"G/v1/projects/{project" + + "_id}/zones/{zone}/clusters/{cluster_id}/" + + "legacyAbac:\001*\332A\"project_id,zone,cluster_" + + "id,enabled\332A\014name,enabled\022\240\002\n\017StartIPRot" + + "ation\022+.google.container.v1.StartIPRotat" + + "ionRequest\032\036.google.container.v1.Operati" + + "on\"\277\001\202\323\344\223\002\224\001\" + * Configuration for issuance of mTLS keys and certificates to Kubernetes + * pods. + * + * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * + * @return Whether the desiredMeshCertificates field is set. + */ + @java.lang.Override + public boolean hasDesiredMeshCertificates() { + return desiredMeshCertificates_ != null; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * + * @return The desiredMeshCertificates. + */ + @java.lang.Override + public com.google.container.v1.MeshCertificates getDesiredMeshCertificates() { + return desiredMeshCertificates_ == null + ? com.google.container.v1.MeshCertificates.getDefaultInstance() + : desiredMeshCertificates_; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + @java.lang.Override + public com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { + return getDesiredMeshCertificates(); + } + public static final int DESIRED_SHIELDED_NODES_FIELD_NUMBER = 48; private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; /** @@ -842,6 +1035,54 @@ public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrB return getDesiredShieldedNodes(); } + public static final int DESIRED_DNS_CONFIG_FIELD_NUMBER = 53; + private com.google.container.v1.DNSConfig desiredDnsConfig_; + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * + * @return Whether the desiredDnsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredDnsConfig() { + return desiredDnsConfig_ != null; + } + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * + * @return The desiredDnsConfig. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig getDesiredDnsConfig() { + return desiredDnsConfig_ == null + ? com.google.container.v1.DNSConfig.getDefaultInstance() + : desiredDnsConfig_; + } + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + @java.lang.Override + public com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { + return getDesiredDnsConfig(); + } + public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; /** @@ -1499,6 +1740,178 @@ public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelO return getDesiredReleaseChannel(); } + public static final int DESIRED_L4ILB_SUBSETTING_CONFIG_FIELD_NUMBER = 39; + private com.google.container.v1.ILBSubsettingConfig desiredL4IlbSubsettingConfig_; + /** + * + * + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * + * @return Whether the desiredL4ilbSubsettingConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredL4IlbSubsettingConfig() { + return desiredL4IlbSubsettingConfig_ != null; + } + /** + * + * + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * + * @return The desiredL4ilbSubsettingConfig. + */ + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig() { + return desiredL4IlbSubsettingConfig_ == null + ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() + : desiredL4IlbSubsettingConfig_; + } + /** + * + * + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfigOrBuilder + getDesiredL4IlbSubsettingConfigOrBuilder() { + return getDesiredL4IlbSubsettingConfig(); + } + + public static final int DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER = 50; + private int desiredDatapathProvider_; + /** + * + * + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @return The enum numeric value on the wire for desiredDatapathProvider. + */ + @java.lang.Override + public int getDesiredDatapathProviderValue() { + return desiredDatapathProvider_; + } + /** + * + * + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @return The desiredDatapathProvider. + */ + @java.lang.Override + public com.google.container.v1.DatapathProvider getDesiredDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1.DatapathProvider result = + com.google.container.v1.DatapathProvider.valueOf(desiredDatapathProvider_); + return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; + } + + public static final int DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 51; + private int desiredPrivateIpv6GoogleAccess_; + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override + public int getDesiredPrivateIpv6GoogleAccessValue() { + return desiredPrivateIpv6GoogleAccess_; + } + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @return The desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { + @SuppressWarnings("deprecation") + com.google.container.v1.PrivateIPv6GoogleAccess result = + com.google.container.v1.PrivateIPv6GoogleAccess.valueOf(desiredPrivateIpv6GoogleAccess_); + return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + + public static final int DESIRED_NOTIFICATION_CONFIG_FIELD_NUMBER = 55; + private com.google.container.v1.NotificationConfig desiredNotificationConfig_; + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * + * @return Whether the desiredNotificationConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredNotificationConfig() { + return desiredNotificationConfig_ != null; + } + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * + * @return The desiredNotificationConfig. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig getDesiredNotificationConfig() { + return desiredNotificationConfig_ == null + ? com.google.container.v1.NotificationConfig.getDefaultInstance() + : desiredNotificationConfig_; + } + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + @java.lang.Override + public com.google.container.v1.NotificationConfigOrBuilder + getDesiredNotificationConfigOrBuilder() { + return getDesiredNotificationConfig(); + } + public static final int DESIRED_AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 63; private com.google.container.v1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; /** @@ -1551,37 +1964,188 @@ public com.google.container.v1.AuthenticatorGroupsConfig getDesiredAuthenticator return getDesiredAuthenticatorGroupsConfig(); } - public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; - private volatile java.lang.Object desiredMasterVersion_; + public static final int DESIRED_LOGGING_CONFIG_FIELD_NUMBER = 64; + private com.google.container.v1.LoggingConfig desiredLoggingConfig_; /** * * *
-   * The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
+   * The desired logging configuration.
    * 
* - * string desired_master_version = 100; + * .google.container.v1.LoggingConfig desired_logging_config = 64; * - * @return The desiredMasterVersion. + * @return Whether the desiredLoggingConfig field is set. */ @java.lang.Override - public java.lang.String getDesiredMasterVersion() { - java.lang.Object ref = desiredMasterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMasterVersion_ = s; - return s; - } + public boolean hasDesiredLoggingConfig() { + return desiredLoggingConfig_ != null; + } + /** + * + * + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * + * @return The desiredLoggingConfig. + */ + @java.lang.Override + public com.google.container.v1.LoggingConfig getDesiredLoggingConfig() { + return desiredLoggingConfig_ == null + ? com.google.container.v1.LoggingConfig.getDefaultInstance() + : desiredLoggingConfig_; + } + /** + * + * + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + @java.lang.Override + public com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { + return getDesiredLoggingConfig(); + } + + public static final int DESIRED_MONITORING_CONFIG_FIELD_NUMBER = 65; + private com.google.container.v1.MonitoringConfig desiredMonitoringConfig_; + /** + * + * + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * + * @return Whether the desiredMonitoringConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredMonitoringConfig() { + return desiredMonitoringConfig_ != null; + } + /** + * + * + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * + * @return The desiredMonitoringConfig. + */ + @java.lang.Override + public com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig() { + return desiredMonitoringConfig_ == null + ? com.google.container.v1.MonitoringConfig.getDefaultInstance() + : desiredMonitoringConfig_; + } + /** + * + * + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + @java.lang.Override + public com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder() { + return getDesiredMonitoringConfig(); + } + + public static final int DESIRED_SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 60; + private com.google.container.v1.ServiceExternalIPsConfig desiredServiceExternalIpsConfig_; + /** + * + * + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + * + * @return Whether the desiredServiceExternalIpsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredServiceExternalIpsConfig() { + return desiredServiceExternalIpsConfig_ != null; + } + /** + * + * + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + * + * @return The desiredServiceExternalIpsConfig. + */ + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig() { + return desiredServiceExternalIpsConfig_ == null + ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() + : desiredServiceExternalIpsConfig_; + } + /** + * + * + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + */ + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfigOrBuilder + getDesiredServiceExternalIpsConfigOrBuilder() { + return getDesiredServiceExternalIpsConfig(); + } + + public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; + private volatile java.lang.Object desiredMasterVersion_; + /** + * + * + *
+   * The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + * + * @return The desiredMasterVersion. + */ + @java.lang.Override + public java.lang.String getDesiredMasterVersion() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMasterVersion_ = s; + return s; + } } /** * @@ -1614,6 +2178,54 @@ public com.google.protobuf.ByteString getDesiredMasterVersionBytes() { } } + public static final int DESIRED_GCFS_CONFIG_FIELD_NUMBER = 109; + private com.google.container.v1.GcfsConfig desiredGcfsConfig_; + /** + * + * + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * + * @return Whether the desiredGcfsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredGcfsConfig() { + return desiredGcfsConfig_ != null; + } + /** + * + * + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * + * @return The desiredGcfsConfig. + */ + @java.lang.Override + public com.google.container.v1.GcfsConfig getDesiredGcfsConfig() { + return desiredGcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : desiredGcfsConfig_; + } + /** + * + * + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + @java.lang.Override + public com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { + return getDesiredGcfsConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1679,6 +2291,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (desiredReleaseChannel_ != null) { output.writeMessage(31, getDesiredReleaseChannel()); } + if (desiredL4IlbSubsettingConfig_ != null) { + output.writeMessage(39, getDesiredL4IlbSubsettingConfig()); + } if (desiredDatabaseEncryption_ != null) { output.writeMessage(46, getDesiredDatabaseEncryption()); } @@ -1688,12 +2303,42 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (desiredShieldedNodes_ != null) { output.writeMessage(48, getDesiredShieldedNodes()); } + if (desiredDatapathProvider_ + != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(50, desiredDatapathProvider_); + } + if (desiredPrivateIpv6GoogleAccess_ + != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED + .getNumber()) { + output.writeEnum(51, desiredPrivateIpv6GoogleAccess_); + } + if (desiredDnsConfig_ != null) { + output.writeMessage(53, getDesiredDnsConfig()); + } + if (desiredNotificationConfig_ != null) { + output.writeMessage(55, getDesiredNotificationConfig()); + } + if (desiredServiceExternalIpsConfig_ != null) { + output.writeMessage(60, getDesiredServiceExternalIpsConfig()); + } if (desiredAuthenticatorGroupsConfig_ != null) { output.writeMessage(63, getDesiredAuthenticatorGroupsConfig()); } + if (desiredLoggingConfig_ != null) { + output.writeMessage(64, getDesiredLoggingConfig()); + } + if (desiredMonitoringConfig_ != null) { + output.writeMessage(65, getDesiredMonitoringConfig()); + } + if (desiredMeshCertificates_ != null) { + output.writeMessage(67, getDesiredMeshCertificates()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); } + if (desiredGcfsConfig_ != null) { + output.writeMessage(109, getDesiredGcfsConfig()); + } unknownFields.writeTo(output); } @@ -1779,6 +2424,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getDesiredReleaseChannel()); } + if (desiredL4IlbSubsettingConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 39, getDesiredL4IlbSubsettingConfig()); + } if (desiredDatabaseEncryption_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1793,14 +2443,55 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(48, getDesiredShieldedNodes()); } + if (desiredDatapathProvider_ + != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(50, desiredDatapathProvider_); + } + if (desiredPrivateIpv6GoogleAccess_ + != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 51, desiredPrivateIpv6GoogleAccess_); + } + if (desiredDnsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(53, getDesiredDnsConfig()); + } + if (desiredNotificationConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 55, getDesiredNotificationConfig()); + } + if (desiredServiceExternalIpsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 60, getDesiredServiceExternalIpsConfig()); + } if (desiredAuthenticatorGroupsConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 63, getDesiredAuthenticatorGroupsConfig()); } + if (desiredLoggingConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(64, getDesiredLoggingConfig()); + } + if (desiredMonitoringConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 65, getDesiredMonitoringConfig()); + } + if (desiredMeshCertificates_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 67, getDesiredMeshCertificates()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); } + if (desiredGcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(109, getDesiredGcfsConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1835,10 +2526,18 @@ public boolean equals(final java.lang.Object obj) { if (!getDesiredWorkloadIdentityConfig().equals(other.getDesiredWorkloadIdentityConfig())) return false; } + if (hasDesiredMeshCertificates() != other.hasDesiredMeshCertificates()) return false; + if (hasDesiredMeshCertificates()) { + if (!getDesiredMeshCertificates().equals(other.getDesiredMeshCertificates())) return false; + } if (hasDesiredShieldedNodes() != other.hasDesiredShieldedNodes()) return false; if (hasDesiredShieldedNodes()) { if (!getDesiredShieldedNodes().equals(other.getDesiredShieldedNodes())) return false; } + if (hasDesiredDnsConfig() != other.hasDesiredDnsConfig()) return false; + if (hasDesiredDnsConfig()) { + if (!getDesiredDnsConfig().equals(other.getDesiredDnsConfig())) return false; + } if (hasDesiredNodePoolAutoscaling() != other.hasDesiredNodePoolAutoscaling()) return false; if (hasDesiredNodePoolAutoscaling()) { if (!getDesiredNodePoolAutoscaling().equals(other.getDesiredNodePoolAutoscaling())) @@ -1893,13 +2592,43 @@ public boolean equals(final java.lang.Object obj) { if (hasDesiredReleaseChannel()) { if (!getDesiredReleaseChannel().equals(other.getDesiredReleaseChannel())) return false; } + if (hasDesiredL4IlbSubsettingConfig() != other.hasDesiredL4IlbSubsettingConfig()) return false; + if (hasDesiredL4IlbSubsettingConfig()) { + if (!getDesiredL4IlbSubsettingConfig().equals(other.getDesiredL4IlbSubsettingConfig())) + return false; + } + if (desiredDatapathProvider_ != other.desiredDatapathProvider_) return false; + if (desiredPrivateIpv6GoogleAccess_ != other.desiredPrivateIpv6GoogleAccess_) return false; + if (hasDesiredNotificationConfig() != other.hasDesiredNotificationConfig()) return false; + if (hasDesiredNotificationConfig()) { + if (!getDesiredNotificationConfig().equals(other.getDesiredNotificationConfig())) + return false; + } if (hasDesiredAuthenticatorGroupsConfig() != other.hasDesiredAuthenticatorGroupsConfig()) return false; if (hasDesiredAuthenticatorGroupsConfig()) { if (!getDesiredAuthenticatorGroupsConfig() .equals(other.getDesiredAuthenticatorGroupsConfig())) return false; } + if (hasDesiredLoggingConfig() != other.hasDesiredLoggingConfig()) return false; + if (hasDesiredLoggingConfig()) { + if (!getDesiredLoggingConfig().equals(other.getDesiredLoggingConfig())) return false; + } + if (hasDesiredMonitoringConfig() != other.hasDesiredMonitoringConfig()) return false; + if (hasDesiredMonitoringConfig()) { + if (!getDesiredMonitoringConfig().equals(other.getDesiredMonitoringConfig())) return false; + } + if (hasDesiredServiceExternalIpsConfig() != other.hasDesiredServiceExternalIpsConfig()) + return false; + if (hasDesiredServiceExternalIpsConfig()) { + if (!getDesiredServiceExternalIpsConfig().equals(other.getDesiredServiceExternalIpsConfig())) + return false; + } if (!getDesiredMasterVersion().equals(other.getDesiredMasterVersion())) return false; + if (hasDesiredGcfsConfig() != other.hasDesiredGcfsConfig()) return false; + if (hasDesiredGcfsConfig()) { + if (!getDesiredGcfsConfig().equals(other.getDesiredGcfsConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1931,10 +2660,18 @@ public int hashCode() { hash = (37 * hash) + DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDesiredWorkloadIdentityConfig().hashCode(); } + if (hasDesiredMeshCertificates()) { + hash = (37 * hash) + DESIRED_MESH_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMeshCertificates().hashCode(); + } if (hasDesiredShieldedNodes()) { hash = (37 * hash) + DESIRED_SHIELDED_NODES_FIELD_NUMBER; hash = (53 * hash) + getDesiredShieldedNodes().hashCode(); } + if (hasDesiredDnsConfig()) { + hash = (37 * hash) + DESIRED_DNS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredDnsConfig().hashCode(); + } if (hasDesiredNodePoolAutoscaling()) { hash = (37 * hash) + DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER; hash = (53 * hash) + getDesiredNodePoolAutoscaling().hashCode(); @@ -1981,12 +2718,40 @@ public int hashCode() { hash = (37 * hash) + DESIRED_RELEASE_CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getDesiredReleaseChannel().hashCode(); } + if (hasDesiredL4IlbSubsettingConfig()) { + hash = (37 * hash) + DESIRED_L4ILB_SUBSETTING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredL4IlbSubsettingConfig().hashCode(); + } + hash = (37 * hash) + DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + desiredDatapathProvider_; + hash = (37 * hash) + DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + desiredPrivateIpv6GoogleAccess_; + if (hasDesiredNotificationConfig()) { + hash = (37 * hash) + DESIRED_NOTIFICATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNotificationConfig().hashCode(); + } if (hasDesiredAuthenticatorGroupsConfig()) { hash = (37 * hash) + DESIRED_AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDesiredAuthenticatorGroupsConfig().hashCode(); } + if (hasDesiredLoggingConfig()) { + hash = (37 * hash) + DESIRED_LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredLoggingConfig().hashCode(); + } + if (hasDesiredMonitoringConfig()) { + hash = (37 * hash) + DESIRED_MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMonitoringConfig().hashCode(); + } + if (hasDesiredServiceExternalIpsConfig()) { + hash = (37 * hash) + DESIRED_SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredServiceExternalIpsConfig().hashCode(); + } hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getDesiredMasterVersion().hashCode(); + if (hasDesiredGcfsConfig()) { + hash = (37 * hash) + DESIRED_GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredGcfsConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2159,12 +2924,24 @@ public Builder clear() { desiredWorkloadIdentityConfig_ = null; desiredWorkloadIdentityConfigBuilder_ = null; } + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = null; + } else { + desiredMeshCertificates_ = null; + desiredMeshCertificatesBuilder_ = null; + } if (desiredShieldedNodesBuilder_ == null) { desiredShieldedNodes_ = null; } else { desiredShieldedNodes_ = null; desiredShieldedNodesBuilder_ = null; } + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfig_ = null; + } else { + desiredDnsConfig_ = null; + desiredDnsConfigBuilder_ = null; + } if (desiredNodePoolAutoscalingBuilder_ == null) { desiredNodePoolAutoscaling_ = null; } else { @@ -2229,14 +3006,54 @@ public Builder clear() { desiredReleaseChannel_ = null; desiredReleaseChannelBuilder_ = null; } + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfig_ = null; + } else { + desiredL4IlbSubsettingConfig_ = null; + desiredL4IlbSubsettingConfigBuilder_ = null; + } + desiredDatapathProvider_ = 0; + + desiredPrivateIpv6GoogleAccess_ = 0; + + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfig_ = null; + } else { + desiredNotificationConfig_ = null; + desiredNotificationConfigBuilder_ = null; + } if (desiredAuthenticatorGroupsConfigBuilder_ == null) { desiredAuthenticatorGroupsConfig_ = null; } else { desiredAuthenticatorGroupsConfig_ = null; desiredAuthenticatorGroupsConfigBuilder_ = null; } + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfig_ = null; + } else { + desiredLoggingConfig_ = null; + desiredLoggingConfigBuilder_ = null; + } + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfig_ = null; + } else { + desiredMonitoringConfig_ = null; + desiredMonitoringConfigBuilder_ = null; + } + if (desiredServiceExternalIpsConfigBuilder_ == null) { + desiredServiceExternalIpsConfig_ = null; + } else { + desiredServiceExternalIpsConfig_ = null; + desiredServiceExternalIpsConfigBuilder_ = null; + } desiredMasterVersion_ = ""; + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = null; + } else { + desiredGcfsConfig_ = null; + desiredGcfsConfigBuilder_ = null; + } return this; } @@ -2284,11 +3101,21 @@ public com.google.container.v1.ClusterUpdate buildPartial() { } else { result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfigBuilder_.build(); } + if (desiredMeshCertificatesBuilder_ == null) { + result.desiredMeshCertificates_ = desiredMeshCertificates_; + } else { + result.desiredMeshCertificates_ = desiredMeshCertificatesBuilder_.build(); + } if (desiredShieldedNodesBuilder_ == null) { result.desiredShieldedNodes_ = desiredShieldedNodes_; } else { result.desiredShieldedNodes_ = desiredShieldedNodesBuilder_.build(); } + if (desiredDnsConfigBuilder_ == null) { + result.desiredDnsConfig_ = desiredDnsConfig_; + } else { + result.desiredDnsConfig_ = desiredDnsConfigBuilder_.build(); + } if (desiredNodePoolAutoscalingBuilder_ == null) { result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscaling_; } else { @@ -2346,12 +3173,44 @@ public com.google.container.v1.ClusterUpdate buildPartial() { } else { result.desiredReleaseChannel_ = desiredReleaseChannelBuilder_.build(); } + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + result.desiredL4IlbSubsettingConfig_ = desiredL4IlbSubsettingConfig_; + } else { + result.desiredL4IlbSubsettingConfig_ = desiredL4IlbSubsettingConfigBuilder_.build(); + } + result.desiredDatapathProvider_ = desiredDatapathProvider_; + result.desiredPrivateIpv6GoogleAccess_ = desiredPrivateIpv6GoogleAccess_; + if (desiredNotificationConfigBuilder_ == null) { + result.desiredNotificationConfig_ = desiredNotificationConfig_; + } else { + result.desiredNotificationConfig_ = desiredNotificationConfigBuilder_.build(); + } if (desiredAuthenticatorGroupsConfigBuilder_ == null) { result.desiredAuthenticatorGroupsConfig_ = desiredAuthenticatorGroupsConfig_; } else { result.desiredAuthenticatorGroupsConfig_ = desiredAuthenticatorGroupsConfigBuilder_.build(); } + if (desiredLoggingConfigBuilder_ == null) { + result.desiredLoggingConfig_ = desiredLoggingConfig_; + } else { + result.desiredLoggingConfig_ = desiredLoggingConfigBuilder_.build(); + } + if (desiredMonitoringConfigBuilder_ == null) { + result.desiredMonitoringConfig_ = desiredMonitoringConfig_; + } else { + result.desiredMonitoringConfig_ = desiredMonitoringConfigBuilder_.build(); + } + if (desiredServiceExternalIpsConfigBuilder_ == null) { + result.desiredServiceExternalIpsConfig_ = desiredServiceExternalIpsConfig_; + } else { + result.desiredServiceExternalIpsConfig_ = desiredServiceExternalIpsConfigBuilder_.build(); + } result.desiredMasterVersion_ = desiredMasterVersion_; + if (desiredGcfsConfigBuilder_ == null) { + result.desiredGcfsConfig_ = desiredGcfsConfig_; + } else { + result.desiredGcfsConfig_ = desiredGcfsConfigBuilder_.build(); + } onBuilt(); return result; } @@ -2426,9 +3285,15 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { if (other.hasDesiredWorkloadIdentityConfig()) { mergeDesiredWorkloadIdentityConfig(other.getDesiredWorkloadIdentityConfig()); } + if (other.hasDesiredMeshCertificates()) { + mergeDesiredMeshCertificates(other.getDesiredMeshCertificates()); + } if (other.hasDesiredShieldedNodes()) { mergeDesiredShieldedNodes(other.getDesiredShieldedNodes()); } + if (other.hasDesiredDnsConfig()) { + mergeDesiredDnsConfig(other.getDesiredDnsConfig()); + } if (other.hasDesiredNodePoolAutoscaling()) { mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); } @@ -2474,13 +3339,37 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { if (other.hasDesiredReleaseChannel()) { mergeDesiredReleaseChannel(other.getDesiredReleaseChannel()); } + if (other.hasDesiredL4IlbSubsettingConfig()) { + mergeDesiredL4IlbSubsettingConfig(other.getDesiredL4IlbSubsettingConfig()); + } + if (other.desiredDatapathProvider_ != 0) { + setDesiredDatapathProviderValue(other.getDesiredDatapathProviderValue()); + } + if (other.desiredPrivateIpv6GoogleAccess_ != 0) { + setDesiredPrivateIpv6GoogleAccessValue(other.getDesiredPrivateIpv6GoogleAccessValue()); + } + if (other.hasDesiredNotificationConfig()) { + mergeDesiredNotificationConfig(other.getDesiredNotificationConfig()); + } if (other.hasDesiredAuthenticatorGroupsConfig()) { mergeDesiredAuthenticatorGroupsConfig(other.getDesiredAuthenticatorGroupsConfig()); } + if (other.hasDesiredLoggingConfig()) { + mergeDesiredLoggingConfig(other.getDesiredLoggingConfig()); + } + if (other.hasDesiredMonitoringConfig()) { + mergeDesiredMonitoringConfig(other.getDesiredMonitoringConfig()); + } + if (other.hasDesiredServiceExternalIpsConfig()) { + mergeDesiredServiceExternalIpsConfig(other.getDesiredServiceExternalIpsConfig()); + } if (!other.getDesiredMasterVersion().isEmpty()) { desiredMasterVersion_ = other.desiredMasterVersion_; onChanged(); } + if (other.hasDesiredGcfsConfig()) { + mergeDesiredGcfsConfig(other.getDesiredGcfsConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3612,39 +4501,234 @@ public Builder clearDesiredWorkloadIdentityConfig() { return desiredWorkloadIdentityConfigBuilder_; } - private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; + private com.google.container.v1.MeshCertificates desiredMeshCertificates_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder> - desiredShieldedNodesBuilder_; + com.google.container.v1.MeshCertificates, + com.google.container.v1.MeshCertificates.Builder, + com.google.container.v1.MeshCertificatesOrBuilder> + desiredMeshCertificatesBuilder_; /** * * *
-     * Configuration for Shielded Nodes.
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
      * 
* - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; * - * @return Whether the desiredShieldedNodes field is set. + * @return Whether the desiredMeshCertificates field is set. */ - public boolean hasDesiredShieldedNodes() { - return desiredShieldedNodesBuilder_ != null || desiredShieldedNodes_ != null; + public boolean hasDesiredMeshCertificates() { + return desiredMeshCertificatesBuilder_ != null || desiredMeshCertificates_ != null; } /** * * *
-     * Configuration for Shielded Nodes.
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
      * 
* - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; * - * @return The desiredShieldedNodes. + * @return The desiredMeshCertificates. */ - public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { - if (desiredShieldedNodesBuilder_ == null) { + public com.google.container.v1.MeshCertificates getDesiredMeshCertificates() { + if (desiredMeshCertificatesBuilder_ == null) { + return desiredMeshCertificates_ == null + ? com.google.container.v1.MeshCertificates.getDefaultInstance() + : desiredMeshCertificates_; + } else { + return desiredMeshCertificatesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder setDesiredMeshCertificates(com.google.container.v1.MeshCertificates value) { + if (desiredMeshCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMeshCertificates_ = value; + onChanged(); + } else { + desiredMeshCertificatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder setDesiredMeshCertificates( + com.google.container.v1.MeshCertificates.Builder builderForValue) { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = builderForValue.build(); + onChanged(); + } else { + desiredMeshCertificatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder mergeDesiredMeshCertificates(com.google.container.v1.MeshCertificates value) { + if (desiredMeshCertificatesBuilder_ == null) { + if (desiredMeshCertificates_ != null) { + desiredMeshCertificates_ = + com.google.container.v1.MeshCertificates.newBuilder(desiredMeshCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredMeshCertificates_ = value; + } + onChanged(); + } else { + desiredMeshCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder clearDesiredMeshCertificates() { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = null; + onChanged(); + } else { + desiredMeshCertificates_ = null; + desiredMeshCertificatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public com.google.container.v1.MeshCertificates.Builder getDesiredMeshCertificatesBuilder() { + + onChanged(); + return getDesiredMeshCertificatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { + if (desiredMeshCertificatesBuilder_ != null) { + return desiredMeshCertificatesBuilder_.getMessageOrBuilder(); + } else { + return desiredMeshCertificates_ == null + ? com.google.container.v1.MeshCertificates.getDefaultInstance() + : desiredMeshCertificates_; + } + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, + com.google.container.v1.MeshCertificates.Builder, + com.google.container.v1.MeshCertificatesOrBuilder> + getDesiredMeshCertificatesFieldBuilder() { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, + com.google.container.v1.MeshCertificates.Builder, + com.google.container.v1.MeshCertificatesOrBuilder>( + getDesiredMeshCertificates(), getParentForChildren(), isClean()); + desiredMeshCertificates_ = null; + } + return desiredMeshCertificatesBuilder_; + } + + 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_; @@ -3798,6 +4882,191 @@ public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrB return desiredShieldedNodesBuilder_; } + private com.google.container.v1.DNSConfig desiredDnsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, + com.google.container.v1.DNSConfig.Builder, + com.google.container.v1.DNSConfigOrBuilder> + desiredDnsConfigBuilder_; + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * + * @return Whether the desiredDnsConfig field is set. + */ + public boolean hasDesiredDnsConfig() { + return desiredDnsConfigBuilder_ != null || desiredDnsConfig_ != null; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * + * @return The desiredDnsConfig. + */ + public com.google.container.v1.DNSConfig getDesiredDnsConfig() { + if (desiredDnsConfigBuilder_ == null) { + return desiredDnsConfig_ == null + ? com.google.container.v1.DNSConfig.getDefaultInstance() + : desiredDnsConfig_; + } else { + return desiredDnsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public Builder setDesiredDnsConfig(com.google.container.v1.DNSConfig value) { + if (desiredDnsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredDnsConfig_ = value; + onChanged(); + } else { + desiredDnsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public Builder setDesiredDnsConfig(com.google.container.v1.DNSConfig.Builder builderForValue) { + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredDnsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public Builder mergeDesiredDnsConfig(com.google.container.v1.DNSConfig value) { + if (desiredDnsConfigBuilder_ == null) { + if (desiredDnsConfig_ != null) { + desiredDnsConfig_ = + com.google.container.v1.DNSConfig.newBuilder(desiredDnsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredDnsConfig_ = value; + } + onChanged(); + } else { + desiredDnsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public Builder clearDesiredDnsConfig() { + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfig_ = null; + onChanged(); + } else { + desiredDnsConfig_ = null; + desiredDnsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public com.google.container.v1.DNSConfig.Builder getDesiredDnsConfigBuilder() { + + onChanged(); + return getDesiredDnsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { + if (desiredDnsConfigBuilder_ != null) { + return desiredDnsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredDnsConfig_ == null + ? com.google.container.v1.DNSConfig.getDefaultInstance() + : desiredDnsConfig_; + } + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, + com.google.container.v1.DNSConfig.Builder, + com.google.container.v1.DNSConfigOrBuilder> + getDesiredDnsConfigFieldBuilder() { + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, + com.google.container.v1.DNSConfig.Builder, + com.google.container.v1.DNSConfigOrBuilder>( + getDesiredDnsConfig(), getParentForChildren(), isClean()); + desiredDnsConfig_ = null; + } + return desiredDnsConfigBuilder_; + } + private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.NodePoolAutoscaling, @@ -6149,72 +7418,1221 @@ public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelO return desiredReleaseChannelBuilder_; } - private com.google.container.v1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; + private com.google.container.v1.ILBSubsettingConfig desiredL4IlbSubsettingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, - com.google.container.v1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> - desiredAuthenticatorGroupsConfigBuilder_; + com.google.container.v1.ILBSubsettingConfig, + com.google.container.v1.ILBSubsettingConfig.Builder, + com.google.container.v1.ILBSubsettingConfigOrBuilder> + desiredL4IlbSubsettingConfigBuilder_; /** * * *
-     * The desired authenticator groups config for the cluster.
+     * The desired L4 Internal Load Balancer Subsetting configuration.
      * 
* - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; * - * @return Whether the desiredAuthenticatorGroupsConfig field is set. + * @return Whether the desiredL4ilbSubsettingConfig field is set. */ - public boolean hasDesiredAuthenticatorGroupsConfig() { - return desiredAuthenticatorGroupsConfigBuilder_ != null - || desiredAuthenticatorGroupsConfig_ != null; + public boolean hasDesiredL4IlbSubsettingConfig() { + return desiredL4IlbSubsettingConfigBuilder_ != null || desiredL4IlbSubsettingConfig_ != null; } /** * * *
-     * The desired authenticator groups config for the cluster.
+     * The desired L4 Internal Load Balancer Subsetting configuration.
      * 
* - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * + * @return The desiredL4ilbSubsettingConfig. + */ + public com.google.container.v1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig() { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + return desiredL4IlbSubsettingConfig_ == null + ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() + : desiredL4IlbSubsettingConfig_; + } else { + return desiredL4IlbSubsettingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder setDesiredL4IlbSubsettingConfig( + com.google.container.v1.ILBSubsettingConfig value) { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredL4IlbSubsettingConfig_ = value; + onChanged(); + } else { + desiredL4IlbSubsettingConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder setDesiredL4IlbSubsettingConfig( + com.google.container.v1.ILBSubsettingConfig.Builder builderForValue) { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredL4IlbSubsettingConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder mergeDesiredL4IlbSubsettingConfig( + com.google.container.v1.ILBSubsettingConfig value) { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + if (desiredL4IlbSubsettingConfig_ != null) { + desiredL4IlbSubsettingConfig_ = + com.google.container.v1.ILBSubsettingConfig.newBuilder(desiredL4IlbSubsettingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredL4IlbSubsettingConfig_ = value; + } + onChanged(); + } else { + desiredL4IlbSubsettingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder clearDesiredL4IlbSubsettingConfig() { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfig_ = null; + onChanged(); + } else { + desiredL4IlbSubsettingConfig_ = null; + desiredL4IlbSubsettingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public com.google.container.v1.ILBSubsettingConfig.Builder + getDesiredL4IlbSubsettingConfigBuilder() { + + onChanged(); + return getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public com.google.container.v1.ILBSubsettingConfigOrBuilder + getDesiredL4IlbSubsettingConfigOrBuilder() { + if (desiredL4IlbSubsettingConfigBuilder_ != null) { + return desiredL4IlbSubsettingConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredL4IlbSubsettingConfig_ == null + ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() + : desiredL4IlbSubsettingConfig_; + } + } + /** + * + * + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ILBSubsettingConfig, + com.google.container.v1.ILBSubsettingConfig.Builder, + com.google.container.v1.ILBSubsettingConfigOrBuilder> + getDesiredL4IlbSubsettingConfigFieldBuilder() { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ILBSubsettingConfig, + com.google.container.v1.ILBSubsettingConfig.Builder, + com.google.container.v1.ILBSubsettingConfigOrBuilder>( + getDesiredL4IlbSubsettingConfig(), getParentForChildren(), isClean()); + desiredL4IlbSubsettingConfig_ = null; + } + return desiredL4IlbSubsettingConfigBuilder_; + } + + private int desiredDatapathProvider_ = 0; + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @return The enum numeric value on the wire for desiredDatapathProvider. + */ + @java.lang.Override + public int getDesiredDatapathProviderValue() { + return desiredDatapathProvider_; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @param value The enum numeric value on the wire for desiredDatapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDesiredDatapathProviderValue(int value) { + + desiredDatapathProvider_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @return The desiredDatapathProvider. + */ + @java.lang.Override + public com.google.container.v1.DatapathProvider getDesiredDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1.DatapathProvider result = + com.google.container.v1.DatapathProvider.valueOf(desiredDatapathProvider_); + return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @param value The desiredDatapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDesiredDatapathProvider(com.google.container.v1.DatapathProvider value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredDatapathProvider_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @return This builder for chaining. + */ + public Builder clearDesiredDatapathProvider() { + + desiredDatapathProvider_ = 0; + onChanged(); + return this; + } + + private int desiredPrivateIpv6GoogleAccess_ = 0; + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override + public int getDesiredPrivateIpv6GoogleAccessValue() { + return desiredPrivateIpv6GoogleAccess_; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @param value The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setDesiredPrivateIpv6GoogleAccessValue(int value) { + + desiredPrivateIpv6GoogleAccess_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @return The desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { + @SuppressWarnings("deprecation") + com.google.container.v1.PrivateIPv6GoogleAccess result = + com.google.container.v1.PrivateIPv6GoogleAccess.valueOf(desiredPrivateIpv6GoogleAccess_); + return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @param value The desiredPrivateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setDesiredPrivateIpv6GoogleAccess( + com.google.container.v1.PrivateIPv6GoogleAccess value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredPrivateIpv6GoogleAccess_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @return This builder for chaining. + */ + public Builder clearDesiredPrivateIpv6GoogleAccess() { + + desiredPrivateIpv6GoogleAccess_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.NotificationConfig desiredNotificationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, + com.google.container.v1.NotificationConfig.Builder, + com.google.container.v1.NotificationConfigOrBuilder> + desiredNotificationConfigBuilder_; + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * + * @return Whether the desiredNotificationConfig field is set. + */ + public boolean hasDesiredNotificationConfig() { + return desiredNotificationConfigBuilder_ != null || desiredNotificationConfig_ != null; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * + * @return The desiredNotificationConfig. + */ + public com.google.container.v1.NotificationConfig getDesiredNotificationConfig() { + if (desiredNotificationConfigBuilder_ == null) { + return desiredNotificationConfig_ == null + ? com.google.container.v1.NotificationConfig.getDefaultInstance() + : desiredNotificationConfig_; + } else { + return desiredNotificationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public Builder setDesiredNotificationConfig(com.google.container.v1.NotificationConfig value) { + if (desiredNotificationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNotificationConfig_ = value; + onChanged(); + } else { + desiredNotificationConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public Builder setDesiredNotificationConfig( + com.google.container.v1.NotificationConfig.Builder builderForValue) { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredNotificationConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public Builder mergeDesiredNotificationConfig( + com.google.container.v1.NotificationConfig value) { + if (desiredNotificationConfigBuilder_ == null) { + if (desiredNotificationConfig_ != null) { + desiredNotificationConfig_ = + com.google.container.v1.NotificationConfig.newBuilder(desiredNotificationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredNotificationConfig_ = value; + } + onChanged(); + } else { + desiredNotificationConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public Builder clearDesiredNotificationConfig() { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfig_ = null; + onChanged(); + } else { + desiredNotificationConfig_ = null; + desiredNotificationConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public com.google.container.v1.NotificationConfig.Builder + getDesiredNotificationConfigBuilder() { + + onChanged(); + return getDesiredNotificationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public com.google.container.v1.NotificationConfigOrBuilder + getDesiredNotificationConfigOrBuilder() { + if (desiredNotificationConfigBuilder_ != null) { + return desiredNotificationConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredNotificationConfig_ == null + ? com.google.container.v1.NotificationConfig.getDefaultInstance() + : desiredNotificationConfig_; + } + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, + com.google.container.v1.NotificationConfig.Builder, + com.google.container.v1.NotificationConfigOrBuilder> + getDesiredNotificationConfigFieldBuilder() { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, + com.google.container.v1.NotificationConfig.Builder, + com.google.container.v1.NotificationConfigOrBuilder>( + getDesiredNotificationConfig(), getParentForChildren(), isClean()); + desiredNotificationConfig_ = null; + } + return desiredNotificationConfigBuilder_; + } + + private com.google.container.v1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AuthenticatorGroupsConfig, + com.google.container.v1.AuthenticatorGroupsConfig.Builder, + com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> + desiredAuthenticatorGroupsConfigBuilder_; + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + * + * @return Whether the desiredAuthenticatorGroupsConfig field is set. + */ + public boolean hasDesiredAuthenticatorGroupsConfig() { + return desiredAuthenticatorGroupsConfigBuilder_ != null + || desiredAuthenticatorGroupsConfig_ != null; + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * * * @return The desiredAuthenticatorGroupsConfig. */ - public com.google.container.v1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig() { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - return desiredAuthenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : desiredAuthenticatorGroupsConfig_; + public com.google.container.v1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig() { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + return desiredAuthenticatorGroupsConfig_ == null + ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() + : desiredAuthenticatorGroupsConfig_; + } else { + return desiredAuthenticatorGroupsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public Builder setDesiredAuthenticatorGroupsConfig( + com.google.container.v1.AuthenticatorGroupsConfig value) { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredAuthenticatorGroupsConfig_ = value; + onChanged(); + } else { + desiredAuthenticatorGroupsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public Builder setDesiredAuthenticatorGroupsConfig( + com.google.container.v1.AuthenticatorGroupsConfig.Builder builderForValue) { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredAuthenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public Builder mergeDesiredAuthenticatorGroupsConfig( + com.google.container.v1.AuthenticatorGroupsConfig value) { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + if (desiredAuthenticatorGroupsConfig_ != null) { + desiredAuthenticatorGroupsConfig_ = + com.google.container.v1.AuthenticatorGroupsConfig.newBuilder( + desiredAuthenticatorGroupsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredAuthenticatorGroupsConfig_ = value; + } + onChanged(); + } else { + desiredAuthenticatorGroupsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public Builder clearDesiredAuthenticatorGroupsConfig() { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfig_ = null; + onChanged(); + } else { + desiredAuthenticatorGroupsConfig_ = null; + desiredAuthenticatorGroupsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public com.google.container.v1.AuthenticatorGroupsConfig.Builder + getDesiredAuthenticatorGroupsConfigBuilder() { + + onChanged(); + return getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder + getDesiredAuthenticatorGroupsConfigOrBuilder() { + if (desiredAuthenticatorGroupsConfigBuilder_ != null) { + return desiredAuthenticatorGroupsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredAuthenticatorGroupsConfig_ == null + ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() + : desiredAuthenticatorGroupsConfig_; + } + } + /** + * + * + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AuthenticatorGroupsConfig, + com.google.container.v1.AuthenticatorGroupsConfig.Builder, + com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> + getDesiredAuthenticatorGroupsConfigFieldBuilder() { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AuthenticatorGroupsConfig, + com.google.container.v1.AuthenticatorGroupsConfig.Builder, + com.google.container.v1.AuthenticatorGroupsConfigOrBuilder>( + getDesiredAuthenticatorGroupsConfig(), getParentForChildren(), isClean()); + desiredAuthenticatorGroupsConfig_ = null; + } + return desiredAuthenticatorGroupsConfigBuilder_; + } + + private com.google.container.v1.LoggingConfig desiredLoggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, + com.google.container.v1.LoggingConfig.Builder, + com.google.container.v1.LoggingConfigOrBuilder> + desiredLoggingConfigBuilder_; + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * + * @return Whether the desiredLoggingConfig field is set. + */ + public boolean hasDesiredLoggingConfig() { + return desiredLoggingConfigBuilder_ != null || desiredLoggingConfig_ != null; + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * + * @return The desiredLoggingConfig. + */ + public com.google.container.v1.LoggingConfig getDesiredLoggingConfig() { + if (desiredLoggingConfigBuilder_ == null) { + return desiredLoggingConfig_ == null + ? com.google.container.v1.LoggingConfig.getDefaultInstance() + : desiredLoggingConfig_; + } else { + return desiredLoggingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public Builder setDesiredLoggingConfig(com.google.container.v1.LoggingConfig value) { + if (desiredLoggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredLoggingConfig_ = value; + onChanged(); + } else { + desiredLoggingConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public Builder setDesiredLoggingConfig( + com.google.container.v1.LoggingConfig.Builder builderForValue) { + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredLoggingConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public Builder mergeDesiredLoggingConfig(com.google.container.v1.LoggingConfig value) { + if (desiredLoggingConfigBuilder_ == null) { + if (desiredLoggingConfig_ != null) { + desiredLoggingConfig_ = + com.google.container.v1.LoggingConfig.newBuilder(desiredLoggingConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredLoggingConfig_ = value; + } + onChanged(); + } else { + desiredLoggingConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public Builder clearDesiredLoggingConfig() { + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfig_ = null; + onChanged(); + } else { + desiredLoggingConfig_ = null; + desiredLoggingConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public com.google.container.v1.LoggingConfig.Builder getDesiredLoggingConfigBuilder() { + + onChanged(); + return getDesiredLoggingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { + if (desiredLoggingConfigBuilder_ != null) { + return desiredLoggingConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredLoggingConfig_ == null + ? com.google.container.v1.LoggingConfig.getDefaultInstance() + : desiredLoggingConfig_; + } + } + /** + * + * + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, + com.google.container.v1.LoggingConfig.Builder, + com.google.container.v1.LoggingConfigOrBuilder> + getDesiredLoggingConfigFieldBuilder() { + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, + com.google.container.v1.LoggingConfig.Builder, + com.google.container.v1.LoggingConfigOrBuilder>( + getDesiredLoggingConfig(), getParentForChildren(), isClean()); + desiredLoggingConfig_ = null; + } + return desiredLoggingConfigBuilder_; + } + + private com.google.container.v1.MonitoringConfig desiredMonitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, + com.google.container.v1.MonitoringConfig.Builder, + com.google.container.v1.MonitoringConfigOrBuilder> + desiredMonitoringConfigBuilder_; + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * + * @return Whether the desiredMonitoringConfig field is set. + */ + public boolean hasDesiredMonitoringConfig() { + return desiredMonitoringConfigBuilder_ != null || desiredMonitoringConfig_ != null; + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * + * @return The desiredMonitoringConfig. + */ + public com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig() { + if (desiredMonitoringConfigBuilder_ == null) { + return desiredMonitoringConfig_ == null + ? com.google.container.v1.MonitoringConfig.getDefaultInstance() + : desiredMonitoringConfig_; + } else { + return desiredMonitoringConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder setDesiredMonitoringConfig(com.google.container.v1.MonitoringConfig value) { + if (desiredMonitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMonitoringConfig_ = value; + onChanged(); + } else { + desiredMonitoringConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder setDesiredMonitoringConfig( + com.google.container.v1.MonitoringConfig.Builder builderForValue) { + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredMonitoringConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder mergeDesiredMonitoringConfig(com.google.container.v1.MonitoringConfig value) { + if (desiredMonitoringConfigBuilder_ == null) { + if (desiredMonitoringConfig_ != null) { + desiredMonitoringConfig_ = + com.google.container.v1.MonitoringConfig.newBuilder(desiredMonitoringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredMonitoringConfig_ = value; + } + onChanged(); + } else { + desiredMonitoringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder clearDesiredMonitoringConfig() { + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfig_ = null; + onChanged(); } else { - return desiredAuthenticatorGroupsConfigBuilder_.getMessage(); + desiredMonitoringConfig_ = null; + desiredMonitoringConfigBuilder_ = null; } + + return this; } /** * * *
-     * The desired authenticator groups config for the cluster.
+     * The desired monitoring configuration.
      * 
* - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public com.google.container.v1.MonitoringConfig.Builder getDesiredMonitoringConfigBuilder() { + + onChanged(); + return getDesiredMonitoringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder() { + if (desiredMonitoringConfigBuilder_ != null) { + return desiredMonitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredMonitoringConfig_ == null + ? com.google.container.v1.MonitoringConfig.getDefaultInstance() + : desiredMonitoringConfig_; + } + } + /** + * + * + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, + com.google.container.v1.MonitoringConfig.Builder, + com.google.container.v1.MonitoringConfigOrBuilder> + getDesiredMonitoringConfigFieldBuilder() { + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, + com.google.container.v1.MonitoringConfig.Builder, + com.google.container.v1.MonitoringConfigOrBuilder>( + getDesiredMonitoringConfig(), getParentForChildren(), isClean()); + desiredMonitoringConfig_ = null; + } + return desiredMonitoringConfigBuilder_; + } + + private com.google.container.v1.ServiceExternalIPsConfig desiredServiceExternalIpsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, + com.google.container.v1.ServiceExternalIPsConfig.Builder, + com.google.container.v1.ServiceExternalIPsConfigOrBuilder> + desiredServiceExternalIpsConfigBuilder_; + /** + * + * + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; * + * + * @return Whether the desiredServiceExternalIpsConfig field is set. */ - public Builder setDesiredAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig value) { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + public boolean hasDesiredServiceExternalIpsConfig() { + return desiredServiceExternalIpsConfigBuilder_ != null + || desiredServiceExternalIpsConfig_ != null; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + * + * @return The desiredServiceExternalIpsConfig. + */ + public com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig() { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + return desiredServiceExternalIpsConfig_ == null + ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() + : desiredServiceExternalIpsConfig_; + } else { + return desiredServiceExternalIpsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + */ + public Builder setDesiredServiceExternalIpsConfig( + com.google.container.v1.ServiceExternalIPsConfig value) { + if (desiredServiceExternalIpsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - desiredAuthenticatorGroupsConfig_ = value; + desiredServiceExternalIpsConfig_ = value; onChanged(); } else { - desiredAuthenticatorGroupsConfigBuilder_.setMessage(value); + desiredServiceExternalIpsConfigBuilder_.setMessage(value); } return this; @@ -6223,20 +8641,20 @@ public Builder setDesiredAuthenticatorGroupsConfig( * * *
-     * The desired authenticator groups config for the cluster.
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
      * 
* - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; * */ - public Builder setDesiredAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig.Builder builderForValue) { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfig_ = builderForValue.build(); + public Builder setDesiredServiceExternalIpsConfig( + com.google.container.v1.ServiceExternalIPsConfig.Builder builderForValue) { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + desiredServiceExternalIpsConfig_ = builderForValue.build(); onChanged(); } else { - desiredAuthenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); + desiredServiceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); } return this; @@ -6245,28 +8663,28 @@ public Builder setDesiredAuthenticatorGroupsConfig( * * *
-     * The desired authenticator groups config for the cluster.
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
      * 
* - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; * */ - public Builder mergeDesiredAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig value) { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - if (desiredAuthenticatorGroupsConfig_ != null) { - desiredAuthenticatorGroupsConfig_ = - com.google.container.v1.AuthenticatorGroupsConfig.newBuilder( - desiredAuthenticatorGroupsConfig_) + public Builder mergeDesiredServiceExternalIpsConfig( + com.google.container.v1.ServiceExternalIPsConfig value) { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + if (desiredServiceExternalIpsConfig_ != null) { + desiredServiceExternalIpsConfig_ = + com.google.container.v1.ServiceExternalIPsConfig.newBuilder( + desiredServiceExternalIpsConfig_) .mergeFrom(value) .buildPartial(); } else { - desiredAuthenticatorGroupsConfig_ = value; + desiredServiceExternalIpsConfig_ = value; } onChanged(); } else { - desiredAuthenticatorGroupsConfigBuilder_.mergeFrom(value); + desiredServiceExternalIpsConfigBuilder_.mergeFrom(value); } return this; @@ -6275,20 +8693,20 @@ public Builder mergeDesiredAuthenticatorGroupsConfig( * * *
-     * The desired authenticator groups config for the cluster.
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
      * 
* - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; * */ - public Builder clearDesiredAuthenticatorGroupsConfig() { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfig_ = null; + public Builder clearDesiredServiceExternalIpsConfig() { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + desiredServiceExternalIpsConfig_ = null; onChanged(); } else { - desiredAuthenticatorGroupsConfig_ = null; - desiredAuthenticatorGroupsConfigBuilder_ = null; + desiredServiceExternalIpsConfig_ = null; + desiredServiceExternalIpsConfigBuilder_ = null; } return this; @@ -6297,66 +8715,66 @@ public Builder clearDesiredAuthenticatorGroupsConfig() { * * *
-     * The desired authenticator groups config for the cluster.
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
      * 
* - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; * */ - public com.google.container.v1.AuthenticatorGroupsConfig.Builder - getDesiredAuthenticatorGroupsConfigBuilder() { + public com.google.container.v1.ServiceExternalIPsConfig.Builder + getDesiredServiceExternalIpsConfigBuilder() { onChanged(); - return getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(); + return getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(); } /** * * *
-     * The desired authenticator groups config for the cluster.
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
      * 
* - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; * */ - public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder - getDesiredAuthenticatorGroupsConfigOrBuilder() { - if (desiredAuthenticatorGroupsConfigBuilder_ != null) { - return desiredAuthenticatorGroupsConfigBuilder_.getMessageOrBuilder(); + public com.google.container.v1.ServiceExternalIPsConfigOrBuilder + getDesiredServiceExternalIpsConfigOrBuilder() { + if (desiredServiceExternalIpsConfigBuilder_ != null) { + return desiredServiceExternalIpsConfigBuilder_.getMessageOrBuilder(); } else { - return desiredAuthenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : desiredAuthenticatorGroupsConfig_; + return desiredServiceExternalIpsConfig_ == null + ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() + : desiredServiceExternalIpsConfig_; } } /** * * *
-     * The desired authenticator groups config for the cluster.
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
      * 
* - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, - com.google.container.v1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> - getDesiredAuthenticatorGroupsConfigFieldBuilder() { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfigBuilder_ = + com.google.container.v1.ServiceExternalIPsConfig, + com.google.container.v1.ServiceExternalIPsConfig.Builder, + com.google.container.v1.ServiceExternalIPsConfigOrBuilder> + getDesiredServiceExternalIpsConfigFieldBuilder() { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + desiredServiceExternalIpsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, - com.google.container.v1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder>( - getDesiredAuthenticatorGroupsConfig(), getParentForChildren(), isClean()); - desiredAuthenticatorGroupsConfig_ = null; + com.google.container.v1.ServiceExternalIPsConfig, + com.google.container.v1.ServiceExternalIPsConfig.Builder, + com.google.container.v1.ServiceExternalIPsConfigOrBuilder>( + getDesiredServiceExternalIpsConfig(), getParentForChildren(), isClean()); + desiredServiceExternalIpsConfig_ = null; } - return desiredAuthenticatorGroupsConfigBuilder_; + return desiredServiceExternalIpsConfigBuilder_; } private java.lang.Object desiredMasterVersion_ = ""; @@ -6500,6 +8918,192 @@ public Builder setDesiredMasterVersionBytes(com.google.protobuf.ByteString value return this; } + private com.google.container.v1.GcfsConfig desiredGcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder> + desiredGcfsConfigBuilder_; + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * + * @return Whether the desiredGcfsConfig field is set. + */ + public boolean hasDesiredGcfsConfig() { + return desiredGcfsConfigBuilder_ != null || desiredGcfsConfig_ != null; + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * + * @return The desiredGcfsConfig. + */ + public com.google.container.v1.GcfsConfig getDesiredGcfsConfig() { + if (desiredGcfsConfigBuilder_ == null) { + return desiredGcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : desiredGcfsConfig_; + } else { + return desiredGcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder setDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (desiredGcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredGcfsConfig_ = value; + onChanged(); + } else { + desiredGcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder setDesiredGcfsConfig( + com.google.container.v1.GcfsConfig.Builder builderForValue) { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredGcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder mergeDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (desiredGcfsConfigBuilder_ == null) { + if (desiredGcfsConfig_ != null) { + desiredGcfsConfig_ = + com.google.container.v1.GcfsConfig.newBuilder(desiredGcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredGcfsConfig_ = value; + } + onChanged(); + } else { + desiredGcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder clearDesiredGcfsConfig() { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = null; + onChanged(); + } else { + desiredGcfsConfig_ = null; + desiredGcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public com.google.container.v1.GcfsConfig.Builder getDesiredGcfsConfigBuilder() { + + onChanged(); + return getDesiredGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { + if (desiredGcfsConfigBuilder_ != null) { + return desiredGcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredGcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : desiredGcfsConfig_; + } + } + /** + * + * + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder> + getDesiredGcfsConfigFieldBuilder() { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder>( + getDesiredGcfsConfig(), getParentForChildren(), isClean()); + desiredGcfsConfig_ = null; + } + return desiredGcfsConfigBuilder_; + } + @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/ClusterUpdateOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java index 6593ef7f..73cc5b46 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 @@ -269,6 +269,44 @@ public interface ClusterUpdateOrBuilder com.google.container.v1.WorkloadIdentityConfigOrBuilder getDesiredWorkloadIdentityConfigOrBuilder(); + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * + * @return Whether the desiredMeshCertificates field is set. + */ + boolean hasDesiredMeshCertificates(); + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * + * @return The desiredMeshCertificates. + */ + com.google.container.v1.MeshCertificates getDesiredMeshCertificates(); + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder(); + /** * * @@ -304,6 +342,41 @@ public interface ClusterUpdateOrBuilder */ com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder(); + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * + * @return Whether the desiredDnsConfig field is set. + */ + boolean hasDesiredDnsConfig(); + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * + * @return The desiredDnsConfig. + */ + com.google.container.v1.DNSConfig getDesiredDnsConfig(); + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder(); + /** * * @@ -791,6 +864,128 @@ public interface ClusterUpdateOrBuilder */ com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder(); + /** + * + * + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * + * @return Whether the desiredL4ilbSubsettingConfig field is set. + */ + boolean hasDesiredL4IlbSubsettingConfig(); + /** + * + * + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * + * @return The desiredL4ilbSubsettingConfig. + */ + com.google.container.v1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig(); + /** + * + * + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + com.google.container.v1.ILBSubsettingConfigOrBuilder getDesiredL4IlbSubsettingConfigOrBuilder(); + + /** + * + * + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @return The enum numeric value on the wire for desiredDatapathProvider. + */ + int getDesiredDatapathProviderValue(); + /** + * + * + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * + * @return The desiredDatapathProvider. + */ + com.google.container.v1.DatapathProvider getDesiredDatapathProvider(); + + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. + */ + int getDesiredPrivateIpv6GoogleAccessValue(); + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * + * + * @return The desiredPrivateIpv6GoogleAccess. + */ + com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess(); + + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * + * @return Whether the desiredNotificationConfig field is set. + */ + boolean hasDesiredNotificationConfig(); + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * + * @return The desiredNotificationConfig. + */ + com.google.container.v1.NotificationConfig getDesiredNotificationConfig(); + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + com.google.container.v1.NotificationConfigOrBuilder getDesiredNotificationConfigOrBuilder(); + /** * * @@ -830,6 +1025,118 @@ public interface ClusterUpdateOrBuilder com.google.container.v1.AuthenticatorGroupsConfigOrBuilder getDesiredAuthenticatorGroupsConfigOrBuilder(); + /** + * + * + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * + * @return Whether the desiredLoggingConfig field is set. + */ + boolean hasDesiredLoggingConfig(); + /** + * + * + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * + * @return The desiredLoggingConfig. + */ + com.google.container.v1.LoggingConfig getDesiredLoggingConfig(); + /** + * + * + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder(); + + /** + * + * + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * + * @return Whether the desiredMonitoringConfig field is set. + */ + boolean hasDesiredMonitoringConfig(); + /** + * + * + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * + * @return The desiredMonitoringConfig. + */ + com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig(); + /** + * + * + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder(); + + /** + * + * + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + * + * @return Whether the desiredServiceExternalIpsConfig field is set. + */ + boolean hasDesiredServiceExternalIpsConfig(); + /** + * + * + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + * + * @return The desiredServiceExternalIpsConfig. + */ + com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig(); + /** + * + * + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * + */ + com.google.container.v1.ServiceExternalIPsConfigOrBuilder + getDesiredServiceExternalIpsConfigOrBuilder(); + /** * * @@ -868,4 +1175,39 @@ public interface ClusterUpdateOrBuilder * @return The bytes for desiredMasterVersion. */ com.google.protobuf.ByteString getDesiredMasterVersionBytes(); + + /** + * + * + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * + * @return Whether the desiredGcfsConfig field is set. + */ + boolean hasDesiredGcfsConfig(); + /** + * + * + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * + * @return The desiredGcfsConfig. + */ + com.google.container.v1.GcfsConfig getDesiredGcfsConfig(); + /** + * + * + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodes.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodes.java new file mode 100644 index 00000000..8408a31e --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodes.java @@ -0,0 +1,550 @@ +/* + * 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; + +/** + * + * + *
+ * ConfidentialNodes is configuration for the confidential nodes feature, which
+ * makes nodes run on confidential VMs.
+ * 
+ * + * Protobuf type {@code google.container.v1.ConfidentialNodes} + */ +public final class ConfidentialNodes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ConfidentialNodes) + ConfidentialNodesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfidentialNodes.newBuilder() to construct. + private ConfidentialNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfidentialNodes() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfidentialNodes(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ConfidentialNodes( + 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_ConfidentialNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ConfidentialNodes.class, + com.google.container.v1.ConfidentialNodes.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Confidential Nodes feature is enabled for 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.ConfidentialNodes)) { + return super.equals(obj); + } + com.google.container.v1.ConfidentialNodes other = + (com.google.container.v1.ConfidentialNodes) 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.ConfidentialNodes parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ConfidentialNodes 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.ConfidentialNodes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ConfidentialNodes parseFrom( + 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.ConfidentialNodes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ConfidentialNodes parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ConfidentialNodes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ConfidentialNodes parseFrom( + java.io.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.ConfidentialNodes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ConfidentialNodes parseDelimitedFrom( + java.io.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.ConfidentialNodes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ConfidentialNodes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.ConfidentialNodes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ConfidentialNodes is configuration for the confidential nodes feature, which
+   * makes nodes run on confidential VMs.
+   * 
+ * + * Protobuf type {@code google.container.v1.ConfidentialNodes} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ConfidentialNodes) + com.google.container.v1.ConfidentialNodesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfidentialNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ConfidentialNodes.class, + com.google.container.v1.ConfidentialNodes.Builder.class); + } + + // Construct using com.google.container.v1.ConfidentialNodes.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_ConfidentialNodes_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ConfidentialNodes getDefaultInstanceForType() { + return com.google.container.v1.ConfidentialNodes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ConfidentialNodes build() { + com.google.container.v1.ConfidentialNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ConfidentialNodes buildPartial() { + com.google.container.v1.ConfidentialNodes result = + new com.google.container.v1.ConfidentialNodes(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.ConfidentialNodes) { + return mergeFrom((com.google.container.v1.ConfidentialNodes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ConfidentialNodes other) { + if (other == com.google.container.v1.ConfidentialNodes.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.ConfidentialNodes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.ConfidentialNodes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether Confidential Nodes feature is enabled for all nodes in this
+     * cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Confidential Nodes feature is enabled for 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 Confidential Nodes feature is enabled for 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.ConfidentialNodes) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ConfidentialNodes) + private static final com.google.container.v1.ConfidentialNodes DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ConfidentialNodes(); + } + + public static com.google.container.v1.ConfidentialNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidentialNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfidentialNodes(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.ConfidentialNodes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodesOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodesOrBuilder.java new file mode 100644 index 00000000..0272b8c4 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodesOrBuilder.java @@ -0,0 +1,39 @@ +/* + * 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 ConfidentialNodesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ConfidentialNodes) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Confidential Nodes feature is enabled for 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/DNSConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java new file mode 100644 index 00000000..dd60fd46 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java @@ -0,0 +1,1227 @@ +/* + * 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; + +/** + * + * + *
+ * DNSConfig contains the desired set of options for configuring clusterDNS.
+ * 
+ * + * Protobuf type {@code google.container.v1.DNSConfig} + */ +public final class DNSConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.DNSConfig) + DNSConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DNSConfig.newBuilder() to construct. + private DNSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DNSConfig() { + clusterDns_ = 0; + clusterDnsScope_ = 0; + clusterDnsDomain_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DNSConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DNSConfig( + 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(); + + clusterDns_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + clusterDnsScope_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterDnsDomain_ = 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_DNSConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DNSConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DNSConfig.class, + com.google.container.v1.DNSConfig.Builder.class); + } + + /** + * + * + *
+   * Provider lists the various in-cluster DNS providers.
+   * 
+ * + * Protobuf enum {@code google.container.v1.DNSConfig.Provider} + */ + public enum Provider implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + PROVIDER_UNSPECIFIED(0), + /** + * + * + *
+     * Use GKE default DNS provider(kube-dns) for DNS resolution.
+     * 
+ * + * PLATFORM_DEFAULT = 1; + */ + PLATFORM_DEFAULT(1), + /** + * + * + *
+     * Use CloudDNS for DNS resolution.
+     * 
+ * + * CLOUD_DNS = 2; + */ + CLOUD_DNS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + public static final int PROVIDER_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Use GKE default DNS provider(kube-dns) for DNS resolution.
+     * 
+ * + * PLATFORM_DEFAULT = 1; + */ + public static final int PLATFORM_DEFAULT_VALUE = 1; + /** + * + * + *
+     * Use CloudDNS for DNS resolution.
+     * 
+ * + * CLOUD_DNS = 2; + */ + public static final int CLOUD_DNS_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 Provider 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 Provider forNumber(int value) { + switch (value) { + case 0: + return PROVIDER_UNSPECIFIED; + case 1: + return PLATFORM_DEFAULT; + case 2: + return CLOUD_DNS; + 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 Provider findValueByNumber(int number) { + return Provider.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.DNSConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Provider[] VALUES = values(); + + public static Provider valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Provider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.DNSConfig.Provider) + } + + /** + * + * + *
+   * DNSScope lists the various scopes of access to cluster DNS records.
+   * 
+ * + * Protobuf enum {@code google.container.v1.DNSConfig.DNSScope} + */ + public enum DNSScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value, will be inferred as cluster scope.
+     * 
+ * + * DNS_SCOPE_UNSPECIFIED = 0; + */ + DNS_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * DNS records are accessible from within the VPC.
+     * 
+ * + * VPC_SCOPE = 2; + */ + VPC_SCOPE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value, will be inferred as cluster scope.
+     * 
+ * + * DNS_SCOPE_UNSPECIFIED = 0; + */ + public static final int DNS_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * DNS records are accessible from within the VPC.
+     * 
+ * + * VPC_SCOPE = 2; + */ + public static final int VPC_SCOPE_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 DNSScope 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 DNSScope forNumber(int value) { + switch (value) { + case 0: + return DNS_SCOPE_UNSPECIFIED; + case 2: + return VPC_SCOPE; + 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 DNSScope findValueByNumber(int number) { + return DNSScope.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.DNSConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final DNSScope[] VALUES = values(); + + public static DNSScope 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 DNSScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.DNSConfig.DNSScope) + } + + public static final int CLUSTER_DNS_FIELD_NUMBER = 1; + private int clusterDns_; + /** + * + * + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return The enum numeric value on the wire for clusterDns. + */ + @java.lang.Override + public int getClusterDnsValue() { + return clusterDns_; + } + /** + * + * + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return The clusterDns. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig.Provider getClusterDns() { + @SuppressWarnings("deprecation") + com.google.container.v1.DNSConfig.Provider result = + com.google.container.v1.DNSConfig.Provider.valueOf(clusterDns_); + return result == null ? com.google.container.v1.DNSConfig.Provider.UNRECOGNIZED : result; + } + + public static final int CLUSTER_DNS_SCOPE_FIELD_NUMBER = 2; + private int clusterDnsScope_; + /** + * + * + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return The enum numeric value on the wire for clusterDnsScope. + */ + @java.lang.Override + public int getClusterDnsScopeValue() { + return clusterDnsScope_; + } + /** + * + * + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return The clusterDnsScope. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope() { + @SuppressWarnings("deprecation") + com.google.container.v1.DNSConfig.DNSScope result = + com.google.container.v1.DNSConfig.DNSScope.valueOf(clusterDnsScope_); + return result == null ? com.google.container.v1.DNSConfig.DNSScope.UNRECOGNIZED : result; + } + + public static final int CLUSTER_DNS_DOMAIN_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterDnsDomain_; + /** + * + * + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * + * @return The clusterDnsDomain. + */ + @java.lang.Override + public java.lang.String getClusterDnsDomain() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterDnsDomain_ = s; + return s; + } + } + /** + * + * + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * + * @return The bytes for clusterDnsDomain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterDnsDomainBytes() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterDnsDomain_ = 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 (clusterDns_ + != com.google.container.v1.DNSConfig.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(1, clusterDns_); + } + if (clusterDnsScope_ + != com.google.container.v1.DNSConfig.DNSScope.DNS_SCOPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, clusterDnsScope_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterDnsDomain_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (clusterDns_ + != com.google.container.v1.DNSConfig.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, clusterDns_); + } + if (clusterDnsScope_ + != com.google.container.v1.DNSConfig.DNSScope.DNS_SCOPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, clusterDnsScope_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterDnsDomain_); + } + 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.DNSConfig)) { + return super.equals(obj); + } + com.google.container.v1.DNSConfig other = (com.google.container.v1.DNSConfig) obj; + + if (clusterDns_ != other.clusterDns_) return false; + if (clusterDnsScope_ != other.clusterDnsScope_) return false; + if (!getClusterDnsDomain().equals(other.getClusterDnsDomain())) 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) + CLUSTER_DNS_FIELD_NUMBER; + hash = (53 * hash) + clusterDns_; + hash = (37 * hash) + CLUSTER_DNS_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + clusterDnsScope_; + hash = (37 * hash) + CLUSTER_DNS_DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getClusterDnsDomain().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.DNSConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.DNSConfig 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.DNSConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.DNSConfig parseFrom( + 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.DNSConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.DNSConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.DNSConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.DNSConfig parseFrom( + java.io.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.DNSConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.DNSConfig parseDelimitedFrom( + java.io.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.DNSConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.DNSConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.DNSConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * DNSConfig contains the desired set of options for configuring clusterDNS.
+   * 
+ * + * Protobuf type {@code google.container.v1.DNSConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.DNSConfig) + com.google.container.v1.DNSConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DNSConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DNSConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DNSConfig.class, + com.google.container.v1.DNSConfig.Builder.class); + } + + // Construct using com.google.container.v1.DNSConfig.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(); + clusterDns_ = 0; + + clusterDnsScope_ = 0; + + clusterDnsDomain_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_DNSConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DNSConfig getDefaultInstanceForType() { + return com.google.container.v1.DNSConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DNSConfig build() { + com.google.container.v1.DNSConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DNSConfig buildPartial() { + com.google.container.v1.DNSConfig result = new com.google.container.v1.DNSConfig(this); + result.clusterDns_ = clusterDns_; + result.clusterDnsScope_ = clusterDnsScope_; + result.clusterDnsDomain_ = clusterDnsDomain_; + 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.DNSConfig) { + return mergeFrom((com.google.container.v1.DNSConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DNSConfig other) { + if (other == com.google.container.v1.DNSConfig.getDefaultInstance()) return this; + if (other.clusterDns_ != 0) { + setClusterDnsValue(other.getClusterDnsValue()); + } + if (other.clusterDnsScope_ != 0) { + setClusterDnsScopeValue(other.getClusterDnsScopeValue()); + } + if (!other.getClusterDnsDomain().isEmpty()) { + clusterDnsDomain_ = other.clusterDnsDomain_; + 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.DNSConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.DNSConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int clusterDns_ = 0; + /** + * + * + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return The enum numeric value on the wire for clusterDns. + */ + @java.lang.Override + public int getClusterDnsValue() { + return clusterDns_; + } + /** + * + * + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @param value The enum numeric value on the wire for clusterDns to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsValue(int value) { + + clusterDns_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return The clusterDns. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig.Provider getClusterDns() { + @SuppressWarnings("deprecation") + com.google.container.v1.DNSConfig.Provider result = + com.google.container.v1.DNSConfig.Provider.valueOf(clusterDns_); + return result == null ? com.google.container.v1.DNSConfig.Provider.UNRECOGNIZED : result; + } + /** + * + * + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @param value The clusterDns to set. + * @return This builder for chaining. + */ + public Builder setClusterDns(com.google.container.v1.DNSConfig.Provider value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterDns_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return This builder for chaining. + */ + public Builder clearClusterDns() { + + clusterDns_ = 0; + onChanged(); + return this; + } + + private int clusterDnsScope_ = 0; + /** + * + * + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return The enum numeric value on the wire for clusterDnsScope. + */ + @java.lang.Override + public int getClusterDnsScopeValue() { + return clusterDnsScope_; + } + /** + * + * + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @param value The enum numeric value on the wire for clusterDnsScope to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsScopeValue(int value) { + + clusterDnsScope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return The clusterDnsScope. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope() { + @SuppressWarnings("deprecation") + com.google.container.v1.DNSConfig.DNSScope result = + com.google.container.v1.DNSConfig.DNSScope.valueOf(clusterDnsScope_); + return result == null ? com.google.container.v1.DNSConfig.DNSScope.UNRECOGNIZED : result; + } + /** + * + * + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @param value The clusterDnsScope to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsScope(com.google.container.v1.DNSConfig.DNSScope value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterDnsScope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return This builder for chaining. + */ + public Builder clearClusterDnsScope() { + + clusterDnsScope_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clusterDnsDomain_ = ""; + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @return The clusterDnsDomain. + */ + public java.lang.String getClusterDnsDomain() { + java.lang.Object ref = clusterDnsDomain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterDnsDomain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @return The bytes for clusterDnsDomain. + */ + public com.google.protobuf.ByteString getClusterDnsDomainBytes() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterDnsDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @param value The clusterDnsDomain to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterDnsDomain_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @return This builder for chaining. + */ + public Builder clearClusterDnsDomain() { + + clusterDnsDomain_ = getDefaultInstance().getClusterDnsDomain(); + onChanged(); + return this; + } + /** + * + * + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * + * @param value The bytes for clusterDnsDomain to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterDnsDomain_ = 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.DNSConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DNSConfig) + private static final com.google.container.v1.DNSConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.DNSConfig(); + } + + public static com.google.container.v1.DNSConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DNSConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DNSConfig(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.DNSConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java new file mode 100644 index 00000000..2e1cf937 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java @@ -0,0 +1,100 @@ +/* + * 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 DNSConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DNSConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return The enum numeric value on the wire for clusterDns. + */ + int getClusterDnsValue(); + /** + * + * + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * + * @return The clusterDns. + */ + com.google.container.v1.DNSConfig.Provider getClusterDns(); + + /** + * + * + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return The enum numeric value on the wire for clusterDnsScope. + */ + int getClusterDnsScopeValue(); + /** + * + * + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * + * @return The clusterDnsScope. + */ + com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope(); + + /** + * + * + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * + * @return The clusterDnsDomain. + */ + java.lang.String getClusterDnsDomain(); + /** + * + * + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * + * @return The bytes for clusterDnsDomain. + */ + com.google.protobuf.ByteString getClusterDnsDomainBytes(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatapathProvider.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatapathProvider.java new file mode 100644 index 00000000..9d5e4b98 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatapathProvider.java @@ -0,0 +1,183 @@ +/* + * 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; + +/** + * + * + *
+ * The datapath provider selects the implementation of the Kubernetes networking
+ * model for service resolution and network policy enforcement.
+ * 
+ * + * Protobuf enum {@code google.container.v1.DatapathProvider} + */ +public enum DatapathProvider implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value.
+   * 
+ * + * DATAPATH_PROVIDER_UNSPECIFIED = 0; + */ + DATAPATH_PROVIDER_UNSPECIFIED(0), + /** + * + * + *
+   * Use the IPTables implementation based on kube-proxy.
+   * 
+ * + * LEGACY_DATAPATH = 1; + */ + LEGACY_DATAPATH(1), + /** + * + * + *
+   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
+   * Dataplane V2
+   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
+   * for more.
+   * 
+ * + * ADVANCED_DATAPATH = 2; + */ + ADVANCED_DATAPATH(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value.
+   * 
+ * + * DATAPATH_PROVIDER_UNSPECIFIED = 0; + */ + public static final int DATAPATH_PROVIDER_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Use the IPTables implementation based on kube-proxy.
+   * 
+ * + * LEGACY_DATAPATH = 1; + */ + public static final int LEGACY_DATAPATH_VALUE = 1; + /** + * + * + *
+   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
+   * Dataplane V2
+   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
+   * for more.
+   * 
+ * + * ADVANCED_DATAPATH = 2; + */ + public static final int ADVANCED_DATAPATH_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 DatapathProvider 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 DatapathProvider forNumber(int value) { + switch (value) { + case 0: + return DATAPATH_PROVIDER_UNSPECIFIED; + case 1: + return LEGACY_DATAPATH; + case 2: + return ADVANCED_DATAPATH; + 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 DatapathProvider findValueByNumber(int number) { + return DatapathProvider.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.ClusterServiceProto.getDescriptor().getEnumTypes().get(1); + } + + private static final DatapathProvider[] VALUES = values(); + + public static DatapathProvider 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 DatapathProvider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.DatapathProvider) +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfig.java new file mode 100644 index 00000000..4a19e0ec --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfig.java @@ -0,0 +1,548 @@ +/* + * 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 Compute Engine PD CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1.GcePersistentDiskCsiDriverConfig} + */ +public final class GcePersistentDiskCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GcePersistentDiskCsiDriverConfig) + GcePersistentDiskCsiDriverConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcePersistentDiskCsiDriverConfig.newBuilder() to construct. + private GcePersistentDiskCsiDriverConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcePersistentDiskCsiDriverConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcePersistentDiskCsiDriverConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GcePersistentDiskCsiDriverConfig( + 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_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcePersistentDiskCsiDriverConfig.class, + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether the Compute Engine PD CSI driver 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.GcePersistentDiskCsiDriverConfig)) { + return super.equals(obj); + } + com.google.container.v1.GcePersistentDiskCsiDriverConfig other = + (com.google.container.v1.GcePersistentDiskCsiDriverConfig) 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.GcePersistentDiskCsiDriverConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig 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.GcePersistentDiskCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + 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.GcePersistentDiskCsiDriverConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + java.io.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.GcePersistentDiskCsiDriverConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseDelimitedFrom( + java.io.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.GcePersistentDiskCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.GcePersistentDiskCsiDriverConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 Compute Engine PD CSI driver.
+   * 
+ * + * Protobuf type {@code google.container.v1.GcePersistentDiskCsiDriverConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GcePersistentDiskCsiDriverConfig) + com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcePersistentDiskCsiDriverConfig.class, + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder.class); + } + + // Construct using com.google.container.v1.GcePersistentDiskCsiDriverConfig.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_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig getDefaultInstanceForType() { + return com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig build() { + com.google.container.v1.GcePersistentDiskCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig buildPartial() { + com.google.container.v1.GcePersistentDiskCsiDriverConfig result = + new com.google.container.v1.GcePersistentDiskCsiDriverConfig(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.GcePersistentDiskCsiDriverConfig) { + return mergeFrom((com.google.container.v1.GcePersistentDiskCsiDriverConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GcePersistentDiskCsiDriverConfig other) { + if (other == com.google.container.v1.GcePersistentDiskCsiDriverConfig.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.GcePersistentDiskCsiDriverConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.GcePersistentDiskCsiDriverConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether the Compute Engine PD CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the Compute Engine PD CSI driver 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 the Compute Engine PD CSI driver 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.GcePersistentDiskCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GcePersistentDiskCsiDriverConfig) + private static final com.google.container.v1.GcePersistentDiskCsiDriverConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.GcePersistentDiskCsiDriverConfig(); + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcePersistentDiskCsiDriverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcePersistentDiskCsiDriverConfig(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.GcePersistentDiskCsiDriverConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfigOrBuilder.java new file mode 100644 index 00000000..9e3e8155 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfigOrBuilder.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 GcePersistentDiskCsiDriverConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GcePersistentDiskCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the Compute Engine PD CSI driver 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/GcfsConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfig.java new file mode 100644 index 00000000..0a77bb99 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfig.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; + +/** + * + * + *
+ * GcfsConfig contains configurations of Google Container File System
+ * (image streaming).
+ * 
+ * + * Protobuf type {@code google.container.v1.GcfsConfig} + */ +public final class GcfsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GcfsConfig) + GcfsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcfsConfig.newBuilder() to construct. + private GcfsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcfsConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcfsConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GcfsConfig( + 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_GcfsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcfsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcfsConfig.class, + com.google.container.v1.GcfsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether to use GCFS.
+   * 
+ * + * 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.GcfsConfig)) { + return super.equals(obj); + } + com.google.container.v1.GcfsConfig other = (com.google.container.v1.GcfsConfig) 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.GcfsConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GcfsConfig 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.GcfsConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GcfsConfig parseFrom( + 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.GcfsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GcfsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.GcfsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcfsConfig parseFrom( + java.io.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.GcfsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcfsConfig parseDelimitedFrom( + java.io.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.GcfsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcfsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.GcfsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GcfsConfig contains configurations of Google Container File System
+   * (image streaming).
+   * 
+ * + * Protobuf type {@code google.container.v1.GcfsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GcfsConfig) + com.google.container.v1.GcfsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcfsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcfsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcfsConfig.class, + com.google.container.v1.GcfsConfig.Builder.class); + } + + // Construct using com.google.container.v1.GcfsConfig.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_GcfsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GcfsConfig getDefaultInstanceForType() { + return com.google.container.v1.GcfsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GcfsConfig build() { + com.google.container.v1.GcfsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GcfsConfig buildPartial() { + com.google.container.v1.GcfsConfig result = new com.google.container.v1.GcfsConfig(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.GcfsConfig) { + return mergeFrom((com.google.container.v1.GcfsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GcfsConfig other) { + if (other == com.google.container.v1.GcfsConfig.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.GcfsConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.GcfsConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether to use GCFS.
+     * 
+ * + * 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 to use GCFS.
+     * 
+ * + * 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.GcfsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GcfsConfig) + private static final com.google.container.v1.GcfsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.GcfsConfig(); + } + + public static com.google.container.v1.GcfsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcfsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcfsConfig(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.GcfsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfigOrBuilder.java new file mode 100644 index 00000000..cd3b815c --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfigOrBuilder.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 GcfsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GcfsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether to use GCFS.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java new file mode 100644 index 00000000..742f5f6b --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.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; + +/** + * + * + *
+ * Configuration for the GCP Filestore CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1.GcpFilestoreCsiDriverConfig} + */ +public final class GcpFilestoreCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.GcpFilestoreCsiDriverConfig) + GcpFilestoreCsiDriverConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcpFilestoreCsiDriverConfig.newBuilder() to construct. + private GcpFilestoreCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcpFilestoreCsiDriverConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcpFilestoreCsiDriverConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GcpFilestoreCsiDriverConfig( + 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_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcpFilestoreCsiDriverConfig.class, + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether the GCP Filestore CSI driver 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.GcpFilestoreCsiDriverConfig)) { + return super.equals(obj); + } + com.google.container.v1.GcpFilestoreCsiDriverConfig other = + (com.google.container.v1.GcpFilestoreCsiDriverConfig) 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.GcpFilestoreCsiDriverConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig 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.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + 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.GcpFilestoreCsiDriverConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + java.io.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.GcpFilestoreCsiDriverConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseDelimitedFrom( + java.io.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.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.GcpFilestoreCsiDriverConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 GCP Filestore CSI driver.
+   * 
+ * + * Protobuf type {@code google.container.v1.GcpFilestoreCsiDriverConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GcpFilestoreCsiDriverConfig) + com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcpFilestoreCsiDriverConfig.class, + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder.class); + } + + // Construct using com.google.container.v1.GcpFilestoreCsiDriverConfig.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_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { + return com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig build() { + com.google.container.v1.GcpFilestoreCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig buildPartial() { + com.google.container.v1.GcpFilestoreCsiDriverConfig result = + new com.google.container.v1.GcpFilestoreCsiDriverConfig(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.GcpFilestoreCsiDriverConfig) { + return mergeFrom((com.google.container.v1.GcpFilestoreCsiDriverConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GcpFilestoreCsiDriverConfig other) { + if (other == com.google.container.v1.GcpFilestoreCsiDriverConfig.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.GcpFilestoreCsiDriverConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.GcpFilestoreCsiDriverConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the GCP Filestore CSI driver 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 the GCP Filestore CSI driver 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.GcpFilestoreCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GcpFilestoreCsiDriverConfig) + private static final com.google.container.v1.GcpFilestoreCsiDriverConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.GcpFilestoreCsiDriverConfig(); + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcpFilestoreCsiDriverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcpFilestoreCsiDriverConfig(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.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java new file mode 100644 index 00000000..cb4455a7 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.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 GcpFilestoreCsiDriverConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GcpFilestoreCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the GCP Filestore CSI driver 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/GetOpenIDConfigRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java index f60a1ef1..6ac5a843 100644 --- 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 @@ -118,7 +118,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The cluster (project, location, cluster id) to get the discovery document
+   * The cluster (project, location, cluster name) to get the discovery document
    * for. Specified in the format `projects/*/locations/*/clusters/*`.
    * 
* @@ -142,7 +142,7 @@ public java.lang.String getParent() { * * *
-   * The cluster (project, location, cluster id) to get the discovery document
+   * The cluster (project, location, cluster name) to get the discovery document
    * for. Specified in the format `projects/*/locations/*/clusters/*`.
    * 
* @@ -485,7 +485,7 @@ public Builder mergeFrom( * * *
-     * The cluster (project, location, cluster id) to get the discovery document
+     * The cluster (project, location, cluster name) to get the discovery document
      * for. Specified in the format `projects/*/locations/*/clusters/*`.
      * 
* @@ -508,7 +508,7 @@ public java.lang.String getParent() { * * *
-     * The cluster (project, location, cluster id) to get the discovery document
+     * The cluster (project, location, cluster name) to get the discovery document
      * for. Specified in the format `projects/*/locations/*/clusters/*`.
      * 
* @@ -531,7 +531,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * The cluster (project, location, cluster id) to get the discovery document
+     * The cluster (project, location, cluster name) to get the discovery document
      * for. Specified in the format `projects/*/locations/*/clusters/*`.
      * 
* @@ -553,7 +553,7 @@ public Builder setParent(java.lang.String value) { * * *
-     * The cluster (project, location, cluster id) to get the discovery document
+     * The cluster (project, location, cluster name) to get the discovery document
      * for. Specified in the format `projects/*/locations/*/clusters/*`.
      * 
* @@ -571,7 +571,7 @@ public Builder clearParent() { * * *
-     * The cluster (project, location, cluster id) to get the discovery document
+     * The cluster (project, location, cluster name) to get the discovery document
      * for. Specified in the format `projects/*/locations/*/clusters/*`.
      * 
* 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 index 8a930e15..b0e8910c 100644 --- 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 @@ -27,7 +27,7 @@ public interface GetOpenIDConfigRequestOrBuilder * * *
-   * The cluster (project, location, cluster id) to get the discovery document
+   * The cluster (project, location, cluster name) to get the discovery document
    * for. Specified in the format `projects/*/locations/*/clusters/*`.
    * 
* @@ -40,7 +40,7 @@ public interface GetOpenIDConfigRequestOrBuilder * * *
-   * The cluster (project, location, cluster id) to get the discovery document
+   * The cluster (project, location, cluster name) to get the discovery document
    * for. Specified in the format `projects/*/locations/*/clusters/*`.
    * 
* diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfig.java new file mode 100644 index 00000000..39b8f483 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfig.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; + +/** + * + * + *
+ * ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
+ * subsetting on this cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.ILBSubsettingConfig} + */ +public final class ILBSubsettingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ILBSubsettingConfig) + ILBSubsettingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ILBSubsettingConfig.newBuilder() to construct. + private ILBSubsettingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ILBSubsettingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ILBSubsettingConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ILBSubsettingConfig( + 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_ILBSubsettingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ILBSubsettingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ILBSubsettingConfig.class, + com.google.container.v1.ILBSubsettingConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enables l4 ILB subsetting 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.ILBSubsettingConfig)) { + return super.equals(obj); + } + com.google.container.v1.ILBSubsettingConfig other = + (com.google.container.v1.ILBSubsettingConfig) 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.ILBSubsettingConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ILBSubsettingConfig 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.ILBSubsettingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ILBSubsettingConfig parseFrom( + 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.ILBSubsettingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ILBSubsettingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ILBSubsettingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ILBSubsettingConfig parseFrom( + java.io.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.ILBSubsettingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ILBSubsettingConfig parseDelimitedFrom( + java.io.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.ILBSubsettingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ILBSubsettingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.ILBSubsettingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
+   * subsetting on this cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1.ILBSubsettingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ILBSubsettingConfig) + com.google.container.v1.ILBSubsettingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ILBSubsettingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ILBSubsettingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ILBSubsettingConfig.class, + com.google.container.v1.ILBSubsettingConfig.Builder.class); + } + + // Construct using com.google.container.v1.ILBSubsettingConfig.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_ILBSubsettingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig getDefaultInstanceForType() { + return com.google.container.v1.ILBSubsettingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig build() { + com.google.container.v1.ILBSubsettingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig buildPartial() { + com.google.container.v1.ILBSubsettingConfig result = + new com.google.container.v1.ILBSubsettingConfig(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.ILBSubsettingConfig) { + return mergeFrom((com.google.container.v1.ILBSubsettingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ILBSubsettingConfig other) { + if (other == com.google.container.v1.ILBSubsettingConfig.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.ILBSubsettingConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.ILBSubsettingConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Enables l4 ILB subsetting for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enables l4 ILB subsetting 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; + } + /** + * + * + *
+     * Enables l4 ILB subsetting 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.ILBSubsettingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ILBSubsettingConfig) + private static final com.google.container.v1.ILBSubsettingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ILBSubsettingConfig(); + } + + public static com.google.container.v1.ILBSubsettingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ILBSubsettingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ILBSubsettingConfig(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.ILBSubsettingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfigOrBuilder.java new file mode 100644 index 00000000..6182c273 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfigOrBuilder.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 ILBSubsettingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ILBSubsettingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enables l4 ILB subsetting 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/LinuxNodeConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java new file mode 100644 index 00000000..32180e69 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java @@ -0,0 +1,899 @@ +/* + * 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; + +/** + * + * + *
+ * Parameters that can be configured on Linux nodes.
+ * 
+ * + * Protobuf type {@code google.container.v1.LinuxNodeConfig} + */ +public final class LinuxNodeConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.LinuxNodeConfig) + LinuxNodeConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LinuxNodeConfig.newBuilder() to construct. + private LinuxNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LinuxNodeConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LinuxNodeConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LinuxNodeConfig( + 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)) { + sysctls_ = + com.google.protobuf.MapField.newMapField( + SysctlsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry sysctls__ = + input.readMessage( + SysctlsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + sysctls_.getMutableMap().put(sysctls__.getKey(), sysctls__.getValue()); + 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_LinuxNodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetSysctls(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LinuxNodeConfig.class, + com.google.container.v1.LinuxNodeConfig.Builder.class); + } + + public static final int SYSCTLS_FIELD_NUMBER = 1; + + private static final class SysctlsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_SysctlsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField sysctls_; + + private com.google.protobuf.MapField internalGetSysctls() { + if (sysctls_ == null) { + return com.google.protobuf.MapField.emptyMapField(SysctlsDefaultEntryHolder.defaultEntry); + } + return sysctls_; + } + + public int getSysctlsCount() { + return internalGetSysctls().getMap().size(); + } + /** + * + * + *
+   * The Linux kernel parameters to be applied to the nodes and all pods running
+   * on the nodes.
+   * The following parameters are supported.
+   * net.core.netdev_max_backlog
+   * net.core.rmem_max
+   * net.core.wmem_default
+   * net.core.wmem_max
+   * net.core.optmem_max
+   * net.core.somaxconn
+   * net.ipv4.tcp_rmem
+   * net.ipv4.tcp_wmem
+   * net.ipv4.tcp_tw_reuse
+   * 
+ * + * map<string, string> sysctls = 1; + */ + @java.lang.Override + public boolean containsSysctls(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetSysctls().getMap().containsKey(key); + } + /** Use {@link #getSysctlsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSysctls() { + return getSysctlsMap(); + } + /** + * + * + *
+   * The Linux kernel parameters to be applied to the nodes and all pods running
+   * on the nodes.
+   * The following parameters are supported.
+   * net.core.netdev_max_backlog
+   * net.core.rmem_max
+   * net.core.wmem_default
+   * net.core.wmem_max
+   * net.core.optmem_max
+   * net.core.somaxconn
+   * net.ipv4.tcp_rmem
+   * net.ipv4.tcp_wmem
+   * net.ipv4.tcp_tw_reuse
+   * 
+ * + * map<string, string> sysctls = 1; + */ + @java.lang.Override + public java.util.Map getSysctlsMap() { + return internalGetSysctls().getMap(); + } + /** + * + * + *
+   * The Linux kernel parameters to be applied to the nodes and all pods running
+   * on the nodes.
+   * The following parameters are supported.
+   * net.core.netdev_max_backlog
+   * net.core.rmem_max
+   * net.core.wmem_default
+   * net.core.wmem_max
+   * net.core.optmem_max
+   * net.core.somaxconn
+   * net.ipv4.tcp_rmem
+   * net.ipv4.tcp_wmem
+   * net.ipv4.tcp_tw_reuse
+   * 
+ * + * map<string, string> sysctls = 1; + */ + @java.lang.Override + public java.lang.String getSysctlsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetSysctls().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The Linux kernel parameters to be applied to the nodes and all pods running
+   * on the nodes.
+   * The following parameters are supported.
+   * net.core.netdev_max_backlog
+   * net.core.rmem_max
+   * net.core.wmem_default
+   * net.core.wmem_max
+   * net.core.optmem_max
+   * net.core.somaxconn
+   * net.ipv4.tcp_rmem
+   * net.ipv4.tcp_wmem
+   * net.ipv4.tcp_tw_reuse
+   * 
+ * + * map<string, string> sysctls = 1; + */ + @java.lang.Override + public java.lang.String getSysctlsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetSysctls().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetSysctls(), SysctlsDefaultEntryHolder.defaultEntry, 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetSysctls().getMap().entrySet()) { + com.google.protobuf.MapEntry sysctls__ = + SysctlsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sysctls__); + } + 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.LinuxNodeConfig)) { + return super.equals(obj); + } + com.google.container.v1.LinuxNodeConfig other = (com.google.container.v1.LinuxNodeConfig) obj; + + if (!internalGetSysctls().equals(other.internalGetSysctls())) 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 (!internalGetSysctls().getMap().isEmpty()) { + hash = (37 * hash) + SYSCTLS_FIELD_NUMBER; + hash = (53 * hash) + internalGetSysctls().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.LinuxNodeConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LinuxNodeConfig 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.LinuxNodeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LinuxNodeConfig parseFrom( + 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.LinuxNodeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LinuxNodeConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.LinuxNodeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.LinuxNodeConfig parseFrom( + java.io.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.LinuxNodeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.LinuxNodeConfig parseDelimitedFrom( + java.io.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.LinuxNodeConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.LinuxNodeConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.LinuxNodeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * Protobuf type {@code google.container.v1.LinuxNodeConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.LinuxNodeConfig) + com.google.container.v1.LinuxNodeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetSysctls(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableSysctls(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LinuxNodeConfig.class, + com.google.container.v1.LinuxNodeConfig.Builder.class); + } + + // Construct using com.google.container.v1.LinuxNodeConfig.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(); + internalGetMutableSysctls().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig getDefaultInstanceForType() { + return com.google.container.v1.LinuxNodeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig build() { + com.google.container.v1.LinuxNodeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig buildPartial() { + com.google.container.v1.LinuxNodeConfig result = + new com.google.container.v1.LinuxNodeConfig(this); + int from_bitField0_ = bitField0_; + result.sysctls_ = internalGetSysctls(); + result.sysctls_.makeImmutable(); + 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.LinuxNodeConfig) { + return mergeFrom((com.google.container.v1.LinuxNodeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LinuxNodeConfig other) { + if (other == com.google.container.v1.LinuxNodeConfig.getDefaultInstance()) return this; + internalGetMutableSysctls().mergeFrom(other.internalGetSysctls()); + 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.LinuxNodeConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.LinuxNodeConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField sysctls_; + + private com.google.protobuf.MapField internalGetSysctls() { + if (sysctls_ == null) { + return com.google.protobuf.MapField.emptyMapField(SysctlsDefaultEntryHolder.defaultEntry); + } + return sysctls_; + } + + private com.google.protobuf.MapField + internalGetMutableSysctls() { + onChanged(); + ; + if (sysctls_ == null) { + sysctls_ = com.google.protobuf.MapField.newMapField(SysctlsDefaultEntryHolder.defaultEntry); + } + if (!sysctls_.isMutable()) { + sysctls_ = sysctls_.copy(); + } + return sysctls_; + } + + public int getSysctlsCount() { + return internalGetSysctls().getMap().size(); + } + /** + * + * + *
+     * The Linux kernel parameters to be applied to the nodes and all pods running
+     * on the nodes.
+     * The following parameters are supported.
+     * net.core.netdev_max_backlog
+     * net.core.rmem_max
+     * net.core.wmem_default
+     * net.core.wmem_max
+     * net.core.optmem_max
+     * net.core.somaxconn
+     * net.ipv4.tcp_rmem
+     * net.ipv4.tcp_wmem
+     * net.ipv4.tcp_tw_reuse
+     * 
+ * + * map<string, string> sysctls = 1; + */ + @java.lang.Override + public boolean containsSysctls(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetSysctls().getMap().containsKey(key); + } + /** Use {@link #getSysctlsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSysctls() { + return getSysctlsMap(); + } + /** + * + * + *
+     * The Linux kernel parameters to be applied to the nodes and all pods running
+     * on the nodes.
+     * The following parameters are supported.
+     * net.core.netdev_max_backlog
+     * net.core.rmem_max
+     * net.core.wmem_default
+     * net.core.wmem_max
+     * net.core.optmem_max
+     * net.core.somaxconn
+     * net.ipv4.tcp_rmem
+     * net.ipv4.tcp_wmem
+     * net.ipv4.tcp_tw_reuse
+     * 
+ * + * map<string, string> sysctls = 1; + */ + @java.lang.Override + public java.util.Map getSysctlsMap() { + return internalGetSysctls().getMap(); + } + /** + * + * + *
+     * The Linux kernel parameters to be applied to the nodes and all pods running
+     * on the nodes.
+     * The following parameters are supported.
+     * net.core.netdev_max_backlog
+     * net.core.rmem_max
+     * net.core.wmem_default
+     * net.core.wmem_max
+     * net.core.optmem_max
+     * net.core.somaxconn
+     * net.ipv4.tcp_rmem
+     * net.ipv4.tcp_wmem
+     * net.ipv4.tcp_tw_reuse
+     * 
+ * + * map<string, string> sysctls = 1; + */ + @java.lang.Override + public java.lang.String getSysctlsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetSysctls().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The Linux kernel parameters to be applied to the nodes and all pods running
+     * on the nodes.
+     * The following parameters are supported.
+     * net.core.netdev_max_backlog
+     * net.core.rmem_max
+     * net.core.wmem_default
+     * net.core.wmem_max
+     * net.core.optmem_max
+     * net.core.somaxconn
+     * net.ipv4.tcp_rmem
+     * net.ipv4.tcp_wmem
+     * net.ipv4.tcp_tw_reuse
+     * 
+ * + * map<string, string> sysctls = 1; + */ + @java.lang.Override + public java.lang.String getSysctlsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetSysctls().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSysctls() { + internalGetMutableSysctls().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The Linux kernel parameters to be applied to the nodes and all pods running
+     * on the nodes.
+     * The following parameters are supported.
+     * net.core.netdev_max_backlog
+     * net.core.rmem_max
+     * net.core.wmem_default
+     * net.core.wmem_max
+     * net.core.optmem_max
+     * net.core.somaxconn
+     * net.ipv4.tcp_rmem
+     * net.ipv4.tcp_wmem
+     * net.ipv4.tcp_tw_reuse
+     * 
+ * + * map<string, string> sysctls = 1; + */ + public Builder removeSysctls(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableSysctls().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableSysctls() { + return internalGetMutableSysctls().getMutableMap(); + } + /** + * + * + *
+     * The Linux kernel parameters to be applied to the nodes and all pods running
+     * on the nodes.
+     * The following parameters are supported.
+     * net.core.netdev_max_backlog
+     * net.core.rmem_max
+     * net.core.wmem_default
+     * net.core.wmem_max
+     * net.core.optmem_max
+     * net.core.somaxconn
+     * net.ipv4.tcp_rmem
+     * net.ipv4.tcp_wmem
+     * net.ipv4.tcp_tw_reuse
+     * 
+ * + * map<string, string> sysctls = 1; + */ + public Builder putSysctls(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableSysctls().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The Linux kernel parameters to be applied to the nodes and all pods running
+     * on the nodes.
+     * The following parameters are supported.
+     * net.core.netdev_max_backlog
+     * net.core.rmem_max
+     * net.core.wmem_default
+     * net.core.wmem_max
+     * net.core.optmem_max
+     * net.core.somaxconn
+     * net.ipv4.tcp_rmem
+     * net.ipv4.tcp_wmem
+     * net.ipv4.tcp_tw_reuse
+     * 
+ * + * map<string, string> sysctls = 1; + */ + public Builder putAllSysctls(java.util.Map values) { + internalGetMutableSysctls().getMutableMap().putAll(values); + 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.LinuxNodeConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.LinuxNodeConfig) + private static final com.google.container.v1.LinuxNodeConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.LinuxNodeConfig(); + } + + public static com.google.container.v1.LinuxNodeConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinuxNodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LinuxNodeConfig(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.LinuxNodeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java new file mode 100644 index 00000000..8e7f6033 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java @@ -0,0 +1,134 @@ +/* + * 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 LinuxNodeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LinuxNodeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Linux kernel parameters to be applied to the nodes and all pods running
+   * on the nodes.
+   * The following parameters are supported.
+   * net.core.netdev_max_backlog
+   * net.core.rmem_max
+   * net.core.wmem_default
+   * net.core.wmem_max
+   * net.core.optmem_max
+   * net.core.somaxconn
+   * net.ipv4.tcp_rmem
+   * net.ipv4.tcp_wmem
+   * net.ipv4.tcp_tw_reuse
+   * 
+ * + * map<string, string> sysctls = 1; + */ + int getSysctlsCount(); + /** + * + * + *
+   * The Linux kernel parameters to be applied to the nodes and all pods running
+   * on the nodes.
+   * The following parameters are supported.
+   * net.core.netdev_max_backlog
+   * net.core.rmem_max
+   * net.core.wmem_default
+   * net.core.wmem_max
+   * net.core.optmem_max
+   * net.core.somaxconn
+   * net.ipv4.tcp_rmem
+   * net.ipv4.tcp_wmem
+   * net.ipv4.tcp_tw_reuse
+   * 
+ * + * map<string, string> sysctls = 1; + */ + boolean containsSysctls(java.lang.String key); + /** Use {@link #getSysctlsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getSysctls(); + /** + * + * + *
+   * The Linux kernel parameters to be applied to the nodes and all pods running
+   * on the nodes.
+   * The following parameters are supported.
+   * net.core.netdev_max_backlog
+   * net.core.rmem_max
+   * net.core.wmem_default
+   * net.core.wmem_max
+   * net.core.optmem_max
+   * net.core.somaxconn
+   * net.ipv4.tcp_rmem
+   * net.ipv4.tcp_wmem
+   * net.ipv4.tcp_tw_reuse
+   * 
+ * + * map<string, string> sysctls = 1; + */ + java.util.Map getSysctlsMap(); + /** + * + * + *
+   * The Linux kernel parameters to be applied to the nodes and all pods running
+   * on the nodes.
+   * The following parameters are supported.
+   * net.core.netdev_max_backlog
+   * net.core.rmem_max
+   * net.core.wmem_default
+   * net.core.wmem_max
+   * net.core.optmem_max
+   * net.core.somaxconn
+   * net.ipv4.tcp_rmem
+   * net.ipv4.tcp_wmem
+   * net.ipv4.tcp_tw_reuse
+   * 
+ * + * map<string, string> sysctls = 1; + */ + java.lang.String getSysctlsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The Linux kernel parameters to be applied to the nodes and all pods running
+   * on the nodes.
+   * The following parameters are supported.
+   * net.core.netdev_max_backlog
+   * net.core.rmem_max
+   * net.core.wmem_default
+   * net.core.wmem_max
+   * net.core.optmem_max
+   * net.core.somaxconn
+   * net.ipv4.tcp_rmem
+   * net.ipv4.tcp_wmem
+   * net.ipv4.tcp_tw_reuse
+   * 
+ * + * map<string, string> sysctls = 1; + */ + java.lang.String getSysctlsOrThrow(java.lang.String key); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java new file mode 100644 index 00000000..05339097 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java @@ -0,0 +1,1030 @@ +/* + * 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; + +/** + * + * + *
+ * LoggingComponentConfig is cluster logging component configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.LoggingComponentConfig} + */ +public final class LoggingComponentConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.LoggingComponentConfig) + LoggingComponentConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LoggingComponentConfig.newBuilder() to construct. + private LoggingComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LoggingComponentConfig() { + enableComponents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LoggingComponentConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LoggingComponentConfig( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + enableComponents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + enableComponents_.add(rawValue); + break; + } + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + enableComponents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + enableComponents_.add(rawValue); + } + input.popLimit(oldLimit); + 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)) { + enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); + } + 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_LoggingComponentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LoggingComponentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LoggingComponentConfig.class, + com.google.container.v1.LoggingComponentConfig.Builder.class); + } + + /** + * + * + *
+   * GKE components exposing logs
+   * 
+ * + * Protobuf enum {@code google.container.v1.LoggingComponentConfig.Component} + */ + public enum Component implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * COMPONENT_UNSPECIFIED = 0; + */ + COMPONENT_UNSPECIFIED(0), + /** + * + * + *
+     * system components
+     * 
+ * + * SYSTEM_COMPONENTS = 1; + */ + SYSTEM_COMPONENTS(1), + /** + * + * + *
+     * workloads
+     * 
+ * + * WORKLOADS = 2; + */ + WORKLOADS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * COMPONENT_UNSPECIFIED = 0; + */ + public static final int COMPONENT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * system components
+     * 
+ * + * SYSTEM_COMPONENTS = 1; + */ + public static final int SYSTEM_COMPONENTS_VALUE = 1; + /** + * + * + *
+     * workloads
+     * 
+ * + * WORKLOADS = 2; + */ + public static final int WORKLOADS_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 Component 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 Component forNumber(int value) { + switch (value) { + case 0: + return COMPONENT_UNSPECIFIED; + case 1: + return SYSTEM_COMPONENTS; + case 2: + return WORKLOADS; + 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 Component findValueByNumber(int number) { + return Component.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.LoggingComponentConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Component[] VALUES = values(); + + public static Component 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 Component(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.LoggingComponentConfig.Component) + } + + public static final int ENABLE_COMPONENTS_FIELD_NUMBER = 1; + private java.util.List enableComponents_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component> + enableComponents_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>() { + public com.google.container.v1.LoggingComponentConfig.Component convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.container.v1.LoggingComponentConfig.Component result = + com.google.container.v1.LoggingComponentConfig.Component.valueOf(from); + return result == null + ? com.google.container.v1.LoggingComponentConfig.Component.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enableComponents. + */ + @java.lang.Override + public java.util.List + getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>( + enableComponents_, enableComponents_converter_); + } + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return The count of enableComponents. + */ + @java.lang.Override + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + @java.lang.Override + public java.util.List getEnableComponentsValueList() { + return enableComponents_; + } + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + @java.lang.Override + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + + private int enableComponentsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getEnableComponentsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); + } + for (int i = 0; i < enableComponents_.size(); i++) { + output.writeEnumNoTag(enableComponents_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < enableComponents_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(enableComponents_.get(i)); + } + size += dataSize; + if (!getEnableComponentsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + enableComponentsMemoizedSerializedSize = dataSize; + } + 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.LoggingComponentConfig)) { + return super.equals(obj); + } + com.google.container.v1.LoggingComponentConfig other = + (com.google.container.v1.LoggingComponentConfig) obj; + + if (!enableComponents_.equals(other.enableComponents_)) 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 (getEnableComponentsCount() > 0) { + hash = (37 * hash) + ENABLE_COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + enableComponents_.hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.LoggingComponentConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LoggingComponentConfig 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.LoggingComponentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LoggingComponentConfig parseFrom( + 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.LoggingComponentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LoggingComponentConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.LoggingComponentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.LoggingComponentConfig parseFrom( + java.io.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.LoggingComponentConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.LoggingComponentConfig parseDelimitedFrom( + java.io.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.LoggingComponentConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.LoggingComponentConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.LoggingComponentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * LoggingComponentConfig is cluster logging component configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1.LoggingComponentConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.LoggingComponentConfig) + com.google.container.v1.LoggingComponentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LoggingComponentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LoggingComponentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LoggingComponentConfig.class, + com.google.container.v1.LoggingComponentConfig.Builder.class); + } + + // Construct using com.google.container.v1.LoggingComponentConfig.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(); + enableComponents_ = java.util.Collections.emptyList(); + 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_LoggingComponentConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig getDefaultInstanceForType() { + return com.google.container.v1.LoggingComponentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig build() { + com.google.container.v1.LoggingComponentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig buildPartial() { + com.google.container.v1.LoggingComponentConfig result = + new com.google.container.v1.LoggingComponentConfig(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.enableComponents_ = enableComponents_; + 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.LoggingComponentConfig) { + return mergeFrom((com.google.container.v1.LoggingComponentConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LoggingComponentConfig other) { + if (other == com.google.container.v1.LoggingComponentConfig.getDefaultInstance()) return this; + if (!other.enableComponents_.isEmpty()) { + if (enableComponents_.isEmpty()) { + enableComponents_ = other.enableComponents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnableComponentsIsMutable(); + enableComponents_.addAll(other.enableComponents_); + } + 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.LoggingComponentConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.LoggingComponentConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List enableComponents_ = java.util.Collections.emptyList(); + + private void ensureEnableComponentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = new java.util.ArrayList(enableComponents_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enableComponents. + */ + public java.util.List + getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>( + enableComponents_, enableComponents_converter_); + } + /** + * + * + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return The count of enableComponents. + */ + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + * + * + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + public com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + * + * + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param index The index to set the value at. + * @param value The enableComponents to set. + * @return This builder for chaining. + */ + public Builder setEnableComponents( + int index, com.google.container.v1.LoggingComponentConfig.Component value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableComponentsIsMutable(); + enableComponents_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param value The enableComponents to add. + * @return This builder for chaining. + */ + public Builder addEnableComponents( + com.google.container.v1.LoggingComponentConfig.Component value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableComponentsIsMutable(); + enableComponents_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param values The enableComponents to add. + * @return This builder for chaining. + */ + public Builder addAllEnableComponents( + java.lang.Iterable + values) { + ensureEnableComponentsIsMutable(); + for (com.google.container.v1.LoggingComponentConfig.Component value : values) { + enableComponents_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableComponents() { + enableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + public java.util.List getEnableComponentsValueList() { + return java.util.Collections.unmodifiableList(enableComponents_); + } + /** + * + * + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + /** + * + * + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + * @return This builder for chaining. + */ + public Builder setEnableComponentsValue(int index, int value) { + ensureEnableComponentsIsMutable(); + enableComponents_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param value The enum numeric value on the wire for enableComponents to add. + * @return This builder for chaining. + */ + public Builder addEnableComponentsValue(int value) { + ensureEnableComponentsIsMutable(); + enableComponents_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param values The enum numeric values on the wire for enableComponents to add. + * @return This builder for chaining. + */ + public Builder addAllEnableComponentsValue(java.lang.Iterable values) { + ensureEnableComponentsIsMutable(); + for (int value : values) { + enableComponents_.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.LoggingComponentConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.LoggingComponentConfig) + private static final com.google.container.v1.LoggingComponentConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.LoggingComponentConfig(); + } + + public static com.google.container.v1.LoggingComponentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingComponentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LoggingComponentConfig(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.LoggingComponentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfigOrBuilder.java new file mode 100644 index 00000000..aaf90da8 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfigOrBuilder.java @@ -0,0 +1,94 @@ +/* + * 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 LoggingComponentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LoggingComponentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enableComponents. + */ + java.util.List + getEnableComponentsList(); + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return The count of enableComponents. + */ + int getEnableComponentsCount(); + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index); + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + java.util.List getEnableComponentsValueList(); + /** + * + * + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + int getEnableComponentsValue(int index); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfig.java new file mode 100644 index 00000000..f123c84e --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfig.java @@ -0,0 +1,730 @@ +/* + * 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; + +/** + * + * + *
+ * LoggingConfig is cluster logging configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.LoggingConfig} + */ +public final class LoggingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.LoggingConfig) + LoggingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LoggingConfig.newBuilder() to construct. + private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LoggingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LoggingConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LoggingConfig( + 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: + { + com.google.container.v1.LoggingComponentConfig.Builder subBuilder = null; + if (componentConfig_ != null) { + subBuilder = componentConfig_.toBuilder(); + } + componentConfig_ = + input.readMessage( + com.google.container.v1.LoggingComponentConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(componentConfig_); + componentConfig_ = subBuilder.buildPartial(); + } + + 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_LoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LoggingConfig.class, + com.google.container.v1.LoggingConfig.Builder.class); + } + + public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1.LoggingComponentConfig componentConfig_; + /** + * + * + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * + * @return Whether the componentConfig field is set. + */ + @java.lang.Override + public boolean hasComponentConfig() { + return componentConfig_ != null; + } + /** + * + * + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * + * @return The componentConfig. + */ + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig getComponentConfig() { + return componentConfig_ == null + ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() + : componentConfig_; + } + /** + * + * + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + @java.lang.Override + public com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder() { + return getComponentConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (componentConfig_ != null) { + output.writeMessage(1, getComponentConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (componentConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getComponentConfig()); + } + 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.LoggingConfig)) { + return super.equals(obj); + } + com.google.container.v1.LoggingConfig other = (com.google.container.v1.LoggingConfig) obj; + + if (hasComponentConfig() != other.hasComponentConfig()) return false; + if (hasComponentConfig()) { + if (!getComponentConfig().equals(other.getComponentConfig())) 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 (hasComponentConfig()) { + hash = (37 * hash) + COMPONENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getComponentConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.LoggingConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LoggingConfig 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.LoggingConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LoggingConfig parseFrom( + 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.LoggingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LoggingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.LoggingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.LoggingConfig parseFrom( + java.io.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.LoggingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.LoggingConfig parseDelimitedFrom( + java.io.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.LoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.LoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.LoggingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * LoggingConfig is cluster logging configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1.LoggingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.LoggingConfig) + com.google.container.v1.LoggingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LoggingConfig.class, + com.google.container.v1.LoggingConfig.Builder.class); + } + + // Construct using com.google.container.v1.LoggingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (componentConfigBuilder_ == null) { + componentConfig_ = null; + } else { + componentConfig_ = null; + componentConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LoggingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LoggingConfig getDefaultInstanceForType() { + return com.google.container.v1.LoggingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LoggingConfig build() { + com.google.container.v1.LoggingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LoggingConfig buildPartial() { + com.google.container.v1.LoggingConfig result = + new com.google.container.v1.LoggingConfig(this); + if (componentConfigBuilder_ == null) { + result.componentConfig_ = componentConfig_; + } else { + result.componentConfig_ = componentConfigBuilder_.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.LoggingConfig) { + return mergeFrom((com.google.container.v1.LoggingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LoggingConfig other) { + if (other == com.google.container.v1.LoggingConfig.getDefaultInstance()) return this; + if (other.hasComponentConfig()) { + mergeComponentConfig(other.getComponentConfig()); + } + 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.LoggingConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.LoggingConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1.LoggingComponentConfig componentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingComponentConfig, + com.google.container.v1.LoggingComponentConfig.Builder, + com.google.container.v1.LoggingComponentConfigOrBuilder> + componentConfigBuilder_; + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * + * @return Whether the componentConfig field is set. + */ + public boolean hasComponentConfig() { + return componentConfigBuilder_ != null || componentConfig_ != null; + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * + * @return The componentConfig. + */ + public com.google.container.v1.LoggingComponentConfig getComponentConfig() { + if (componentConfigBuilder_ == null) { + return componentConfig_ == null + ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() + : componentConfig_; + } else { + return componentConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public Builder setComponentConfig(com.google.container.v1.LoggingComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + componentConfig_ = value; + onChanged(); + } else { + componentConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public Builder setComponentConfig( + com.google.container.v1.LoggingComponentConfig.Builder builderForValue) { + if (componentConfigBuilder_ == null) { + componentConfig_ = builderForValue.build(); + onChanged(); + } else { + componentConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public Builder mergeComponentConfig(com.google.container.v1.LoggingComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (componentConfig_ != null) { + componentConfig_ = + com.google.container.v1.LoggingComponentConfig.newBuilder(componentConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + componentConfig_ = value; + } + onChanged(); + } else { + componentConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public Builder clearComponentConfig() { + if (componentConfigBuilder_ == null) { + componentConfig_ = null; + onChanged(); + } else { + componentConfig_ = null; + componentConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public com.google.container.v1.LoggingComponentConfig.Builder getComponentConfigBuilder() { + + onChanged(); + return getComponentConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder() { + if (componentConfigBuilder_ != null) { + return componentConfigBuilder_.getMessageOrBuilder(); + } else { + return componentConfig_ == null + ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() + : componentConfig_; + } + } + /** + * + * + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingComponentConfig, + com.google.container.v1.LoggingComponentConfig.Builder, + com.google.container.v1.LoggingComponentConfigOrBuilder> + getComponentConfigFieldBuilder() { + if (componentConfigBuilder_ == null) { + componentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingComponentConfig, + com.google.container.v1.LoggingComponentConfig.Builder, + com.google.container.v1.LoggingComponentConfigOrBuilder>( + getComponentConfig(), getParentForChildren(), isClean()); + componentConfig_ = null; + } + return componentConfigBuilder_; + } + + @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.LoggingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.LoggingConfig) + private static final com.google.container.v1.LoggingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.LoggingConfig(); + } + + public static com.google.container.v1.LoggingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LoggingConfig(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.LoggingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfigOrBuilder.java new file mode 100644 index 00000000..3f338b9f --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfigOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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 LoggingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LoggingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * + * @return Whether the componentConfig field is set. + */ + boolean hasComponentConfig(); + /** + * + * + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * + * @return The componentConfig. + */ + com.google.container.v1.LoggingComponentConfig getComponentConfig(); + /** + * + * + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java new file mode 100644 index 00000000..b59e78dd --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java @@ -0,0 +1,789 @@ +/* + * 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; + +/** + * + * + *
+ * Represents the Maintenance exclusion option.
+ * 
+ * + * Protobuf type {@code google.container.v1.MaintenanceExclusionOptions} + */ +public final class MaintenanceExclusionOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.MaintenanceExclusionOptions) + MaintenanceExclusionOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaintenanceExclusionOptions.newBuilder() to construct. + private MaintenanceExclusionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenanceExclusionOptions() { + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenanceExclusionOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MaintenanceExclusionOptions( + 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(); + + scope_ = 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_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MaintenanceExclusionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MaintenanceExclusionOptions.class, + com.google.container.v1.MaintenanceExclusionOptions.Builder.class); + } + + /** + * + * + *
+   * Scope of exclusion.
+   * 
+ * + * Protobuf enum {@code google.container.v1.MaintenanceExclusionOptions.Scope} + */ + public enum Scope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
+     * upgrades across control planes and nodes. This is the default exclusion
+     * behavior.
+     * 
+ * + * NO_UPGRADES = 0; + */ + NO_UPGRADES(0), + /** + * + * + *
+     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
+     * patches are allowed.
+     * 
+ * + * NO_MINOR_UPGRADES = 1; + */ + NO_MINOR_UPGRADES(1), + /** + * + * + *
+     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
+     * and also exclude all node pool upgrades. Only control
+     * plane patches are allowed.
+     * 
+ * + * NO_MINOR_OR_NODE_UPGRADES = 2; + */ + NO_MINOR_OR_NODE_UPGRADES(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
+     * upgrades across control planes and nodes. This is the default exclusion
+     * behavior.
+     * 
+ * + * NO_UPGRADES = 0; + */ + public static final int NO_UPGRADES_VALUE = 0; + /** + * + * + *
+     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
+     * patches are allowed.
+     * 
+ * + * NO_MINOR_UPGRADES = 1; + */ + public static final int NO_MINOR_UPGRADES_VALUE = 1; + /** + * + * + *
+     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
+     * and also exclude all node pool upgrades. Only control
+     * plane patches are allowed.
+     * 
+ * + * NO_MINOR_OR_NODE_UPGRADES = 2; + */ + public static final int NO_MINOR_OR_NODE_UPGRADES_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 Scope 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 Scope forNumber(int value) { + switch (value) { + case 0: + return NO_UPGRADES; + case 1: + return NO_MINOR_UPGRADES; + case 2: + return NO_MINOR_OR_NODE_UPGRADES; + 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 Scope findValueByNumber(int number) { + return Scope.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.MaintenanceExclusionOptions.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Scope[] VALUES = values(); + + public static Scope 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 Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.MaintenanceExclusionOptions.Scope) + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_; + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The scope. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions.Scope getScope() { + @SuppressWarnings("deprecation") + com.google.container.v1.MaintenanceExclusionOptions.Scope result = + com.google.container.v1.MaintenanceExclusionOptions.Scope.valueOf(scope_); + return result == null + ? com.google.container.v1.MaintenanceExclusionOptions.Scope.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 (scope_ + != com.google.container.v1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { + output.writeEnum(1, scope_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scope_ + != com.google.container.v1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scope_); + } + 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.MaintenanceExclusionOptions)) { + return super.equals(obj); + } + com.google.container.v1.MaintenanceExclusionOptions other = + (com.google.container.v1.MaintenanceExclusionOptions) obj; + + if (scope_ != other.scope_) 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) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.MaintenanceExclusionOptions 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.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + 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.MaintenanceExclusionOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + java.io.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.MaintenanceExclusionOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.MaintenanceExclusionOptions parseDelimitedFrom( + java.io.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.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.MaintenanceExclusionOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents the Maintenance exclusion option.
+   * 
+ * + * Protobuf type {@code google.container.v1.MaintenanceExclusionOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MaintenanceExclusionOptions) + com.google.container.v1.MaintenanceExclusionOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MaintenanceExclusionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MaintenanceExclusionOptions.class, + com.google.container.v1.MaintenanceExclusionOptions.Builder.class); + } + + // Construct using com.google.container.v1.MaintenanceExclusionOptions.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(); + scope_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions getDefaultInstanceForType() { + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions build() { + com.google.container.v1.MaintenanceExclusionOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions buildPartial() { + com.google.container.v1.MaintenanceExclusionOptions result = + new com.google.container.v1.MaintenanceExclusionOptions(this); + result.scope_ = scope_; + 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.MaintenanceExclusionOptions) { + return mergeFrom((com.google.container.v1.MaintenanceExclusionOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MaintenanceExclusionOptions other) { + if (other == com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance()) + return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + 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.MaintenanceExclusionOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.MaintenanceExclusionOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The scope. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions.Scope getScope() { + @SuppressWarnings("deprecation") + com.google.container.v1.MaintenanceExclusionOptions.Scope result = + com.google.container.v1.MaintenanceExclusionOptions.Scope.valueOf(scope_); + return result == null + ? com.google.container.v1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.container.v1.MaintenanceExclusionOptions.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return This builder for chaining. + */ + public Builder clearScope() { + + scope_ = 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.MaintenanceExclusionOptions) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MaintenanceExclusionOptions) + private static final com.google.container.v1.MaintenanceExclusionOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.MaintenanceExclusionOptions(); + } + + public static com.google.container.v1.MaintenanceExclusionOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceExclusionOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenanceExclusionOptions(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.MaintenanceExclusionOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java new file mode 100644 index 00000000..b9753b40 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.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 MaintenanceExclusionOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MaintenanceExclusionOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The scope. + */ + com.google.container.v1.MaintenanceExclusionOptions.Scope getScope(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificates.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificates.java new file mode 100644 index 00000000..b7264c92 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificates.java @@ -0,0 +1,801 @@ +/* + * 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 issuance of mTLS keys and certificates to Kubernetes pods.
+ * 
+ * + * Protobuf type {@code google.container.v1.MeshCertificates} + */ +public final class MeshCertificates extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.MeshCertificates) + MeshCertificatesOrBuilder { + private static final long serialVersionUID = 0L; + // Use MeshCertificates.newBuilder() to construct. + private MeshCertificates(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MeshCertificates() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MeshCertificates(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MeshCertificates( + 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: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (enableCertificates_ != null) { + subBuilder = enableCertificates_.toBuilder(); + } + enableCertificates_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(enableCertificates_); + enableCertificates_ = subBuilder.buildPartial(); + } + + 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_MeshCertificates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MeshCertificates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MeshCertificates.class, + com.google.container.v1.MeshCertificates.Builder.class); + } + + public static final int ENABLE_CERTIFICATES_FIELD_NUMBER = 1; + private com.google.protobuf.BoolValue enableCertificates_; + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return Whether the enableCertificates field is set. + */ + @java.lang.Override + public boolean hasEnableCertificates() { + return enableCertificates_ != null; + } + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return The enableCertificates. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getEnableCertificates() { + return enableCertificates_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableCertificates_; + } + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + return getEnableCertificates(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableCertificates_ != null) { + output.writeMessage(1, getEnableCertificates()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableCertificates_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnableCertificates()); + } + 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.MeshCertificates)) { + return super.equals(obj); + } + com.google.container.v1.MeshCertificates other = (com.google.container.v1.MeshCertificates) obj; + + if (hasEnableCertificates() != other.hasEnableCertificates()) return false; + if (hasEnableCertificates()) { + if (!getEnableCertificates().equals(other.getEnableCertificates())) 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 (hasEnableCertificates()) { + hash = (37 * hash) + ENABLE_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getEnableCertificates().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MeshCertificates parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.MeshCertificates 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.MeshCertificates parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.MeshCertificates parseFrom( + 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.MeshCertificates parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.MeshCertificates parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.MeshCertificates parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.MeshCertificates parseFrom( + java.io.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.MeshCertificates parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.MeshCertificates parseDelimitedFrom( + java.io.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.MeshCertificates parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.MeshCertificates parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.MeshCertificates prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 issuance of mTLS keys and certificates to Kubernetes pods.
+   * 
+ * + * Protobuf type {@code google.container.v1.MeshCertificates} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MeshCertificates) + com.google.container.v1.MeshCertificatesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MeshCertificates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MeshCertificates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MeshCertificates.class, + com.google.container.v1.MeshCertificates.Builder.class); + } + + // Construct using com.google.container.v1.MeshCertificates.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = null; + } else { + enableCertificates_ = null; + enableCertificatesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MeshCertificates_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MeshCertificates getDefaultInstanceForType() { + return com.google.container.v1.MeshCertificates.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MeshCertificates build() { + com.google.container.v1.MeshCertificates result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MeshCertificates buildPartial() { + com.google.container.v1.MeshCertificates result = + new com.google.container.v1.MeshCertificates(this); + if (enableCertificatesBuilder_ == null) { + result.enableCertificates_ = enableCertificates_; + } else { + result.enableCertificates_ = enableCertificatesBuilder_.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.MeshCertificates) { + return mergeFrom((com.google.container.v1.MeshCertificates) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MeshCertificates other) { + if (other == com.google.container.v1.MeshCertificates.getDefaultInstance()) return this; + if (other.hasEnableCertificates()) { + mergeEnableCertificates(other.getEnableCertificates()); + } + 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.MeshCertificates parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.MeshCertificates) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.BoolValue enableCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + enableCertificatesBuilder_; + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return Whether the enableCertificates field is set. + */ + public boolean hasEnableCertificates() { + return enableCertificatesBuilder_ != null || enableCertificates_ != null; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return The enableCertificates. + */ + public com.google.protobuf.BoolValue getEnableCertificates() { + if (enableCertificatesBuilder_ == null) { + return enableCertificates_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableCertificates_; + } else { + return enableCertificatesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enableCertificates_ = value; + onChanged(); + } else { + enableCertificatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates(com.google.protobuf.BoolValue.Builder builderForValue) { + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = builderForValue.build(); + onChanged(); + } else { + enableCertificatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder mergeEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (enableCertificates_ != null) { + enableCertificates_ = + com.google.protobuf.BoolValue.newBuilder(enableCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + enableCertificates_ = value; + } + onChanged(); + } else { + enableCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder clearEnableCertificates() { + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = null; + onChanged(); + } else { + enableCertificates_ = null; + enableCertificatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { + + onChanged(); + return getEnableCertificatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + if (enableCertificatesBuilder_ != null) { + return enableCertificatesBuilder_.getMessageOrBuilder(); + } else { + return enableCertificates_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableCertificates_; + } + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getEnableCertificatesFieldBuilder() { + if (enableCertificatesBuilder_ == null) { + enableCertificatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getEnableCertificates(), getParentForChildren(), isClean()); + enableCertificates_ = null; + } + return enableCertificatesBuilder_; + } + + @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.MeshCertificates) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MeshCertificates) + private static final com.google.container.v1.MeshCertificates DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.MeshCertificates(); + } + + public static com.google.container.v1.MeshCertificates getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeshCertificates parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MeshCertificates(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.MeshCertificates getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificatesOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificatesOrBuilder.java new file mode 100644 index 00000000..e89502bb --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificatesOrBuilder.java @@ -0,0 +1,78 @@ +/* + * 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 MeshCertificatesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MeshCertificates) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return Whether the enableCertificates field is set. + */ + boolean hasEnableCertificates(); + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return The enableCertificates. + */ + com.google.protobuf.BoolValue getEnableCertificates(); + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java new file mode 100644 index 00000000..aeb20d6e --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java @@ -0,0 +1,1043 @@ +/* + * 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; + +/** + * + * + *
+ * MonitoringComponentConfig is cluster monitoring component configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.MonitoringComponentConfig} + */ +public final class MonitoringComponentConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.MonitoringComponentConfig) + MonitoringComponentConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MonitoringComponentConfig.newBuilder() to construct. + private MonitoringComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MonitoringComponentConfig() { + enableComponents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MonitoringComponentConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MonitoringComponentConfig( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + enableComponents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + enableComponents_.add(rawValue); + break; + } + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + enableComponents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + enableComponents_.add(rawValue); + } + input.popLimit(oldLimit); + 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)) { + enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); + } + 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_MonitoringComponentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MonitoringComponentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MonitoringComponentConfig.class, + com.google.container.v1.MonitoringComponentConfig.Builder.class); + } + + /** + * + * + *
+   * GKE components exposing metrics
+   * 
+ * + * Protobuf enum {@code google.container.v1.MonitoringComponentConfig.Component} + */ + public enum Component implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * COMPONENT_UNSPECIFIED = 0; + */ + COMPONENT_UNSPECIFIED(0), + /** + * + * + *
+     * system components
+     * 
+ * + * SYSTEM_COMPONENTS = 1; + */ + SYSTEM_COMPONENTS(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * COMPONENT_UNSPECIFIED = 0; + */ + public static final int COMPONENT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * system components
+     * 
+ * + * SYSTEM_COMPONENTS = 1; + */ + public static final int SYSTEM_COMPONENTS_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 Component 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 Component forNumber(int value) { + switch (value) { + case 0: + return COMPONENT_UNSPECIFIED; + case 1: + return SYSTEM_COMPONENTS; + 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 Component findValueByNumber(int number) { + return Component.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.MonitoringComponentConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Component[] VALUES = values(); + + public static Component 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 Component(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.MonitoringComponentConfig.Component) + } + + public static final int ENABLE_COMPONENTS_FIELD_NUMBER = 1; + private java.util.List enableComponents_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component> + enableComponents_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>() { + public com.google.container.v1.MonitoringComponentConfig.Component convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.container.v1.MonitoringComponentConfig.Component result = + com.google.container.v1.MonitoringComponentConfig.Component.valueOf(from); + return result == null + ? com.google.container.v1.MonitoringComponentConfig.Component.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enableComponents. + */ + @java.lang.Override + public java.util.List + getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>( + enableComponents_, enableComponents_converter_); + } + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return The count of enableComponents. + */ + @java.lang.Override + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents( + int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + @java.lang.Override + public java.util.List getEnableComponentsValueList() { + return enableComponents_; + } + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + @java.lang.Override + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + + private int enableComponentsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getEnableComponentsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); + } + for (int i = 0; i < enableComponents_.size(); i++) { + output.writeEnumNoTag(enableComponents_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < enableComponents_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(enableComponents_.get(i)); + } + size += dataSize; + if (!getEnableComponentsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + enableComponentsMemoizedSerializedSize = dataSize; + } + 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.MonitoringComponentConfig)) { + return super.equals(obj); + } + com.google.container.v1.MonitoringComponentConfig other = + (com.google.container.v1.MonitoringComponentConfig) obj; + + if (!enableComponents_.equals(other.enableComponents_)) 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 (getEnableComponentsCount() > 0) { + hash = (37 * hash) + ENABLE_COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + enableComponents_.hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.MonitoringComponentConfig 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.MonitoringComponentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + 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.MonitoringComponentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + java.io.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.MonitoringComponentConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.MonitoringComponentConfig parseDelimitedFrom( + java.io.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.MonitoringComponentConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.MonitoringComponentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * MonitoringComponentConfig is cluster monitoring component configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1.MonitoringComponentConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MonitoringComponentConfig) + com.google.container.v1.MonitoringComponentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MonitoringComponentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MonitoringComponentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MonitoringComponentConfig.class, + com.google.container.v1.MonitoringComponentConfig.Builder.class); + } + + // Construct using com.google.container.v1.MonitoringComponentConfig.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(); + enableComponents_ = java.util.Collections.emptyList(); + 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_MonitoringComponentConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig getDefaultInstanceForType() { + return com.google.container.v1.MonitoringComponentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig build() { + com.google.container.v1.MonitoringComponentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig buildPartial() { + com.google.container.v1.MonitoringComponentConfig result = + new com.google.container.v1.MonitoringComponentConfig(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.enableComponents_ = enableComponents_; + 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.MonitoringComponentConfig) { + return mergeFrom((com.google.container.v1.MonitoringComponentConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MonitoringComponentConfig other) { + if (other == com.google.container.v1.MonitoringComponentConfig.getDefaultInstance()) + return this; + if (!other.enableComponents_.isEmpty()) { + if (enableComponents_.isEmpty()) { + enableComponents_ = other.enableComponents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnableComponentsIsMutable(); + enableComponents_.addAll(other.enableComponents_); + } + 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.MonitoringComponentConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.MonitoringComponentConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List enableComponents_ = java.util.Collections.emptyList(); + + private void ensureEnableComponentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = new java.util.ArrayList(enableComponents_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enableComponents. + */ + public java.util.List + getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>( + enableComponents_, enableComponents_converter_); + } + /** + * + * + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return The count of enableComponents. + */ + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + * + * + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + public com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents( + int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + * + * + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param index The index to set the value at. + * @param value The enableComponents to set. + * @return This builder for chaining. + */ + public Builder setEnableComponents( + int index, com.google.container.v1.MonitoringComponentConfig.Component value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableComponentsIsMutable(); + enableComponents_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param value The enableComponents to add. + * @return This builder for chaining. + */ + public Builder addEnableComponents( + com.google.container.v1.MonitoringComponentConfig.Component value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableComponentsIsMutable(); + enableComponents_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param values The enableComponents to add. + * @return This builder for chaining. + */ + public Builder addAllEnableComponents( + java.lang.Iterable + values) { + ensureEnableComponentsIsMutable(); + for (com.google.container.v1.MonitoringComponentConfig.Component value : values) { + enableComponents_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableComponents() { + enableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + public java.util.List getEnableComponentsValueList() { + return java.util.Collections.unmodifiableList(enableComponents_); + } + /** + * + * + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + /** + * + * + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + * @return This builder for chaining. + */ + public Builder setEnableComponentsValue(int index, int value) { + ensureEnableComponentsIsMutable(); + enableComponents_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param value The enum numeric value on the wire for enableComponents to add. + * @return This builder for chaining. + */ + public Builder addEnableComponentsValue(int value) { + ensureEnableComponentsIsMutable(); + enableComponents_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param values The enum numeric values on the wire for enableComponents to add. + * @return This builder for chaining. + */ + public Builder addAllEnableComponentsValue(java.lang.Iterable values) { + ensureEnableComponentsIsMutable(); + for (int value : values) { + enableComponents_.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.MonitoringComponentConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MonitoringComponentConfig) + private static final com.google.container.v1.MonitoringComponentConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.MonitoringComponentConfig(); + } + + public static com.google.container.v1.MonitoringComponentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonitoringComponentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MonitoringComponentConfig(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.MonitoringComponentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfigOrBuilder.java new file mode 100644 index 00000000..b2cd819b --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfigOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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 MonitoringComponentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MonitoringComponentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enableComponents. + */ + java.util.List + getEnableComponentsList(); + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return The count of enableComponents. + */ + int getEnableComponentsCount(); + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents(int index); + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + java.util.List getEnableComponentsValueList(); + /** + * + * + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + int getEnableComponentsValue(int index); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfig.java new file mode 100644 index 00000000..3db71d23 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfig.java @@ -0,0 +1,733 @@ +/* + * 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; + +/** + * + * + *
+ * MonitoringConfig is cluster monitoring configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.MonitoringConfig} + */ +public final class MonitoringConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.MonitoringConfig) + MonitoringConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MonitoringConfig.newBuilder() to construct. + private MonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MonitoringConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MonitoringConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MonitoringConfig( + 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: + { + com.google.container.v1.MonitoringComponentConfig.Builder subBuilder = null; + if (componentConfig_ != null) { + subBuilder = componentConfig_.toBuilder(); + } + componentConfig_ = + input.readMessage( + com.google.container.v1.MonitoringComponentConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(componentConfig_); + componentConfig_ = subBuilder.buildPartial(); + } + + 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_MonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MonitoringConfig.class, + com.google.container.v1.MonitoringConfig.Builder.class); + } + + public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1.MonitoringComponentConfig componentConfig_; + /** + * + * + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * + * @return Whether the componentConfig field is set. + */ + @java.lang.Override + public boolean hasComponentConfig() { + return componentConfig_ != null; + } + /** + * + * + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * + * @return The componentConfig. + */ + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig getComponentConfig() { + return componentConfig_ == null + ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() + : componentConfig_; + } + /** + * + * + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder() { + return getComponentConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (componentConfig_ != null) { + output.writeMessage(1, getComponentConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (componentConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getComponentConfig()); + } + 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.MonitoringConfig)) { + return super.equals(obj); + } + com.google.container.v1.MonitoringConfig other = (com.google.container.v1.MonitoringConfig) obj; + + if (hasComponentConfig() != other.hasComponentConfig()) return false; + if (hasComponentConfig()) { + if (!getComponentConfig().equals(other.getComponentConfig())) 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 (hasComponentConfig()) { + hash = (37 * hash) + COMPONENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getComponentConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MonitoringConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.MonitoringConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.MonitoringConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.MonitoringConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.MonitoringConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.MonitoringConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.MonitoringConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.MonitoringConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.MonitoringConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.MonitoringConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.MonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.MonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1.MonitoringConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * MonitoringConfig is cluster monitoring configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1.MonitoringConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MonitoringConfig) + com.google.container.v1.MonitoringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MonitoringConfig.class, + com.google.container.v1.MonitoringConfig.Builder.class); + } + + // Construct using com.google.container.v1.MonitoringConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (componentConfigBuilder_ == null) { + componentConfig_ = null; + } else { + componentConfig_ = null; + componentConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_MonitoringConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MonitoringConfig getDefaultInstanceForType() { + return com.google.container.v1.MonitoringConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MonitoringConfig build() { + com.google.container.v1.MonitoringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MonitoringConfig buildPartial() { + com.google.container.v1.MonitoringConfig result = + new com.google.container.v1.MonitoringConfig(this); + if (componentConfigBuilder_ == null) { + result.componentConfig_ = componentConfig_; + } else { + result.componentConfig_ = componentConfigBuilder_.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.MonitoringConfig) { + return mergeFrom((com.google.container.v1.MonitoringConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MonitoringConfig other) { + if (other == com.google.container.v1.MonitoringConfig.getDefaultInstance()) return this; + if (other.hasComponentConfig()) { + mergeComponentConfig(other.getComponentConfig()); + } + 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.MonitoringConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.MonitoringConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1.MonitoringComponentConfig componentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringComponentConfig, + com.google.container.v1.MonitoringComponentConfig.Builder, + com.google.container.v1.MonitoringComponentConfigOrBuilder> + componentConfigBuilder_; + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * + * @return Whether the componentConfig field is set. + */ + public boolean hasComponentConfig() { + return componentConfigBuilder_ != null || componentConfig_ != null; + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * + * @return The componentConfig. + */ + public com.google.container.v1.MonitoringComponentConfig getComponentConfig() { + if (componentConfigBuilder_ == null) { + return componentConfig_ == null + ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() + : componentConfig_; + } else { + return componentConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public Builder setComponentConfig(com.google.container.v1.MonitoringComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + componentConfig_ = value; + onChanged(); + } else { + componentConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public Builder setComponentConfig( + com.google.container.v1.MonitoringComponentConfig.Builder builderForValue) { + if (componentConfigBuilder_ == null) { + componentConfig_ = builderForValue.build(); + onChanged(); + } else { + componentConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public Builder mergeComponentConfig(com.google.container.v1.MonitoringComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (componentConfig_ != null) { + componentConfig_ = + com.google.container.v1.MonitoringComponentConfig.newBuilder(componentConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + componentConfig_ = value; + } + onChanged(); + } else { + componentConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public Builder clearComponentConfig() { + if (componentConfigBuilder_ == null) { + componentConfig_ = null; + onChanged(); + } else { + componentConfig_ = null; + componentConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public com.google.container.v1.MonitoringComponentConfig.Builder getComponentConfigBuilder() { + + onChanged(); + return getComponentConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public com.google.container.v1.MonitoringComponentConfigOrBuilder + getComponentConfigOrBuilder() { + if (componentConfigBuilder_ != null) { + return componentConfigBuilder_.getMessageOrBuilder(); + } else { + return componentConfig_ == null + ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() + : componentConfig_; + } + } + /** + * + * + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringComponentConfig, + com.google.container.v1.MonitoringComponentConfig.Builder, + com.google.container.v1.MonitoringComponentConfigOrBuilder> + getComponentConfigFieldBuilder() { + if (componentConfigBuilder_ == null) { + componentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringComponentConfig, + com.google.container.v1.MonitoringComponentConfig.Builder, + com.google.container.v1.MonitoringComponentConfigOrBuilder>( + getComponentConfig(), getParentForChildren(), isClean()); + componentConfig_ = null; + } + return componentConfigBuilder_; + } + + @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.MonitoringConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MonitoringConfig) + private static final com.google.container.v1.MonitoringConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.MonitoringConfig(); + } + + public static com.google.container.v1.MonitoringConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonitoringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MonitoringConfig(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.MonitoringConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfigOrBuilder.java new file mode 100644 index 00000000..7234d970 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfigOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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 MonitoringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MonitoringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * + * @return Whether the componentConfig field is set. + */ + boolean hasComponentConfig(); + /** + * + * + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * + * @return The componentConfig. + */ + com.google.container.v1.MonitoringComponentConfig getComponentConfig(); + /** + * + * + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + com.google.container.v1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder(); +} 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 1bff9a41..36352865 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 @@ -40,6 +40,8 @@ private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) private NetworkConfig() { network_ = ""; subnetwork_ = ""; + datapathProvider_ = 0; + privateIpv6GoogleAccess_ = 0; } @java.lang.Override @@ -104,6 +106,56 @@ private NetworkConfig( defaultSnatStatus_ = subBuilder.buildPartial(); } + break; + } + case 80: + { + enableL4IlbSubsetting_ = input.readBool(); + break; + } + case 88: + { + int rawValue = input.readEnum(); + + datapathProvider_ = rawValue; + break; + } + case 96: + { + int rawValue = input.readEnum(); + + privateIpv6GoogleAccess_ = rawValue; + break; + } + case 106: + { + com.google.container.v1.DNSConfig.Builder subBuilder = null; + if (dnsConfig_ != null) { + subBuilder = dnsConfig_.toBuilder(); + } + dnsConfig_ = + input.readMessage(com.google.container.v1.DNSConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dnsConfig_); + dnsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 122: + { + com.google.container.v1.ServiceExternalIPsConfig.Builder subBuilder = null; + if (serviceExternalIpsConfig_ != null) { + subBuilder = serviceExternalIpsConfig_.toBuilder(); + } + serviceExternalIpsConfig_ = + input.readMessage( + com.google.container.v1.ServiceExternalIPsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(serviceExternalIpsConfig_); + serviceExternalIpsConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -326,6 +378,200 @@ public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOr return getDefaultSnatStatus(); } + public static final int ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER = 10; + private boolean enableL4IlbSubsetting_; + /** + * + * + *
+   * Whether L4ILB Subsetting is enabled for this cluster.
+   * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @return The enableL4ilbSubsetting. + */ + @java.lang.Override + public boolean getEnableL4IlbSubsetting() { + return enableL4IlbSubsetting_; + } + + public static final int DATAPATH_PROVIDER_FIELD_NUMBER = 11; + private int datapathProvider_; + /** + * + * + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @return The enum numeric value on the wire for datapathProvider. + */ + @java.lang.Override + public int getDatapathProviderValue() { + return datapathProvider_; + } + /** + * + * + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @return The datapathProvider. + */ + @java.lang.Override + public com.google.container.v1.DatapathProvider getDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1.DatapathProvider result = + com.google.container.v1.DatapathProvider.valueOf(datapathProvider_); + return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; + } + + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; + private int privateIpv6GoogleAccess_; + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + @java.lang.Override + public int getPrivateIpv6GoogleAccessValue() { + return privateIpv6GoogleAccess_; + } + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @return The privateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { + @SuppressWarnings("deprecation") + com.google.container.v1.PrivateIPv6GoogleAccess result = + com.google.container.v1.PrivateIPv6GoogleAccess.valueOf(privateIpv6GoogleAccess_); + return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + + public static final int DNS_CONFIG_FIELD_NUMBER = 13; + private com.google.container.v1.DNSConfig dnsConfig_; + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * + * @return Whether the dnsConfig field is set. + */ + @java.lang.Override + public boolean hasDnsConfig() { + return dnsConfig_ != null; + } + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * + * @return The dnsConfig. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig getDnsConfig() { + return dnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : dnsConfig_; + } + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + @java.lang.Override + public com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder() { + return getDnsConfig(); + } + + public static final int SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 15; + private com.google.container.v1.ServiceExternalIPsConfig serviceExternalIpsConfig_; + /** + * + * + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * + * @return Whether the serviceExternalIpsConfig field is set. + */ + @java.lang.Override + public boolean hasServiceExternalIpsConfig() { + return serviceExternalIpsConfig_ != null; + } + /** + * + * + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * + * @return The serviceExternalIpsConfig. + */ + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { + return serviceExternalIpsConfig_ == null + ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() + : serviceExternalIpsConfig_; + } + /** + * + * + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfigOrBuilder + getServiceExternalIpsConfigOrBuilder() { + return getServiceExternalIpsConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -352,6 +598,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (defaultSnatStatus_ != null) { output.writeMessage(7, getDefaultSnatStatus()); } + if (enableL4IlbSubsetting_ != false) { + output.writeBool(10, enableL4IlbSubsetting_); + } + if (datapathProvider_ + != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(11, datapathProvider_); + } + if (privateIpv6GoogleAccess_ + != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, privateIpv6GoogleAccess_); + } + if (dnsConfig_ != null) { + output.writeMessage(13, getDnsConfig()); + } + if (serviceExternalIpsConfig_ != null) { + output.writeMessage(15, getServiceExternalIpsConfig()); + } unknownFields.writeTo(output); } @@ -373,6 +637,26 @@ public int getSerializedSize() { if (defaultSnatStatus_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDefaultSnatStatus()); } + if (enableL4IlbSubsetting_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableL4IlbSubsetting_); + } + if (datapathProvider_ + != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, datapathProvider_); + } + if (privateIpv6GoogleAccess_ + != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, privateIpv6GoogleAccess_); + } + if (dnsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDnsConfig()); + } + if (serviceExternalIpsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getServiceExternalIpsConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -395,6 +679,17 @@ public boolean equals(final java.lang.Object obj) { if (hasDefaultSnatStatus()) { if (!getDefaultSnatStatus().equals(other.getDefaultSnatStatus())) return false; } + if (getEnableL4IlbSubsetting() != other.getEnableL4IlbSubsetting()) return false; + if (datapathProvider_ != other.datapathProvider_) return false; + if (privateIpv6GoogleAccess_ != other.privateIpv6GoogleAccess_) return false; + if (hasDnsConfig() != other.hasDnsConfig()) return false; + if (hasDnsConfig()) { + if (!getDnsConfig().equals(other.getDnsConfig())) return false; + } + if (hasServiceExternalIpsConfig() != other.hasServiceExternalIpsConfig()) return false; + if (hasServiceExternalIpsConfig()) { + if (!getServiceExternalIpsConfig().equals(other.getServiceExternalIpsConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -416,6 +711,20 @@ public int hashCode() { hash = (37 * hash) + DEFAULT_SNAT_STATUS_FIELD_NUMBER; hash = (53 * hash) + getDefaultSnatStatus().hashCode(); } + hash = (37 * hash) + ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableL4IlbSubsetting()); + hash = (37 * hash) + DATAPATH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + datapathProvider_; + hash = (37 * hash) + PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + privateIpv6GoogleAccess_; + if (hasDnsConfig()) { + hash = (37 * hash) + DNS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDnsConfig().hashCode(); + } + if (hasServiceExternalIpsConfig()) { + hash = (37 * hash) + SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceExternalIpsConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -572,6 +881,24 @@ public Builder clear() { defaultSnatStatus_ = null; defaultSnatStatusBuilder_ = null; } + enableL4IlbSubsetting_ = false; + + datapathProvider_ = 0; + + privateIpv6GoogleAccess_ = 0; + + if (dnsConfigBuilder_ == null) { + dnsConfig_ = null; + } else { + dnsConfig_ = null; + dnsConfigBuilder_ = null; + } + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfig_ = null; + } else { + serviceExternalIpsConfig_ = null; + serviceExternalIpsConfigBuilder_ = null; + } return this; } @@ -607,6 +934,19 @@ public com.google.container.v1.NetworkConfig buildPartial() { } else { result.defaultSnatStatus_ = defaultSnatStatusBuilder_.build(); } + result.enableL4IlbSubsetting_ = enableL4IlbSubsetting_; + result.datapathProvider_ = datapathProvider_; + result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; + if (dnsConfigBuilder_ == null) { + result.dnsConfig_ = dnsConfig_; + } else { + result.dnsConfig_ = dnsConfigBuilder_.build(); + } + if (serviceExternalIpsConfigBuilder_ == null) { + result.serviceExternalIpsConfig_ = serviceExternalIpsConfig_; + } else { + result.serviceExternalIpsConfig_ = serviceExternalIpsConfigBuilder_.build(); + } onBuilt(); return result; } @@ -670,6 +1010,21 @@ public Builder mergeFrom(com.google.container.v1.NetworkConfig other) { if (other.hasDefaultSnatStatus()) { mergeDefaultSnatStatus(other.getDefaultSnatStatus()); } + if (other.getEnableL4IlbSubsetting() != false) { + setEnableL4IlbSubsetting(other.getEnableL4IlbSubsetting()); + } + if (other.datapathProvider_ != 0) { + setDatapathProviderValue(other.getDatapathProviderValue()); + } + if (other.privateIpv6GoogleAccess_ != 0) { + setPrivateIpv6GoogleAccessValue(other.getPrivateIpv6GoogleAccessValue()); + } + if (other.hasDnsConfig()) { + mergeDnsConfig(other.getDnsConfig()); + } + if (other.hasServiceExternalIpsConfig()) { + mergeServiceExternalIpsConfig(other.getServiceExternalIpsConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1209,6 +1564,640 @@ public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOr return defaultSnatStatusBuilder_; } + private boolean enableL4IlbSubsetting_; + /** + * + * + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @return The enableL4ilbSubsetting. + */ + @java.lang.Override + public boolean getEnableL4IlbSubsetting() { + return enableL4IlbSubsetting_; + } + /** + * + * + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @param value The enableL4ilbSubsetting to set. + * @return This builder for chaining. + */ + public Builder setEnableL4IlbSubsetting(boolean value) { + + enableL4IlbSubsetting_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @return This builder for chaining. + */ + public Builder clearEnableL4IlbSubsetting() { + + enableL4IlbSubsetting_ = false; + onChanged(); + return this; + } + + private int datapathProvider_ = 0; + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @return The enum numeric value on the wire for datapathProvider. + */ + @java.lang.Override + public int getDatapathProviderValue() { + return datapathProvider_; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @param value The enum numeric value on the wire for datapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDatapathProviderValue(int value) { + + datapathProvider_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @return The datapathProvider. + */ + @java.lang.Override + public com.google.container.v1.DatapathProvider getDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1.DatapathProvider result = + com.google.container.v1.DatapathProvider.valueOf(datapathProvider_); + return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @param value The datapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDatapathProvider(com.google.container.v1.DatapathProvider value) { + if (value == null) { + throw new NullPointerException(); + } + + datapathProvider_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @return This builder for chaining. + */ + public Builder clearDatapathProvider() { + + datapathProvider_ = 0; + onChanged(); + return this; + } + + private int privateIpv6GoogleAccess_ = 0; + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + @java.lang.Override + public int getPrivateIpv6GoogleAccessValue() { + return privateIpv6GoogleAccess_; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @param value The enum numeric value on the wire for privateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setPrivateIpv6GoogleAccessValue(int value) { + + privateIpv6GoogleAccess_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @return The privateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { + @SuppressWarnings("deprecation") + com.google.container.v1.PrivateIPv6GoogleAccess result = + com.google.container.v1.PrivateIPv6GoogleAccess.valueOf(privateIpv6GoogleAccess_); + return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @param value The privateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setPrivateIpv6GoogleAccess( + com.google.container.v1.PrivateIPv6GoogleAccess value) { + if (value == null) { + throw new NullPointerException(); + } + + privateIpv6GoogleAccess_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @return This builder for chaining. + */ + public Builder clearPrivateIpv6GoogleAccess() { + + privateIpv6GoogleAccess_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.DNSConfig dnsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, + com.google.container.v1.DNSConfig.Builder, + com.google.container.v1.DNSConfigOrBuilder> + dnsConfigBuilder_; + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * + * @return Whether the dnsConfig field is set. + */ + public boolean hasDnsConfig() { + return dnsConfigBuilder_ != null || dnsConfig_ != null; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * + * @return The dnsConfig. + */ + public com.google.container.v1.DNSConfig getDnsConfig() { + if (dnsConfigBuilder_ == null) { + return dnsConfig_ == null + ? com.google.container.v1.DNSConfig.getDefaultInstance() + : dnsConfig_; + } else { + return dnsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public Builder setDnsConfig(com.google.container.v1.DNSConfig value) { + if (dnsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsConfig_ = value; + onChanged(); + } else { + dnsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public Builder setDnsConfig(com.google.container.v1.DNSConfig.Builder builderForValue) { + if (dnsConfigBuilder_ == null) { + dnsConfig_ = builderForValue.build(); + onChanged(); + } else { + dnsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public Builder mergeDnsConfig(com.google.container.v1.DNSConfig value) { + if (dnsConfigBuilder_ == null) { + if (dnsConfig_ != null) { + dnsConfig_ = + com.google.container.v1.DNSConfig.newBuilder(dnsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dnsConfig_ = value; + } + onChanged(); + } else { + dnsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public Builder clearDnsConfig() { + if (dnsConfigBuilder_ == null) { + dnsConfig_ = null; + onChanged(); + } else { + dnsConfig_ = null; + dnsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public com.google.container.v1.DNSConfig.Builder getDnsConfigBuilder() { + + onChanged(); + return getDnsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder() { + if (dnsConfigBuilder_ != null) { + return dnsConfigBuilder_.getMessageOrBuilder(); + } else { + return dnsConfig_ == null + ? com.google.container.v1.DNSConfig.getDefaultInstance() + : dnsConfig_; + } + } + /** + * + * + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, + com.google.container.v1.DNSConfig.Builder, + com.google.container.v1.DNSConfigOrBuilder> + getDnsConfigFieldBuilder() { + if (dnsConfigBuilder_ == null) { + dnsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, + com.google.container.v1.DNSConfig.Builder, + com.google.container.v1.DNSConfigOrBuilder>( + getDnsConfig(), getParentForChildren(), isClean()); + dnsConfig_ = null; + } + return dnsConfigBuilder_; + } + + private com.google.container.v1.ServiceExternalIPsConfig serviceExternalIpsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, + com.google.container.v1.ServiceExternalIPsConfig.Builder, + com.google.container.v1.ServiceExternalIPsConfigOrBuilder> + serviceExternalIpsConfigBuilder_; + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * + * @return Whether the serviceExternalIpsConfig field is set. + */ + public boolean hasServiceExternalIpsConfig() { + return serviceExternalIpsConfigBuilder_ != null || serviceExternalIpsConfig_ != null; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * + * @return The serviceExternalIpsConfig. + */ + public com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { + if (serviceExternalIpsConfigBuilder_ == null) { + return serviceExternalIpsConfig_ == null + ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() + : serviceExternalIpsConfig_; + } else { + return serviceExternalIpsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder setServiceExternalIpsConfig( + com.google.container.v1.ServiceExternalIPsConfig value) { + if (serviceExternalIpsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceExternalIpsConfig_ = value; + onChanged(); + } else { + serviceExternalIpsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder setServiceExternalIpsConfig( + com.google.container.v1.ServiceExternalIPsConfig.Builder builderForValue) { + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfig_ = builderForValue.build(); + onChanged(); + } else { + serviceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder mergeServiceExternalIpsConfig( + com.google.container.v1.ServiceExternalIPsConfig value) { + if (serviceExternalIpsConfigBuilder_ == null) { + if (serviceExternalIpsConfig_ != null) { + serviceExternalIpsConfig_ = + com.google.container.v1.ServiceExternalIPsConfig.newBuilder(serviceExternalIpsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + serviceExternalIpsConfig_ = value; + } + onChanged(); + } else { + serviceExternalIpsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder clearServiceExternalIpsConfig() { + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfig_ = null; + onChanged(); + } else { + serviceExternalIpsConfig_ = null; + serviceExternalIpsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public com.google.container.v1.ServiceExternalIPsConfig.Builder + getServiceExternalIpsConfigBuilder() { + + onChanged(); + return getServiceExternalIpsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public com.google.container.v1.ServiceExternalIPsConfigOrBuilder + getServiceExternalIpsConfigOrBuilder() { + if (serviceExternalIpsConfigBuilder_ != null) { + return serviceExternalIpsConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceExternalIpsConfig_ == null + ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() + : serviceExternalIpsConfig_; + } + } + /** + * + * + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, + com.google.container.v1.ServiceExternalIPsConfig.Builder, + com.google.container.v1.ServiceExternalIPsConfigOrBuilder> + getServiceExternalIpsConfigFieldBuilder() { + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, + com.google.container.v1.ServiceExternalIPsConfig.Builder, + com.google.container.v1.ServiceExternalIPsConfigOrBuilder>( + getServiceExternalIpsConfig(), getParentForChildren(), isClean()); + serviceExternalIpsConfig_ = null; + } + return serviceExternalIpsConfigBuilder_; + } + @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 28a283cd..b994af3a 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 @@ -142,4 +142,146 @@ public interface NetworkConfigOrBuilder * .google.container.v1.DefaultSnatStatus default_snat_status = 7; */ com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder(); + + /** + * + * + *
+   * Whether L4ILB Subsetting is enabled for this cluster.
+   * 
+ * + * bool enable_l4ilb_subsetting = 10; + * + * @return The enableL4ilbSubsetting. + */ + boolean getEnableL4IlbSubsetting(); + + /** + * + * + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @return The enum numeric value on the wire for datapathProvider. + */ + int getDatapathProviderValue(); + /** + * + * + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * + * @return The datapathProvider. + */ + com.google.container.v1.DatapathProvider getDatapathProvider(); + + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + int getPrivateIpv6GoogleAccessValue(); + /** + * + * + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * + * @return The privateIpv6GoogleAccess. + */ + com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess(); + + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * + * @return Whether the dnsConfig field is set. + */ + boolean hasDnsConfig(); + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * + * @return The dnsConfig. + */ + com.google.container.v1.DNSConfig getDnsConfig(); + /** + * + * + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder(); + + /** + * + * + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * + * @return Whether the serviceExternalIpsConfig field is set. + */ + boolean hasServiceExternalIpsConfig(); + /** + * + * + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * + * @return The serviceExternalIpsConfig. + */ + com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig(); + /** + * + * + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + com.google.container.v1.ServiceExternalIPsConfigOrBuilder getServiceExternalIpsConfigOrBuilder(); } 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 40958d51..07e31734 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 @@ -270,6 +270,38 @@ private NodeConfig( shieldedInstanceConfig_ = subBuilder.buildPartial(); } + break; + } + case 170: + { + com.google.container.v1.LinuxNodeConfig.Builder subBuilder = null; + if (linuxNodeConfig_ != null) { + subBuilder = linuxNodeConfig_.toBuilder(); + } + linuxNodeConfig_ = + input.readMessage( + com.google.container.v1.LinuxNodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(linuxNodeConfig_); + linuxNodeConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 178: + { + com.google.container.v1.NodeKubeletConfig.Builder subBuilder = null; + if (kubeletConfig_ != null) { + subBuilder = kubeletConfig_.toBuilder(); + } + kubeletConfig_ = + input.readMessage( + com.google.container.v1.NodeKubeletConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kubeletConfig_); + kubeletConfig_ = subBuilder.buildPartial(); + } + break; } case 186: @@ -277,6 +309,52 @@ private NodeConfig( java.lang.String s = input.readStringRequireUtf8(); bootDiskKmsKey_ = s; + break; + } + case 202: + { + com.google.container.v1.GcfsConfig.Builder subBuilder = null; + if (gcfsConfig_ != null) { + subBuilder = gcfsConfig_.toBuilder(); + } + gcfsConfig_ = + input.readMessage(com.google.container.v1.GcfsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcfsConfig_); + gcfsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 210: + { + com.google.container.v1.AdvancedMachineFeatures.Builder subBuilder = null; + if (advancedMachineFeatures_ != null) { + subBuilder = advancedMachineFeatures_.toBuilder(); + } + advancedMachineFeatures_ = + input.readMessage( + com.google.container.v1.AdvancedMachineFeatures.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(advancedMachineFeatures_); + advancedMachineFeatures_ = subBuilder.buildPartial(); + } + + break; + } + case 234: + { + com.google.container.v1.VirtualNIC.Builder subBuilder = null; + if (gvnic_ != null) { + subBuilder = gvnic_.toBuilder(); + } + gvnic_ = + input.readMessage(com.google.container.v1.VirtualNIC.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gvnic_); + gvnic_ = subBuilder.buildPartial(); + } + break; } default: @@ -622,8 +700,6 @@ public int getMetadataCount() { * - "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. @@ -673,8 +749,6 @@ public java.util.Map getMetadata() { * - "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. @@ -715,8 +789,6 @@ public java.util.Map getMetadataMap() { * - "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. @@ -762,8 +834,6 @@ public java.lang.String getMetadataOrDefault( * - "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. @@ -1606,6 +1676,102 @@ public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig( return getShieldedInstanceConfig(); } + public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * + * @return Whether the linuxNodeConfig field is set. + */ + @java.lang.Override + public boolean hasLinuxNodeConfig() { + return linuxNodeConfig_ != null; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * + * @return The linuxNodeConfig. + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { + return linuxNodeConfig_ == null + ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + return getLinuxNodeConfig(); + } + + public static final int KUBELET_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1.NodeKubeletConfig kubeletConfig_; + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * + * @return Whether the kubeletConfig field is set. + */ + @java.lang.Override + public boolean hasKubeletConfig() { + return kubeletConfig_ != null; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * + * @return The kubeletConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { + return kubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + return getKubeletConfig(); + } + public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 23; private volatile java.lang.Object bootDiskKmsKey_; /** @@ -1665,6 +1831,149 @@ public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { } } + public static final int GCFS_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1.GcfsConfig gcfsConfig_; + /** + * + * + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return gcfsConfig_ != null; + } + /** + * + * + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + /** + * + * + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + @java.lang.Override + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return getGcfsConfig(); + } + + public static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER = 26; + private com.google.container.v1.AdvancedMachineFeatures advancedMachineFeatures_; + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return Whether the advancedMachineFeatures field is set. + */ + @java.lang.Override + public boolean hasAdvancedMachineFeatures() { + return advancedMachineFeatures_ != null; + } + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return The advancedMachineFeatures. + */ + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures() { + return advancedMachineFeatures_ == null + ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() + : advancedMachineFeatures_; + } + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeaturesOrBuilder + getAdvancedMachineFeaturesOrBuilder() { + return getAdvancedMachineFeatures(); + } + + public static final int GVNIC_FIELD_NUMBER = 29; + private com.google.container.v1.VirtualNIC gvnic_; + /** + * + * + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return Whether the gvnic field is set. + */ + @java.lang.Override + public boolean hasGvnic() { + return gvnic_ != null; + } + /** + * + * + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return The gvnic. + */ + @java.lang.Override + public com.google.container.v1.VirtualNIC getGvnic() { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + /** + * + * + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + @java.lang.Override + public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { + return getGvnic(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1734,9 +2043,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (shieldedInstanceConfig_ != null) { output.writeMessage(20, getShieldedInstanceConfig()); } + if (linuxNodeConfig_ != null) { + output.writeMessage(21, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + output.writeMessage(22, getKubeletConfig()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, bootDiskKmsKey_); } + if (gcfsConfig_ != null) { + output.writeMessage(25, getGcfsConfig()); + } + if (advancedMachineFeatures_ != null) { + output.writeMessage(26, getAdvancedMachineFeatures()); + } + if (gvnic_ != null) { + output.writeMessage(29, getGvnic()); + } unknownFields.writeTo(output); } @@ -1830,9 +2154,26 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getShieldedInstanceConfig()); } + if (linuxNodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getKubeletConfig()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, bootDiskKmsKey_); } + if (gcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getGcfsConfig()); + } + if (advancedMachineFeatures_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, getAdvancedMachineFeatures()); + } + if (gvnic_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getGvnic()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1879,7 +2220,27 @@ public boolean equals(final java.lang.Object obj) { if (hasShieldedInstanceConfig()) { if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } + if (hasLinuxNodeConfig() != other.hasLinuxNodeConfig()) return false; + if (hasLinuxNodeConfig()) { + if (!getLinuxNodeConfig().equals(other.getLinuxNodeConfig())) return false; + } + if (hasKubeletConfig() != other.hasKubeletConfig()) return false; + if (hasKubeletConfig()) { + if (!getKubeletConfig().equals(other.getKubeletConfig())) return false; + } if (!getBootDiskKmsKey().equals(other.getBootDiskKmsKey())) return false; + if (hasGcfsConfig() != other.hasGcfsConfig()) return false; + if (hasGcfsConfig()) { + if (!getGcfsConfig().equals(other.getGcfsConfig())) return false; + } + if (hasAdvancedMachineFeatures() != other.hasAdvancedMachineFeatures()) return false; + if (hasAdvancedMachineFeatures()) { + if (!getAdvancedMachineFeatures().equals(other.getAdvancedMachineFeatures())) return false; + } + if (hasGvnic() != other.hasGvnic()) return false; + if (hasGvnic()) { + if (!getGvnic().equals(other.getGvnic())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1949,8 +2310,28 @@ public int hashCode() { hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); } + if (hasLinuxNodeConfig()) { + hash = (37 * hash) + LINUX_NODE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLinuxNodeConfig().hashCode(); + } + if (hasKubeletConfig()) { + hash = (37 * hash) + KUBELET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getKubeletConfig().hashCode(); + } hash = (37 * hash) + BOOT_DISK_KMS_KEY_FIELD_NUMBER; hash = (53 * hash) + getBootDiskKmsKey().hashCode(); + if (hasGcfsConfig()) { + hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcfsConfig().hashCode(); + } + if (hasAdvancedMachineFeatures()) { + hash = (37 * hash) + ADVANCED_MACHINE_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedMachineFeatures().hashCode(); + } + if (hasGvnic()) { + hash = (37 * hash) + GVNIC_FIELD_NUMBER; + hash = (53 * hash) + getGvnic().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2182,8 +2563,38 @@ public Builder clear() { shieldedInstanceConfig_ = null; shieldedInstanceConfigBuilder_ = null; } + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } bootDiskKmsKey_ = ""; + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = null; + } else { + advancedMachineFeatures_ = null; + advancedMachineFeaturesBuilder_ = null; + } + if (gvnicBuilder_ == null) { + gvnic_ = null; + } else { + gvnic_ = null; + gvnicBuilder_ = null; + } return this; } @@ -2272,7 +2683,32 @@ public com.google.container.v1.NodeConfig buildPartial() { } else { result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); } + if (linuxNodeConfigBuilder_ == null) { + result.linuxNodeConfig_ = linuxNodeConfig_; + } else { + result.linuxNodeConfig_ = linuxNodeConfigBuilder_.build(); + } + if (kubeletConfigBuilder_ == null) { + result.kubeletConfig_ = kubeletConfig_; + } else { + result.kubeletConfig_ = kubeletConfigBuilder_.build(); + } result.bootDiskKmsKey_ = bootDiskKmsKey_; + if (gcfsConfigBuilder_ == null) { + result.gcfsConfig_ = gcfsConfig_; + } else { + result.gcfsConfig_ = gcfsConfigBuilder_.build(); + } + if (advancedMachineFeaturesBuilder_ == null) { + result.advancedMachineFeatures_ = advancedMachineFeatures_; + } else { + result.advancedMachineFeatures_ = advancedMachineFeaturesBuilder_.build(); + } + if (gvnicBuilder_ == null) { + result.gvnic_ = gvnic_; + } else { + result.gvnic_ = gvnicBuilder_.build(); + } onBuilt(); return result; } @@ -2443,10 +2879,25 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { if (other.hasShieldedInstanceConfig()) { mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); } + if (other.hasLinuxNodeConfig()) { + mergeLinuxNodeConfig(other.getLinuxNodeConfig()); + } + if (other.hasKubeletConfig()) { + mergeKubeletConfig(other.getKubeletConfig()); + } if (!other.getBootDiskKmsKey().isEmpty()) { bootDiskKmsKey_ = other.bootDiskKmsKey_; onChanged(); } + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } + if (other.hasAdvancedMachineFeatures()) { + mergeAdvancedMachineFeatures(other.getAdvancedMachineFeatures()); + } + if (other.hasGvnic()) { + mergeGvnic(other.getGvnic()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3089,8 +3540,6 @@ public int getMetadataCount() { * - "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. @@ -3140,8 +3589,6 @@ public java.util.Map getMetadata() { * - "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. @@ -3182,8 +3629,6 @@ public java.util.Map getMetadataMap() { * - "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. @@ -3229,8 +3674,6 @@ public java.lang.String getMetadataOrDefault( * - "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. @@ -3283,8 +3726,6 @@ public Builder clearMetadata() { * - "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. @@ -3333,8 +3774,6 @@ public java.util.Map getMutableMetadata() { * - "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. @@ -3381,8 +3820,6 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { * - "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. @@ -5948,40 +6385,412 @@ public Builder clearShieldedInstanceConfig() { return shieldedInstanceConfigBuilder_; } - private java.lang.Object bootDiskKmsKey_ = ""; + private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, + com.google.container.v1.LinuxNodeConfig.Builder, + com.google.container.v1.LinuxNodeConfigOrBuilder> + linuxNodeConfigBuilder_; /** * * *
-     * 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
+     * Parameters that can be configured on Linux nodes.
      * 
* - * string boot_disk_kms_key = 23; + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; * - * @return The bootDiskKmsKey. + * @return Whether the linuxNodeConfig field is set. */ - 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; - } + public boolean hasLinuxNodeConfig() { + return linuxNodeConfigBuilder_ != null || linuxNodeConfig_ != null; } /** * * *
-     * 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
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * + * @return The linuxNodeConfig. + */ + public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + return linuxNodeConfig_ == null + ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } else { + return linuxNodeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder setLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linuxNodeConfig_ = value; + onChanged(); + } else { + linuxNodeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder setLinuxNodeConfig( + com.google.container.v1.LinuxNodeConfig.Builder builderForValue) { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = builderForValue.build(); + onChanged(); + } else { + linuxNodeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder mergeLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (linuxNodeConfig_ != null) { + linuxNodeConfig_ = + com.google.container.v1.LinuxNodeConfig.newBuilder(linuxNodeConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + linuxNodeConfig_ = value; + } + onChanged(); + } else { + linuxNodeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder clearLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + onChanged(); + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public com.google.container.v1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { + + onChanged(); + return getLinuxNodeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + if (linuxNodeConfigBuilder_ != null) { + return linuxNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return linuxNodeConfig_ == null + ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, + com.google.container.v1.LinuxNodeConfig.Builder, + com.google.container.v1.LinuxNodeConfigOrBuilder> + getLinuxNodeConfigFieldBuilder() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, + com.google.container.v1.LinuxNodeConfig.Builder, + com.google.container.v1.LinuxNodeConfigOrBuilder>( + getLinuxNodeConfig(), getParentForChildren(), isClean()); + linuxNodeConfig_ = null; + } + return linuxNodeConfigBuilder_; + } + + private com.google.container.v1.NodeKubeletConfig kubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + kubeletConfigBuilder_; + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * + * @return Whether the kubeletConfig field is set. + */ + public boolean hasKubeletConfig() { + return kubeletConfigBuilder_ != null || kubeletConfig_ != null; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * + * @return The kubeletConfig. + */ + public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + return kubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } else { + return kubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder setKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubeletConfig_ = value; + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder setKubeletConfig( + com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = builderForValue.build(); + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder mergeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (kubeletConfig_ != null) { + kubeletConfig_ = + com.google.container.v1.NodeKubeletConfig.newBuilder(kubeletConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + kubeletConfig_ = value; + } + onChanged(); + } else { + kubeletConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder clearKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + onChanged(); + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public com.google.container.v1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { + + onChanged(); + return getKubeletConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + if (kubeletConfigBuilder_ != null) { + return kubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return kubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + getKubeletConfigFieldBuilder() { + if (kubeletConfigBuilder_ == null) { + kubeletConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder>( + getKubeletConfig(), getParentForChildren(), isClean()); + kubeletConfig_ = null; + } + return kubeletConfigBuilder_; + } + + 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:
@@ -6079,6 +6888,560 @@ public Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value) {
       return this;
     }
 
+    private com.google.container.v1.GcfsConfig gcfsConfig_;
+    private com.google.protobuf.SingleFieldBuilderV3<
+            com.google.container.v1.GcfsConfig,
+            com.google.container.v1.GcfsConfig.Builder,
+            com.google.container.v1.GcfsConfigOrBuilder>
+        gcfsConfigBuilder_;
+    /**
+     *
+     *
+     * 
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return gcfsConfigBuilder_ != null || gcfsConfig_ != null; + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * + * @return The gcfsConfig. + */ + public com.google.container.v1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (gcfsConfig_ != null) { + gcfsConfig_ = + com.google.container.v1.GcfsConfig.newBuilder(gcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcfsConfig_ = value; + } + onChanged(); + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public Builder clearGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + onChanged(); + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { + + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + } + /** + * + * + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder>( + getGcfsConfig(), getParentForChildren(), isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1.AdvancedMachineFeatures advancedMachineFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdvancedMachineFeatures, + com.google.container.v1.AdvancedMachineFeatures.Builder, + com.google.container.v1.AdvancedMachineFeaturesOrBuilder> + advancedMachineFeaturesBuilder_; + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return Whether the advancedMachineFeatures field is set. + */ + public boolean hasAdvancedMachineFeatures() { + return advancedMachineFeaturesBuilder_ != null || advancedMachineFeatures_ != null; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return The advancedMachineFeatures. + */ + public com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures() { + if (advancedMachineFeaturesBuilder_ == null) { + return advancedMachineFeatures_ == null + ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() + : advancedMachineFeatures_; + } else { + return advancedMachineFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder setAdvancedMachineFeatures( + com.google.container.v1.AdvancedMachineFeatures value) { + if (advancedMachineFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advancedMachineFeatures_ = value; + onChanged(); + } else { + advancedMachineFeaturesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder setAdvancedMachineFeatures( + com.google.container.v1.AdvancedMachineFeatures.Builder builderForValue) { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = builderForValue.build(); + onChanged(); + } else { + advancedMachineFeaturesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder mergeAdvancedMachineFeatures( + com.google.container.v1.AdvancedMachineFeatures value) { + if (advancedMachineFeaturesBuilder_ == null) { + if (advancedMachineFeatures_ != null) { + advancedMachineFeatures_ = + com.google.container.v1.AdvancedMachineFeatures.newBuilder(advancedMachineFeatures_) + .mergeFrom(value) + .buildPartial(); + } else { + advancedMachineFeatures_ = value; + } + onChanged(); + } else { + advancedMachineFeaturesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder clearAdvancedMachineFeatures() { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = null; + onChanged(); + } else { + advancedMachineFeatures_ = null; + advancedMachineFeaturesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public com.google.container.v1.AdvancedMachineFeatures.Builder + getAdvancedMachineFeaturesBuilder() { + + onChanged(); + return getAdvancedMachineFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public com.google.container.v1.AdvancedMachineFeaturesOrBuilder + getAdvancedMachineFeaturesOrBuilder() { + if (advancedMachineFeaturesBuilder_ != null) { + return advancedMachineFeaturesBuilder_.getMessageOrBuilder(); + } else { + return advancedMachineFeatures_ == null + ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() + : advancedMachineFeatures_; + } + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdvancedMachineFeatures, + com.google.container.v1.AdvancedMachineFeatures.Builder, + com.google.container.v1.AdvancedMachineFeaturesOrBuilder> + getAdvancedMachineFeaturesFieldBuilder() { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdvancedMachineFeatures, + com.google.container.v1.AdvancedMachineFeatures.Builder, + com.google.container.v1.AdvancedMachineFeaturesOrBuilder>( + getAdvancedMachineFeatures(), getParentForChildren(), isClean()); + advancedMachineFeatures_ = null; + } + return advancedMachineFeaturesBuilder_; + } + + private com.google.container.v1.VirtualNIC gvnic_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, + com.google.container.v1.VirtualNIC.Builder, + com.google.container.v1.VirtualNICOrBuilder> + gvnicBuilder_; + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return Whether the gvnic field is set. + */ + public boolean hasGvnic() { + return gvnicBuilder_ != null || gvnic_ != null; + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return The gvnic. + */ + public com.google.container.v1.VirtualNIC getGvnic() { + if (gvnicBuilder_ == null) { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } else { + return gvnicBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic(com.google.container.v1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gvnic_ = value; + onChanged(); + } else { + gvnicBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic(com.google.container.v1.VirtualNIC.Builder builderForValue) { + if (gvnicBuilder_ == null) { + gvnic_ = builderForValue.build(); + onChanged(); + } else { + gvnicBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder mergeGvnic(com.google.container.v1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (gvnic_ != null) { + gvnic_ = + com.google.container.v1.VirtualNIC.newBuilder(gvnic_).mergeFrom(value).buildPartial(); + } else { + gvnic_ = value; + } + onChanged(); + } else { + gvnicBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder clearGvnic() { + if (gvnicBuilder_ == null) { + gvnic_ = null; + onChanged(); + } else { + gvnic_ = null; + gvnicBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1.VirtualNIC.Builder getGvnicBuilder() { + + onChanged(); + return getGvnicFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { + if (gvnicBuilder_ != null) { + return gvnicBuilder_.getMessageOrBuilder(); + } else { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + } + /** + * + * + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, + com.google.container.v1.VirtualNIC.Builder, + com.google.container.v1.VirtualNICOrBuilder> + getGvnicFieldBuilder() { + if (gvnicBuilder_ == null) { + gvnicBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, + com.google.container.v1.VirtualNIC.Builder, + com.google.container.v1.VirtualNICOrBuilder>( + getGvnic(), getParentForChildren(), isClean()); + gvnic_ = null; + } + return gvnicBuilder_; + } + @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/NodeConfigDefaults.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java new file mode 100644 index 00000000..f7aec43b --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java @@ -0,0 +1,730 @@ +/* + * 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; + +/** + * + * + *
+ * Subset of NodeConfig message that has defaults.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeConfigDefaults} + */ +public final class NodeConfigDefaults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodeConfigDefaults) + NodeConfigDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeConfigDefaults.newBuilder() to construct. + private NodeConfigDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeConfigDefaults() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeConfigDefaults(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NodeConfigDefaults( + 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: + { + com.google.container.v1.GcfsConfig.Builder subBuilder = null; + if (gcfsConfig_ != null) { + subBuilder = gcfsConfig_.toBuilder(); + } + gcfsConfig_ = + input.readMessage(com.google.container.v1.GcfsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcfsConfig_); + gcfsConfig_ = subBuilder.buildPartial(); + } + + 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_NodeConfigDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeConfigDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeConfigDefaults.class, + com.google.container.v1.NodeConfigDefaults.Builder.class); + } + + public static final int GCFS_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1.GcfsConfig gcfsConfig_; + /** + * + * + *
+   * GCFS (Google Container File System, a.k.a Riptide) options.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + * + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return gcfsConfig_ != null; + } + /** + * + * + *
+   * GCFS (Google Container File System, a.k.a Riptide) options.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + * + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + /** + * + * + *
+   * GCFS (Google Container File System, a.k.a Riptide) options.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + @java.lang.Override + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return getGcfsConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (gcfsConfig_ != null) { + output.writeMessage(1, getGcfsConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcfsConfig()); + } + 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.NodeConfigDefaults)) { + return super.equals(obj); + } + com.google.container.v1.NodeConfigDefaults other = + (com.google.container.v1.NodeConfigDefaults) obj; + + if (hasGcfsConfig() != other.hasGcfsConfig()) return false; + if (hasGcfsConfig()) { + if (!getGcfsConfig().equals(other.getGcfsConfig())) 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 (hasGcfsConfig()) { + hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcfsConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodeConfigDefaults parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodeConfigDefaults 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.NodeConfigDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodeConfigDefaults parseFrom( + 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.NodeConfigDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodeConfigDefaults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.NodeConfigDefaults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeConfigDefaults parseFrom( + java.io.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.NodeConfigDefaults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeConfigDefaults parseDelimitedFrom( + java.io.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.NodeConfigDefaults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeConfigDefaults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.NodeConfigDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodeConfigDefaults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodeConfigDefaults) + com.google.container.v1.NodeConfigDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeConfigDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeConfigDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeConfigDefaults.class, + com.google.container.v1.NodeConfigDefaults.Builder.class); + } + + // Construct using com.google.container.v1.NodeConfigDefaults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeConfigDefaults_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeConfigDefaults getDefaultInstanceForType() { + return com.google.container.v1.NodeConfigDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeConfigDefaults build() { + com.google.container.v1.NodeConfigDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeConfigDefaults buildPartial() { + com.google.container.v1.NodeConfigDefaults result = + new com.google.container.v1.NodeConfigDefaults(this); + if (gcfsConfigBuilder_ == null) { + result.gcfsConfig_ = gcfsConfig_; + } else { + result.gcfsConfig_ = gcfsConfigBuilder_.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.NodeConfigDefaults) { + return mergeFrom((com.google.container.v1.NodeConfigDefaults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeConfigDefaults other) { + if (other == com.google.container.v1.NodeConfigDefaults.getDefaultInstance()) return this; + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } + 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.NodeConfigDefaults parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.NodeConfigDefaults) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder> + gcfsConfigBuilder_; + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + * + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return gcfsConfigBuilder_ != null || gcfsConfig_ != null; + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + * + * @return The gcfsConfig. + */ + public com.google.container.v1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (gcfsConfig_ != null) { + gcfsConfig_ = + com.google.container.v1.GcfsConfig.newBuilder(gcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcfsConfig_ = value; + } + onChanged(); + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public Builder clearGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + onChanged(); + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { + + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder>( + getGcfsConfig(), getParentForChildren(), isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + @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.NodeConfigDefaults) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodeConfigDefaults) + private static final com.google.container.v1.NodeConfigDefaults DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodeConfigDefaults(); + } + + public static com.google.container.v1.NodeConfigDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeConfigDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeConfigDefaults(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.NodeConfigDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java new file mode 100644 index 00000000..ec53f90b --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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 NodeConfigDefaultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeConfigDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * GCFS (Google Container File System, a.k.a Riptide) options.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + * + * @return Whether the gcfsConfig field is set. + */ + boolean hasGcfsConfig(); + /** + * + * + *
+   * GCFS (Google Container File System, a.k.a Riptide) options.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + * + * @return The gcfsConfig. + */ + com.google.container.v1.GcfsConfig getGcfsConfig(); + /** + * + * + *
+   * GCFS (Google Container File System, a.k.a Riptide) options.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); +} 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 a01dfa87..43e4c395 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 @@ -219,8 +219,6 @@ public interface NodeConfigOrBuilder * - "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. @@ -258,8 +256,6 @@ public interface NodeConfigOrBuilder * - "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. @@ -300,8 +296,6 @@ public interface NodeConfigOrBuilder * - "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. @@ -339,8 +333,6 @@ public interface NodeConfigOrBuilder * - "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. @@ -378,8 +370,6 @@ public interface NodeConfigOrBuilder * - "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. @@ -970,6 +960,76 @@ public interface NodeConfigOrBuilder */ com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * + * @return Whether the linuxNodeConfig field is set. + */ + boolean hasLinuxNodeConfig(); + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * + * @return The linuxNodeConfig. + */ + com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig(); + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder(); + + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * + * @return Whether the kubeletConfig field is set. + */ + boolean hasKubeletConfig(); + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * + * @return The kubeletConfig. + */ + com.google.container.v1.NodeKubeletConfig getKubeletConfig(); + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder(); + /** * * @@ -1004,4 +1064,109 @@ public interface NodeConfigOrBuilder * @return The bytes for bootDiskKmsKey. */ com.google.protobuf.ByteString getBootDiskKmsKeyBytes(); + + /** + * + * + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * + * @return Whether the gcfsConfig field is set. + */ + boolean hasGcfsConfig(); + /** + * + * + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * + * @return The gcfsConfig. + */ + com.google.container.v1.GcfsConfig getGcfsConfig(); + /** + * + * + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); + + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return Whether the advancedMachineFeatures field is set. + */ + boolean hasAdvancedMachineFeatures(); + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return The advancedMachineFeatures. + */ + com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures(); + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + com.google.container.v1.AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder(); + + /** + * + * + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return Whether the gvnic field is set. + */ + boolean hasGvnic(); + /** + * + * + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return The gvnic. + */ + com.google.container.v1.VirtualNIC getGvnic(); + /** + * + * + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java new file mode 100644 index 00000000..548e46a5 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java @@ -0,0 +1,1248 @@ +/* + * 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; + +/** + * + * + *
+ * Node kubelet configs.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeKubeletConfig} + */ +public final class NodeKubeletConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodeKubeletConfig) + NodeKubeletConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeKubeletConfig.newBuilder() to construct. + private NodeKubeletConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeKubeletConfig() { + cpuManagerPolicy_ = ""; + cpuCfsQuotaPeriod_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeKubeletConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NodeKubeletConfig( + 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(); + + cpuManagerPolicy_ = s; + break; + } + case 18: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (cpuCfsQuota_ != null) { + subBuilder = cpuCfsQuota_.toBuilder(); + } + cpuCfsQuota_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cpuCfsQuota_); + cpuCfsQuota_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + cpuCfsQuotaPeriod_ = 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_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeKubeletConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeKubeletConfig.class, + com.google.container.v1.NodeKubeletConfig.Builder.class); + } + + public static final int CPU_MANAGER_POLICY_FIELD_NUMBER = 1; + private volatile java.lang.Object cpuManagerPolicy_; + /** + * + * + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * + * @return The cpuManagerPolicy. + */ + @java.lang.Override + public java.lang.String getCpuManagerPolicy() { + java.lang.Object ref = cpuManagerPolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpuManagerPolicy_ = s; + return s; + } + } + /** + * + * + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * + * @return The bytes for cpuManagerPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCpuManagerPolicyBytes() { + java.lang.Object ref = cpuManagerPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpuManagerPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CPU_CFS_QUOTA_FIELD_NUMBER = 2; + private com.google.protobuf.BoolValue cpuCfsQuota_; + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return Whether the cpuCfsQuota field is set. + */ + @java.lang.Override + public boolean hasCpuCfsQuota() { + return cpuCfsQuota_ != null; + } + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return The cpuCfsQuota. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCpuCfsQuota() { + return cpuCfsQuota_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; + } + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder() { + return getCpuCfsQuota(); + } + + public static final int CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER = 3; + private volatile java.lang.Object cpuCfsQuotaPeriod_; + /** + * + * + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The cpuCfsQuotaPeriod. + */ + @java.lang.Override + public java.lang.String getCpuCfsQuotaPeriod() { + java.lang.Object ref = cpuCfsQuotaPeriod_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpuCfsQuotaPeriod_ = s; + return s; + } + } + /** + * + * + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The bytes for cpuCfsQuotaPeriod. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCpuCfsQuotaPeriodBytes() { + java.lang.Object ref = cpuCfsQuotaPeriod_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpuCfsQuotaPeriod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpuManagerPolicy_); + } + if (cpuCfsQuota_ != null) { + output.writeMessage(2, getCpuCfsQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cpuCfsQuotaPeriod_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpuManagerPolicy_); + } + if (cpuCfsQuota_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCpuCfsQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cpuCfsQuotaPeriod_); + } + 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.NodeKubeletConfig)) { + return super.equals(obj); + } + com.google.container.v1.NodeKubeletConfig other = + (com.google.container.v1.NodeKubeletConfig) obj; + + if (!getCpuManagerPolicy().equals(other.getCpuManagerPolicy())) return false; + if (hasCpuCfsQuota() != other.hasCpuCfsQuota()) return false; + if (hasCpuCfsQuota()) { + if (!getCpuCfsQuota().equals(other.getCpuCfsQuota())) return false; + } + if (!getCpuCfsQuotaPeriod().equals(other.getCpuCfsQuotaPeriod())) 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) + CPU_MANAGER_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getCpuManagerPolicy().hashCode(); + if (hasCpuCfsQuota()) { + hash = (37 * hash) + CPU_CFS_QUOTA_FIELD_NUMBER; + hash = (53 * hash) + getCpuCfsQuota().hashCode(); + } + hash = (37 * hash) + CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getCpuCfsQuotaPeriod().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodeKubeletConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodeKubeletConfig 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.NodeKubeletConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodeKubeletConfig parseFrom( + 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.NodeKubeletConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodeKubeletConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.NodeKubeletConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeKubeletConfig parseFrom( + java.io.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.NodeKubeletConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeKubeletConfig parseDelimitedFrom( + java.io.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.NodeKubeletConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeKubeletConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.NodeKubeletConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodeKubeletConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodeKubeletConfig) + com.google.container.v1.NodeKubeletConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeKubeletConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeKubeletConfig.class, + com.google.container.v1.NodeKubeletConfig.Builder.class); + } + + // Construct using com.google.container.v1.NodeKubeletConfig.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(); + cpuManagerPolicy_ = ""; + + if (cpuCfsQuotaBuilder_ == null) { + cpuCfsQuota_ = null; + } else { + cpuCfsQuota_ = null; + cpuCfsQuotaBuilder_ = null; + } + cpuCfsQuotaPeriod_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getDefaultInstanceForType() { + return com.google.container.v1.NodeKubeletConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig build() { + com.google.container.v1.NodeKubeletConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig buildPartial() { + com.google.container.v1.NodeKubeletConfig result = + new com.google.container.v1.NodeKubeletConfig(this); + result.cpuManagerPolicy_ = cpuManagerPolicy_; + if (cpuCfsQuotaBuilder_ == null) { + result.cpuCfsQuota_ = cpuCfsQuota_; + } else { + result.cpuCfsQuota_ = cpuCfsQuotaBuilder_.build(); + } + result.cpuCfsQuotaPeriod_ = cpuCfsQuotaPeriod_; + 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.NodeKubeletConfig) { + return mergeFrom((com.google.container.v1.NodeKubeletConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeKubeletConfig other) { + if (other == com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) return this; + if (!other.getCpuManagerPolicy().isEmpty()) { + cpuManagerPolicy_ = other.cpuManagerPolicy_; + onChanged(); + } + if (other.hasCpuCfsQuota()) { + mergeCpuCfsQuota(other.getCpuCfsQuota()); + } + if (!other.getCpuCfsQuotaPeriod().isEmpty()) { + cpuCfsQuotaPeriod_ = other.cpuCfsQuotaPeriod_; + 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.NodeKubeletConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.NodeKubeletConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object cpuManagerPolicy_ = ""; + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @return The cpuManagerPolicy. + */ + public java.lang.String getCpuManagerPolicy() { + java.lang.Object ref = cpuManagerPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpuManagerPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @return The bytes for cpuManagerPolicy. + */ + public com.google.protobuf.ByteString getCpuManagerPolicyBytes() { + java.lang.Object ref = cpuManagerPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpuManagerPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @param value The cpuManagerPolicy to set. + * @return This builder for chaining. + */ + public Builder setCpuManagerPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cpuManagerPolicy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @return This builder for chaining. + */ + public Builder clearCpuManagerPolicy() { + + cpuManagerPolicy_ = getDefaultInstance().getCpuManagerPolicy(); + onChanged(); + return this; + } + /** + * + * + *
+     * Control the CPU management policy on the node.
+     * See
+     * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+     * The following values are allowed.
+     * * "none": the default, which represents the existing scheduling behavior.
+     * * "static": allows pods with certain resource characteristics to be granted
+     * increased CPU affinity and exclusivity on the node.
+     * The default value is 'none' if unspecified.
+     * 
+ * + * string cpu_manager_policy = 1; + * + * @param value The bytes for cpuManagerPolicy to set. + * @return This builder for chaining. + */ + public Builder setCpuManagerPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cpuManagerPolicy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue cpuCfsQuota_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + cpuCfsQuotaBuilder_; + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return Whether the cpuCfsQuota field is set. + */ + public boolean hasCpuCfsQuota() { + return cpuCfsQuotaBuilder_ != null || cpuCfsQuota_ != null; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return The cpuCfsQuota. + */ + public com.google.protobuf.BoolValue getCpuCfsQuota() { + if (cpuCfsQuotaBuilder_ == null) { + return cpuCfsQuota_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : cpuCfsQuota_; + } else { + return cpuCfsQuotaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public Builder setCpuCfsQuota(com.google.protobuf.BoolValue value) { + if (cpuCfsQuotaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cpuCfsQuota_ = value; + onChanged(); + } else { + cpuCfsQuotaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public Builder setCpuCfsQuota(com.google.protobuf.BoolValue.Builder builderForValue) { + if (cpuCfsQuotaBuilder_ == null) { + cpuCfsQuota_ = builderForValue.build(); + onChanged(); + } else { + cpuCfsQuotaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public Builder mergeCpuCfsQuota(com.google.protobuf.BoolValue value) { + if (cpuCfsQuotaBuilder_ == null) { + if (cpuCfsQuota_ != null) { + cpuCfsQuota_ = + com.google.protobuf.BoolValue.newBuilder(cpuCfsQuota_) + .mergeFrom(value) + .buildPartial(); + } else { + cpuCfsQuota_ = value; + } + onChanged(); + } else { + cpuCfsQuotaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public Builder clearCpuCfsQuota() { + if (cpuCfsQuotaBuilder_ == null) { + cpuCfsQuota_ = null; + onChanged(); + } else { + cpuCfsQuota_ = null; + cpuCfsQuotaBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public com.google.protobuf.BoolValue.Builder getCpuCfsQuotaBuilder() { + + onChanged(); + return getCpuCfsQuotaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + public com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder() { + if (cpuCfsQuotaBuilder_ != null) { + return cpuCfsQuotaBuilder_.getMessageOrBuilder(); + } else { + return cpuCfsQuota_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : cpuCfsQuota_; + } + } + /** + * + * + *
+     * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+     * This option is enabled by default which makes kubelet use CFS quota
+     * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+     * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+     * all.
+     * Disable this option to mitigate CPU throttling problems while still having
+     * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+     * The default value is 'true' if unspecified.
+     * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCpuCfsQuotaFieldBuilder() { + if (cpuCfsQuotaBuilder_ == null) { + cpuCfsQuotaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCpuCfsQuota(), getParentForChildren(), isClean()); + cpuCfsQuota_ = null; + } + return cpuCfsQuotaBuilder_; + } + + private java.lang.Object cpuCfsQuotaPeriod_ = ""; + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The cpuCfsQuotaPeriod. + */ + public java.lang.String getCpuCfsQuotaPeriod() { + java.lang.Object ref = cpuCfsQuotaPeriod_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpuCfsQuotaPeriod_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The bytes for cpuCfsQuotaPeriod. + */ + public com.google.protobuf.ByteString getCpuCfsQuotaPeriodBytes() { + java.lang.Object ref = cpuCfsQuotaPeriod_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpuCfsQuotaPeriod_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @param value The cpuCfsQuotaPeriod to set. + * @return This builder for chaining. + */ + public Builder setCpuCfsQuotaPeriod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cpuCfsQuotaPeriod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return This builder for chaining. + */ + public Builder clearCpuCfsQuotaPeriod() { + + cpuCfsQuotaPeriod_ = getDefaultInstance().getCpuCfsQuotaPeriod(); + onChanged(); + return this; + } + /** + * + * + *
+     * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+     * The string must be a sequence of decimal numbers, each with optional
+     * fraction and a unit suffix, such as "300ms".
+     * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+     * The value must be a positive duration.
+     * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @param value The bytes for cpuCfsQuotaPeriod to set. + * @return This builder for chaining. + */ + public Builder setCpuCfsQuotaPeriodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cpuCfsQuotaPeriod_ = 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.NodeKubeletConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodeKubeletConfig) + private static final com.google.container.v1.NodeKubeletConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodeKubeletConfig(); + } + + public static com.google.container.v1.NodeKubeletConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeKubeletConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeKubeletConfig(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.NodeKubeletConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java new file mode 100644 index 00000000..d87d56a8 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java @@ -0,0 +1,153 @@ +/* + * 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 NodeKubeletConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeKubeletConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * + * @return The cpuManagerPolicy. + */ + java.lang.String getCpuManagerPolicy(); + /** + * + * + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * + * @return The bytes for cpuManagerPolicy. + */ + com.google.protobuf.ByteString getCpuManagerPolicyBytes(); + + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return Whether the cpuCfsQuota field is set. + */ + boolean hasCpuCfsQuota(); + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * + * @return The cpuCfsQuota. + */ + com.google.protobuf.BoolValue getCpuCfsQuota(); + /** + * + * + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder(); + + /** + * + * + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The cpuCfsQuotaPeriod. + */ + java.lang.String getCpuCfsQuotaPeriod(); + /** + * + * + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * + * @return The bytes for cpuCfsQuotaPeriod. + */ + com.google.protobuf.ByteString getCpuCfsQuotaPeriodBytes(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java new file mode 100644 index 00000000..27e009fa --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java @@ -0,0 +1,1029 @@ +/* + * 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; + +/** + * + * + *
+ * Parameters for node pool-level network config.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeNetworkConfig} + */ +public final class NodeNetworkConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodeNetworkConfig) + NodeNetworkConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeNetworkConfig.newBuilder() to construct. + private NodeNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeNetworkConfig() { + podRange_ = ""; + podIpv4CidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeNetworkConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NodeNetworkConfig( + 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 32: + { + createPodRange_ = input.readBool(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + podRange_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + podIpv4CidrBlock_ = 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_NodeNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeNetworkConfig.class, + com.google.container.v1.NodeNetworkConfig.Builder.class); + } + + public static final int CREATE_POD_RANGE_FIELD_NUMBER = 4; + private boolean createPodRange_; + /** + * + * + *
+   * Input only. Whether to create a new range for pod IPs in this node pool.
+   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+   * are not specified.
+   * If neither `create_pod_range` or `pod_range` are specified, the
+   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+   * used.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The createPodRange. + */ + @java.lang.Override + public boolean getCreatePodRange() { + return createPodRange_; + } + + public static final int POD_RANGE_FIELD_NUMBER = 5; + private volatile java.lang.Object podRange_; + /** + * + * + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * + * @return The podRange. + */ + @java.lang.Override + public java.lang.String getPodRange() { + java.lang.Object ref = podRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podRange_ = s; + return s; + } + } + /** + * + * + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * + * @return The bytes for podRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPodRangeBytes() { + java.lang.Object ref = podRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POD_IPV4_CIDR_BLOCK_FIELD_NUMBER = 6; + private volatile java.lang.Object podIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range for pod IPs in this node pool.
+   * Only applicable if `create_pod_range` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The podIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getPodIpv4CidrBlock() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range for pod IPs in this node pool.
+   * Only applicable if `create_pod_range` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The bytes for podIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPodIpv4CidrBlockBytes() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podIpv4CidrBlock_ = 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 (createPodRange_ != false) { + output.writeBool(4, createPodRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, podRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, podIpv4CidrBlock_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createPodRange_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, createPodRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, podRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, podIpv4CidrBlock_); + } + 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.NodeNetworkConfig)) { + return super.equals(obj); + } + com.google.container.v1.NodeNetworkConfig other = + (com.google.container.v1.NodeNetworkConfig) obj; + + if (getCreatePodRange() != other.getCreatePodRange()) return false; + if (!getPodRange().equals(other.getPodRange())) return false; + if (!getPodIpv4CidrBlock().equals(other.getPodIpv4CidrBlock())) 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) + CREATE_POD_RANGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreatePodRange()); + hash = (37 * hash) + POD_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getPodRange().hashCode(); + hash = (37 * hash) + POD_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getPodIpv4CidrBlock().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodeNetworkConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodeNetworkConfig 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.NodeNetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodeNetworkConfig parseFrom( + 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.NodeNetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodeNetworkConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.NodeNetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeNetworkConfig parseFrom( + java.io.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.NodeNetworkConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeNetworkConfig parseDelimitedFrom( + java.io.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.NodeNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.NodeNetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Parameters for node pool-level network config.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodeNetworkConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodeNetworkConfig) + com.google.container.v1.NodeNetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeNetworkConfig.class, + com.google.container.v1.NodeNetworkConfig.Builder.class); + } + + // Construct using com.google.container.v1.NodeNetworkConfig.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(); + createPodRange_ = false; + + podRange_ = ""; + + podIpv4CidrBlock_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodeNetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig getDefaultInstanceForType() { + return com.google.container.v1.NodeNetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig build() { + com.google.container.v1.NodeNetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig buildPartial() { + com.google.container.v1.NodeNetworkConfig result = + new com.google.container.v1.NodeNetworkConfig(this); + result.createPodRange_ = createPodRange_; + result.podRange_ = podRange_; + result.podIpv4CidrBlock_ = podIpv4CidrBlock_; + 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.NodeNetworkConfig) { + return mergeFrom((com.google.container.v1.NodeNetworkConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeNetworkConfig other) { + if (other == com.google.container.v1.NodeNetworkConfig.getDefaultInstance()) return this; + if (other.getCreatePodRange() != false) { + setCreatePodRange(other.getCreatePodRange()); + } + if (!other.getPodRange().isEmpty()) { + podRange_ = other.podRange_; + onChanged(); + } + if (!other.getPodIpv4CidrBlock().isEmpty()) { + podIpv4CidrBlock_ = other.podIpv4CidrBlock_; + 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.NodeNetworkConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.NodeNetworkConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean createPodRange_; + /** + * + * + *
+     * Input only. Whether to create a new range for pod IPs in this node pool.
+     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+     * are not specified.
+     * If neither `create_pod_range` or `pod_range` are specified, the
+     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+     * used.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The createPodRange. + */ + @java.lang.Override + public boolean getCreatePodRange() { + return createPodRange_; + } + /** + * + * + *
+     * Input only. Whether to create a new range for pod IPs in this node pool.
+     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+     * are not specified.
+     * If neither `create_pod_range` or `pod_range` are specified, the
+     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+     * used.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The createPodRange to set. + * @return This builder for chaining. + */ + public Builder setCreatePodRange(boolean value) { + + createPodRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. Whether to create a new range for pod IPs in this node pool.
+     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+     * are not specified.
+     * If neither `create_pod_range` or `pod_range` are specified, the
+     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+     * used.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCreatePodRange() { + + createPodRange_ = false; + onChanged(); + return this; + } + + private java.lang.Object podRange_ = ""; + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @return The podRange. + */ + public java.lang.String getPodRange() { + java.lang.Object ref = podRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @return The bytes for podRange. + */ + public com.google.protobuf.ByteString getPodRangeBytes() { + java.lang.Object ref = podRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @param value The podRange to set. + * @return This builder for chaining. + */ + public Builder setPodRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + podRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @return This builder for chaining. + */ + public Builder clearPodRange() { + + podRange_ = getDefaultInstance().getPodRange(); + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * + * @param value The bytes for podRange to set. + * @return This builder for chaining. + */ + public Builder setPodRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + podRange_ = value; + onChanged(); + return this; + } + + private java.lang.Object podIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The podIpv4CidrBlock. + */ + public java.lang.String getPodIpv4CidrBlock() { + java.lang.Object ref = podIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The bytes for podIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getPodIpv4CidrBlockBytes() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + podIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @param value The podIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + podIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return This builder for chaining. + */ + public Builder clearPodIpv4CidrBlock() { + + podIpv4CidrBlock_ = getDefaultInstance().getPodIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range for pod IPs in this node pool.
+     * Only applicable if `create_pod_range` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @param value The bytes for podIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + podIpv4CidrBlock_ = 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.NodeNetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodeNetworkConfig) + private static final com.google.container.v1.NodeNetworkConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodeNetworkConfig(); + } + + public static com.google.container.v1.NodeNetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeNetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeNetworkConfig(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.NodeNetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java new file mode 100644 index 00000000..d043914b --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java @@ -0,0 +1,123 @@ +/* + * 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 NodeNetworkConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeNetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Input only. Whether to create a new range for pod IPs in this node pool.
+   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+   * are not specified.
+   * If neither `create_pod_range` or `pod_range` are specified, the
+   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+   * used.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The createPodRange. + */ + boolean getCreatePodRange(); + + /** + * + * + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * + * @return The podRange. + */ + java.lang.String getPodRange(); + /** + * + * + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * + * @return The bytes for podRange. + */ + com.google.protobuf.ByteString getPodRangeBytes(); + + /** + * + * + *
+   * The IP address range for pod IPs in this node pool.
+   * Only applicable if `create_pod_range` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The podIpv4CidrBlock. + */ + java.lang.String getPodIpv4CidrBlock(); + /** + * + * + *
+   * The IP address range for pod IPs in this node pool.
+   * Only applicable if `create_pod_range` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * + * @return The bytes for podIpv4CidrBlock. + */ + com.google.protobuf.ByteString getPodIpv4CidrBlockBytes(); +} 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 4dbe0c08..f9dce6ef 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 @@ -171,6 +171,22 @@ private NodePool( mutable_bitField0_ |= 0x00000001; } locations_.add(s); + break; + } + case 114: + { + com.google.container.v1.NodeNetworkConfig.Builder subBuilder = null; + if (networkConfig_ != null) { + subBuilder = networkConfig_.toBuilder(); + } + networkConfig_ = + input.readMessage( + com.google.container.v1.NodeNetworkConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkConfig_); + networkConfig_ = subBuilder.buildPartial(); + } + break; } case 802: @@ -1446,6 +1462,57 @@ public com.google.protobuf.ByteString getLocationsBytes(int index) { return locations_.getByteString(index); } + public static final int NETWORK_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1.NodeNetworkConfig networkConfig_; + /** + * + * + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return networkConfig_ != null; + } + /** + * + * + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * + * @return The networkConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig getNetworkConfig() { + return networkConfig_ == null + ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() + : networkConfig_; + } + /** + * + * + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + @java.lang.Override + public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { + return getNetworkConfig(); + } + public static final int SELF_LINK_FIELD_NUMBER = 100; private volatile java.lang.Object selfLink_; /** @@ -2027,6 +2094,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < locations_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); } + if (networkConfig_ != null) { + output.writeMessage(14, getNetworkConfig()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); } @@ -2086,6 +2156,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getLocationsList().size(); } + if (networkConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getNetworkConfig()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); } @@ -2134,6 +2207,10 @@ public boolean equals(final java.lang.Object obj) { } if (getInitialNodeCount() != other.getInitialNodeCount()) return false; if (!getLocationsList().equals(other.getLocationsList())) return false; + if (hasNetworkConfig() != other.hasNetworkConfig()) return false; + if (hasNetworkConfig()) { + if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; + } if (!getSelfLink().equals(other.getSelfLink())) return false; if (!getVersion().equals(other.getVersion())) return false; if (!getInstanceGroupUrlsList().equals(other.getInstanceGroupUrlsList())) return false; @@ -2180,6 +2257,10 @@ public int hashCode() { hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; hash = (53 * hash) + getLocationsList().hashCode(); } + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; @@ -2377,6 +2458,12 @@ public Builder clear() { locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } selfLink_ = ""; version_ = ""; @@ -2458,6 +2545,11 @@ public com.google.container.v1.NodePool buildPartial() { bitField0_ = (bitField0_ & ~0x00000001); } result.locations_ = locations_; + if (networkConfigBuilder_ == null) { + result.networkConfig_ = networkConfig_; + } else { + result.networkConfig_ = networkConfigBuilder_.build(); + } result.selfLink_ = selfLink_; result.version_ = version_; if (((bitField0_ & 0x00000002) != 0)) { @@ -2566,6 +2658,9 @@ public Builder mergeFrom(com.google.container.v1.NodePool other) { } onChanged(); } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } if (!other.getSelfLink().isEmpty()) { selfLink_ = other.selfLink_; onChanged(); @@ -3243,6 +3338,201 @@ public Builder addLocationsBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.container.v1.NodeNetworkConfig networkConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig, + com.google.container.v1.NodeNetworkConfig.Builder, + com.google.container.v1.NodeNetworkConfigOrBuilder> + networkConfigBuilder_; + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * + * @return Whether the networkConfig field is set. + */ + public boolean hasNetworkConfig() { + return networkConfigBuilder_ != null || networkConfig_ != null; + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * + * @return The networkConfig. + */ + public com.google.container.v1.NodeNetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null + ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() + : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public Builder setNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + onChanged(); + } else { + networkConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public Builder setNetworkConfig( + com.google.container.v1.NodeNetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + onChanged(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public Builder mergeNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (networkConfig_ != null) { + networkConfig_ = + com.google.container.v1.NodeNetworkConfig.newBuilder(networkConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + networkConfig_ = value; + } + onChanged(); + } else { + networkConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public Builder clearNetworkConfig() { + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + onChanged(); + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public com.google.container.v1.NodeNetworkConfig.Builder getNetworkConfigBuilder() { + + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null + ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() + : networkConfig_; + } + } + /** + * + * + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig, + com.google.container.v1.NodeNetworkConfig.Builder, + com.google.container.v1.NodeNetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig, + com.google.container.v1.NodeNetworkConfig.Builder, + com.google.container.v1.NodeNetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + private java.lang.Object selfLink_ = ""; /** * diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java index 521278c1..f046771b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java @@ -147,8 +147,8 @@ public boolean getEnabled() { * * *
-   * Minimum number of nodes in the NodePool. Must be >= 1 and <=
-   * max_node_count.
+   * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+   * <= max_node_count.
    * 
* * int32 min_node_count = 2; @@ -166,8 +166,8 @@ public int getMinNodeCount() { * * *
-   * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-   * has to enough quota to scale up the cluster.
+   * Maximum number of nodes for one location in the NodePool. Must be >=
+   * min_node_count. There has to be enough quota to scale up the cluster.
    * 
* * int32 max_node_count = 3; @@ -615,8 +615,8 @@ public Builder clearEnabled() { * * *
-     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
-     * max_node_count.
+     * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+     * <= max_node_count.
      * 
* * int32 min_node_count = 2; @@ -631,8 +631,8 @@ public int getMinNodeCount() { * * *
-     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
-     * max_node_count.
+     * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+     * <= max_node_count.
      * 
* * int32 min_node_count = 2; @@ -650,8 +650,8 @@ public Builder setMinNodeCount(int value) { * * *
-     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
-     * max_node_count.
+     * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+     * <= max_node_count.
      * 
* * int32 min_node_count = 2; @@ -670,8 +670,8 @@ public Builder clearMinNodeCount() { * * *
-     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-     * has to enough quota to scale up the cluster.
+     * Maximum number of nodes for one location in the NodePool. Must be >=
+     * min_node_count. There has to be enough quota to scale up the cluster.
      * 
* * int32 max_node_count = 3; @@ -686,8 +686,8 @@ public int getMaxNodeCount() { * * *
-     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-     * has to enough quota to scale up the cluster.
+     * Maximum number of nodes for one location in the NodePool. Must be >=
+     * min_node_count. There has to be enough quota to scale up the cluster.
      * 
* * int32 max_node_count = 3; @@ -705,8 +705,8 @@ public Builder setMaxNodeCount(int value) { * * *
-     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-     * has to enough quota to scale up the cluster.
+     * Maximum number of nodes for one location in the NodePool. Must be >=
+     * min_node_count. There has to be enough quota to scale up the cluster.
      * 
* * int32 max_node_count = 3; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java index c4e91108..5510dbd7 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java @@ -40,8 +40,8 @@ public interface NodePoolAutoscalingOrBuilder * * *
-   * Minimum number of nodes in the NodePool. Must be >= 1 and <=
-   * max_node_count.
+   * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+   * <= max_node_count.
    * 
* * int32 min_node_count = 2; @@ -54,8 +54,8 @@ public interface NodePoolAutoscalingOrBuilder * * *
-   * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-   * has to enough quota to scale up the cluster.
+   * Maximum number of nodes for one location in the NodePool. Must be >=
+   * min_node_count. There has to be enough quota to scale up the cluster.
    * 
* * int32 max_node_count = 3; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaults.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaults.java new file mode 100644 index 00000000..0da21848 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaults.java @@ -0,0 +1,731 @@ +/* + * 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; + +/** + * + * + *
+ * Subset of Nodepool message that has defaults.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodePoolDefaults} + */ +public final class NodePoolDefaults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodePoolDefaults) + NodePoolDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodePoolDefaults.newBuilder() to construct. + private NodePoolDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodePoolDefaults() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodePoolDefaults(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NodePoolDefaults( + 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: + { + com.google.container.v1.NodeConfigDefaults.Builder subBuilder = null; + if (nodeConfigDefaults_ != null) { + subBuilder = nodeConfigDefaults_.toBuilder(); + } + nodeConfigDefaults_ = + input.readMessage( + com.google.container.v1.NodeConfigDefaults.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeConfigDefaults_); + nodeConfigDefaults_ = subBuilder.buildPartial(); + } + + 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_NodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePoolDefaults.class, + com.google.container.v1.NodePoolDefaults.Builder.class); + } + + public static final int NODE_CONFIG_DEFAULTS_FIELD_NUMBER = 1; + private com.google.container.v1.NodeConfigDefaults nodeConfigDefaults_; + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * + * @return Whether the nodeConfigDefaults field is set. + */ + @java.lang.Override + public boolean hasNodeConfigDefaults() { + return nodeConfigDefaults_ != null; + } + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * + * @return The nodeConfigDefaults. + */ + @java.lang.Override + public com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults() { + return nodeConfigDefaults_ == null + ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() + : nodeConfigDefaults_; + } + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + @java.lang.Override + public com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { + return getNodeConfigDefaults(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nodeConfigDefaults_ != null) { + output.writeMessage(1, getNodeConfigDefaults()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeConfigDefaults_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNodeConfigDefaults()); + } + 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.NodePoolDefaults)) { + return super.equals(obj); + } + com.google.container.v1.NodePoolDefaults other = (com.google.container.v1.NodePoolDefaults) obj; + + if (hasNodeConfigDefaults() != other.hasNodeConfigDefaults()) return false; + if (hasNodeConfigDefaults()) { + if (!getNodeConfigDefaults().equals(other.getNodeConfigDefaults())) 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 (hasNodeConfigDefaults()) { + hash = (37 * hash) + NODE_CONFIG_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getNodeConfigDefaults().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodePoolDefaults parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodePoolDefaults 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.NodePoolDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodePoolDefaults parseFrom( + 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.NodePoolDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NodePoolDefaults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.NodePoolDefaults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePoolDefaults parseFrom( + java.io.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.NodePoolDefaults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePoolDefaults parseDelimitedFrom( + java.io.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.NodePoolDefaults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePoolDefaults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.NodePoolDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Subset of Nodepool message that has defaults.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodePoolDefaults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodePoolDefaults) + com.google.container.v1.NodePoolDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePoolDefaults.class, + com.google.container.v1.NodePoolDefaults.Builder.class); + } + + // Construct using com.google.container.v1.NodePoolDefaults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaults_ = null; + } else { + nodeConfigDefaults_ = null; + nodeConfigDefaultsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NodePoolDefaults_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePoolDefaults getDefaultInstanceForType() { + return com.google.container.v1.NodePoolDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePoolDefaults build() { + com.google.container.v1.NodePoolDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePoolDefaults buildPartial() { + com.google.container.v1.NodePoolDefaults result = + new com.google.container.v1.NodePoolDefaults(this); + if (nodeConfigDefaultsBuilder_ == null) { + result.nodeConfigDefaults_ = nodeConfigDefaults_; + } else { + result.nodeConfigDefaults_ = nodeConfigDefaultsBuilder_.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.NodePoolDefaults) { + return mergeFrom((com.google.container.v1.NodePoolDefaults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePoolDefaults other) { + if (other == com.google.container.v1.NodePoolDefaults.getDefaultInstance()) return this; + if (other.hasNodeConfigDefaults()) { + mergeNodeConfigDefaults(other.getNodeConfigDefaults()); + } + 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.NodePoolDefaults parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.NodePoolDefaults) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1.NodeConfigDefaults nodeConfigDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfigDefaults, + com.google.container.v1.NodeConfigDefaults.Builder, + com.google.container.v1.NodeConfigDefaultsOrBuilder> + nodeConfigDefaultsBuilder_; + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * + * @return Whether the nodeConfigDefaults field is set. + */ + public boolean hasNodeConfigDefaults() { + return nodeConfigDefaultsBuilder_ != null || nodeConfigDefaults_ != null; + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * + * @return The nodeConfigDefaults. + */ + public com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults() { + if (nodeConfigDefaultsBuilder_ == null) { + return nodeConfigDefaults_ == null + ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() + : nodeConfigDefaults_; + } else { + return nodeConfigDefaultsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder setNodeConfigDefaults(com.google.container.v1.NodeConfigDefaults value) { + if (nodeConfigDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeConfigDefaults_ = value; + onChanged(); + } else { + nodeConfigDefaultsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder setNodeConfigDefaults( + com.google.container.v1.NodeConfigDefaults.Builder builderForValue) { + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaults_ = builderForValue.build(); + onChanged(); + } else { + nodeConfigDefaultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder mergeNodeConfigDefaults(com.google.container.v1.NodeConfigDefaults value) { + if (nodeConfigDefaultsBuilder_ == null) { + if (nodeConfigDefaults_ != null) { + nodeConfigDefaults_ = + com.google.container.v1.NodeConfigDefaults.newBuilder(nodeConfigDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + nodeConfigDefaults_ = value; + } + onChanged(); + } else { + nodeConfigDefaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder clearNodeConfigDefaults() { + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaults_ = null; + onChanged(); + } else { + nodeConfigDefaults_ = null; + nodeConfigDefaultsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public com.google.container.v1.NodeConfigDefaults.Builder getNodeConfigDefaultsBuilder() { + + onChanged(); + return getNodeConfigDefaultsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { + if (nodeConfigDefaultsBuilder_ != null) { + return nodeConfigDefaultsBuilder_.getMessageOrBuilder(); + } else { + return nodeConfigDefaults_ == null + ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() + : nodeConfigDefaults_; + } + } + /** + * + * + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfigDefaults, + com.google.container.v1.NodeConfigDefaults.Builder, + com.google.container.v1.NodeConfigDefaultsOrBuilder> + getNodeConfigDefaultsFieldBuilder() { + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfigDefaults, + com.google.container.v1.NodeConfigDefaults.Builder, + com.google.container.v1.NodeConfigDefaultsOrBuilder>( + getNodeConfigDefaults(), getParentForChildren(), isClean()); + nodeConfigDefaults_ = null; + } + return nodeConfigDefaultsBuilder_; + } + + @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.NodePoolDefaults) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolDefaults) + private static final com.google.container.v1.NodePoolDefaults DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePoolDefaults(); + } + + public static com.google.container.v1.NodePoolDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePoolDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodePoolDefaults(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.NodePoolDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaultsOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaultsOrBuilder.java new file mode 100644 index 00000000..bf182579 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaultsOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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 NodePoolDefaultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodePoolDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * + * @return Whether the nodeConfigDefaults field is set. + */ + boolean hasNodeConfigDefaults(); + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * + * @return The nodeConfigDefaults. + */ + com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults(); + /** + * + * + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder(); +} 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 7b27dcb1..884c0038 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 @@ -178,6 +178,44 @@ public interface NodePoolOrBuilder */ com.google.protobuf.ByteString getLocationsBytes(int index); + /** + * + * + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * + * @return Whether the networkConfig field is set. + */ + boolean hasNetworkConfig(); + /** + * + * + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * + * @return The networkConfig. + */ + com.google.container.v1.NodeNetworkConfig getNetworkConfig(); + /** + * + * + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder(); + /** * * diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfig.java new file mode 100644 index 00000000..266684f3 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfig.java @@ -0,0 +1,2936 @@ +/* + * 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; + +/** + * + * + *
+ * NotificationConfig is the configuration of notifications.
+ * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig} + */ +public final class NotificationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig) + NotificationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NotificationConfig.newBuilder() to construct. + private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NotificationConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NotificationConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NotificationConfig( + 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: + { + com.google.container.v1.NotificationConfig.PubSub.Builder subBuilder = null; + if (pubsub_ != null) { + subBuilder = pubsub_.toBuilder(); + } + pubsub_ = + input.readMessage( + com.google.container.v1.NotificationConfig.PubSub.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pubsub_); + pubsub_ = subBuilder.buildPartial(); + } + + 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_NotificationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.class, + com.google.container.v1.NotificationConfig.Builder.class); + } + + /** + * + * + *
+   * Types of notifications currently supported. Can be used to filter what
+   * notifications are sent.
+   * 
+ * + * Protobuf enum {@code google.container.v1.NotificationConfig.EventType} + */ + public enum EventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set, will be ignored.
+     * 
+ * + * EVENT_TYPE_UNSPECIFIED = 0; + */ + EVENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Corresponds with UpgradeAvailableEvent.
+     * 
+ * + * UPGRADE_AVAILABLE_EVENT = 1; + */ + UPGRADE_AVAILABLE_EVENT(1), + /** + * + * + *
+     * Corresponds with UpgradeEvent.
+     * 
+ * + * UPGRADE_EVENT = 2; + */ + UPGRADE_EVENT(2), + /** + * + * + *
+     * Corresponds with SecurityBulletinEvent.
+     * 
+ * + * SECURITY_BULLETIN_EVENT = 3; + */ + SECURITY_BULLETIN_EVENT(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set, will be ignored.
+     * 
+ * + * EVENT_TYPE_UNSPECIFIED = 0; + */ + public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Corresponds with UpgradeAvailableEvent.
+     * 
+ * + * UPGRADE_AVAILABLE_EVENT = 1; + */ + public static final int UPGRADE_AVAILABLE_EVENT_VALUE = 1; + /** + * + * + *
+     * Corresponds with UpgradeEvent.
+     * 
+ * + * UPGRADE_EVENT = 2; + */ + public static final int UPGRADE_EVENT_VALUE = 2; + /** + * + * + *
+     * Corresponds with SecurityBulletinEvent.
+     * 
+ * + * SECURITY_BULLETIN_EVENT = 3; + */ + public static final int SECURITY_BULLETIN_EVENT_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 EventType 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 EventType forNumber(int value) { + switch (value) { + case 0: + return EVENT_TYPE_UNSPECIFIED; + case 1: + return UPGRADE_AVAILABLE_EVENT; + case 2: + return UPGRADE_EVENT; + case 3: + return SECURITY_BULLETIN_EVENT; + 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 EventType findValueByNumber(int number) { + return EventType.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.NotificationConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final EventType[] VALUES = values(); + + public static EventType 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 EventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.NotificationConfig.EventType) + } + + public interface PubSubOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig.PubSub) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Enable notifications for Pub/Sub.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * + * @return The filter. + */ + com.google.container.v1.NotificationConfig.Filter getFilter(); + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder(); + } + /** + * + * + *
+   * Pub/Sub specific notification config.
+   * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig.PubSub} + */ + public static final class PubSub extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig.PubSub) + PubSubOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubSub.newBuilder() to construct. + private PubSub(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PubSub() { + topic_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PubSub(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PubSub( + 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; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } + case 26: + { + com.google.container.v1.NotificationConfig.Filter.Builder subBuilder = null; + if (filter_ != null) { + subBuilder = filter_.toBuilder(); + } + filter_ = + input.readMessage( + com.google.container.v1.NotificationConfig.Filter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filter_); + filter_ = subBuilder.buildPartial(); + } + + 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_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.PubSub.class, + com.google.container.v1.NotificationConfig.PubSub.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+     * Enable notifications for Pub/Sub.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int TOPIC_FIELD_NUMBER = 2; + private volatile java.lang.Object topic_; + /** + * + * + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 3; + private com.google.container.v1.NotificationConfig.Filter filter_; + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return filter_ != null; + } + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * + * @return The filter. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter getFilter() { + return filter_ == null + ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() + : filter_; + } + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { + return getFilter(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); + } + if (filter_ != null) { + output.writeMessage(3, getFilter()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); + } + if (filter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFilter()); + } + 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.NotificationConfig.PubSub)) { + return super.equals(obj); + } + com.google.container.v1.NotificationConfig.PubSub other = + (com.google.container.v1.NotificationConfig.PubSub) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) 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 = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NotificationConfig.PubSub 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.NotificationConfig.PubSub parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + 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.NotificationConfig.PubSub parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + java.io.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.NotificationConfig.PubSub parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NotificationConfig.PubSub parseDelimitedFrom( + java.io.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.NotificationConfig.PubSub parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.NotificationConfig.PubSub prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Pub/Sub specific notification config.
+     * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig.PubSub} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NotificationConfig.PubSub) + com.google.container.v1.NotificationConfig.PubSubOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.PubSub.class, + com.google.container.v1.NotificationConfig.PubSub.Builder.class); + } + + // Construct using com.google.container.v1.NotificationConfig.PubSub.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; + + topic_ = ""; + + if (filterBuilder_ == null) { + filter_ = null; + } else { + filter_ = null; + filterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub getDefaultInstanceForType() { + return com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub build() { + com.google.container.v1.NotificationConfig.PubSub result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub buildPartial() { + com.google.container.v1.NotificationConfig.PubSub result = + new com.google.container.v1.NotificationConfig.PubSub(this); + result.enabled_ = enabled_; + result.topic_ = topic_; + if (filterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.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.NotificationConfig.PubSub) { + return mergeFrom((com.google.container.v1.NotificationConfig.PubSub) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NotificationConfig.PubSub other) { + if (other == com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + 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.NotificationConfig.PubSub parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.NotificationConfig.PubSub) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+       * Enable notifications for Pub/Sub.
+       * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+       * Enable notifications for Pub/Sub.
+       * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Enable notifications for Pub/Sub.
+       * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object topic_ = ""; + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topic_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + /** + * + * + *
+       * The desired Pub/Sub topic to which notifications will be
+       * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+       * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topic_ = value; + onChanged(); + return this; + } + + private com.google.container.v1.NotificationConfig.Filter filter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.Filter, + com.google.container.v1.NotificationConfig.Filter.Builder, + com.google.container.v1.NotificationConfig.FilterOrBuilder> + filterBuilder_; + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return filterBuilder_ != null || filter_ != null; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * + * @return The filter. + */ + public com.google.container.v1.NotificationConfig.Filter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null + ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() + : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public Builder setFilter(com.google.container.v1.NotificationConfig.Filter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public Builder setFilter( + com.google.container.v1.NotificationConfig.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public Builder mergeFilter(com.google.container.v1.NotificationConfig.Filter value) { + if (filterBuilder_ == null) { + if (filter_ != null) { + filter_ = + com.google.container.v1.NotificationConfig.Filter.newBuilder(filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + filterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = null; + onChanged(); + } else { + filter_ = null; + filterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public com.google.container.v1.NotificationConfig.Filter.Builder getFilterBuilder() { + + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null + ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() + : filter_; + } + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.Filter, + com.google.container.v1.NotificationConfig.Filter.Builder, + com.google.container.v1.NotificationConfig.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.Filter, + com.google.container.v1.NotificationConfig.Filter.Builder, + com.google.container.v1.NotificationConfig.FilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + @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.NotificationConfig.PubSub) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig.PubSub) + private static final com.google.container.v1.NotificationConfig.PubSub DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig.PubSub(); + } + + public static com.google.container.v1.NotificationConfig.PubSub getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSub parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PubSub(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.NotificationConfig.PubSub getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig.Filter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the eventType. + */ + java.util.List getEventTypeList(); + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return The count of eventType. + */ + int getEventTypeCount(); + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + com.google.container.v1.NotificationConfig.EventType getEventType(int index); + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the enum numeric values on the wire for eventType. + */ + java.util.List getEventTypeValueList(); + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + int getEventTypeValue(int index); + } + /** + * + * + *
+   * Allows filtering to one or more specific event types. If event types are
+   * present, those and only those event types will be transmitted to the
+   * cluster. Other types will be skipped. If no filter is specified, or no
+   * event types are present, all event types will be sent
+   * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig.Filter} + */ + public static final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Filter() { + eventType_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Filter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Filter( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + eventType_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + eventType_.add(rawValue); + break; + } + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + eventType_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + eventType_.add(rawValue); + } + input.popLimit(oldLimit); + 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)) { + eventType_ = java.util.Collections.unmodifiableList(eventType_); + } + 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_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.Filter.class, + com.google.container.v1.NotificationConfig.Filter.Builder.class); + } + + public static final int EVENT_TYPE_FIELD_NUMBER = 1; + private java.util.List eventType_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.NotificationConfig.EventType> + eventType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>() { + public com.google.container.v1.NotificationConfig.EventType convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.container.v1.NotificationConfig.EventType result = + com.google.container.v1.NotificationConfig.EventType.valueOf(from); + return result == null + ? com.google.container.v1.NotificationConfig.EventType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the eventType. + */ + @java.lang.Override + public java.util.List getEventTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>( + eventType_, eventType_converter_); + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return The count of eventType. + */ + @java.lang.Override + public int getEventTypeCount() { + return eventType_.size(); + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.EventType getEventType(int index) { + return eventType_converter_.convert(eventType_.get(index)); + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the enum numeric values on the wire for eventType. + */ + @java.lang.Override + public java.util.List getEventTypeValueList() { + return eventType_; + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + @java.lang.Override + public int getEventTypeValue(int index) { + return eventType_.get(index); + } + + private int eventTypeMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getEventTypeList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(eventTypeMemoizedSerializedSize); + } + for (int i = 0; i < eventType_.size(); i++) { + output.writeEnumNoTag(eventType_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < eventType_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(eventType_.get(i)); + } + size += dataSize; + if (!getEventTypeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + eventTypeMemoizedSerializedSize = dataSize; + } + 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.NotificationConfig.Filter)) { + return super.equals(obj); + } + com.google.container.v1.NotificationConfig.Filter other = + (com.google.container.v1.NotificationConfig.Filter) obj; + + if (!eventType_.equals(other.eventType_)) 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 (getEventTypeCount() > 0) { + hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + eventType_.hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NotificationConfig.Filter 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.NotificationConfig.Filter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + 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.NotificationConfig.Filter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + java.io.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.NotificationConfig.Filter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NotificationConfig.Filter parseDelimitedFrom( + java.io.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.NotificationConfig.Filter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.NotificationConfig.Filter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Allows filtering to one or more specific event types. If event types are
+     * present, those and only those event types will be transmitted to the
+     * cluster. Other types will be skipped. If no filter is specified, or no
+     * event types are present, all event types will be sent
+     * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig.Filter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NotificationConfig.Filter) + com.google.container.v1.NotificationConfig.FilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.Filter.class, + com.google.container.v1.NotificationConfig.Filter.Builder.class); + } + + // Construct using com.google.container.v1.NotificationConfig.Filter.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(); + eventType_ = java.util.Collections.emptyList(); + 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_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter getDefaultInstanceForType() { + return com.google.container.v1.NotificationConfig.Filter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter build() { + com.google.container.v1.NotificationConfig.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter buildPartial() { + com.google.container.v1.NotificationConfig.Filter result = + new com.google.container.v1.NotificationConfig.Filter(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + eventType_ = java.util.Collections.unmodifiableList(eventType_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.eventType_ = eventType_; + 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.NotificationConfig.Filter) { + return mergeFrom((com.google.container.v1.NotificationConfig.Filter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NotificationConfig.Filter other) { + if (other == com.google.container.v1.NotificationConfig.Filter.getDefaultInstance()) + return this; + if (!other.eventType_.isEmpty()) { + if (eventType_.isEmpty()) { + eventType_ = other.eventType_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventTypeIsMutable(); + eventType_.addAll(other.eventType_); + } + 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.NotificationConfig.Filter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.NotificationConfig.Filter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List eventType_ = java.util.Collections.emptyList(); + + private void ensureEventTypeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + eventType_ = new java.util.ArrayList(eventType_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the eventType. + */ + public java.util.List + getEventTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>( + eventType_, eventType_converter_); + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return The count of eventType. + */ + public int getEventTypeCount() { + return eventType_.size(); + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + public com.google.container.v1.NotificationConfig.EventType getEventType(int index) { + return eventType_converter_.convert(eventType_.get(index)); + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param index The index to set the value at. + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType( + int index, com.google.container.v1.NotificationConfig.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventTypeIsMutable(); + eventType_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param value The eventType to add. + * @return This builder for chaining. + */ + public Builder addEventType(com.google.container.v1.NotificationConfig.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventTypeIsMutable(); + eventType_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param values The eventType to add. + * @return This builder for chaining. + */ + public Builder addAllEventType( + java.lang.Iterable + values) { + ensureEventTypeIsMutable(); + for (com.google.container.v1.NotificationConfig.EventType value : values) { + eventType_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearEventType() { + eventType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the enum numeric values on the wire for eventType. + */ + public java.util.List getEventTypeValueList() { + return java.util.Collections.unmodifiableList(eventType_); + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + public int getEventTypeValue(int index) { + return eventType_.get(index); + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + * @return This builder for chaining. + */ + public Builder setEventTypeValue(int index, int value) { + ensureEventTypeIsMutable(); + eventType_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param value The enum numeric value on the wire for eventType to add. + * @return This builder for chaining. + */ + public Builder addEventTypeValue(int value) { + ensureEventTypeIsMutable(); + eventType_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * + * @param values The enum numeric values on the wire for eventType to add. + * @return This builder for chaining. + */ + public Builder addAllEventTypeValue(java.lang.Iterable values) { + ensureEventTypeIsMutable(); + for (int value : values) { + eventType_.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.NotificationConfig.Filter) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig.Filter) + private static final com.google.container.v1.NotificationConfig.Filter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig.Filter(); + } + + public static com.google.container.v1.NotificationConfig.Filter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Filter(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.NotificationConfig.Filter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int PUBSUB_FIELD_NUMBER = 1; + private com.google.container.v1.NotificationConfig.PubSub pubsub_; + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * + * @return Whether the pubsub field is set. + */ + @java.lang.Override + public boolean hasPubsub() { + return pubsub_ != null; + } + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * + * @return The pubsub. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub getPubsub() { + return pubsub_ == null + ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() + : pubsub_; + } + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { + return getPubsub(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (pubsub_ != null) { + output.writeMessage(1, getPubsub()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pubsub_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPubsub()); + } + 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.NotificationConfig)) { + return super.equals(obj); + } + com.google.container.v1.NotificationConfig other = + (com.google.container.v1.NotificationConfig) obj; + + if (hasPubsub() != other.hasPubsub()) return false; + if (hasPubsub()) { + if (!getPubsub().equals(other.getPubsub())) 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 (hasPubsub()) { + hash = (37 * hash) + PUBSUB_FIELD_NUMBER; + hash = (53 * hash) + getPubsub().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NotificationConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NotificationConfig 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.NotificationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NotificationConfig parseFrom( + 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.NotificationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.NotificationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.NotificationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NotificationConfig parseFrom( + java.io.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.NotificationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NotificationConfig parseDelimitedFrom( + java.io.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.NotificationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.NotificationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.NotificationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * NotificationConfig is the configuration of notifications.
+   * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NotificationConfig) + com.google.container.v1.NotificationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.class, + com.google.container.v1.NotificationConfig.Builder.class); + } + + // Construct using com.google.container.v1.NotificationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (pubsubBuilder_ == null) { + pubsub_ = null; + } else { + pubsub_ = null; + pubsubBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_NotificationConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig getDefaultInstanceForType() { + return com.google.container.v1.NotificationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig build() { + com.google.container.v1.NotificationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig buildPartial() { + com.google.container.v1.NotificationConfig result = + new com.google.container.v1.NotificationConfig(this); + if (pubsubBuilder_ == null) { + result.pubsub_ = pubsub_; + } else { + result.pubsub_ = pubsubBuilder_.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.NotificationConfig) { + return mergeFrom((com.google.container.v1.NotificationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NotificationConfig other) { + if (other == com.google.container.v1.NotificationConfig.getDefaultInstance()) return this; + if (other.hasPubsub()) { + mergePubsub(other.getPubsub()); + } + 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.NotificationConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.NotificationConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1.NotificationConfig.PubSub pubsub_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.PubSub, + com.google.container.v1.NotificationConfig.PubSub.Builder, + com.google.container.v1.NotificationConfig.PubSubOrBuilder> + pubsubBuilder_; + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * + * @return Whether the pubsub field is set. + */ + public boolean hasPubsub() { + return pubsubBuilder_ != null || pubsub_ != null; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * + * @return The pubsub. + */ + public com.google.container.v1.NotificationConfig.PubSub getPubsub() { + if (pubsubBuilder_ == null) { + return pubsub_ == null + ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() + : pubsub_; + } else { + return pubsubBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder setPubsub(com.google.container.v1.NotificationConfig.PubSub value) { + if (pubsubBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pubsub_ = value; + onChanged(); + } else { + pubsubBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder setPubsub( + com.google.container.v1.NotificationConfig.PubSub.Builder builderForValue) { + if (pubsubBuilder_ == null) { + pubsub_ = builderForValue.build(); + onChanged(); + } else { + pubsubBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder mergePubsub(com.google.container.v1.NotificationConfig.PubSub value) { + if (pubsubBuilder_ == null) { + if (pubsub_ != null) { + pubsub_ = + com.google.container.v1.NotificationConfig.PubSub.newBuilder(pubsub_) + .mergeFrom(value) + .buildPartial(); + } else { + pubsub_ = value; + } + onChanged(); + } else { + pubsubBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder clearPubsub() { + if (pubsubBuilder_ == null) { + pubsub_ = null; + onChanged(); + } else { + pubsub_ = null; + pubsubBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public com.google.container.v1.NotificationConfig.PubSub.Builder getPubsubBuilder() { + + onChanged(); + return getPubsubFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { + if (pubsubBuilder_ != null) { + return pubsubBuilder_.getMessageOrBuilder(); + } else { + return pubsub_ == null + ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() + : pubsub_; + } + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.PubSub, + com.google.container.v1.NotificationConfig.PubSub.Builder, + com.google.container.v1.NotificationConfig.PubSubOrBuilder> + getPubsubFieldBuilder() { + if (pubsubBuilder_ == null) { + pubsubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.PubSub, + com.google.container.v1.NotificationConfig.PubSub.Builder, + com.google.container.v1.NotificationConfig.PubSubOrBuilder>( + getPubsub(), getParentForChildren(), isClean()); + pubsub_ = null; + } + return pubsubBuilder_; + } + + @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.NotificationConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig) + private static final com.google.container.v1.NotificationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig(); + } + + public static com.google.container.v1.NotificationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationConfig(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.NotificationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfigOrBuilder.java new file mode 100644 index 00000000..dce60f58 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfigOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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 NotificationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * + * @return Whether the pubsub field is set. + */ + boolean hasPubsub(); + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * + * @return The pubsub. + */ + com.google.container.v1.NotificationConfig.PubSub getPubsub(); + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder(); +} 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 a09b52f5..55182381 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 @@ -201,6 +201,20 @@ private Operation( com.google.container.v1.StatusCondition.parser(), extensionRegistry)); break; } + case 122: + { + com.google.rpc.Status.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -1139,13 +1153,17 @@ public com.google.protobuf.ByteString getDetailBytes() { * *
    * Output only. If an error has occurred, a textual description of the error.
+   * Deprecated. Use the field error instead.
    * 
* - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @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) { @@ -1162,13 +1180,17 @@ public java.lang.String getStatusMessage() { * *
    * Output only. If an error has occurred, a textual description of the error.
+   * Deprecated. Use the field error instead.
    * 
* - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @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) { @@ -1499,11 +1521,15 @@ public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() * *
    * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public java.util.List getClusterConditionsList() { return clusterConditions_; } @@ -1512,11 +1538,15 @@ public java.util.List getClusterConditi * *
    * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public java.util.List getClusterConditionsOrBuilderList() { return clusterConditions_; @@ -1526,11 +1556,15 @@ public java.util.List getClusterConditi * *
    * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public int getClusterConditionsCount() { return clusterConditions_.size(); } @@ -1539,11 +1573,15 @@ public int getClusterConditionsCount() { * *
    * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.StatusCondition getClusterConditions(int index) { return clusterConditions_.get(index); } @@ -1552,11 +1590,15 @@ public com.google.container.v1.StatusCondition getClusterConditions(int index) { * *
    * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder(int index) { return clusterConditions_.get(index); } @@ -1568,11 +1610,15 @@ public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBu * *
    * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public java.util.List getNodepoolConditionsList() { return nodepoolConditions_; } @@ -1581,11 +1627,15 @@ public java.util.List getNodepoolCondit * *
    * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public java.util.List getNodepoolConditionsOrBuilderList() { return nodepoolConditions_; @@ -1595,11 +1645,15 @@ public java.util.List getNodepoolCondit * *
    * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public int getNodepoolConditionsCount() { return nodepoolConditions_.size(); } @@ -1608,11 +1662,15 @@ public int getNodepoolConditionsCount() { * *
    * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.StatusCondition getNodepoolConditions(int index) { return nodepoolConditions_.get(index); } @@ -1621,16 +1679,66 @@ public com.google.container.v1.StatusCondition getNodepoolConditions(int index) * *
    * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( int index) { return nodepoolConditions_.get(index); } + public static final int ERROR_FIELD_NUMBER = 15; + private com.google.rpc.Status error_; + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return error_ != null; + } + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return getError(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1687,6 +1795,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < nodepoolConditions_.size(); i++) { output.writeMessage(14, nodepoolConditions_.get(i)); } + if (error_ != null) { + output.writeMessage(15, getError()); + } unknownFields.writeTo(output); } @@ -1740,6 +1851,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, nodepoolConditions_.get(i)); } + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1772,6 +1886,10 @@ public boolean equals(final java.lang.Object obj) { } if (!getClusterConditionsList().equals(other.getClusterConditionsList())) return false; if (!getNodepoolConditionsList().equals(other.getNodepoolConditionsList())) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1817,6 +1935,10 @@ public int hashCode() { hash = (37 * hash) + NODEPOOL_CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getNodepoolConditionsList().hashCode(); } + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2005,6 +2127,12 @@ public Builder clear() { } else { nodepoolConditionsBuilder_.clear(); } + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } return this; } @@ -2066,6 +2194,11 @@ public com.google.container.v1.Operation buildPartial() { } else { result.nodepoolConditions_ = nodepoolConditionsBuilder_.build(); } + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } onBuilt(); return result; } @@ -2214,6 +2347,9 @@ public Builder mergeFrom(com.google.container.v1.Operation other) { } } } + if (other.hasError()) { + mergeError(other.getError()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2766,12 +2902,16 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { * *
      * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use the field error instead.
      * 
* - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The statusMessage. */ + @java.lang.Deprecated public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { @@ -2788,12 +2928,16 @@ public java.lang.String getStatusMessage() { * *
      * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use the field error instead.
      * 
* - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for statusMessage. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { @@ -2810,13 +2954,17 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * *
      * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use the field error instead.
      * 
* - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @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(); @@ -2831,12 +2979,16 @@ public Builder setStatusMessage(java.lang.String value) { * *
      * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use the field error instead.
      * 
* - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearStatusMessage() { statusMessage_ = getDefaultInstance().getStatusMessage(); @@ -2848,13 +3000,17 @@ public Builder clearStatusMessage() { * *
      * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use the field error instead.
      * 
* - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @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(); @@ -3651,10 +3807,14 @@ private void ensureClusterConditionsIsMutable() { * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public java.util.List getClusterConditionsList() { if (clusterConditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(clusterConditions_); @@ -3667,10 +3827,14 @@ public java.util.List getClusterConditi * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public int getClusterConditionsCount() { if (clusterConditionsBuilder_ == null) { return clusterConditions_.size(); @@ -3683,10 +3847,14 @@ public int getClusterConditionsCount() { * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition getClusterConditions(int index) { if (clusterConditionsBuilder_ == null) { return clusterConditions_.get(index); @@ -3699,10 +3867,14 @@ public com.google.container.v1.StatusCondition getClusterConditions(int index) { * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setClusterConditions(int index, com.google.container.v1.StatusCondition value) { if (clusterConditionsBuilder_ == null) { if (value == null) { @@ -3721,10 +3893,14 @@ public Builder setClusterConditions(int index, com.google.container.v1.StatusCon * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setClusterConditions( int index, com.google.container.v1.StatusCondition.Builder builderForValue) { if (clusterConditionsBuilder_ == null) { @@ -3741,10 +3917,14 @@ public Builder setClusterConditions( * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addClusterConditions(com.google.container.v1.StatusCondition value) { if (clusterConditionsBuilder_ == null) { if (value == null) { @@ -3763,10 +3943,14 @@ public Builder addClusterConditions(com.google.container.v1.StatusCondition valu * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addClusterConditions(int index, com.google.container.v1.StatusCondition value) { if (clusterConditionsBuilder_ == null) { if (value == null) { @@ -3785,10 +3969,14 @@ public Builder addClusterConditions(int index, com.google.container.v1.StatusCon * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addClusterConditions( com.google.container.v1.StatusCondition.Builder builderForValue) { if (clusterConditionsBuilder_ == null) { @@ -3805,10 +3993,14 @@ public Builder addClusterConditions( * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addClusterConditions( int index, com.google.container.v1.StatusCondition.Builder builderForValue) { if (clusterConditionsBuilder_ == null) { @@ -3825,10 +4017,14 @@ public Builder addClusterConditions( * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addAllClusterConditions( java.lang.Iterable values) { if (clusterConditionsBuilder_ == null) { @@ -3845,10 +4041,14 @@ public Builder addAllClusterConditions( * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearClusterConditions() { if (clusterConditionsBuilder_ == null) { clusterConditions_ = java.util.Collections.emptyList(); @@ -3864,10 +4064,14 @@ public Builder clearClusterConditions() { * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder removeClusterConditions(int index) { if (clusterConditionsBuilder_ == null) { ensureClusterConditionsIsMutable(); @@ -3883,10 +4087,14 @@ public Builder removeClusterConditions(int index) { * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Builder getClusterConditionsBuilder(int index) { return getClusterConditionsFieldBuilder().getBuilder(index); } @@ -3895,10 +4103,14 @@ public com.google.container.v1.StatusCondition.Builder getClusterConditionsBuild * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder( int index) { if (clusterConditionsBuilder_ == null) { @@ -3912,10 +4124,14 @@ public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBu * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public java.util.List getClusterConditionsOrBuilderList() { if (clusterConditionsBuilder_ != null) { @@ -3929,10 +4145,14 @@ public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBu * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuilder() { return getClusterConditionsFieldBuilder() .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); @@ -3942,10 +4162,14 @@ public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuild * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuilder(int index) { return getClusterConditionsFieldBuilder() .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); @@ -3955,10 +4179,14 @@ public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuild * *
      * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated public java.util.List getClusterConditionsBuilderList() { return getClusterConditionsFieldBuilder().getBuilderList(); @@ -4006,10 +4234,14 @@ private void ensureNodepoolConditionsIsMutable() { * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public java.util.List getNodepoolConditionsList() { if (nodepoolConditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(nodepoolConditions_); @@ -4022,10 +4254,14 @@ public java.util.List getNodepoolCondit * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public int getNodepoolConditionsCount() { if (nodepoolConditionsBuilder_ == null) { return nodepoolConditions_.size(); @@ -4038,10 +4274,14 @@ public int getNodepoolConditionsCount() { * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition getNodepoolConditions(int index) { if (nodepoolConditionsBuilder_ == null) { return nodepoolConditions_.get(index); @@ -4054,10 +4294,14 @@ public com.google.container.v1.StatusCondition getNodepoolConditions(int index) * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setNodepoolConditions(int index, com.google.container.v1.StatusCondition value) { if (nodepoolConditionsBuilder_ == null) { if (value == null) { @@ -4076,10 +4320,14 @@ public Builder setNodepoolConditions(int index, com.google.container.v1.StatusCo * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setNodepoolConditions( int index, com.google.container.v1.StatusCondition.Builder builderForValue) { if (nodepoolConditionsBuilder_ == null) { @@ -4096,10 +4344,14 @@ public Builder setNodepoolConditions( * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addNodepoolConditions(com.google.container.v1.StatusCondition value) { if (nodepoolConditionsBuilder_ == null) { if (value == null) { @@ -4118,10 +4370,14 @@ public Builder addNodepoolConditions(com.google.container.v1.StatusCondition val * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addNodepoolConditions(int index, com.google.container.v1.StatusCondition value) { if (nodepoolConditionsBuilder_ == null) { if (value == null) { @@ -4140,10 +4396,14 @@ public Builder addNodepoolConditions(int index, com.google.container.v1.StatusCo * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addNodepoolConditions( com.google.container.v1.StatusCondition.Builder builderForValue) { if (nodepoolConditionsBuilder_ == null) { @@ -4160,10 +4420,14 @@ public Builder addNodepoolConditions( * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addNodepoolConditions( int index, com.google.container.v1.StatusCondition.Builder builderForValue) { if (nodepoolConditionsBuilder_ == null) { @@ -4180,10 +4444,14 @@ public Builder addNodepoolConditions( * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder addAllNodepoolConditions( java.lang.Iterable values) { if (nodepoolConditionsBuilder_ == null) { @@ -4200,10 +4468,14 @@ public Builder addAllNodepoolConditions( * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearNodepoolConditions() { if (nodepoolConditionsBuilder_ == null) { nodepoolConditions_ = java.util.Collections.emptyList(); @@ -4219,10 +4491,14 @@ public Builder clearNodepoolConditions() { * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder removeNodepoolConditions(int index) { if (nodepoolConditionsBuilder_ == null) { ensureNodepoolConditionsIsMutable(); @@ -4238,10 +4514,14 @@ public Builder removeNodepoolConditions(int index) { * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Builder getNodepoolConditionsBuilder(int index) { return getNodepoolConditionsFieldBuilder().getBuilder(index); } @@ -4250,10 +4530,14 @@ public com.google.container.v1.StatusCondition.Builder getNodepoolConditionsBuil * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( int index) { if (nodepoolConditionsBuilder_ == null) { @@ -4267,10 +4551,14 @@ public com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrB * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public java.util.List getNodepoolConditionsOrBuilderList() { if (nodepoolConditionsBuilder_ != null) { @@ -4284,10 +4572,14 @@ public com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrB * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuilder() { return getNodepoolConditionsFieldBuilder() .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); @@ -4297,10 +4589,14 @@ public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuil * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuilder(int index) { return getNodepoolConditionsFieldBuilder() .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); @@ -4310,10 +4606,14 @@ public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuil * *
      * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
      * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated public java.util.List getNodepoolConditionsBuilderList() { return getNodepoolConditionsFieldBuilder().getBuilderList(); @@ -4339,6 +4639,179 @@ public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuil return nodepoolConditionsBuilder_; } + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); 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 5316cdcd..f37f2801 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 @@ -159,24 +159,32 @@ public interface OperationOrBuilder * *
    * Output only. If an error has occurred, a textual description of the error.
+   * Deprecated. Use the field error instead.
    * 
* - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The statusMessage. */ + @java.lang.Deprecated java.lang.String getStatusMessage(); /** * * *
    * Output only. If an error has occurred, a textual description of the error.
+   * Deprecated. Use the field error instead.
    * 
* - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for statusMessage. */ + @java.lang.Deprecated com.google.protobuf.ByteString getStatusMessageBytes(); /** @@ -362,40 +370,56 @@ public interface OperationOrBuilder * *
    * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated java.util.List getClusterConditionsList(); /** * * *
    * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.container.v1.StatusCondition getClusterConditions(int index); /** * * *
    * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated int getClusterConditionsCount(); /** * * *
    * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated java.util.List getClusterConditionsOrBuilderList(); /** @@ -403,10 +427,14 @@ public interface OperationOrBuilder * *
    * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder(int index); /** @@ -414,40 +442,56 @@ public interface OperationOrBuilder * *
    * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated java.util.List getNodepoolConditionsList(); /** * * *
    * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.container.v1.StatusCondition getNodepoolConditions(int index); /** * * *
    * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated int getNodepoolConditionsCount(); /** * * *
    * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated java.util.List getNodepoolConditionsOrBuilderList(); /** @@ -455,9 +499,48 @@ public interface OperationOrBuilder * *
    * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
    * 
* - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder(int index); + + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + * + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + * + * @return The error. + */ + com.google.rpc.Status getError(); + /** + * + * + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateIPv6GoogleAccess.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateIPv6GoogleAccess.java new file mode 100644 index 00000000..44bae8d7 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateIPv6GoogleAccess.java @@ -0,0 +1,202 @@ +/* + * 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; + +/** + * + * + *
+ * PrivateIPv6GoogleAccess controls whether and how the pods can communicate
+ * with Google Services through gRPC over IPv6.
+ * 
+ * + * Protobuf enum {@code google.container.v1.PrivateIPv6GoogleAccess} + */ +public enum PrivateIPv6GoogleAccess implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value. Same as DISABLED
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED(0), + /** + * + * + *
+   * No private access to or from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED(1), + /** + * + * + *
+   * Enables private IPv6 access to Google Services from GKE
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE(2), + /** + * + * + *
+   * Enables priate IPv6 access to and from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value. Same as DISABLED
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * No private access to or from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED_VALUE = 1; + /** + * + * + *
+   * Enables private IPv6 access to Google Services from GKE
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE_VALUE = 2; + /** + * + * + *
+   * Enables priate IPv6 access to and from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL_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 PrivateIPv6GoogleAccess 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 PrivateIPv6GoogleAccess forNumber(int value) { + switch (value) { + case 0: + return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED; + case 1: + return PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED; + case 2: + return PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE; + case 3: + return PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL; + 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 PrivateIPv6GoogleAccess findValueByNumber(int number) { + return PrivateIPv6GoogleAccess.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.ClusterServiceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final PrivateIPv6GoogleAccess[] VALUES = values(); + + public static PrivateIPv6GoogleAccess 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 PrivateIPv6GoogleAccess(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.PrivateIPv6GoogleAccess) +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEvent.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEvent.java new file mode 100644 index 00000000..7735bbf5 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEvent.java @@ -0,0 +1,2509 @@ +/* + * 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; + +/** + * + * + *
+ * SecurityBulletinEvent is a notification sent to customers when a security
+ * bulletin has been posted that they are vulnerable to.
+ * 
+ * + * Protobuf type {@code google.container.v1.SecurityBulletinEvent} + */ +public final class SecurityBulletinEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.SecurityBulletinEvent) + SecurityBulletinEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecurityBulletinEvent.newBuilder() to construct. + private SecurityBulletinEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecurityBulletinEvent() { + resourceTypeAffected_ = ""; + bulletinId_ = ""; + cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + severity_ = ""; + bulletinUri_ = ""; + briefDescription_ = ""; + affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + suggestedUpgradeTarget_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecurityBulletinEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SecurityBulletinEvent( + 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(); + + resourceTypeAffected_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + bulletinId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cveIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + cveIds_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + severity_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + bulletinUri_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + briefDescription_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + affectedSupportedMinors_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + affectedSupportedMinors_.add(s); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + patchedVersions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + patchedVersions_.add(s); + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + suggestedUpgradeTarget_ = s; + break; + } + case 80: + { + manualStepsRequired_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + cveIds_ = cveIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + affectedSupportedMinors_ = affectedSupportedMinors_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + patchedVersions_ = patchedVersions_.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_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecurityBulletinEvent.class, + com.google.container.v1.SecurityBulletinEvent.Builder.class); + } + + public static final int RESOURCE_TYPE_AFFECTED_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceTypeAffected_; + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The resourceTypeAffected. + */ + @java.lang.Override + public java.lang.String getResourceTypeAffected() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceTypeAffected_ = s; + return s; + } + } + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The bytes for resourceTypeAffected. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeAffectedBytes() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceTypeAffected_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BULLETIN_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object bulletinId_; + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bulletinId. + */ + @java.lang.Override + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinId_ = s; + return s; + } + } + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bytes for bulletinId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CVE_IDS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList cveIds_; + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return A list containing the cveIds. + */ + public com.google.protobuf.ProtocolStringList getCveIdsList() { + return cveIds_; + } + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return The count of cveIds. + */ + public int getCveIdsCount() { + return cveIds_.size(); + } + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + public java.lang.String getCveIds(int index) { + return cveIds_.get(index); + } + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + public com.google.protobuf.ByteString getCveIdsBytes(int index) { + return cveIds_.getByteString(index); + } + + public static final int SEVERITY_FIELD_NUMBER = 4; + private volatile java.lang.Object severity_; + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The severity. + */ + @java.lang.Override + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } + } + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The bytes for severity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BULLETIN_URI_FIELD_NUMBER = 5; + private volatile java.lang.Object bulletinUri_; + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bulletinUri. + */ + @java.lang.Override + public java.lang.String getBulletinUri() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinUri_ = s; + return s; + } + } + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bytes for bulletinUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBulletinUriBytes() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRIEF_DESCRIPTION_FIELD_NUMBER = 6; + private volatile java.lang.Object briefDescription_; + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The briefDescription. + */ + @java.lang.Override + public java.lang.String getBriefDescription() { + java.lang.Object ref = briefDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + briefDescription_ = s; + return s; + } + } + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The bytes for briefDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBriefDescriptionBytes() { + java.lang.Object ref = briefDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + briefDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList affectedSupportedMinors_; + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return A list containing the affectedSupportedMinors. + */ + public com.google.protobuf.ProtocolStringList getAffectedSupportedMinorsList() { + return affectedSupportedMinors_; + } + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return The count of affectedSupportedMinors. + */ + public int getAffectedSupportedMinorsCount() { + return affectedSupportedMinors_.size(); + } + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + public java.lang.String getAffectedSupportedMinors(int index) { + return affectedSupportedMinors_.get(index); + } + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + public com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index) { + return affectedSupportedMinors_.getByteString(index); + } + + public static final int PATCHED_VERSIONS_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList patchedVersions_; + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return A list containing the patchedVersions. + */ + public com.google.protobuf.ProtocolStringList getPatchedVersionsList() { + return patchedVersions_; + } + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return The count of patchedVersions. + */ + public int getPatchedVersionsCount() { + return patchedVersions_.size(); + } + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + public java.lang.String getPatchedVersions(int index) { + return patchedVersions_.get(index); + } + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + public com.google.protobuf.ByteString getPatchedVersionsBytes(int index) { + return patchedVersions_.getByteString(index); + } + + public static final int SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER = 9; + private volatile java.lang.Object suggestedUpgradeTarget_; + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The suggestedUpgradeTarget. + */ + @java.lang.Override + public java.lang.String getSuggestedUpgradeTarget() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedUpgradeTarget_ = s; + return s; + } + } + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The bytes for suggestedUpgradeTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestedUpgradeTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANUAL_STEPS_REQUIRED_FIELD_NUMBER = 10; + private boolean manualStepsRequired_; + /** + * + * + *
+   * If this field is specified, it means there are manual steps that the user
+   * must take to make their clusters safe.
+   * 
+ * + * bool manual_steps_required = 10; + * + * @return The manualStepsRequired. + */ + @java.lang.Override + public boolean getManualStepsRequired() { + return manualStepsRequired_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypeAffected_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bulletinId_); + } + for (int i = 0; i < cveIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cveIds_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bulletinUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, briefDescription_); + } + for (int i = 0; i < affectedSupportedMinors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 7, affectedSupportedMinors_.getRaw(i)); + } + for (int i = 0; i < patchedVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patchedVersions_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, suggestedUpgradeTarget_); + } + if (manualStepsRequired_ != false) { + output.writeBool(10, manualStepsRequired_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceTypeAffected_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bulletinId_); + } + { + int dataSize = 0; + for (int i = 0; i < cveIds_.size(); i++) { + dataSize += computeStringSizeNoTag(cveIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getCveIdsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bulletinUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, briefDescription_); + } + { + int dataSize = 0; + for (int i = 0; i < affectedSupportedMinors_.size(); i++) { + dataSize += computeStringSizeNoTag(affectedSupportedMinors_.getRaw(i)); + } + size += dataSize; + size += 1 * getAffectedSupportedMinorsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < patchedVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(patchedVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getPatchedVersionsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, suggestedUpgradeTarget_); + } + if (manualStepsRequired_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, manualStepsRequired_); + } + 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.SecurityBulletinEvent)) { + return super.equals(obj); + } + com.google.container.v1.SecurityBulletinEvent other = + (com.google.container.v1.SecurityBulletinEvent) obj; + + if (!getResourceTypeAffected().equals(other.getResourceTypeAffected())) return false; + if (!getBulletinId().equals(other.getBulletinId())) return false; + if (!getCveIdsList().equals(other.getCveIdsList())) return false; + if (!getSeverity().equals(other.getSeverity())) return false; + if (!getBulletinUri().equals(other.getBulletinUri())) return false; + if (!getBriefDescription().equals(other.getBriefDescription())) return false; + if (!getAffectedSupportedMinorsList().equals(other.getAffectedSupportedMinorsList())) + return false; + if (!getPatchedVersionsList().equals(other.getPatchedVersionsList())) return false; + if (!getSuggestedUpgradeTarget().equals(other.getSuggestedUpgradeTarget())) return false; + if (getManualStepsRequired() != other.getManualStepsRequired()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_AFFECTED_FIELD_NUMBER; + hash = (53 * hash) + getResourceTypeAffected().hashCode(); + hash = (37 * hash) + BULLETIN_ID_FIELD_NUMBER; + hash = (53 * hash) + getBulletinId().hashCode(); + if (getCveIdsCount() > 0) { + hash = (37 * hash) + CVE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getCveIdsList().hashCode(); + } + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + getSeverity().hashCode(); + hash = (37 * hash) + BULLETIN_URI_FIELD_NUMBER; + hash = (53 * hash) + getBulletinUri().hashCode(); + hash = (37 * hash) + BRIEF_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getBriefDescription().hashCode(); + if (getAffectedSupportedMinorsCount() > 0) { + hash = (37 * hash) + AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER; + hash = (53 * hash) + getAffectedSupportedMinorsList().hashCode(); + } + if (getPatchedVersionsCount() > 0) { + hash = (37 * hash) + PATCHED_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getPatchedVersionsList().hashCode(); + } + hash = (37 * hash) + SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getSuggestedUpgradeTarget().hashCode(); + hash = (37 * hash) + MANUAL_STEPS_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManualStepsRequired()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SecurityBulletinEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SecurityBulletinEvent 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.SecurityBulletinEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SecurityBulletinEvent parseFrom( + 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.SecurityBulletinEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SecurityBulletinEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.SecurityBulletinEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecurityBulletinEvent parseFrom( + java.io.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.SecurityBulletinEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecurityBulletinEvent parseDelimitedFrom( + java.io.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.SecurityBulletinEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecurityBulletinEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.SecurityBulletinEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SecurityBulletinEvent is a notification sent to customers when a security
+   * bulletin has been posted that they are vulnerable to.
+   * 
+ * + * Protobuf type {@code google.container.v1.SecurityBulletinEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SecurityBulletinEvent) + com.google.container.v1.SecurityBulletinEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecurityBulletinEvent.class, + com.google.container.v1.SecurityBulletinEvent.Builder.class); + } + + // Construct using com.google.container.v1.SecurityBulletinEvent.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(); + resourceTypeAffected_ = ""; + + bulletinId_ = ""; + + cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + severity_ = ""; + + bulletinUri_ = ""; + + briefDescription_ = ""; + + affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + suggestedUpgradeTarget_ = ""; + + manualStepsRequired_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SecurityBulletinEvent getDefaultInstanceForType() { + return com.google.container.v1.SecurityBulletinEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SecurityBulletinEvent build() { + com.google.container.v1.SecurityBulletinEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SecurityBulletinEvent buildPartial() { + com.google.container.v1.SecurityBulletinEvent result = + new com.google.container.v1.SecurityBulletinEvent(this); + int from_bitField0_ = bitField0_; + result.resourceTypeAffected_ = resourceTypeAffected_; + result.bulletinId_ = bulletinId_; + if (((bitField0_ & 0x00000001) != 0)) { + cveIds_ = cveIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cveIds_ = cveIds_; + result.severity_ = severity_; + result.bulletinUri_ = bulletinUri_; + result.briefDescription_ = briefDescription_; + if (((bitField0_ & 0x00000002) != 0)) { + affectedSupportedMinors_ = affectedSupportedMinors_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.affectedSupportedMinors_ = affectedSupportedMinors_; + if (((bitField0_ & 0x00000004) != 0)) { + patchedVersions_ = patchedVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.patchedVersions_ = patchedVersions_; + result.suggestedUpgradeTarget_ = suggestedUpgradeTarget_; + result.manualStepsRequired_ = manualStepsRequired_; + 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.SecurityBulletinEvent) { + return mergeFrom((com.google.container.v1.SecurityBulletinEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SecurityBulletinEvent other) { + if (other == com.google.container.v1.SecurityBulletinEvent.getDefaultInstance()) return this; + if (!other.getResourceTypeAffected().isEmpty()) { + resourceTypeAffected_ = other.resourceTypeAffected_; + onChanged(); + } + if (!other.getBulletinId().isEmpty()) { + bulletinId_ = other.bulletinId_; + onChanged(); + } + if (!other.cveIds_.isEmpty()) { + if (cveIds_.isEmpty()) { + cveIds_ = other.cveIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCveIdsIsMutable(); + cveIds_.addAll(other.cveIds_); + } + onChanged(); + } + if (!other.getSeverity().isEmpty()) { + severity_ = other.severity_; + onChanged(); + } + if (!other.getBulletinUri().isEmpty()) { + bulletinUri_ = other.bulletinUri_; + onChanged(); + } + if (!other.getBriefDescription().isEmpty()) { + briefDescription_ = other.briefDescription_; + onChanged(); + } + if (!other.affectedSupportedMinors_.isEmpty()) { + if (affectedSupportedMinors_.isEmpty()) { + affectedSupportedMinors_ = other.affectedSupportedMinors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.addAll(other.affectedSupportedMinors_); + } + onChanged(); + } + if (!other.patchedVersions_.isEmpty()) { + if (patchedVersions_.isEmpty()) { + patchedVersions_ = other.patchedVersions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePatchedVersionsIsMutable(); + patchedVersions_.addAll(other.patchedVersions_); + } + onChanged(); + } + if (!other.getSuggestedUpgradeTarget().isEmpty()) { + suggestedUpgradeTarget_ = other.suggestedUpgradeTarget_; + onChanged(); + } + if (other.getManualStepsRequired() != false) { + setManualStepsRequired(other.getManualStepsRequired()); + } + 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.SecurityBulletinEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.SecurityBulletinEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object resourceTypeAffected_ = ""; + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @return The resourceTypeAffected. + */ + public java.lang.String getResourceTypeAffected() { + java.lang.Object ref = resourceTypeAffected_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceTypeAffected_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @return The bytes for resourceTypeAffected. + */ + public com.google.protobuf.ByteString getResourceTypeAffectedBytes() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceTypeAffected_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @param value The resourceTypeAffected to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeAffected(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceTypeAffected_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @return This builder for chaining. + */ + public Builder clearResourceTypeAffected() { + + resourceTypeAffected_ = getDefaultInstance().getResourceTypeAffected(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @param value The bytes for resourceTypeAffected to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeAffectedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceTypeAffected_ = value; + onChanged(); + return this; + } + + private java.lang.Object bulletinId_ = ""; + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @return The bulletinId. + */ + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @return The bytes for bulletinId. + */ + public com.google.protobuf.ByteString getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @param value The bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bulletinId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearBulletinId() { + + bulletinId_ = getDefaultInstance().getBulletinId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @param value The bytes for bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bulletinId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList cveIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCveIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cveIds_ = new com.google.protobuf.LazyStringArrayList(cveIds_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @return A list containing the cveIds. + */ + public com.google.protobuf.ProtocolStringList getCveIdsList() { + return cveIds_.getUnmodifiableView(); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @return The count of cveIds. + */ + public int getCveIdsCount() { + return cveIds_.size(); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + public java.lang.String getCveIds(int index) { + return cveIds_.get(index); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + public com.google.protobuf.ByteString getCveIdsBytes(int index) { + return cveIds_.getByteString(index); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index to set the value at. + * @param value The cveIds to set. + * @return This builder for chaining. + */ + public Builder setCveIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCveIdsIsMutable(); + cveIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param value The cveIds to add. + * @return This builder for chaining. + */ + public Builder addCveIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCveIdsIsMutable(); + cveIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param values The cveIds to add. + * @return This builder for chaining. + */ + public Builder addAllCveIds(java.lang.Iterable values) { + ensureCveIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cveIds_); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @return This builder for chaining. + */ + public Builder clearCveIds() { + cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param value The bytes of the cveIds to add. + * @return This builder for chaining. + */ + public Builder addCveIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCveIdsIsMutable(); + cveIds_.add(value); + onChanged(); + return this; + } + + private java.lang.Object severity_ = ""; + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @return The severity. + */ + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @return The bytes for severity. + */ + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + severity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + + severity_ = getDefaultInstance().getSeverity(); + onChanged(); + return this; + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @param value The bytes for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + severity_ = value; + onChanged(); + return this; + } + + private java.lang.Object bulletinUri_ = ""; + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @return The bulletinUri. + */ + public java.lang.String getBulletinUri() { + java.lang.Object ref = bulletinUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @return The bytes for bulletinUri. + */ + public com.google.protobuf.ByteString getBulletinUriBytes() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @param value The bulletinUri to set. + * @return This builder for chaining. + */ + public Builder setBulletinUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bulletinUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearBulletinUri() { + + bulletinUri_ = getDefaultInstance().getBulletinUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @param value The bytes for bulletinUri to set. + * @return This builder for chaining. + */ + public Builder setBulletinUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bulletinUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object briefDescription_ = ""; + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @return The briefDescription. + */ + public java.lang.String getBriefDescription() { + java.lang.Object ref = briefDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + briefDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @return The bytes for briefDescription. + */ + public com.google.protobuf.ByteString getBriefDescriptionBytes() { + java.lang.Object ref = briefDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + briefDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @param value The briefDescription to set. + * @return This builder for chaining. + */ + public Builder setBriefDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + briefDescription_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @return This builder for chaining. + */ + public Builder clearBriefDescription() { + + briefDescription_ = getDefaultInstance().getBriefDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @param value The bytes for briefDescription to set. + * @return This builder for chaining. + */ + public Builder setBriefDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + briefDescription_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAffectedSupportedMinorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + affectedSupportedMinors_ = + new com.google.protobuf.LazyStringArrayList(affectedSupportedMinors_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return A list containing the affectedSupportedMinors. + */ + public com.google.protobuf.ProtocolStringList getAffectedSupportedMinorsList() { + return affectedSupportedMinors_.getUnmodifiableView(); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return The count of affectedSupportedMinors. + */ + public int getAffectedSupportedMinorsCount() { + return affectedSupportedMinors_.size(); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + public java.lang.String getAffectedSupportedMinors(int index) { + return affectedSupportedMinors_.get(index); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + public com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index) { + return affectedSupportedMinors_.getByteString(index); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index to set the value at. + * @param value The affectedSupportedMinors to set. + * @return This builder for chaining. + */ + public Builder setAffectedSupportedMinors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param value The affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAffectedSupportedMinors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param values The affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAllAffectedSupportedMinors(java.lang.Iterable values) { + ensureAffectedSupportedMinorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, affectedSupportedMinors_); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return This builder for chaining. + */ + public Builder clearAffectedSupportedMinors() { + affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param value The bytes of the affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAffectedSupportedMinorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList patchedVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePatchedVersionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + patchedVersions_ = new com.google.protobuf.LazyStringArrayList(patchedVersions_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @return A list containing the patchedVersions. + */ + public com.google.protobuf.ProtocolStringList getPatchedVersionsList() { + return patchedVersions_.getUnmodifiableView(); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @return The count of patchedVersions. + */ + public int getPatchedVersionsCount() { + return patchedVersions_.size(); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + public java.lang.String getPatchedVersions(int index) { + return patchedVersions_.get(index); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + public com.google.protobuf.ByteString getPatchedVersionsBytes(int index) { + return patchedVersions_.getByteString(index); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index to set the value at. + * @param value The patchedVersions to set. + * @return This builder for chaining. + */ + public Builder setPatchedVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatchedVersionsIsMutable(); + patchedVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param value The patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addPatchedVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param values The patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addAllPatchedVersions(java.lang.Iterable values) { + ensurePatchedVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, patchedVersions_); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @return This builder for chaining. + */ + public Builder clearPatchedVersions() { + patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param value The bytes of the patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addPatchedVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(value); + onChanged(); + return this; + } + + private java.lang.Object suggestedUpgradeTarget_ = ""; + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The suggestedUpgradeTarget. + */ + public java.lang.String getSuggestedUpgradeTarget() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedUpgradeTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The bytes for suggestedUpgradeTarget. + */ + public com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestedUpgradeTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @param value The suggestedUpgradeTarget to set. + * @return This builder for chaining. + */ + public Builder setSuggestedUpgradeTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + suggestedUpgradeTarget_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @return This builder for chaining. + */ + public Builder clearSuggestedUpgradeTarget() { + + suggestedUpgradeTarget_ = getDefaultInstance().getSuggestedUpgradeTarget(); + onChanged(); + return this; + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @param value The bytes for suggestedUpgradeTarget to set. + * @return This builder for chaining. + */ + public Builder setSuggestedUpgradeTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + suggestedUpgradeTarget_ = value; + onChanged(); + return this; + } + + private boolean manualStepsRequired_; + /** + * + * + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * + * @return The manualStepsRequired. + */ + @java.lang.Override + public boolean getManualStepsRequired() { + return manualStepsRequired_; + } + /** + * + * + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * + * @param value The manualStepsRequired to set. + * @return This builder for chaining. + */ + public Builder setManualStepsRequired(boolean value) { + + manualStepsRequired_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * + * @return This builder for chaining. + */ + public Builder clearManualStepsRequired() { + + manualStepsRequired_ = 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.SecurityBulletinEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SecurityBulletinEvent) + private static final com.google.container.v1.SecurityBulletinEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.SecurityBulletinEvent(); + } + + public static com.google.container.v1.SecurityBulletinEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityBulletinEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityBulletinEvent(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.SecurityBulletinEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEventOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEventOrBuilder.java new file mode 100644 index 00000000..315059d8 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEventOrBuilder.java @@ -0,0 +1,356 @@ +/* + * 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 SecurityBulletinEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SecurityBulletinEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The resourceTypeAffected. + */ + java.lang.String getResourceTypeAffected(); + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The bytes for resourceTypeAffected. + */ + com.google.protobuf.ByteString getResourceTypeAffectedBytes(); + + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bulletinId. + */ + java.lang.String getBulletinId(); + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bytes for bulletinId. + */ + com.google.protobuf.ByteString getBulletinIdBytes(); + + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return A list containing the cveIds. + */ + java.util.List getCveIdsList(); + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return The count of cveIds. + */ + int getCveIdsCount(); + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + java.lang.String getCveIds(int index); + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + com.google.protobuf.ByteString getCveIdsBytes(int index); + + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The severity. + */ + java.lang.String getSeverity(); + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The bytes for severity. + */ + com.google.protobuf.ByteString getSeverityBytes(); + + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bulletinUri. + */ + java.lang.String getBulletinUri(); + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bytes for bulletinUri. + */ + com.google.protobuf.ByteString getBulletinUriBytes(); + + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The briefDescription. + */ + java.lang.String getBriefDescription(); + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The bytes for briefDescription. + */ + com.google.protobuf.ByteString getBriefDescriptionBytes(); + + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return A list containing the affectedSupportedMinors. + */ + java.util.List getAffectedSupportedMinorsList(); + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return The count of affectedSupportedMinors. + */ + int getAffectedSupportedMinorsCount(); + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + java.lang.String getAffectedSupportedMinors(int index); + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index); + + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return A list containing the patchedVersions. + */ + java.util.List getPatchedVersionsList(); + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return The count of patchedVersions. + */ + int getPatchedVersionsCount(); + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + java.lang.String getPatchedVersions(int index); + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + com.google.protobuf.ByteString getPatchedVersionsBytes(int index); + + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The suggestedUpgradeTarget. + */ + java.lang.String getSuggestedUpgradeTarget(); + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The bytes for suggestedUpgradeTarget. + */ + com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes(); + + /** + * + * + *
+   * If this field is specified, it means there are manual steps that the user
+   * must take to make their clusters safe.
+   * 
+ * + * bool manual_steps_required = 10; + * + * @return The manualStepsRequired. + */ + boolean getManualStepsRequired(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfig.java new file mode 100644 index 00000000..8baa5cb1 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfig.java @@ -0,0 +1,545 @@ +/* + * 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; + +/** + * + * + *
+ * Config to block services with externalIPs field.
+ * 
+ * + * Protobuf type {@code google.container.v1.ServiceExternalIPsConfig} + */ +public final class ServiceExternalIPsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ServiceExternalIPsConfig) + ServiceExternalIPsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServiceExternalIPsConfig.newBuilder() to construct. + private ServiceExternalIPsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServiceExternalIPsConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceExternalIPsConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ServiceExternalIPsConfig( + 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_ServiceExternalIPsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServiceExternalIPsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ServiceExternalIPsConfig.class, + com.google.container.v1.ServiceExternalIPsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Services with ExternalIPs field are allowed 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.ServiceExternalIPsConfig)) { + return super.equals(obj); + } + com.google.container.v1.ServiceExternalIPsConfig other = + (com.google.container.v1.ServiceExternalIPsConfig) 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.ServiceExternalIPsConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ServiceExternalIPsConfig 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.ServiceExternalIPsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + 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.ServiceExternalIPsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + java.io.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.ServiceExternalIPsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ServiceExternalIPsConfig parseDelimitedFrom( + java.io.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.ServiceExternalIPsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.ServiceExternalIPsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Config to block services with externalIPs field.
+   * 
+ * + * Protobuf type {@code google.container.v1.ServiceExternalIPsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ServiceExternalIPsConfig) + com.google.container.v1.ServiceExternalIPsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ServiceExternalIPsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ServiceExternalIPsConfig.class, + com.google.container.v1.ServiceExternalIPsConfig.Builder.class); + } + + // Construct using com.google.container.v1.ServiceExternalIPsConfig.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_ServiceExternalIPsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig getDefaultInstanceForType() { + return com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig build() { + com.google.container.v1.ServiceExternalIPsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig buildPartial() { + com.google.container.v1.ServiceExternalIPsConfig result = + new com.google.container.v1.ServiceExternalIPsConfig(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.ServiceExternalIPsConfig) { + return mergeFrom((com.google.container.v1.ServiceExternalIPsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ServiceExternalIPsConfig other) { + if (other == com.google.container.v1.ServiceExternalIPsConfig.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.ServiceExternalIPsConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.ServiceExternalIPsConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Services with ExternalIPs field are allowed 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; + } + /** + * + * + *
+     * Whether Services with ExternalIPs field are allowed 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.ServiceExternalIPsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ServiceExternalIPsConfig) + private static final com.google.container.v1.ServiceExternalIPsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ServiceExternalIPsConfig(); + } + + public static com.google.container.v1.ServiceExternalIPsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceExternalIPsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServiceExternalIPsConfig(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.ServiceExternalIPsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfigOrBuilder.java new file mode 100644 index 00000000..fac6de36 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfigOrBuilder.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 ServiceExternalIPsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ServiceExternalIPsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Services with ExternalIPs field are allowed 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/SetNodePoolSizeRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java index 0800cb30..652ada8f 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 @@ -22,8 +22,7 @@ * * *
- * SetNodePoolSizeRequest sets the size a node
- * pool.
+ * SetNodePoolSizeRequest sets the size of a node pool.
  * 
* * Protobuf type {@code google.container.v1.SetNodePoolSizeRequest} @@ -646,8 +645,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * SetNodePoolSizeRequest sets the size a node
-   * pool.
+   * SetNodePoolSizeRequest sets the size of a node pool.
    * 
* * Protobuf type {@code google.container.v1.SetNodePoolSizeRequest} 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 88a9002a..61b15e8b 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 @@ -41,6 +41,7 @@ private StatusCondition(com.google.protobuf.GeneratedMessageV3.Builder builde private StatusCondition() { code_ = 0; message_ = ""; + canonicalCode_ = 0; } @java.lang.Override @@ -86,6 +87,13 @@ private StatusCondition( message_ = s; break; } + case 24: + { + int rawValue = input.readEnum(); + + canonicalCode_ = rawValue; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -188,12 +196,21 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
      * Unable to perform an encrypt operation against the CloudKMS key used for
      * etcd level encryption.
-     * More codes TBA
      * 
* * CLOUD_KMS_KEY_ERROR = 7; */ CLOUD_KMS_KEY_ERROR(7), + /** + * + * + *
+     * Cluster CA is expiring soon.
+     * 
+ * + * CA_EXPIRING = 9; + */ + CA_EXPIRING(9), UNRECOGNIZED(-1), ; @@ -255,12 +272,21 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { *
      * Unable to perform an encrypt operation against the CloudKMS key used for
      * etcd level encryption.
-     * More codes TBA
      * 
* * CLOUD_KMS_KEY_ERROR = 7; */ public static final int CLOUD_KMS_KEY_ERROR_VALUE = 7; + /** + * + * + *
+     * Cluster CA is expiring soon.
+     * 
+ * + * CA_EXPIRING = 9; + */ + public static final int CA_EXPIRING_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -298,6 +324,8 @@ public static Code forNumber(int value) { return SET_BY_OPERATOR; case 7: return CLOUD_KMS_KEY_ERROR; + case 9: + return CA_EXPIRING; default: return null; } @@ -358,13 +386,15 @@ private Code(int value) { * *
    * Machine-friendly representation of the condition
+   * Deprecated. Use canonical_code instead.
    * 
* - * .google.container.v1.StatusCondition.Code code = 1; + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @return The enum numeric value on the wire for code. */ @java.lang.Override + @java.lang.Deprecated public int getCodeValue() { return code_; } @@ -373,13 +403,15 @@ public int getCodeValue() { * *
    * Machine-friendly representation of the condition
+   * Deprecated. Use canonical_code instead.
    * 
* - * .google.container.v1.StatusCondition.Code code = 1; + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @return The code. */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Code getCode() { @SuppressWarnings("deprecation") com.google.container.v1.StatusCondition.Code result = @@ -436,6 +468,41 @@ public com.google.protobuf.ByteString getMessageBytes() { } } + public static final int CANONICAL_CODE_FIELD_NUMBER = 3; + private int canonicalCode_; + /** + * + * + *
+   * Canonical code of the condition.
+   * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The enum numeric value on the wire for canonicalCode. + */ + @java.lang.Override + public int getCanonicalCodeValue() { + return canonicalCode_; + } + /** + * + * + *
+   * Canonical code of the condition.
+   * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The canonicalCode. + */ + @java.lang.Override + public com.google.rpc.Code getCanonicalCode() { + @SuppressWarnings("deprecation") + com.google.rpc.Code result = com.google.rpc.Code.valueOf(canonicalCode_); + return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -456,6 +523,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } + if (canonicalCode_ != com.google.rpc.Code.OK.getNumber()) { + output.writeEnum(3, canonicalCode_); + } unknownFields.writeTo(output); } @@ -471,6 +541,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } + if (canonicalCode_ != com.google.rpc.Code.OK.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, canonicalCode_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -488,6 +561,7 @@ public boolean equals(final java.lang.Object obj) { if (code_ != other.code_) return false; if (!getMessage().equals(other.getMessage())) return false; + if (canonicalCode_ != other.canonicalCode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -503,6 +577,8 @@ public int hashCode() { hash = (53 * hash) + code_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + CANONICAL_CODE_FIELD_NUMBER; + hash = (53 * hash) + canonicalCode_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -653,6 +729,8 @@ public Builder clear() { message_ = ""; + canonicalCode_ = 0; + return this; } @@ -682,6 +760,7 @@ public com.google.container.v1.StatusCondition buildPartial() { new com.google.container.v1.StatusCondition(this); result.code_ = code_; result.message_ = message_; + result.canonicalCode_ = canonicalCode_; onBuilt(); return result; } @@ -738,6 +817,9 @@ public Builder mergeFrom(com.google.container.v1.StatusCondition other) { message_ = other.message_; onChanged(); } + if (other.canonicalCode_ != 0) { + setCanonicalCodeValue(other.getCanonicalCodeValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -773,13 +855,15 @@ public Builder mergeFrom( * *
      * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
      * 
* - * .google.container.v1.StatusCondition.Code code = 1; + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @return The enum numeric value on the wire for code. */ @java.lang.Override + @java.lang.Deprecated public int getCodeValue() { return code_; } @@ -788,13 +872,15 @@ public int getCodeValue() { * *
      * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
      * 
* - * .google.container.v1.StatusCondition.Code code = 1; + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setCodeValue(int value) { code_ = value; @@ -806,13 +892,15 @@ public Builder setCodeValue(int value) { * *
      * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
      * 
* - * .google.container.v1.StatusCondition.Code code = 1; + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @return The code. */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Code getCode() { @SuppressWarnings("deprecation") com.google.container.v1.StatusCondition.Code result = @@ -824,13 +912,15 @@ public com.google.container.v1.StatusCondition.Code getCode() { * *
      * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
      * 
* - * .google.container.v1.StatusCondition.Code code = 1; + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @param value The code to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setCode(com.google.container.v1.StatusCondition.Code value) { if (value == null) { throw new NullPointerException(); @@ -845,12 +935,14 @@ public Builder setCode(com.google.container.v1.StatusCondition.Code value) { * *
      * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
      * 
* - * .google.container.v1.StatusCondition.Code code = 1; + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearCode() { code_ = 0; @@ -964,6 +1056,96 @@ public Builder setMessageBytes(com.google.protobuf.ByteString value) { return this; } + private int canonicalCode_ = 0; + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The enum numeric value on the wire for canonicalCode. + */ + @java.lang.Override + public int getCanonicalCodeValue() { + return canonicalCode_; + } + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @param value The enum numeric value on the wire for canonicalCode to set. + * @return This builder for chaining. + */ + public Builder setCanonicalCodeValue(int value) { + + canonicalCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The canonicalCode. + */ + @java.lang.Override + public com.google.rpc.Code getCanonicalCode() { + @SuppressWarnings("deprecation") + com.google.rpc.Code result = com.google.rpc.Code.valueOf(canonicalCode_); + return result == null ? com.google.rpc.Code.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @param value The canonicalCode to set. + * @return This builder for chaining. + */ + public Builder setCanonicalCode(com.google.rpc.Code value) { + if (value == null) { + throw new NullPointerException(); + } + + canonicalCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Canonical code of the condition.
+     * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return This builder for chaining. + */ + public Builder clearCanonicalCode() { + + canonicalCode_ = 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/StatusConditionOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java index a5ee23d2..067c71b9 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java @@ -28,24 +28,28 @@ public interface StatusConditionOrBuilder * *
    * Machine-friendly representation of the condition
+   * Deprecated. Use canonical_code instead.
    * 
* - * .google.container.v1.StatusCondition.Code code = 1; + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @return The enum numeric value on the wire for code. */ + @java.lang.Deprecated int getCodeValue(); /** * * *
    * Machine-friendly representation of the condition
+   * Deprecated. Use canonical_code instead.
    * 
* - * .google.container.v1.StatusCondition.Code code = 1; + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @return The code. */ + @java.lang.Deprecated com.google.container.v1.StatusCondition.Code getCode(); /** @@ -72,4 +76,29 @@ public interface StatusConditionOrBuilder * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+   * Canonical code of the condition.
+   * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The enum numeric value on the wire for canonicalCode. + */ + int getCanonicalCodeValue(); + /** + * + * + *
+   * Canonical code of the condition.
+   * 
+ * + * .google.rpc.Code canonical_code = 3; + * + * @return The canonicalCode. + */ + com.google.rpc.Code getCanonicalCode(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java index f3bb4149..967682af 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java @@ -96,6 +96,25 @@ private TimeWindow( endTime_ = subBuilder.buildPartial(); } + break; + } + case 26: + { + com.google.container.v1.MaintenanceExclusionOptions.Builder subBuilder = null; + if (optionsCase_ == 3) { + subBuilder = + ((com.google.container.v1.MaintenanceExclusionOptions) options_).toBuilder(); + } + options_ = + input.readMessage( + com.google.container.v1.MaintenanceExclusionOptions.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.container.v1.MaintenanceExclusionOptions) options_); + options_ = subBuilder.buildPartial(); + } + optionsCase_ = 3; break; } default: @@ -132,6 +151,108 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.container.v1.TimeWindow.Builder.class); } + private int optionsCase_ = 0; + private java.lang.Object options_; + + public enum OptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAINTENANCE_EXCLUSION_OPTIONS(3), + OPTIONS_NOT_SET(0); + private final int value; + + private OptionsCase(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 OptionsCase valueOf(int value) { + return forNumber(value); + } + + public static OptionsCase forNumber(int value) { + switch (value) { + case 3: + return MAINTENANCE_EXCLUSION_OPTIONS; + case 0: + return OPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OptionsCase getOptionsCase() { + return OptionsCase.forNumber(optionsCase_); + } + + public static final int MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER = 3; + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return Whether the maintenanceExclusionOptions field is set. + */ + @java.lang.Override + public boolean hasMaintenanceExclusionOptions() { + return optionsCase_ == 3; + } + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return The maintenanceExclusionOptions. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { + if (optionsCase_ == 3) { + return (com.google.container.v1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptionsOrBuilder + getMaintenanceExclusionOptionsOrBuilder() { + if (optionsCase_ == 3) { + return (com.google.container.v1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** @@ -247,6 +368,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(2, getEndTime()); } + if (optionsCase_ == 3) { + output.writeMessage(3, (com.google.container.v1.MaintenanceExclusionOptions) options_); + } unknownFields.writeTo(output); } @@ -262,6 +386,11 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } + if (optionsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.container.v1.MaintenanceExclusionOptions) options_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -285,6 +414,15 @@ public boolean equals(final java.lang.Object obj) { if (hasEndTime()) { if (!getEndTime().equals(other.getEndTime())) return false; } + if (!getOptionsCase().equals(other.getOptionsCase())) return false; + switch (optionsCase_) { + case 3: + if (!getMaintenanceExclusionOptions().equals(other.getMaintenanceExclusionOptions())) + return false; + break; + case 0: + default: + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -304,6 +442,14 @@ public int hashCode() { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } + switch (optionsCase_) { + case 3: + hash = (37 * hash) + MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceExclusionOptions().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -460,6 +606,8 @@ public Builder clear() { endTime_ = null; endTimeBuilder_ = null; } + optionsCase_ = 0; + options_ = null; return this; } @@ -486,6 +634,13 @@ public com.google.container.v1.TimeWindow build() { @java.lang.Override public com.google.container.v1.TimeWindow buildPartial() { com.google.container.v1.TimeWindow result = new com.google.container.v1.TimeWindow(this); + if (optionsCase_ == 3) { + if (maintenanceExclusionOptionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = maintenanceExclusionOptionsBuilder_.build(); + } + } if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -496,6 +651,7 @@ public com.google.container.v1.TimeWindow buildPartial() { } else { result.endTime_ = endTimeBuilder_.build(); } + result.optionsCase_ = optionsCase_; onBuilt(); return result; } @@ -551,6 +707,17 @@ public Builder mergeFrom(com.google.container.v1.TimeWindow other) { if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } + switch (other.getOptionsCase()) { + case MAINTENANCE_EXCLUSION_OPTIONS: + { + mergeMaintenanceExclusionOptions(other.getMaintenanceExclusionOptions()); + break; + } + case OPTIONS_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -580,6 +747,252 @@ public Builder mergeFrom( return this; } + private int optionsCase_ = 0; + private java.lang.Object options_; + + public OptionsCase getOptionsCase() { + return OptionsCase.forNumber(optionsCase_); + } + + public Builder clearOptions() { + optionsCase_ = 0; + options_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenanceExclusionOptions, + com.google.container.v1.MaintenanceExclusionOptions.Builder, + com.google.container.v1.MaintenanceExclusionOptionsOrBuilder> + maintenanceExclusionOptionsBuilder_; + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return Whether the maintenanceExclusionOptions field is set. + */ + @java.lang.Override + public boolean hasMaintenanceExclusionOptions() { + return optionsCase_ == 3; + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return The maintenanceExclusionOptions. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (optionsCase_ == 3) { + return (com.google.container.v1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } else { + if (optionsCase_ == 3) { + return maintenanceExclusionOptionsBuilder_.getMessage(); + } + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + public Builder setMaintenanceExclusionOptions( + com.google.container.v1.MaintenanceExclusionOptions value) { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + maintenanceExclusionOptionsBuilder_.setMessage(value); + } + optionsCase_ = 3; + return this; + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + public Builder setMaintenanceExclusionOptions( + com.google.container.v1.MaintenanceExclusionOptions.Builder builderForValue) { + if (maintenanceExclusionOptionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + maintenanceExclusionOptionsBuilder_.setMessage(builderForValue.build()); + } + optionsCase_ = 3; + return this; + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + public Builder mergeMaintenanceExclusionOptions( + com.google.container.v1.MaintenanceExclusionOptions value) { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (optionsCase_ == 3 + && options_ + != com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance()) { + options_ = + com.google.container.v1.MaintenanceExclusionOptions.newBuilder( + (com.google.container.v1.MaintenanceExclusionOptions) options_) + .mergeFrom(value) + .buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + if (optionsCase_ == 3) { + maintenanceExclusionOptionsBuilder_.mergeFrom(value); + } + maintenanceExclusionOptionsBuilder_.setMessage(value); + } + optionsCase_ = 3; + return this; + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + public Builder clearMaintenanceExclusionOptions() { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (optionsCase_ == 3) { + optionsCase_ = 0; + options_ = null; + onChanged(); + } + } else { + if (optionsCase_ == 3) { + optionsCase_ = 0; + options_ = null; + } + maintenanceExclusionOptionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + public com.google.container.v1.MaintenanceExclusionOptions.Builder + getMaintenanceExclusionOptionsBuilder() { + return getMaintenanceExclusionOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptionsOrBuilder + getMaintenanceExclusionOptionsOrBuilder() { + if ((optionsCase_ == 3) && (maintenanceExclusionOptionsBuilder_ != null)) { + return maintenanceExclusionOptionsBuilder_.getMessageOrBuilder(); + } else { + if (optionsCase_ == 3) { + return (com.google.container.v1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenanceExclusionOptions, + com.google.container.v1.MaintenanceExclusionOptions.Builder, + com.google.container.v1.MaintenanceExclusionOptionsOrBuilder> + getMaintenanceExclusionOptionsFieldBuilder() { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (!(optionsCase_ == 3)) { + options_ = com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + maintenanceExclusionOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenanceExclusionOptions, + com.google.container.v1.MaintenanceExclusionOptions.Builder, + com.google.container.v1.MaintenanceExclusionOptionsOrBuilder>( + (com.google.container.v1.MaintenanceExclusionOptions) options_, + getParentForChildren(), + isClean()); + options_ = null; + } + optionsCase_ = 3; + onChanged(); + ; + return maintenanceExclusionOptionsBuilder_; + } + private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java index 7cda2e26..138f1df6 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java @@ -23,6 +23,48 @@ public interface TimeWindowOrBuilder // @@protoc_insertion_point(interface_extends:google.container.v1.TimeWindow) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return Whether the maintenanceExclusionOptions field is set. + */ + boolean hasMaintenanceExclusionOptions(); + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return The maintenanceExclusionOptions. + */ + com.google.container.v1.MaintenanceExclusionOptions getMaintenanceExclusionOptions(); + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + com.google.container.v1.MaintenanceExclusionOptionsOrBuilder + getMaintenanceExclusionOptionsOrBuilder(); + /** * * @@ -95,4 +137,6 @@ public interface TimeWindowOrBuilder * .google.protobuf.Timestamp end_time = 2; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + public com.google.container.v1.TimeWindow.OptionsCase getOptionsCase(); } 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 78b2e3cf..25017c69 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 @@ -167,6 +167,68 @@ private UpdateNodePoolRequest( upgradeSettings_ = subBuilder.buildPartial(); } + break; + } + case 154: + { + com.google.container.v1.LinuxNodeConfig.Builder subBuilder = null; + if (linuxNodeConfig_ != null) { + subBuilder = linuxNodeConfig_.toBuilder(); + } + linuxNodeConfig_ = + input.readMessage( + com.google.container.v1.LinuxNodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(linuxNodeConfig_); + linuxNodeConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 162: + { + com.google.container.v1.NodeKubeletConfig.Builder subBuilder = null; + if (kubeletConfig_ != null) { + subBuilder = kubeletConfig_.toBuilder(); + } + kubeletConfig_ = + input.readMessage( + com.google.container.v1.NodeKubeletConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kubeletConfig_); + kubeletConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 178: + { + com.google.container.v1.GcfsConfig.Builder subBuilder = null; + if (gcfsConfig_ != null) { + subBuilder = gcfsConfig_.toBuilder(); + } + gcfsConfig_ = + input.readMessage(com.google.container.v1.GcfsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcfsConfig_); + gcfsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 234: + { + com.google.container.v1.VirtualNIC.Builder subBuilder = null; + if (gvnic_ != null) { + subBuilder = gvnic_.toBuilder(); + } + gvnic_ = + input.readMessage(com.google.container.v1.VirtualNIC.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gvnic_); + gvnic_ = subBuilder.buildPartial(); + } + break; } default: @@ -765,6 +827,196 @@ public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSetti return getUpgradeSettings(); } + public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 19; + private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * + * @return Whether the linuxNodeConfig field is set. + */ + @java.lang.Override + public boolean hasLinuxNodeConfig() { + return linuxNodeConfig_ != null; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * + * @return The linuxNodeConfig. + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { + return linuxNodeConfig_ == null + ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + return getLinuxNodeConfig(); + } + + public static final int KUBELET_CONFIG_FIELD_NUMBER = 20; + private com.google.container.v1.NodeKubeletConfig kubeletConfig_; + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * + * @return Whether the kubeletConfig field is set. + */ + @java.lang.Override + public boolean hasKubeletConfig() { + return kubeletConfig_ != null; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * + * @return The kubeletConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { + return kubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + return getKubeletConfig(); + } + + public static final int GCFS_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1.GcfsConfig gcfsConfig_; + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return gcfsConfig_ != null; + } + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + @java.lang.Override + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return getGcfsConfig(); + } + + public static final int GVNIC_FIELD_NUMBER = 29; + private com.google.container.v1.VirtualNIC gvnic_; + /** + * + * + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return Whether the gvnic field is set. + */ + @java.lang.Override + public boolean hasGvnic() { + return gvnic_ != null; + } + /** + * + * + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return The gvnic. + */ + @java.lang.Override + public com.google.container.v1.VirtualNIC getGvnic() { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + /** + * + * + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + @java.lang.Override + public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { + return getGvnic(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -809,6 +1061,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (upgradeSettings_ != null) { output.writeMessage(15, getUpgradeSettings()); } + if (linuxNodeConfig_ != null) { + output.writeMessage(19, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + output.writeMessage(20, getKubeletConfig()); + } + if (gcfsConfig_ != null) { + output.writeMessage(22, getGcfsConfig()); + } + if (gvnic_ != null) { + output.writeMessage(29, getGvnic()); + } unknownFields.writeTo(output); } @@ -854,6 +1118,18 @@ public int getSerializedSize() { if (upgradeSettings_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUpgradeSettings()); } + if (linuxNodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getKubeletConfig()); + } + if (gcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getGcfsConfig()); + } + if (gvnic_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getGvnic()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -886,6 +1162,22 @@ public boolean equals(final java.lang.Object obj) { if (hasUpgradeSettings()) { if (!getUpgradeSettings().equals(other.getUpgradeSettings())) return false; } + if (hasLinuxNodeConfig() != other.hasLinuxNodeConfig()) return false; + if (hasLinuxNodeConfig()) { + if (!getLinuxNodeConfig().equals(other.getLinuxNodeConfig())) return false; + } + if (hasKubeletConfig() != other.hasKubeletConfig()) return false; + if (hasKubeletConfig()) { + if (!getKubeletConfig().equals(other.getKubeletConfig())) return false; + } + if (hasGcfsConfig() != other.hasGcfsConfig()) return false; + if (hasGcfsConfig()) { + if (!getGcfsConfig().equals(other.getGcfsConfig())) return false; + } + if (hasGvnic() != other.hasGvnic()) return false; + if (hasGvnic()) { + if (!getGvnic().equals(other.getGvnic())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -923,6 +1215,22 @@ public int hashCode() { hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getUpgradeSettings().hashCode(); } + if (hasLinuxNodeConfig()) { + hash = (37 * hash) + LINUX_NODE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLinuxNodeConfig().hashCode(); + } + if (hasKubeletConfig()) { + hash = (37 * hash) + KUBELET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getKubeletConfig().hashCode(); + } + if (hasGcfsConfig()) { + hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcfsConfig().hashCode(); + } + if (hasGvnic()) { + hash = (37 * hash) + GVNIC_FIELD_NUMBER; + hash = (53 * hash) + getGvnic().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1096,6 +1404,30 @@ public Builder clear() { upgradeSettings_ = null; upgradeSettingsBuilder_ = null; } + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + if (gvnicBuilder_ == null) { + gvnic_ = null; + } else { + gvnic_ = null; + gvnicBuilder_ = null; + } return this; } @@ -1146,6 +1478,26 @@ public com.google.container.v1.UpdateNodePoolRequest buildPartial() { } else { result.upgradeSettings_ = upgradeSettingsBuilder_.build(); } + if (linuxNodeConfigBuilder_ == null) { + result.linuxNodeConfig_ = linuxNodeConfig_; + } else { + result.linuxNodeConfig_ = linuxNodeConfigBuilder_.build(); + } + if (kubeletConfigBuilder_ == null) { + result.kubeletConfig_ = kubeletConfig_; + } else { + result.kubeletConfig_ = kubeletConfigBuilder_.build(); + } + if (gcfsConfigBuilder_ == null) { + result.gcfsConfig_ = gcfsConfig_; + } else { + result.gcfsConfig_ = gcfsConfigBuilder_.build(); + } + if (gvnicBuilder_ == null) { + result.gvnic_ = gvnic_; + } else { + result.gvnic_ = gvnicBuilder_.build(); + } onBuilt(); return result; } @@ -1239,6 +1591,18 @@ public Builder mergeFrom(com.google.container.v1.UpdateNodePoolRequest other) { if (other.hasUpgradeSettings()) { mergeUpgradeSettings(other.getUpgradeSettings()); } + if (other.hasLinuxNodeConfig()) { + mergeLinuxNodeConfig(other.getLinuxNodeConfig()); + } + if (other.hasKubeletConfig()) { + mergeKubeletConfig(other.getKubeletConfig()); + } + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } + if (other.hasGvnic()) { + mergeGvnic(other.getGvnic()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2696,6 +3060,742 @@ public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSetti return upgradeSettingsBuilder_; } + private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, + com.google.container.v1.LinuxNodeConfig.Builder, + com.google.container.v1.LinuxNodeConfigOrBuilder> + linuxNodeConfigBuilder_; + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * + * @return Whether the linuxNodeConfig field is set. + */ + public boolean hasLinuxNodeConfig() { + return linuxNodeConfigBuilder_ != null || linuxNodeConfig_ != null; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * + * @return The linuxNodeConfig. + */ + public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + return linuxNodeConfig_ == null + ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } else { + return linuxNodeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder setLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linuxNodeConfig_ = value; + onChanged(); + } else { + linuxNodeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder setLinuxNodeConfig( + com.google.container.v1.LinuxNodeConfig.Builder builderForValue) { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = builderForValue.build(); + onChanged(); + } else { + linuxNodeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder mergeLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (linuxNodeConfig_ != null) { + linuxNodeConfig_ = + com.google.container.v1.LinuxNodeConfig.newBuilder(linuxNodeConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + linuxNodeConfig_ = value; + } + onChanged(); + } else { + linuxNodeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder clearLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + onChanged(); + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public com.google.container.v1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { + + onChanged(); + return getLinuxNodeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + if (linuxNodeConfigBuilder_ != null) { + return linuxNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return linuxNodeConfig_ == null + ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, + com.google.container.v1.LinuxNodeConfig.Builder, + com.google.container.v1.LinuxNodeConfigOrBuilder> + getLinuxNodeConfigFieldBuilder() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, + com.google.container.v1.LinuxNodeConfig.Builder, + com.google.container.v1.LinuxNodeConfigOrBuilder>( + getLinuxNodeConfig(), getParentForChildren(), isClean()); + linuxNodeConfig_ = null; + } + return linuxNodeConfigBuilder_; + } + + private com.google.container.v1.NodeKubeletConfig kubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + kubeletConfigBuilder_; + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * + * @return Whether the kubeletConfig field is set. + */ + public boolean hasKubeletConfig() { + return kubeletConfigBuilder_ != null || kubeletConfig_ != null; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * + * @return The kubeletConfig. + */ + public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + return kubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } else { + return kubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder setKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubeletConfig_ = value; + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder setKubeletConfig( + com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = builderForValue.build(); + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder mergeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (kubeletConfig_ != null) { + kubeletConfig_ = + com.google.container.v1.NodeKubeletConfig.newBuilder(kubeletConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + kubeletConfig_ = value; + } + onChanged(); + } else { + kubeletConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder clearKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + onChanged(); + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public com.google.container.v1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { + + onChanged(); + return getKubeletConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + if (kubeletConfigBuilder_ != null) { + return kubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return kubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + getKubeletConfigFieldBuilder() { + if (kubeletConfigBuilder_ == null) { + kubeletConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder>( + getKubeletConfig(), getParentForChildren(), isClean()); + kubeletConfig_ = null; + } + return kubeletConfigBuilder_; + } + + private com.google.container.v1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder> + gcfsConfigBuilder_; + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return gcfsConfigBuilder_ != null || gcfsConfig_ != null; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * + * @return The gcfsConfig. + */ + public com.google.container.v1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (gcfsConfig_ != null) { + gcfsConfig_ = + com.google.container.v1.GcfsConfig.newBuilder(gcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcfsConfig_ = value; + } + onChanged(); + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public Builder clearGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + onChanged(); + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { + + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null + ? com.google.container.v1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, + com.google.container.v1.GcfsConfig.Builder, + com.google.container.v1.GcfsConfigOrBuilder>( + getGcfsConfig(), getParentForChildren(), isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1.VirtualNIC gvnic_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, + com.google.container.v1.VirtualNIC.Builder, + com.google.container.v1.VirtualNICOrBuilder> + gvnicBuilder_; + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return Whether the gvnic field is set. + */ + public boolean hasGvnic() { + return gvnicBuilder_ != null || gvnic_ != null; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return The gvnic. + */ + public com.google.container.v1.VirtualNIC getGvnic() { + if (gvnicBuilder_ == null) { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } else { + return gvnicBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic(com.google.container.v1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gvnic_ = value; + onChanged(); + } else { + gvnicBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic(com.google.container.v1.VirtualNIC.Builder builderForValue) { + if (gvnicBuilder_ == null) { + gvnic_ = builderForValue.build(); + onChanged(); + } else { + gvnicBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder mergeGvnic(com.google.container.v1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (gvnic_ != null) { + gvnic_ = + com.google.container.v1.VirtualNIC.newBuilder(gvnic_).mergeFrom(value).buildPartial(); + } else { + gvnic_ = value; + } + onChanged(); + } else { + gvnicBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder clearGvnic() { + if (gvnicBuilder_ == null) { + gvnic_ = null; + onChanged(); + } else { + gvnic_ = null; + gvnicBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1.VirtualNIC.Builder getGvnicBuilder() { + + onChanged(); + return getGvnicFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { + if (gvnicBuilder_ != null) { + return gvnicBuilder_.getMessageOrBuilder(); + } else { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + } + /** + * + * + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, + com.google.container.v1.VirtualNIC.Builder, + com.google.container.v1.VirtualNICOrBuilder> + getGvnicFieldBuilder() { + if (gvnicBuilder_ == null) { + gvnicBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, + com.google.container.v1.VirtualNIC.Builder, + com.google.container.v1.VirtualNICOrBuilder>( + getGvnic(), getParentForChildren(), isClean()); + gvnic_ = null; + } + return gvnicBuilder_; + } + @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 957bde6a..cb681117 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 @@ -376,4 +376,144 @@ public interface UpdateNodePoolRequestOrBuilder * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; */ com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); + + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * + * @return Whether the linuxNodeConfig field is set. + */ + boolean hasLinuxNodeConfig(); + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * + * @return The linuxNodeConfig. + */ + com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig(); + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder(); + + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * + * @return Whether the kubeletConfig field is set. + */ + boolean hasKubeletConfig(); + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * + * @return The kubeletConfig. + */ + com.google.container.v1.NodeKubeletConfig getKubeletConfig(); + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder(); + + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * + * @return Whether the gcfsConfig field is set. + */ + boolean hasGcfsConfig(); + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * + * @return The gcfsConfig. + */ + com.google.container.v1.GcfsConfig getGcfsConfig(); + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); + + /** + * + * + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return Whether the gvnic field is set. + */ + boolean hasGvnic(); + /** + * + * + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * + * @return The gvnic. + */ + com.google.container.v1.VirtualNIC getGvnic(); + /** + * + * + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEvent.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEvent.java new file mode 100644 index 00000000..2d322baf --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEvent.java @@ -0,0 +1,1266 @@ +/* + * 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; + +/** + * + * + *
+ * UpgradeAvailableEvent is a notification sent to customers when a new
+ * available version is released.
+ * 
+ * + * Protobuf type {@code google.container.v1.UpgradeAvailableEvent} + */ +public final class UpgradeAvailableEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.UpgradeAvailableEvent) + UpgradeAvailableEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpgradeAvailableEvent.newBuilder() to construct. + private UpgradeAvailableEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeAvailableEvent() { + version_ = ""; + resourceType_ = 0; + resource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeAvailableEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpgradeAvailableEvent( + 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(); + + version_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 26: + { + 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 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + resource_ = 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_UpgradeAvailableEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpgradeAvailableEvent.class, + com.google.container.v1.UpgradeAvailableEvent.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + * + * + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * + * + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; + private int resourceType_; + /** + * + * + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1.UpgradeResourceType getResourceType() { + @SuppressWarnings("deprecation") + com.google.container.v1.UpgradeResourceType result = + com.google.container.v1.UpgradeResourceType.valueOf(resourceType_); + return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; + } + + public static final int RELEASE_CHANNEL_FIELD_NUMBER = 3; + private com.google.container.v1.ReleaseChannel releaseChannel_; + /** + * + * + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * + * @return Whether the releaseChannel field is set. + */ + @java.lang.Override + public boolean hasReleaseChannel() { + return releaseChannel_ != null; + } + /** + * + * + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * + * @return The releaseChannel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel getReleaseChannel() { + return releaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } + /** + * + * + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + return getReleaseChannel(); + } + + public static final int RESOURCE_FIELD_NUMBER = 4; + private volatile java.lang.Object resource_; + /** + * + * + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + /** + * + * + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (resourceType_ + != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, resourceType_); + } + if (releaseChannel_ != null) { + output.writeMessage(3, getReleaseChannel()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resource_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (resourceType_ + != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); + } + if (releaseChannel_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReleaseChannel()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); + } + 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.UpgradeAvailableEvent)) { + return super.equals(obj); + } + com.google.container.v1.UpgradeAvailableEvent other = + (com.google.container.v1.UpgradeAvailableEvent) obj; + + if (!getVersion().equals(other.getVersion())) return false; + if (resourceType_ != other.resourceType_) return false; + if (hasReleaseChannel() != other.hasReleaseChannel()) return false; + if (hasReleaseChannel()) { + if (!getReleaseChannel().equals(other.getReleaseChannel())) return false; + } + if (!getResource().equals(other.getResource())) 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) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasReleaseChannel()) { + hash = (37 * hash) + RELEASE_CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getReleaseChannel().hashCode(); + } + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.UpgradeAvailableEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.UpgradeAvailableEvent 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.UpgradeAvailableEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.UpgradeAvailableEvent parseFrom( + 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.UpgradeAvailableEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.UpgradeAvailableEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.UpgradeAvailableEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.UpgradeAvailableEvent parseFrom( + java.io.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.UpgradeAvailableEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.UpgradeAvailableEvent parseDelimitedFrom( + java.io.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.UpgradeAvailableEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.UpgradeAvailableEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.UpgradeAvailableEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * UpgradeAvailableEvent is a notification sent to customers when a new
+   * available version is released.
+   * 
+ * + * Protobuf type {@code google.container.v1.UpgradeAvailableEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.UpgradeAvailableEvent) + com.google.container.v1.UpgradeAvailableEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpgradeAvailableEvent.class, + com.google.container.v1.UpgradeAvailableEvent.Builder.class); + } + + // Construct using com.google.container.v1.UpgradeAvailableEvent.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(); + version_ = ""; + + resourceType_ = 0; + + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + resource_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1.UpgradeAvailableEvent getDefaultInstanceForType() { + return com.google.container.v1.UpgradeAvailableEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.UpgradeAvailableEvent build() { + com.google.container.v1.UpgradeAvailableEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.UpgradeAvailableEvent buildPartial() { + com.google.container.v1.UpgradeAvailableEvent result = + new com.google.container.v1.UpgradeAvailableEvent(this); + result.version_ = version_; + result.resourceType_ = resourceType_; + if (releaseChannelBuilder_ == null) { + result.releaseChannel_ = releaseChannel_; + } else { + result.releaseChannel_ = releaseChannelBuilder_.build(); + } + result.resource_ = resource_; + 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.UpgradeAvailableEvent) { + return mergeFrom((com.google.container.v1.UpgradeAvailableEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.UpgradeAvailableEvent other) { + if (other == com.google.container.v1.UpgradeAvailableEvent.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasReleaseChannel()) { + mergeReleaseChannel(other.getReleaseChannel()); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + 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.UpgradeAvailableEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.UpgradeAvailableEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + * + * + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int value) { + + resourceType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1.UpgradeResourceType getResourceType() { + @SuppressWarnings("deprecation") + com.google.container.v1.UpgradeResourceType result = + com.google.container.v1.UpgradeResourceType.valueOf(resourceType_); + return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(com.google.container.v1.UpgradeResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + 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_; + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * + * @return Whether the releaseChannel field is set. + */ + public boolean hasReleaseChannel() { + return releaseChannelBuilder_ != null || releaseChannel_ != null; + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * + * @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(); + } + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + 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; + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public Builder setReleaseChannel( + com.google.container.v1.ReleaseChannel.Builder builderForValue) { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = builderForValue.build(); + onChanged(); + } else { + releaseChannelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + 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; + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public Builder clearReleaseChannel() { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + onChanged(); + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public com.google.container.v1.ReleaseChannel.Builder getReleaseChannelBuilder() { + + onChanged(); + return getReleaseChannelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + if (releaseChannelBuilder_ != null) { + return releaseChannelBuilder_.getMessageOrBuilder(); + } else { + return releaseChannel_ == null + ? com.google.container.v1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } + } + /** + * + * + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + 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 java.lang.Object resource_ = ""; + /** + * + * + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resource_ = 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.UpgradeAvailableEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.UpgradeAvailableEvent) + private static final com.google.container.v1.UpgradeAvailableEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.UpgradeAvailableEvent(); + } + + public static com.google.container.v1.UpgradeAvailableEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeAvailableEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpgradeAvailableEvent(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.UpgradeAvailableEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEventOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEventOrBuilder.java new file mode 100644 index 00000000..29a873de --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEventOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +package com.google.container.v1; + +public interface UpgradeAvailableEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.UpgradeAvailableEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return The enum numeric value on the wire for resourceType. + */ + int getResourceTypeValue(); + /** + * + * + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * + * @return The resourceType. + */ + com.google.container.v1.UpgradeResourceType getResourceType(); + + /** + * + * + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * + * @return Whether the releaseChannel field is set. + */ + boolean hasReleaseChannel(); + /** + * + * + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * + * @return The releaseChannel. + */ + com.google.container.v1.ReleaseChannel getReleaseChannel(); + /** + * + * + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); + + /** + * + * + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * + * @return The resource. + */ + java.lang.String getResource(); + /** + * + * + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEvent.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEvent.java new file mode 100644 index 00000000..9837bd28 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEvent.java @@ -0,0 +1,1607 @@ +/* + * 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; + +/** + * + * + *
+ * UpgradeEvent is a notification sent to customers by the cluster server when
+ * a resource is upgrading.
+ * 
+ * + * Protobuf type {@code google.container.v1.UpgradeEvent} + */ +public final class UpgradeEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.UpgradeEvent) + UpgradeEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpgradeEvent.newBuilder() to construct. + private UpgradeEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeEvent() { + resourceType_ = 0; + operation_ = ""; + currentVersion_ = ""; + targetVersion_ = ""; + resource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpgradeEvent( + 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(); + + resourceType_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + operation_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (operationStartTime_ != null) { + subBuilder = operationStartTime_.toBuilder(); + } + operationStartTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operationStartTime_); + operationStartTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + currentVersion_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + targetVersion_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + resource_ = 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_UpgradeEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpgradeEvent.class, + com.google.container.v1.UpgradeEvent.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + * + * + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1.UpgradeResourceType getResourceType() { + @SuppressWarnings("deprecation") + com.google.container.v1.UpgradeResourceType result = + com.google.container.v1.UpgradeResourceType.valueOf(resourceType_); + return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; + } + + public static final int OPERATION_FIELD_NUMBER = 2; + private volatile java.lang.Object operation_; + /** + * + * + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * + * @return The operation. + */ + @java.lang.Override + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } + } + /** + * + * + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * + * @return The bytes for operation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp operationStartTime_; + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return Whether the operationStartTime field is set. + */ + @java.lang.Override + public boolean hasOperationStartTime() { + return operationStartTime_ != null; + } + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return The operationStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getOperationStartTime() { + return operationStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : operationStartTime_; + } + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { + return getOperationStartTime(); + } + + public static final int CURRENT_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object currentVersion_; + /** + * + * + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * + * @return The currentVersion. + */ + @java.lang.Override + public java.lang.String getCurrentVersion() { + java.lang.Object ref = currentVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * + * @return The bytes for currentVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentVersionBytes() { + java.lang.Object ref = currentVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object targetVersion_; + /** + * + * + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * + * @return The targetVersion. + */ + @java.lang.Override + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * + * @return The bytes for targetVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 6; + private volatile java.lang.Object resource_; + /** + * + * + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + /** + * + * + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = 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 (resourceType_ + != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_); + } + if (operationStartTime_ != null) { + output.writeMessage(3, getOperationStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currentVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resource_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ + != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, resourceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operation_); + } + if (operationStartTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperationStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currentVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resource_); + } + 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.UpgradeEvent)) { + return super.equals(obj); + } + com.google.container.v1.UpgradeEvent other = (com.google.container.v1.UpgradeEvent) obj; + + if (resourceType_ != other.resourceType_) return false; + if (!getOperation().equals(other.getOperation())) return false; + if (hasOperationStartTime() != other.hasOperationStartTime()) return false; + if (hasOperationStartTime()) { + if (!getOperationStartTime().equals(other.getOperationStartTime())) return false; + } + if (!getCurrentVersion().equals(other.getCurrentVersion())) return false; + if (!getTargetVersion().equals(other.getTargetVersion())) return false; + if (!getResource().equals(other.getResource())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getOperation().hashCode(); + if (hasOperationStartTime()) { + hash = (37 * hash) + OPERATION_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getOperationStartTime().hashCode(); + } + hash = (37 * hash) + CURRENT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getCurrentVersion().hashCode(); + hash = (37 * hash) + TARGET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getTargetVersion().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.UpgradeEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.UpgradeEvent 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.UpgradeEvent parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.UpgradeEvent parseFrom( + 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.UpgradeEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.UpgradeEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.UpgradeEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.UpgradeEvent parseFrom( + java.io.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.UpgradeEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.UpgradeEvent parseDelimitedFrom( + java.io.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.UpgradeEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.UpgradeEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.UpgradeEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * UpgradeEvent is a notification sent to customers by the cluster server when
+   * a resource is upgrading.
+   * 
+ * + * Protobuf type {@code google.container.v1.UpgradeEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.UpgradeEvent) + com.google.container.v1.UpgradeEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpgradeEvent.class, + com.google.container.v1.UpgradeEvent.Builder.class); + } + + // Construct using com.google.container.v1.UpgradeEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = 0; + + operation_ = ""; + + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = null; + } else { + operationStartTime_ = null; + operationStartTimeBuilder_ = null; + } + currentVersion_ = ""; + + targetVersion_ = ""; + + resource_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_UpgradeEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1.UpgradeEvent getDefaultInstanceForType() { + return com.google.container.v1.UpgradeEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.UpgradeEvent build() { + com.google.container.v1.UpgradeEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.UpgradeEvent buildPartial() { + com.google.container.v1.UpgradeEvent result = new com.google.container.v1.UpgradeEvent(this); + result.resourceType_ = resourceType_; + result.operation_ = operation_; + if (operationStartTimeBuilder_ == null) { + result.operationStartTime_ = operationStartTime_; + } else { + result.operationStartTime_ = operationStartTimeBuilder_.build(); + } + result.currentVersion_ = currentVersion_; + result.targetVersion_ = targetVersion_; + result.resource_ = resource_; + 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.UpgradeEvent) { + return mergeFrom((com.google.container.v1.UpgradeEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.UpgradeEvent other) { + if (other == com.google.container.v1.UpgradeEvent.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (!other.getOperation().isEmpty()) { + operation_ = other.operation_; + onChanged(); + } + if (other.hasOperationStartTime()) { + mergeOperationStartTime(other.getOperationStartTime()); + } + if (!other.getCurrentVersion().isEmpty()) { + currentVersion_ = other.currentVersion_; + onChanged(); + } + if (!other.getTargetVersion().isEmpty()) { + targetVersion_ = other.targetVersion_; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + 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.UpgradeEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.UpgradeEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + * + * + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int value) { + + resourceType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1.UpgradeResourceType getResourceType() { + @SuppressWarnings("deprecation") + com.google.container.v1.UpgradeResourceType result = + com.google.container.v1.UpgradeResourceType.valueOf(resourceType_); + return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(com.google.container.v1.UpgradeResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object operation_ = ""; + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @return The operation. + */ + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @return The bytes for operation. + */ + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + + operation_ = getDefaultInstance().getOperation(); + onChanged(); + return this; + } + /** + * + * + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * + * @param value The bytes for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operation_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp operationStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + operationStartTimeBuilder_; + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return Whether the operationStartTime field is set. + */ + public boolean hasOperationStartTime() { + return operationStartTimeBuilder_ != null || operationStartTime_ != null; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return The operationStartTime. + */ + public com.google.protobuf.Timestamp getOperationStartTime() { + if (operationStartTimeBuilder_ == null) { + return operationStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : operationStartTime_; + } else { + return operationStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder setOperationStartTime(com.google.protobuf.Timestamp value) { + if (operationStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operationStartTime_ = value; + onChanged(); + } else { + operationStartTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder setOperationStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = builderForValue.build(); + onChanged(); + } else { + operationStartTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder mergeOperationStartTime(com.google.protobuf.Timestamp value) { + if (operationStartTimeBuilder_ == null) { + if (operationStartTime_ != null) { + operationStartTime_ = + com.google.protobuf.Timestamp.newBuilder(operationStartTime_) + .mergeFrom(value) + .buildPartial(); + } else { + operationStartTime_ = value; + } + onChanged(); + } else { + operationStartTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder clearOperationStartTime() { + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = null; + onChanged(); + } else { + operationStartTime_ = null; + operationStartTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getOperationStartTimeBuilder() { + + onChanged(); + return getOperationStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { + if (operationStartTimeBuilder_ != null) { + return operationStartTimeBuilder_.getMessageOrBuilder(); + } else { + return operationStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : operationStartTime_; + } + } + /** + * + * + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getOperationStartTimeFieldBuilder() { + if (operationStartTimeBuilder_ == null) { + operationStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getOperationStartTime(), getParentForChildren(), isClean()); + operationStartTime_ = null; + } + return operationStartTimeBuilder_; + } + + private java.lang.Object currentVersion_ = ""; + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @return The currentVersion. + */ + public java.lang.String getCurrentVersion() { + java.lang.Object ref = currentVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @return The bytes for currentVersion. + */ + public com.google.protobuf.ByteString getCurrentVersionBytes() { + java.lang.Object ref = currentVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @param value The currentVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @return This builder for chaining. + */ + public Builder clearCurrentVersion() { + + currentVersion_ = getDefaultInstance().getCurrentVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * + * @param value The bytes for currentVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetVersion_ = ""; + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @return The targetVersion. + */ + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @return The bytes for targetVersion. + */ + public com.google.protobuf.ByteString getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @param value The targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @return This builder for chaining. + */ + public Builder clearTargetVersion() { + + targetVersion_ = getDefaultInstance().getTargetVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * + * @param value The bytes for targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resource_ = 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.UpgradeEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.UpgradeEvent) + private static final com.google.container.v1.UpgradeEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.UpgradeEvent(); + } + + public static com.google.container.v1.UpgradeEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpgradeEvent(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.UpgradeEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEventOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEventOrBuilder.java new file mode 100644 index 00000000..d6dadc9e --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEventOrBuilder.java @@ -0,0 +1,187 @@ +/* + * 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 UpgradeEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.UpgradeEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return The enum numeric value on the wire for resourceType. + */ + int getResourceTypeValue(); + /** + * + * + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * + * @return The resourceType. + */ + com.google.container.v1.UpgradeResourceType getResourceType(); + + /** + * + * + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * + * @return The operation. + */ + java.lang.String getOperation(); + /** + * + * + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * + * @return The bytes for operation. + */ + com.google.protobuf.ByteString getOperationBytes(); + + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return Whether the operationStartTime field is set. + */ + boolean hasOperationStartTime(); + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * + * @return The operationStartTime. + */ + com.google.protobuf.Timestamp getOperationStartTime(); + /** + * + * + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder(); + + /** + * + * + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * + * @return The currentVersion. + */ + java.lang.String getCurrentVersion(); + /** + * + * + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * + * @return The bytes for currentVersion. + */ + com.google.protobuf.ByteString getCurrentVersionBytes(); + + /** + * + * + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * + * @return The targetVersion. + */ + java.lang.String getTargetVersion(); + /** + * + * + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * + * @return The bytes for targetVersion. + */ + com.google.protobuf.ByteString getTargetVersionBytes(); + + /** + * + * + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * + * @return The resource. + */ + java.lang.String getResource(); + /** + * + * + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeResourceType.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeResourceType.java new file mode 100644 index 00000000..1952df4b --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeResourceType.java @@ -0,0 +1,180 @@ +/* + * 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; + +/** + * + * + *
+ * UpgradeResourceType is the resource type that is upgrading. It is used
+ * in upgrade notifications.
+ * 
+ * + * Protobuf enum {@code google.container.v1.UpgradeResourceType} + */ +public enum UpgradeResourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Default value. This shouldn't be used.
+   * 
+ * + * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + UPGRADE_RESOURCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Master / control plane
+   * 
+ * + * MASTER = 1; + */ + MASTER(1), + /** + * + * + *
+   * Node pool
+   * 
+ * + * NODE_POOL = 2; + */ + NODE_POOL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Default value. This shouldn't be used.
+   * 
+ * + * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int UPGRADE_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Master / control plane
+   * 
+ * + * MASTER = 1; + */ + public static final int MASTER_VALUE = 1; + /** + * + * + *
+   * Node pool
+   * 
+ * + * NODE_POOL = 2; + */ + public static final int NODE_POOL_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 UpgradeResourceType 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 UpgradeResourceType forNumber(int value) { + switch (value) { + case 0: + return UPGRADE_RESOURCE_TYPE_UNSPECIFIED; + case 1: + return MASTER; + case 2: + return NODE_POOL; + 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 UpgradeResourceType findValueByNumber(int number) { + return UpgradeResourceType.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.ClusterServiceProto.getDescriptor().getEnumTypes().get(2); + } + + private static final UpgradeResourceType[] VALUES = values(); + + public static UpgradeResourceType 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 UpgradeResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.UpgradeResourceType) +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNIC.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNIC.java new file mode 100644 index 00000000..96337da8 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNIC.java @@ -0,0 +1,541 @@ +/* + * 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 gVNIC feature.
+ * 
+ * + * Protobuf type {@code google.container.v1.VirtualNIC} + */ +public final class VirtualNIC extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.VirtualNIC) + VirtualNICOrBuilder { + private static final long serialVersionUID = 0L; + // Use VirtualNIC.newBuilder() to construct. + private VirtualNIC(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VirtualNIC() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VirtualNIC(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private VirtualNIC( + 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_VirtualNIC_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_VirtualNIC_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.VirtualNIC.class, + com.google.container.v1.VirtualNIC.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether gVNIC features are enabled in the node pool.
+   * 
+ * + * 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.VirtualNIC)) { + return super.equals(obj); + } + com.google.container.v1.VirtualNIC other = (com.google.container.v1.VirtualNIC) 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.VirtualNIC parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.VirtualNIC 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.VirtualNIC parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.VirtualNIC parseFrom( + 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.VirtualNIC parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.VirtualNIC parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.VirtualNIC parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.VirtualNIC parseFrom( + java.io.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.VirtualNIC parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.VirtualNIC parseDelimitedFrom( + java.io.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.VirtualNIC parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.VirtualNIC parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.VirtualNIC prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 gVNIC feature.
+   * 
+ * + * Protobuf type {@code google.container.v1.VirtualNIC} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.VirtualNIC) + com.google.container.v1.VirtualNICOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_VirtualNIC_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_VirtualNIC_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.VirtualNIC.class, + com.google.container.v1.VirtualNIC.Builder.class); + } + + // Construct using com.google.container.v1.VirtualNIC.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_VirtualNIC_descriptor; + } + + @java.lang.Override + public com.google.container.v1.VirtualNIC getDefaultInstanceForType() { + return com.google.container.v1.VirtualNIC.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.VirtualNIC build() { + com.google.container.v1.VirtualNIC result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.VirtualNIC buildPartial() { + com.google.container.v1.VirtualNIC result = new com.google.container.v1.VirtualNIC(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.VirtualNIC) { + return mergeFrom((com.google.container.v1.VirtualNIC) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.VirtualNIC other) { + if (other == com.google.container.v1.VirtualNIC.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.VirtualNIC parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.VirtualNIC) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * 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 gVNIC features are enabled in the node pool.
+     * 
+ * + * 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.VirtualNIC) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.VirtualNIC) + private static final com.google.container.v1.VirtualNIC DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.VirtualNIC(); + } + + public static com.google.container.v1.VirtualNIC getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualNIC parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VirtualNIC(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.VirtualNIC getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNICOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNICOrBuilder.java new file mode 100644 index 00000000..64ae3647 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNICOrBuilder.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 VirtualNICOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.VirtualNIC) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether gVNIC features are enabled in the node pool.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} 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 895142ca..6dc6eeca 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 @@ -19,8 +19,12 @@ package google.container.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/rpc/code.proto"; +import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.Container.V1"; option go_package = "google.golang.org/genproto/googleapis/container/v1;container"; @@ -29,6 +33,10 @@ option java_outer_classname = "ClusterServiceProto"; option java_package = "com.google.container.v1"; option php_namespace = "Google\\Cloud\\Container\\V1"; option ruby_package = "Google::Cloud::Container::V1"; +option (google.api.resource_definition) = { + type: "pubsub.googleapis.com/Topic" + pattern: "projects/{project}/topics/{topic}" +}; // Google Kubernetes Engine Cluster Manager v1 service ClusterManager { @@ -423,7 +431,9 @@ service ClusterManager { option (google.api.method_signature) = "name"; } - // Sets the size for a specific node pool. + // Sets the size for a specific node pool. The new size will be used for all + // replicas, including future replicas created by modifying + // [NodePool.locations][google.container.v1.NodePool.locations]. rpc SetNodePoolSize(SetNodePoolSizeRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize" @@ -471,6 +481,60 @@ service ClusterManager { } } +// Parameters that can be configured on Linux nodes. +message LinuxNodeConfig { + // The Linux kernel parameters to be applied to the nodes and all pods running + // on the nodes. + // + // The following parameters are supported. + // + // net.core.netdev_max_backlog + // net.core.rmem_max + // net.core.wmem_default + // net.core.wmem_max + // net.core.optmem_max + // net.core.somaxconn + // net.ipv4.tcp_rmem + // net.ipv4.tcp_wmem + // net.ipv4.tcp_tw_reuse + map sysctls = 1; +} + +// Node kubelet configs. +message NodeKubeletConfig { + // Control the CPU management policy on the node. + // See + // https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ + // + // The following values are allowed. + // * "none": the default, which represents the existing scheduling behavior. + // * "static": allows pods with certain resource characteristics to be granted + // increased CPU affinity and exclusivity on the node. + // The default value is 'none' if unspecified. + string cpu_manager_policy = 1; + + // Enable CPU CFS quota enforcement for containers that specify CPU limits. + // + // This option is enabled by default which makes kubelet use CFS quota + // (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + // enforce container CPU limits. Otherwise, CPU limits will not be enforced at + // all. + // + // Disable this option to mitigate CPU throttling problems while still having + // your pods to be in Guaranteed QoS class by specifying the CPU limits. + // + // The default value is 'true' if unspecified. + google.protobuf.BoolValue cpu_cfs_quota = 2; + + // Set the CPU CFS quota period value 'cpu.cfs_period_us'. + // + // The string must be a sequence of decimal numbers, each with optional + // fraction and a unit suffix, such as "300ms". + // Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". + // The value must be a positive duration. + string cpu_cfs_quota_period = 3; +} + // Parameters that describe the nodes in a cluster. message NodeConfig { // The name of a Google Compute Engine [machine @@ -533,9 +597,6 @@ message NodeConfig { // - "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. @@ -623,6 +684,12 @@ message NodeConfig { // Shielded Instance options. ShieldedInstanceConfig shielded_instance_config = 20; + // Parameters that can be configured on Linux nodes. + LinuxNodeConfig linux_node_config = 21; + + // Node kubelet configs. + NodeKubeletConfig kubelet_config = 22; + // // 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 @@ -631,6 +698,67 @@ message NodeConfig { // see: // https://cloud.google.com/compute/docs/disks/customer-managed-encryption string boot_disk_kms_key = 23; + + // Google Container File System (image streaming) configs. + GcfsConfig gcfs_config = 25; + + // Advanced features for the Compute Engine VM. + AdvancedMachineFeatures advanced_machine_features = 26; + + // Enable or disable gvnic in the node pool. + VirtualNIC gvnic = 29; +} + +// Specifies options for controlling advanced machine features. +message AdvancedMachineFeatures { + // The number of threads per physical core. To disable simultaneous + // multithreading (SMT) set this to 1. If unset, the maximum number of threads + // supported per core by the underlying processor is assumed. + optional int64 threads_per_core = 1; +} + +// Parameters for node pool-level network config. +message NodeNetworkConfig { + // Input only. Whether to create a new range for pod IPs in this node pool. + // Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they + // are not specified. + // + // If neither `create_pod_range` or `pod_range` are specified, the + // cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is + // used. + // + // Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + // + // This field cannot be changed after the node pool has been created. + bool create_pod_range = 4 [(google.api.field_behavior) = INPUT_ONLY]; + + // The ID of the secondary range for pod IPs. + // If `create_pod_range` is true, this ID is used for the new range. + // If `create_pod_range` is false, uses an existing secondary range with this + // ID. + // + // Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + // + // This field cannot be changed after the node pool has been created. + string pod_range = 5; + + // The IP address range for pod IPs in this node pool. + // + // Only applicable if `create_pod_range` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) to pick a specific range to use. + // + // Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + // + // This field cannot be changed after the node pool has been created. + string pod_ipv4_cidr_block = 6; } // A set of Shielded Instance options. @@ -666,6 +794,13 @@ message SandboxConfig { Type type = 2; } +// GcfsConfig contains configurations of Google Container File System +// (image streaming). +message GcfsConfig { + // Whether to use GCFS. + bool enabled = 1; +} + // [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) // is the configuration of desired reservation which instances could take // capacity from. @@ -813,6 +948,12 @@ message AddonsConfig { // Configuration for the ConfigConnector add-on, a Kubernetes // extension to manage hosted GCP services through the Kubernetes API ConfigConnectorConfig config_connector_config = 10; + + // Configuration for the Compute Engine Persistent Disk CSI driver. + GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + + // Configuration for the GCP Filestore CSI driver. + GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -927,6 +1068,18 @@ message ConfigConnectorConfig { bool enabled = 1; } +// Configuration for the Compute Engine PD CSI driver. +message GcePersistentDiskCsiDriverConfig { + // Whether the Compute Engine PD CSI driver is enabled for this cluster. + bool enabled = 1; +} + +// Configuration for the GCP Filestore CSI driver. +message GcpFilestoreCsiDriverConfig { + // Whether the GCP Filestore CSI driver is enabled for this cluster. + bool enabled = 1; +} + // Configuration options for the master authorized networks feature. Enabled // master authorized networks will disallow all external traffic to access // Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -1313,6 +1466,16 @@ message Cluster { // policies. WorkloadIdentityConfig workload_identity_config = 43; + // Configuration for issuance of mTLS keys and certificates to Kubernetes + // pods. + MeshCertificates mesh_certificates = 67; + + // Notification configuration of the cluster. + NotificationConfig notification_config = 49; + + // Configuration of Confidential Nodes + ConfidentialNodes confidential_nodes = 50; + // [Output only] Server-defined URL for the resource. string self_link = 100; @@ -1407,6 +1570,34 @@ message Cluster { // Which conditions caused the current cluster state. repeated StatusCondition conditions = 118; + + // Autopilot configuration for the cluster. + Autopilot autopilot = 128; + + // Output only. Unique id for the cluster. + string id = 129 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Default NodePool settings for the entire cluster. These settings are + // overridden if specified on the specific NodePool object. + optional NodePoolDefaults node_pool_defaults = 131; + + // Logging configuration for the cluster. + LoggingConfig logging_config = 132; + + // Monitoring configuration for the cluster. + MonitoringConfig monitoring_config = 133; +} + +// Subset of Nodepool message that has defaults. +message NodePoolDefaults { + // Subset of NodeConfig message that has defaults. + NodeConfigDefaults node_config_defaults = 1; +} + +// Subset of NodeConfig message that has defaults. +message NodeConfigDefaults { + // GCFS (Google Container File System, a.k.a Riptide) options. + GcfsConfig gcfs_config = 1; } // ClusterUpdate describes an update to the cluster. Exactly one update can @@ -1458,9 +1649,16 @@ message ClusterUpdate { // Configuration for Workload Identity. WorkloadIdentityConfig desired_workload_identity_config = 47; + // Configuration for issuance of mTLS keys and certificates to Kubernetes + // pods. + MeshCertificates desired_mesh_certificates = 67; + // Configuration for Shielded Nodes. ShieldedNodes desired_shielded_nodes = 48; + // DNSConfig contains clusterDNS config for this cluster. + DNSConfig desired_dns_config = 53; + // 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 @@ -1517,9 +1715,31 @@ message ClusterUpdate { // The desired release channel configuration. ReleaseChannel desired_release_channel = 31; + // The desired L4 Internal Load Balancer Subsetting configuration. + ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + + // The desired datapath provider for the cluster. + DatapathProvider desired_datapath_provider = 50; + + // The desired state of IPv6 connectivity to Google Services. + PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + + // The desired notification configuration. + NotificationConfig desired_notification_config = 55; + // The desired authenticator groups config for the cluster. AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + // The desired logging configuration. + LoggingConfig desired_logging_config = 64; + + // The desired monitoring configuration. + MonitoringConfig desired_monitoring_config = 65; + + // ServiceExternalIPsConfig specifies the config for the use of Services with + // ExternalIPs field. + ServiceExternalIPsConfig desired_service_external_ips_config = 60; + // The Kubernetes version to change the master to. // // Users may specify either explicit versions offered by @@ -1531,6 +1751,9 @@ message ClusterUpdate { // - "1.X.Y-gke.N": picks an explicit Kubernetes version // - "-": picks the default Kubernetes version string desired_master_version = 100; + + // The desired GCFS config for the cluster + GcfsConfig desired_gcfs_config = 109; } // This operation resource represents operations that may have happened or are @@ -1626,7 +1849,11 @@ message Operation { string detail = 8; // Output only. If an error has occurred, a textual description of the error. - string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Deprecated. Use the field error instead. + string status_message = 5 [ + deprecated = true, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Server-defined URL for the resource. string self_link = 6; @@ -1653,10 +1880,15 @@ message Operation { OperationProgress progress = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Which conditions caused the current cluster state. - repeated StatusCondition cluster_conditions = 13; + // Deprecated. Use field error instead. + repeated StatusCondition cluster_conditions = 13 [deprecated = true]; // Which conditions caused the current node pool state. - repeated StatusCondition nodepool_conditions = 14; + // Deprecated. Use field error instead. + repeated StatusCondition nodepool_conditions = 14 [deprecated = true]; + + // The error result of the operation in case of failure. + google.rpc.Status error = 15; } // Information about operation (or operation stage) progress. @@ -1822,6 +2054,18 @@ message UpdateNodePoolRequest { // Upgrade settings control disruption and speed of the upgrade. NodePool.UpgradeSettings upgrade_settings = 15; + + // Parameters that can be configured on Linux nodes. + LinuxNodeConfig linux_node_config = 19; + + // Node kubelet configs. + NodeKubeletConfig kubelet_config = 20; + + // GCFS config. + GcfsConfig gcfs_config = 22; + + // Enable or disable gvnic on the node pool. + VirtualNIC gvnic = 29; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -2435,6 +2679,10 @@ message NodePool { // and/or removed. repeated string locations = 13; + // Networking configuration for this NodePool. If specified, it overrides the + // cluster-level defaults. + NodeNetworkConfig network_config = 14; + // [Output only] Server-defined URL for the resource. string self_link = 100; @@ -2538,6 +2786,12 @@ message MaintenanceWindow { // Represents an arbitrary window of time. message TimeWindow { + oneof options { + // MaintenanceExclusionOptions provides maintenance exclusion related + // options. + MaintenanceExclusionOptions maintenance_exclusion_options = 3; + } + // The time that the window first starts. google.protobuf.Timestamp start_time = 1; @@ -2546,6 +2800,30 @@ message TimeWindow { google.protobuf.Timestamp end_time = 2; } +// Represents the Maintenance exclusion option. +message MaintenanceExclusionOptions { + // Scope of exclusion. + enum Scope { + // NO_UPGRADES excludes all upgrades, including patch upgrades and minor + // upgrades across control planes and nodes. This is the default exclusion + // behavior. + NO_UPGRADES = 0; + + // NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only + // patches are allowed. + NO_MINOR_UPGRADES = 1; + + // NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster, + // and also exclude all node pool upgrades. Only control + // plane patches are allowed. + NO_MINOR_OR_NODE_UPGRADES = 2; + } + + // Scope specifies the upgrade scope which upgrades are blocked by the + // exclusion. + Scope scope = 1; +} + // Represents an arbitrary window of time that recurs. message RecurringTimeWindow { // The window of the first recurrence. @@ -2631,8 +2909,7 @@ message SetNodePoolManagementRequest { string name = 7; } -// SetNodePoolSizeRequest sets the size a node -// pool. +// SetNodePoolSizeRequest sets the size of a node pool. message SetNodePoolSizeRequest { // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). @@ -2702,6 +2979,18 @@ message ListNodePoolsResponse { // the size of the cluster and create/delete // node pools based on the current needs. message ClusterAutoscaling { + // Defines possible options for autoscaling_profile field. + enum AutoscalingProfile { + // No change to autoscaling configuration. + PROFILE_UNSPECIFIED = 0; + + // Prioritize optimizing utilization of resources. + OPTIMIZE_UTILIZATION = 1; + + // Use default (balanced) autoscaling configuration. + BALANCED = 2; + } + // Enables automatic node pool creation and deletion. bool enable_node_autoprovisioning = 1; @@ -2709,6 +2998,9 @@ message ClusterAutoscaling { // amount of resources in the cluster. repeated ResourceLimit resource_limits = 2; + // Defines autoscaling behaviour. + AutoscalingProfile autoscaling_profile = 3; + // AutoprovisioningNodePoolDefaults contains defaults for a node pool // created by NAP. AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; @@ -2791,12 +3083,12 @@ message NodePoolAutoscaling { // Is autoscaling enabled for this node pool. bool enabled = 1; - // Minimum number of nodes in the NodePool. Must be >= 1 and <= - // max_node_count. + // Minimum number of nodes for one location in the NodePool. Must be >= 1 and + // <= max_node_count. int32 min_node_count = 2; - // Maximum number of nodes in the NodePool. Must be >= min_node_count. There - // has to enough quota to scale up the cluster. + // Maximum number of nodes for one location in the NodePool. Must be >= + // min_node_count. There has to be enough quota to scale up the cluster. int32 max_node_count = 3; // Can this node pool be deleted automatically. @@ -2920,6 +3212,11 @@ message AcceleratorConfig { // The accelerator type resource name. List of supported accelerators // [here](https://cloud.google.com/compute/docs/gpus) string accelerator_type = 2; + + // Size of partitions to create on the GPU. Valid values are described in the + // NVIDIA [mig user + // guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). + string gpu_partition_size = 3; } // WorkloadMetadataConfig defines the metadata configuration to expose to @@ -3020,15 +3317,21 @@ message StatusCondition { // Unable to perform an encrypt operation against the CloudKMS key used for // etcd level encryption. - // More codes TBA CLOUD_KMS_KEY_ERROR = 7; + + // Cluster CA is expiring soon. + CA_EXPIRING = 9; } // Machine-friendly representation of the condition - Code code = 1; + // Deprecated. Use canonical_code instead. + Code code = 1 [deprecated = true]; // Human-friendly representation of the condition string message = 2; + + // Canonical code of the condition. + google.rpc.Code canonical_code = 3; } // NetworkConfig reports the relative names of network & subnetwork. @@ -3054,12 +3357,37 @@ message NetworkConfig { // to false, default IP masquerade rules will be applied to the nodes to // prevent sNAT on cluster internal traffic. DefaultSnatStatus default_snat_status = 7; + + // Whether L4ILB Subsetting is enabled for this cluster. + bool enable_l4ilb_subsetting = 10; + + // The desired datapath provider for this cluster. By default, uses the + // IPTables-based kube-proxy implementation. + DatapathProvider datapath_provider = 11; + + // The desired state of IPv6 connectivity to Google Services. + // By default, no private IPv6 access to or from Google Services (all access + // will be via IPv4) + PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + + // DNSConfig contains clusterDNS config for this cluster. + DNSConfig dns_config = 13; + + // ServiceExternalIPsConfig specifies if services with externalIPs field are + // blocked or not. + ServiceExternalIPsConfig service_external_ips_config = 15; +} + +// Config to block services with externalIPs field. +message ServiceExternalIPsConfig { + // Whether Services with ExternalIPs field are allowed or not. + bool enabled = 1; } // 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 + // The cluster (project, location, cluster name) to get the discovery document // for. Specified in the format `projects/*/locations/*/clusters/*`. string parent = 1; } @@ -3177,6 +3505,46 @@ message IntraNodeVisibilityConfig { bool enabled = 1; } +// ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer +// subsetting on this cluster. +message ILBSubsettingConfig { + // Enables l4 ILB subsetting for this cluster. + bool enabled = 1; +} + +// DNSConfig contains the desired set of options for configuring clusterDNS. +message DNSConfig { + // Provider lists the various in-cluster DNS providers. + enum Provider { + // Default value + PROVIDER_UNSPECIFIED = 0; + + // Use GKE default DNS provider(kube-dns) for DNS resolution. + PLATFORM_DEFAULT = 1; + + // Use CloudDNS for DNS resolution. + CLOUD_DNS = 2; + } + + // DNSScope lists the various scopes of access to cluster DNS records. + enum DNSScope { + // Default value, will be inferred as cluster scope. + DNS_SCOPE_UNSPECIFIED = 0; + + // DNS records are accessible from within the VPC. + VPC_SCOPE = 2; + } + + // cluster_dns indicates which in-cluster DNS provider should be used. + Provider cluster_dns = 1; + + // cluster_dns_scope indicates the scope of access to cluster DNS records. + DNSScope cluster_dns_scope = 2; + + // cluster_dns_domain is the suffix used for all cluster service records. + string cluster_dns_domain = 3; +} + // Constraints applied to pods. message MaxPodsConstraint { // Constraint enforced on the max num of pods per node. @@ -3190,6 +3558,20 @@ message WorkloadIdentityConfig { string workload_pool = 2; } +// Configuration for issuance of mTLS keys and certificates to Kubernetes pods. +message MeshCertificates { + // enable_certificates controls issuance of workload mTLS certificates. + // + // If set, the GKE Workload Identity Certificates controller and node agent + // will be deployed in the cluster, which can then be configured by creating a + // WorkloadCertificateConfig Custom Resource. + // + // Requires Workload Identity + // ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] + // must be non-empty). + google.protobuf.BoolValue enable_certificates = 1; +} + // Configuration of etcd encryption. message DatabaseEncryption { // State of etcd encryption. @@ -3356,3 +3738,245 @@ message ShieldedNodes { // Whether Shielded Nodes features are enabled on all nodes in this cluster. bool enabled = 1; } + +// Configuration of gVNIC feature. +message VirtualNIC { + // Whether gVNIC features are enabled in the node pool. + bool enabled = 1; +} + +// PrivateIPv6GoogleAccess controls whether and how the pods can communicate +// with Google Services through gRPC over IPv6. +enum PrivateIPv6GoogleAccess { + // Default value. Same as DISABLED + PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + + // No private access to or from Google Services + PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + + // Enables private IPv6 access to Google Services from GKE + PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + + // Enables priate IPv6 access to and from Google Services + PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; +} + +// The datapath provider selects the implementation of the Kubernetes networking +// model for service resolution and network policy enforcement. +enum DatapathProvider { + // Default value. + DATAPATH_PROVIDER_UNSPECIFIED = 0; + + // Use the IPTables implementation based on kube-proxy. + LEGACY_DATAPATH = 1; + + // Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE + // Dataplane V2 + // documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2) + // for more. + ADVANCED_DATAPATH = 2; +} + +// NotificationConfig is the configuration of notifications. +message NotificationConfig { + // Types of notifications currently supported. Can be used to filter what + // notifications are sent. + enum EventType { + // Not set, will be ignored. + EVENT_TYPE_UNSPECIFIED = 0; + + // Corresponds with UpgradeAvailableEvent. + UPGRADE_AVAILABLE_EVENT = 1; + + // Corresponds with UpgradeEvent. + UPGRADE_EVENT = 2; + + // Corresponds with SecurityBulletinEvent. + SECURITY_BULLETIN_EVENT = 3; + } + + // Pub/Sub specific notification config. + message PubSub { + // Enable notifications for Pub/Sub. + bool enabled = 1; + + // The desired Pub/Sub topic to which notifications will be + // sent by GKE. Format is `projects/{project}/topics/{topic}`. + string topic = 2 [(google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + }]; + + // Allows filtering to one or more specific event types. If no filter is + // specified, or if a filter is specified with no event types, all event + // types will be sent + Filter filter = 3; + } + + // Allows filtering to one or more specific event types. If event types are + // present, those and only those event types will be transmitted to the + // cluster. Other types will be skipped. If no filter is specified, or no + // event types are present, all event types will be sent + message Filter { + // Event types to allowlist. + repeated EventType event_type = 1; + } + + // Notification config for Pub/Sub. + PubSub pubsub = 1; +} + +// ConfidentialNodes is configuration for the confidential nodes feature, which +// makes nodes run on confidential VMs. +message ConfidentialNodes { + // Whether Confidential Nodes feature is enabled for all nodes in this + // cluster. + bool enabled = 1; +} + +// UpgradeResourceType is the resource type that is upgrading. It is used +// in upgrade notifications. +enum UpgradeResourceType { + // Default value. This shouldn't be used. + UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + + // Master / control plane + MASTER = 1; + + // Node pool + NODE_POOL = 2; +} + +// UpgradeEvent is a notification sent to customers by the cluster server when +// a resource is upgrading. +message UpgradeEvent { + // The resource type that is upgrading. + UpgradeResourceType resource_type = 1; + + // The operation associated with this upgrade. + string operation = 2; + + // The time when the operation was started. + google.protobuf.Timestamp operation_start_time = 3; + + // The current version before the upgrade. + string current_version = 4; + + // The target version for the upgrade. + string target_version = 5; + + // Optional relative path to the resource. For example in node pool upgrades, + // the relative path of the node pool. + string resource = 6; +} + +// UpgradeAvailableEvent is a notification sent to customers when a new +// available version is released. +message UpgradeAvailableEvent { + // The release version available for upgrade. + string version = 1; + + // The resource type of the release version. + UpgradeResourceType resource_type = 2; + + // The release channel of the version. If empty, it means a non-channel + // release. + ReleaseChannel release_channel = 3; + + // Optional relative path to the resource. For example, the relative path of + // the node pool. + string resource = 4; +} + +// SecurityBulletinEvent is a notification sent to customers when a security +// bulletin has been posted that they are vulnerable to. +message SecurityBulletinEvent { + // The resource type (node/control plane) that has the vulnerability. Multiple + // notifications (1 notification per resource type) will be sent for a + // vulnerability that affects > 1 resource type. + string resource_type_affected = 1; + + // The ID of the bulletin corresponding to the vulnerability. + string bulletin_id = 2; + + // The CVEs associated with this bulletin. + repeated string cve_ids = 3; + + // The severity of this bulletin as it relates to GKE. + string severity = 4; + + // The URI link to the bulletin on the website for more information. + string bulletin_uri = 5; + + // A brief description of the bulletin. See the bulletin pointed to by the + // bulletin_uri field for an expanded description. + string brief_description = 6; + + // The GKE minor versions affected by this vulnerability. + repeated string affected_supported_minors = 7; + + // The GKE versions where this vulnerability is patched. + repeated string patched_versions = 8; + + // This represents a version selected from the patched_versions field that + // the cluster receiving this notification should most likely want to upgrade + // to based on its current version. Note that if this notification is being + // received by a given cluster, it means that this version is currently + // available as an upgrade target in that cluster's location. + string suggested_upgrade_target = 9; + + // If this field is specified, it means there are manual steps that the user + // must take to make their clusters safe. + bool manual_steps_required = 10; +} + +// Autopilot is the configuration for Autopilot settings on the cluster. +message Autopilot { + // Enable Autopilot + bool enabled = 1; +} + +// LoggingConfig is cluster logging configuration. +message LoggingConfig { + // Logging components configuration + LoggingComponentConfig component_config = 1; +} + +// LoggingComponentConfig is cluster logging component configuration. +message LoggingComponentConfig { + // GKE components exposing logs + enum Component { + // Default value. This shouldn't be used. + COMPONENT_UNSPECIFIED = 0; + + // system components + SYSTEM_COMPONENTS = 1; + + // workloads + WORKLOADS = 2; + } + + // Select components to collect logs. An empty set would disable all logging. + repeated Component enable_components = 1; +} + +// MonitoringConfig is cluster monitoring configuration. +message MonitoringConfig { + // Monitoring components configuration + MonitoringComponentConfig component_config = 1; +} + +// MonitoringComponentConfig is cluster monitoring component configuration. +message MonitoringComponentConfig { + // GKE components exposing metrics + enum Component { + // Default value. This shouldn't be used. + COMPONENT_UNSPECIFIED = 0; + + // system components + SYSTEM_COMPONENTS = 1; + } + + // Select components to collect metrics. An empty set would disable all + // monitoring. + repeated Component enable_components = 1; +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java index 6c0ced72..0d4ec41c 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java @@ -231,6 +231,40 @@ private AddonsConfig( kalmConfig_ = subBuilder.buildPartial(); } + break; + } + case 114: + { + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder subBuilder = null; + if (gcpFilestoreCsiDriverConfig_ != null) { + subBuilder = gcpFilestoreCsiDriverConfig_.toBuilder(); + } + gcpFilestoreCsiDriverConfig_ = + input.readMessage( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcpFilestoreCsiDriverConfig_); + gcpFilestoreCsiDriverConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 130: + { + com.google.container.v1beta1.GkeBackupAgentConfig.Builder subBuilder = null; + if (gkeBackupAgentConfig_ != null) { + subBuilder = gkeBackupAgentConfig_.toBuilder(); + } + gkeBackupAgentConfig_ = + input.readMessage( + com.google.container.v1beta1.GkeBackupAgentConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gkeBackupAgentConfig_); + gkeBackupAgentConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -508,11 +542,12 @@ public com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig() * microservices. *
* - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @return Whether the istioConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasIstioConfig() { return istioConfig_ != null; } @@ -524,11 +559,12 @@ public boolean hasIstioConfig() { * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @return The istioConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.IstioConfig getIstioConfig() { return istioConfig_ == null ? com.google.container.v1beta1.IstioConfig.getDefaultInstance() @@ -542,9 +578,10 @@ public com.google.container.v1beta1.IstioConfig getIstioConfig() { * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.IstioConfigOrBuilder getIstioConfigOrBuilder() { return getIstioConfig(); } @@ -814,6 +851,110 @@ public com.google.container.v1beta1.KalmConfigOrBuilder getKalmConfigOrBuilder() return getKalmConfig(); } + public static final int GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1beta1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfig_ != null; + } + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return The gcpFilestoreCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfig_ == null + ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() + : gcpFilestoreCsiDriverConfig_; + } + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder + getGcpFilestoreCsiDriverConfigOrBuilder() { + return getGcpFilestoreCsiDriverConfig(); + } + + public static final int GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER = 16; + private com.google.container.v1beta1.GkeBackupAgentConfig gkeBackupAgentConfig_; + /** + * + * + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * + * @return Whether the gkeBackupAgentConfig field is set. + */ + @java.lang.Override + public boolean hasGkeBackupAgentConfig() { + return gkeBackupAgentConfig_ != null; + } + /** + * + * + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * + * @return The gkeBackupAgentConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig() { + return gkeBackupAgentConfig_ == null + ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() + : gkeBackupAgentConfig_; + } + /** + * + * + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder + getGkeBackupAgentConfigOrBuilder() { + return getGkeBackupAgentConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -858,6 +999,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (kalmConfig_ != null) { output.writeMessage(12, getKalmConfig()); } + if (gcpFilestoreCsiDriverConfig_ != null) { + output.writeMessage(14, getGcpFilestoreCsiDriverConfig()); + } + if (gkeBackupAgentConfig_ != null) { + output.writeMessage(16, getGkeBackupAgentConfig()); + } unknownFields.writeTo(output); } @@ -902,6 +1049,15 @@ public int getSerializedSize() { if (kalmConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getKalmConfig()); } + if (gcpFilestoreCsiDriverConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, getGcpFilestoreCsiDriverConfig()); + } + if (gkeBackupAgentConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, getGkeBackupAgentConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -960,6 +1116,15 @@ public boolean equals(final java.lang.Object obj) { if (hasKalmConfig()) { if (!getKalmConfig().equals(other.getKalmConfig())) return false; } + if (hasGcpFilestoreCsiDriverConfig() != other.hasGcpFilestoreCsiDriverConfig()) return false; + if (hasGcpFilestoreCsiDriverConfig()) { + if (!getGcpFilestoreCsiDriverConfig().equals(other.getGcpFilestoreCsiDriverConfig())) + return false; + } + if (hasGkeBackupAgentConfig() != other.hasGkeBackupAgentConfig()) return false; + if (hasGkeBackupAgentConfig()) { + if (!getGkeBackupAgentConfig().equals(other.getGkeBackupAgentConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1011,6 +1176,14 @@ public int hashCode() { hash = (37 * hash) + KALM_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getKalmConfig().hashCode(); } + if (hasGcpFilestoreCsiDriverConfig()) { + hash = (37 * hash) + GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcpFilestoreCsiDriverConfig().hashCode(); + } + if (hasGkeBackupAgentConfig()) { + hash = (37 * hash) + GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGkeBackupAgentConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1217,6 +1390,18 @@ public Builder clear() { kalmConfig_ = null; kalmConfigBuilder_ = null; } + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = null; + } else { + gcpFilestoreCsiDriverConfig_ = null; + gcpFilestoreCsiDriverConfigBuilder_ = null; + } + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfig_ = null; + } else { + gkeBackupAgentConfig_ = null; + gkeBackupAgentConfigBuilder_ = null; + } return this; } @@ -1294,6 +1479,16 @@ public com.google.container.v1beta1.AddonsConfig buildPartial() { } else { result.kalmConfig_ = kalmConfigBuilder_.build(); } + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfig_; + } else { + result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfigBuilder_.build(); + } + if (gkeBackupAgentConfigBuilder_ == null) { + result.gkeBackupAgentConfig_ = gkeBackupAgentConfig_; + } else { + result.gkeBackupAgentConfig_ = gkeBackupAgentConfigBuilder_.build(); + } onBuilt(); return result; } @@ -1373,6 +1568,12 @@ public Builder mergeFrom(com.google.container.v1beta1.AddonsConfig other) { if (other.hasKalmConfig()) { mergeKalmConfig(other.getKalmConfig()); } + if (other.hasGcpFilestoreCsiDriverConfig()) { + mergeGcpFilestoreCsiDriverConfig(other.getGcpFilestoreCsiDriverConfig()); + } + if (other.hasGkeBackupAgentConfig()) { + mergeGkeBackupAgentConfig(other.getGkeBackupAgentConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2287,10 +2488,11 @@ public Builder clearNetworkPolicyConfig() { * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @return Whether the istioConfig field is set. */ + @java.lang.Deprecated public boolean hasIstioConfig() { return istioConfigBuilder_ != null || istioConfig_ != null; } @@ -2302,10 +2504,11 @@ public boolean hasIstioConfig() { * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @return The istioConfig. */ + @java.lang.Deprecated public com.google.container.v1beta1.IstioConfig getIstioConfig() { if (istioConfigBuilder_ == null) { return istioConfig_ == null @@ -2323,8 +2526,9 @@ public com.google.container.v1beta1.IstioConfig getIstioConfig() { * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; */ + @java.lang.Deprecated public Builder setIstioConfig(com.google.container.v1beta1.IstioConfig value) { if (istioConfigBuilder_ == null) { if (value == null) { @@ -2346,8 +2550,9 @@ public Builder setIstioConfig(com.google.container.v1beta1.IstioConfig value) { * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; */ + @java.lang.Deprecated public Builder setIstioConfig( com.google.container.v1beta1.IstioConfig.Builder builderForValue) { if (istioConfigBuilder_ == null) { @@ -2367,8 +2572,9 @@ public Builder setIstioConfig( * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; */ + @java.lang.Deprecated public Builder mergeIstioConfig(com.google.container.v1beta1.IstioConfig value) { if (istioConfigBuilder_ == null) { if (istioConfig_ != null) { @@ -2394,8 +2600,9 @@ public Builder mergeIstioConfig(com.google.container.v1beta1.IstioConfig value) * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearIstioConfig() { if (istioConfigBuilder_ == null) { istioConfig_ = null; @@ -2415,8 +2622,9 @@ public Builder clearIstioConfig() { * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; */ + @java.lang.Deprecated public com.google.container.v1beta1.IstioConfig.Builder getIstioConfigBuilder() { onChanged(); @@ -2430,8 +2638,9 @@ public com.google.container.v1beta1.IstioConfig.Builder getIstioConfigBuilder() * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; */ + @java.lang.Deprecated public com.google.container.v1beta1.IstioConfigOrBuilder getIstioConfigOrBuilder() { if (istioConfigBuilder_ != null) { return istioConfigBuilder_.getMessageOrBuilder(); @@ -2449,7 +2658,7 @@ public com.google.container.v1beta1.IstioConfigOrBuilder getIstioConfigOrBuilder * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1beta1.IstioConfig, @@ -3471,6 +3680,406 @@ public com.google.container.v1beta1.KalmConfigOrBuilder getKalmConfigOrBuilder() return kalmConfigBuilder_; } + private com.google.container.v1beta1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder> + gcpFilestoreCsiDriverConfigBuilder_; + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + public boolean hasGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfigBuilder_ != null || gcpFilestoreCsiDriverConfig_ != null; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return The gcpFilestoreCsiDriverConfig. + */ + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig + getGcpFilestoreCsiDriverConfig() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + return gcpFilestoreCsiDriverConfig_ == null + ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() + : gcpFilestoreCsiDriverConfig_; + } else { + return gcpFilestoreCsiDriverConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder setGcpFilestoreCsiDriverConfig( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig value) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcpFilestoreCsiDriverConfig_ = value; + onChanged(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder setGcpFilestoreCsiDriverConfig( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder builderForValue) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = builderForValue.build(); + onChanged(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder mergeGcpFilestoreCsiDriverConfig( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig value) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + if (gcpFilestoreCsiDriverConfig_ != null) { + gcpFilestoreCsiDriverConfig_ = + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.newBuilder( + gcpFilestoreCsiDriverConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcpFilestoreCsiDriverConfig_ = value; + } + onChanged(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public Builder clearGcpFilestoreCsiDriverConfig() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = null; + onChanged(); + } else { + gcpFilestoreCsiDriverConfig_ = null; + gcpFilestoreCsiDriverConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder + getGcpFilestoreCsiDriverConfigBuilder() { + + onChanged(); + return getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder + getGcpFilestoreCsiDriverConfigOrBuilder() { + if (gcpFilestoreCsiDriverConfigBuilder_ != null) { + return gcpFilestoreCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcpFilestoreCsiDriverConfig_ == null + ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() + : gcpFilestoreCsiDriverConfig_; + } + } + /** + * + * + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder> + getGcpFilestoreCsiDriverConfigFieldBuilder() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder>( + getGcpFilestoreCsiDriverConfig(), getParentForChildren(), isClean()); + gcpFilestoreCsiDriverConfig_ = null; + } + return gcpFilestoreCsiDriverConfigBuilder_; + } + + private com.google.container.v1beta1.GkeBackupAgentConfig gkeBackupAgentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GkeBackupAgentConfig, + com.google.container.v1beta1.GkeBackupAgentConfig.Builder, + com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder> + gkeBackupAgentConfigBuilder_; + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * + * @return Whether the gkeBackupAgentConfig field is set. + */ + public boolean hasGkeBackupAgentConfig() { + return gkeBackupAgentConfigBuilder_ != null || gkeBackupAgentConfig_ != null; + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * + * @return The gkeBackupAgentConfig. + */ + public com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig() { + if (gkeBackupAgentConfigBuilder_ == null) { + return gkeBackupAgentConfig_ == null + ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() + : gkeBackupAgentConfig_; + } else { + return gkeBackupAgentConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder setGkeBackupAgentConfig( + com.google.container.v1beta1.GkeBackupAgentConfig value) { + if (gkeBackupAgentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gkeBackupAgentConfig_ = value; + onChanged(); + } else { + gkeBackupAgentConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder setGkeBackupAgentConfig( + com.google.container.v1beta1.GkeBackupAgentConfig.Builder builderForValue) { + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfig_ = builderForValue.build(); + onChanged(); + } else { + gkeBackupAgentConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder mergeGkeBackupAgentConfig( + com.google.container.v1beta1.GkeBackupAgentConfig value) { + if (gkeBackupAgentConfigBuilder_ == null) { + if (gkeBackupAgentConfig_ != null) { + gkeBackupAgentConfig_ = + com.google.container.v1beta1.GkeBackupAgentConfig.newBuilder(gkeBackupAgentConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gkeBackupAgentConfig_ = value; + } + onChanged(); + } else { + gkeBackupAgentConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder clearGkeBackupAgentConfig() { + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfig_ = null; + onChanged(); + } else { + gkeBackupAgentConfig_ = null; + gkeBackupAgentConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public com.google.container.v1beta1.GkeBackupAgentConfig.Builder + getGkeBackupAgentConfigBuilder() { + + onChanged(); + return getGkeBackupAgentConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder + getGkeBackupAgentConfigOrBuilder() { + if (gkeBackupAgentConfigBuilder_ != null) { + return gkeBackupAgentConfigBuilder_.getMessageOrBuilder(); + } else { + return gkeBackupAgentConfig_ == null + ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() + : gkeBackupAgentConfig_; + } + } + /** + * + * + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GkeBackupAgentConfig, + com.google.container.v1beta1.GkeBackupAgentConfig.Builder, + com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder> + getGkeBackupAgentConfigFieldBuilder() { + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GkeBackupAgentConfig, + com.google.container.v1beta1.GkeBackupAgentConfig.Builder, + com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder>( + getGkeBackupAgentConfig(), getParentForChildren(), isClean()); + gkeBackupAgentConfig_ = null; + } + return gkeBackupAgentConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java index df5a7fb7..f6eedbe0 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java @@ -208,10 +208,11 @@ public interface AddonsConfigOrBuilder * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @return Whether the istioConfig field is set. */ + @java.lang.Deprecated boolean hasIstioConfig(); /** * @@ -221,10 +222,11 @@ public interface AddonsConfigOrBuilder * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; * * @return The istioConfig. */ + @java.lang.Deprecated com.google.container.v1beta1.IstioConfig getIstioConfig(); /** * @@ -234,8 +236,9 @@ public interface AddonsConfigOrBuilder * microservices. * * - * .google.container.v1beta1.IstioConfig istio_config = 5; + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; */ + @java.lang.Deprecated com.google.container.v1beta1.IstioConfigOrBuilder getIstioConfigOrBuilder(); /** @@ -435,4 +438,81 @@ public interface AddonsConfigOrBuilder */ @java.lang.Deprecated com.google.container.v1beta1.KalmConfigOrBuilder getKalmConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + boolean hasGcpFilestoreCsiDriverConfig(); + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + * + * @return The gcpFilestoreCsiDriverConfig. + */ + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig(); + /** + * + * + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * + */ + com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder + getGcpFilestoreCsiDriverConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * + * @return Whether the gkeBackupAgentConfig field is set. + */ + boolean hasGkeBackupAgentConfig(); + /** + * + * + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * + * @return The gkeBackupAgentConfig. + */ + com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig(); + /** + * + * + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder(); } diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeatures.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeatures.java new file mode 100644 index 00000000..c8c04d02 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeatures.java @@ -0,0 +1,604 @@ +/* + * 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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Specifies options for controlling advanced machine features.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AdvancedMachineFeatures} + */ +public final class AdvancedMachineFeatures extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdvancedMachineFeatures) + AdvancedMachineFeaturesOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdvancedMachineFeatures.newBuilder() to construct. + private AdvancedMachineFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdvancedMachineFeatures() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdvancedMachineFeatures(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AdvancedMachineFeatures( + 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: + { + bitField0_ |= 0x00000001; + threadsPerCore_ = input.readInt64(); + 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AdvancedMachineFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdvancedMachineFeatures.class, + com.google.container.v1beta1.AdvancedMachineFeatures.Builder.class); + } + + private int bitField0_; + public static final int THREADS_PER_CORE_FIELD_NUMBER = 1; + private long threadsPerCore_; + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return Whether the threadsPerCore field is set. + */ + @java.lang.Override + public boolean hasThreadsPerCore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return The threadsPerCore. + */ + @java.lang.Override + public long getThreadsPerCore() { + return threadsPerCore_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(1, threadsPerCore_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, threadsPerCore_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.AdvancedMachineFeatures)) { + return super.equals(obj); + } + com.google.container.v1beta1.AdvancedMachineFeatures other = + (com.google.container.v1beta1.AdvancedMachineFeatures) obj; + + if (hasThreadsPerCore() != other.hasThreadsPerCore()) return false; + if (hasThreadsPerCore()) { + if (getThreadsPerCore() != other.getThreadsPerCore()) 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 (hasThreadsPerCore()) { + hash = (37 * hash) + THREADS_PER_CORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getThreadsPerCore()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.AdvancedMachineFeatures prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Specifies options for controlling advanced machine features.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AdvancedMachineFeatures} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AdvancedMachineFeatures) + com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AdvancedMachineFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdvancedMachineFeatures.class, + com.google.container.v1beta1.AdvancedMachineFeatures.Builder.class); + } + + // Construct using com.google.container.v1beta1.AdvancedMachineFeatures.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(); + threadsPerCore_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstanceForType() { + return com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures build() { + com.google.container.v1beta1.AdvancedMachineFeatures result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures buildPartial() { + com.google.container.v1beta1.AdvancedMachineFeatures result = + new com.google.container.v1beta1.AdvancedMachineFeatures(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.threadsPerCore_ = threadsPerCore_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ = to_bitField0_; + 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.v1beta1.AdvancedMachineFeatures) { + return mergeFrom((com.google.container.v1beta1.AdvancedMachineFeatures) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AdvancedMachineFeatures other) { + if (other == com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance()) + return this; + if (other.hasThreadsPerCore()) { + setThreadsPerCore(other.getThreadsPerCore()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.AdvancedMachineFeatures parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.AdvancedMachineFeatures) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long threadsPerCore_; + /** + * + * + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * + * @return Whether the threadsPerCore field is set. + */ + @java.lang.Override + public boolean hasThreadsPerCore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * + * @return The threadsPerCore. + */ + @java.lang.Override + public long getThreadsPerCore() { + return threadsPerCore_; + } + /** + * + * + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * + * @param value The threadsPerCore to set. + * @return This builder for chaining. + */ + public Builder setThreadsPerCore(long value) { + bitField0_ |= 0x00000001; + threadsPerCore_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * + * @return This builder for chaining. + */ + public Builder clearThreadsPerCore() { + bitField0_ = (bitField0_ & ~0x00000001); + threadsPerCore_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AdvancedMachineFeatures) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdvancedMachineFeatures) + private static final com.google.container.v1beta1.AdvancedMachineFeatures DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AdvancedMachineFeatures(); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedMachineFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdvancedMachineFeatures(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeaturesOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeaturesOrBuilder.java new file mode 100644 index 00000000..025bbd72 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeaturesOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface AdvancedMachineFeaturesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdvancedMachineFeatures) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return Whether the threadsPerCore field is set. + */ + boolean hasThreadsPerCore(); + /** + * + * + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * + * @return The threadsPerCore. + */ + long getThreadsPerCore(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java index f5fc7e14..a32fa1bb 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java @@ -652,6 +652,22 @@ private Cluster( identityServiceConfig_ = subBuilder.buildPartial(); } + break; + } + case 538: + { + com.google.container.v1beta1.MeshCertificates.Builder subBuilder = null; + if (meshCertificates_ != null) { + subBuilder = meshCertificates_.toBuilder(); + } + meshCertificates_ = + input.readMessage( + com.google.container.v1beta1.MeshCertificates.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(meshCertificates_); + meshCertificates_ = subBuilder.buildPartial(); + } + break; } case 802: @@ -3134,6 +3150,57 @@ public com.google.container.v1beta1.WorkloadCertificates getWorkloadCertificates return getWorkloadCertificates(); } + public static final int MESH_CERTIFICATES_FIELD_NUMBER = 67; + private com.google.container.v1beta1.MeshCertificates meshCertificates_; + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * + * @return Whether the meshCertificates field is set. + */ + @java.lang.Override + public boolean hasMeshCertificates() { + return meshCertificates_ != null; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * + * @return The meshCertificates. + */ + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates getMeshCertificates() { + return meshCertificates_ == null + ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() + : meshCertificates_; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + @java.lang.Override + public com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { + return getMeshCertificates(); + } + public static final int CLUSTER_TELEMETRY_FIELD_NUMBER = 46; private com.google.container.v1beta1.ClusterTelemetry clusterTelemetry_; /** @@ -4746,6 +4813,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (identityServiceConfig_ != null) { output.writeMessage(54, getIdentityServiceConfig()); } + if (meshCertificates_ != null) { + output.writeMessage(67, getMeshCertificates()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); } @@ -4981,6 +5051,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(54, getIdentityServiceConfig()); } + if (meshCertificates_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(67, getMeshCertificates()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); } @@ -5176,6 +5249,10 @@ public boolean equals(final java.lang.Object obj) { if (hasWorkloadCertificates()) { if (!getWorkloadCertificates().equals(other.getWorkloadCertificates())) return false; } + if (hasMeshCertificates() != other.hasMeshCertificates()) return false; + if (hasMeshCertificates()) { + if (!getMeshCertificates().equals(other.getMeshCertificates())) return false; + } if (hasClusterTelemetry() != other.hasClusterTelemetry()) return false; if (hasClusterTelemetry()) { if (!getClusterTelemetry().equals(other.getClusterTelemetry())) return false; @@ -5370,6 +5447,10 @@ public int hashCode() { hash = (37 * hash) + WORKLOAD_CERTIFICATES_FIELD_NUMBER; hash = (53 * hash) + getWorkloadCertificates().hashCode(); } + if (hasMeshCertificates()) { + hash = (37 * hash) + MESH_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getMeshCertificates().hashCode(); + } if (hasClusterTelemetry()) { hash = (37 * hash) + CLUSTER_TELEMETRY_FIELD_NUMBER; hash = (53 * hash) + getClusterTelemetry().hashCode(); @@ -5783,6 +5864,12 @@ public Builder clear() { workloadCertificates_ = null; workloadCertificatesBuilder_ = null; } + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = null; + } else { + meshCertificates_ = null; + meshCertificatesBuilder_ = null; + } if (clusterTelemetryBuilder_ == null) { clusterTelemetry_ = null; } else { @@ -6052,6 +6139,11 @@ public com.google.container.v1beta1.Cluster buildPartial() { } else { result.workloadCertificates_ = workloadCertificatesBuilder_.build(); } + if (meshCertificatesBuilder_ == null) { + result.meshCertificates_ = meshCertificates_; + } else { + result.meshCertificates_ = meshCertificatesBuilder_.build(); + } if (clusterTelemetryBuilder_ == null) { result.clusterTelemetry_ = clusterTelemetry_; } else { @@ -6337,6 +6429,9 @@ public Builder mergeFrom(com.google.container.v1beta1.Cluster other) { if (other.hasWorkloadCertificates()) { mergeWorkloadCertificates(other.getWorkloadCertificates()); } + if (other.hasMeshCertificates()) { + mergeMeshCertificates(other.getMeshCertificates()); + } if (other.hasClusterTelemetry()) { mergeClusterTelemetry(other.getClusterTelemetry()); } @@ -12807,6 +12902,201 @@ public Builder clearWorkloadCertificates() { return workloadCertificatesBuilder_; } + private com.google.container.v1beta1.MeshCertificates meshCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, + com.google.container.v1beta1.MeshCertificates.Builder, + com.google.container.v1beta1.MeshCertificatesOrBuilder> + meshCertificatesBuilder_; + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * + * @return Whether the meshCertificates field is set. + */ + public boolean hasMeshCertificates() { + return meshCertificatesBuilder_ != null || meshCertificates_ != null; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * + * @return The meshCertificates. + */ + public com.google.container.v1beta1.MeshCertificates getMeshCertificates() { + if (meshCertificatesBuilder_ == null) { + return meshCertificates_ == null + ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() + : meshCertificates_; + } else { + return meshCertificatesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public Builder setMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { + if (meshCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meshCertificates_ = value; + onChanged(); + } else { + meshCertificatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public Builder setMeshCertificates( + com.google.container.v1beta1.MeshCertificates.Builder builderForValue) { + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = builderForValue.build(); + onChanged(); + } else { + meshCertificatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public Builder mergeMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { + if (meshCertificatesBuilder_ == null) { + if (meshCertificates_ != null) { + meshCertificates_ = + com.google.container.v1beta1.MeshCertificates.newBuilder(meshCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + meshCertificates_ = value; + } + onChanged(); + } else { + meshCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public Builder clearMeshCertificates() { + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = null; + onChanged(); + } else { + meshCertificates_ = null; + meshCertificatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public com.google.container.v1beta1.MeshCertificates.Builder getMeshCertificatesBuilder() { + + onChanged(); + return getMeshCertificatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { + if (meshCertificatesBuilder_ != null) { + return meshCertificatesBuilder_.getMessageOrBuilder(); + } else { + return meshCertificates_ == null + ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() + : meshCertificates_; + } + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, + com.google.container.v1beta1.MeshCertificates.Builder, + com.google.container.v1beta1.MeshCertificatesOrBuilder> + getMeshCertificatesFieldBuilder() { + if (meshCertificatesBuilder_ == null) { + meshCertificatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, + com.google.container.v1beta1.MeshCertificates.Builder, + com.google.container.v1beta1.MeshCertificatesOrBuilder>( + getMeshCertificates(), getParentForChildren(), isClean()); + meshCertificates_ = null; + } + return meshCertificatesBuilder_; + } + private com.google.container.v1beta1.ClusterTelemetry clusterTelemetry_; private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1beta1.ClusterTelemetry, diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java index 43a902be..2c6a28ed 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java @@ -1390,6 +1390,44 @@ public interface ClusterOrBuilder */ com.google.container.v1beta1.WorkloadCertificatesOrBuilder getWorkloadCertificatesOrBuilder(); + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * + * @return Whether the meshCertificates field is set. + */ + boolean hasMeshCertificates(); + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * + * @return The meshCertificates. + */ + com.google.container.v1beta1.MeshCertificates getMeshCertificates(); + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder(); + /** * * diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java index e8de65e8..e87ad175 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java @@ -51,6 +51,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AdvancedMachineFeatures_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_NodeNetworkConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -67,6 +71,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_EphemeralStorageConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_EphemeralStorageConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GcfsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GcfsConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_ReservationAffinity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -127,6 +135,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_KalmConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_KalmConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GkeBackupAgentConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_ConfigConnectorConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -135,6 +147,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -343,6 +359,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_NodePool_UpgradeSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_NodePool_UpgradeSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodePool_PlacementPolicy_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_NodeManagement_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -367,6 +387,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_TimeWindow_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_TimeWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MaintenanceExclusionOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_RecurringTimeWindow_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -431,6 +455,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_AcceleratorConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_AcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ManagedPrometheusConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -515,6 +543,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_WorkloadCertificates_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_WorkloadCertificates_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MeshCertificates_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MeshCertificates_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_DatabaseEncryption_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -583,6 +615,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_NotificationConfig_PubSub_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_NotificationConfig_PubSub_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NotificationConfig_Filter_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_ConfidentialNodes_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -595,6 +631,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_UpgradeAvailableEvent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_UpgradeAvailableEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SecurityBulletinEvent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_IdentityServiceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -639,7 +679,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\"\200\001\n\021NodeKubeletConfig\022\032" + "\n\022cpu_manager_policy\030\001 \001(\t\0221\n\rcpu_cfs_qu" + "ota\030\002 \001(\0132\032.google.protobuf.BoolValue\022\034\n" - + "\024cpu_cfs_quota_period\030\003 \001(\t\"\275\t\n\nNodeConf" + + "\024cpu_cfs_quota_period\030\003 \001(\t\"\334\n\n\nNodeConf" + "ig\022\024\n\014machine_type\030\001 \001(\t\022\024\n\014disk_size_gb" + "\030\002 \001(\005\022\024\n\014oauth_scopes\030\003 \003(\t\022\027\n\017service_" + "account\030\t \001(\t\022D\n\010metadata\030\004 \003(\01322.google" @@ -666,949 +706,1003 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026 \001(\0132+.google.container.v1beta1.NodeKub" + "eletConfig\022R\n\030ephemeral_storage_config\030\030" + " \001(\01320.google.container.v1beta1.Ephemera" - + "lStorageConfig\0223\n\005gvnic\030\035 \001(\0132$.google.c" - + "ontainer.v1beta1.VirtualNIC\032/\n\rMetadataE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"b\n\021NodeNetworkConfig\022\035\n\020create_pod_r" - + "ange\030\004 \001(\010B\003\340A\004\022\021\n\tpod_range\030\005 \001(\t\022\033\n\023po" - + "d_ipv4_cidr_block\030\006 \001(\t\"Y\n\026ShieldedInsta" - + "nceConfig\022\032\n\022enable_secure_boot\030\001 \001(\010\022#\n" - + "\033enable_integrity_monitoring\030\002 \001(\010\"\212\001\n\rS" - + "andboxConfig\022\030\n\014sandbox_type\030\001 \001(\tB\002\030\001\022:" - + "\n\004type\030\002 \001(\0162,.google.container.v1beta1." - + "SandboxConfig.Type\"#\n\004Type\022\017\n\013UNSPECIFIE" - + "D\020\000\022\n\n\006GVISOR\020\001\"1\n\026EphemeralStorageConfi" - + "g\022\027\n\017local_ssd_count\030\001 \001(\005\"\344\001\n\023Reservati" - + "onAffinity\022T\n\030consume_reservation_type\030\001" - + " \001(\01622.google.container.v1beta1.Reservat" - + "ionAffinity.Type\022\013\n\003key\030\002 \001(\t\022\016\n\006values\030" - + "\003 \003(\t\"Z\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\022\n\016NO_RES" - + "ERVATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECI" - + "FIC_RESERVATION\020\003\"\276\001\n\tNodeTaint\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t\022:\n\006effect\030\003 \001(\0162*.go" - + "ogle.container.v1beta1.NodeTaint.Effect\"" - + "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\"A\n\nNodeTaints\0223\n\006taints\030\001 \003(\013" - + "2#.google.container.v1beta1.NodeTaint\"}\n" - + "\nNodeLabels\022@\n\006labels\030\001 \003(\01320.google.con" - + "tainer.v1beta1.NodeLabels.LabelsEntry\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\"\033\n\013NetworkTags\022\014\n\004tags\030\001 \003(\t\"\336\001\n\nMa" - + "sterAuth\022\024\n\010username\030\001 \001(\tB\002\030\001\022\024\n\010passwo" - + "rd\030\002 \001(\tB\002\030\001\022T\n\031client_certificate_confi" - + "g\030\003 \001(\01321.google.container.v1beta1.Clien" - + "tCertificateConfig\022\036\n\026cluster_ca_certifi" - + "cate\030d \001(\t\022\032\n\022client_certificate\030e \001(\t\022\022" - + "\n\nclient_key\030f \001(\t\";\n\027ClientCertificateC" - + "onfig\022 \n\030issue_client_certificate\030\001 \001(\010\"" - + "\220\006\n\014AddonsConfig\022H\n\023http_load_balancing\030" - + "\001 \001(\0132+.google.container.v1beta1.HttpLoa" - + "dBalancing\022V\n\032horizontal_pod_autoscaling" - + "\030\002 \001(\01322.google.container.v1beta1.Horizo" - + "ntalPodAutoscaling\022O\n\024kubernetes_dashboa" - + "rd\030\003 \001(\0132-.google.container.v1beta1.Kube" - + "rnetesDashboardB\002\030\001\022L\n\025network_policy_co" - + "nfig\030\004 \001(\0132-.google.container.v1beta1.Ne" - + "tworkPolicyConfig\022;\n\014istio_config\030\005 \001(\0132" - + "%.google.container.v1beta1.IstioConfig\022B" - + "\n\020cloud_run_config\030\007 \001(\0132(.google.contai" - + "ner.v1beta1.CloudRunConfig\022B\n\020dns_cache_" - + "config\030\010 \001(\0132(.google.container.v1beta1." - + "DnsCacheConfig\022P\n\027config_connector_confi" - + "g\030\n \001(\0132/.google.container.v1beta1.Confi" - + "gConnectorConfig\022i\n%gce_persistent_disk_" - + "csi_driver_config\030\013 \001(\0132:.google.contain" - + "er.v1beta1.GcePersistentDiskCsiDriverCon" - + "fig\022=\n\013kalm_config\030\014 \001(\0132$.google.contai" - + "ner.v1beta1.KalmConfigB\002\030\001\"%\n\021HttpLoadBa" - + "lancing\022\020\n\010disabled\030\001 \001(\010\",\n\030HorizontalP" - + "odAutoscaling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Kuber" - + "netesDashboard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Netw" - + "orkPolicyConfig\022\020\n\010disabled\030\001 \001(\010\"!\n\016Dns" - + "CacheConfig\022\017\n\007enabled\030\001 \001(\010\"!\n\nKalmConf" - + "ig\022\023\n\007enabled\030\001 \001(\010B\002\030\001\"(\n\025ConfigConnect" - + "orConfig\022\017\n\007enabled\030\001 \001(\010\"3\n GcePersiste" - + "ntDiskCsiDriverConfig\022\017\n\007enabled\030\001 \001(\010\"9" - + "\n&PrivateClusterMasterGlobalAccessConfig" - + "\022\017\n\007enabled\030\001 \001(\010\"\245\002\n\024PrivateClusterConf" - + "ig\022\034\n\024enable_private_nodes\030\001 \001(\010\022\037\n\027enab" - + "le_private_endpoint\030\002 \001(\010\022\036\n\026master_ipv4" - + "_cidr_block\030\003 \001(\t\022\030\n\020private_endpoint\030\004 " - + "\001(\t\022\027\n\017public_endpoint\030\005 \001(\t\022\024\n\014peering_" - + "name\030\007 \001(\t\022e\n\033master_global_access_confi" - + "g\030\010 \001(\0132@.google.container.v1beta1.Priva" - + "teClusterMasterGlobalAccessConfig\"\227\001\n\013Is" - + "tioConfig\022\020\n\010disabled\030\001 \001(\010\022A\n\004auth\030\002 \001(" - + "\01623.google.container.v1beta1.IstioConfig" - + ".IstioAuthMode\"3\n\rIstioAuthMode\022\r\n\tAUTH_" - + "NONE\020\000\022\023\n\017AUTH_MUTUAL_TLS\020\001\"\363\001\n\016CloudRun" - + "Config\022\020\n\010disabled\030\001 \001(\010\022U\n\022load_balance" - + "r_type\030\003 \001(\01629.google.container.v1beta1." - + "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\"\301\001\n\036Ma" - + "sterAuthorizedNetworksConfig\022\017\n\007enabled\030" - + "\001 \001(\010\022W\n\013cidr_blocks\030\002 \003(\0132B.google.cont" - + "ainer.v1beta1.MasterAuthorizedNetworksCo" - + "nfig.CidrBlock\0325\n\tCidrBlock\022\024\n\014display_n" - + "ame\030\001 \001(\t\022\022\n\ncidr_block\030\002 \001(\t\"\035\n\nLegacyA" - + "bac\022\017\n\007enabled\030\001 \001(\010\"\226\001\n\rNetworkPolicy\022B" - + "\n\010provider\030\001 \001(\01620.google.container.v1be" - + "ta1.NetworkPolicy.Provider\022\017\n\007enabled\030\002 " - + "\001(\010\"0\n\010Provider\022\030\n\024PROVIDER_UNSPECIFIED\020" - + "\000\022\n\n\006CALICO\020\001\"\267\003\n\022IPAllocationPolicy\022\026\n\016" - + "use_ip_aliases\030\001 \001(\010\022\031\n\021create_subnetwor" - + "k\030\002 \001(\010\022\027\n\017subnetwork_name\030\003 \001(\t\022\035\n\021clus" - + "ter_ipv4_cidr\030\004 \001(\tB\002\030\001\022\032\n\016node_ipv4_cid" - + "r\030\005 \001(\tB\002\030\001\022\036\n\022services_ipv4_cidr\030\006 \001(\tB" - + "\002\030\001\022$\n\034cluster_secondary_range_name\030\007 \001(" - + "\t\022%\n\035services_secondary_range_name\030\010 \001(\t" - + "\022\037\n\027cluster_ipv4_cidr_block\030\t \001(\t\022\034\n\024nod" - + "e_ipv4_cidr_block\030\n \001(\t\022 \n\030services_ipv4" - + "_cidr_block\030\013 \001(\t\022\033\n\023allow_route_overlap" - + "\030\014 \001(\010\022\033\n\023tpu_ipv4_cidr_block\030\r \001(\t\022\022\n\nu" - + "se_routes\030\017 \001(\010\"&\n\023BinaryAuthorization\022\017" - + "\n\007enabled\030\001 \001(\010\"*\n\027PodSecurityPolicyConf" - + "ig\022\017\n\007enabled\030\001 \001(\010\"D\n\031AuthenticatorGrou" - + "psConfig\022\017\n\007enabled\030\001 \001(\010\022\026\n\016security_gr" - + "oup\030\002 \001(\t\"\226\001\n\020ClusterTelemetry\022=\n\004type\030\001" - + " \001(\0162/.google.container.v1beta1.ClusterT" - + "elemetry.Type\"C\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\014" - + "\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002\022\017\n\013SYSTEM_ONLY" - + "\020\003\"\345\033\n\007Cluster\022\014\n\004name\030\001 \001(\t\022\023\n\013descript" - + "ion\030\002 \001(\t\022\036\n\022initial_node_count\030\003 \001(\005B\002\030" - + "\001\022=\n\013node_config\030\004 \001(\0132$.google.containe" - + "r.v1beta1.NodeConfigB\002\030\001\0229\n\013master_auth\030" - + "\005 \001(\0132$.google.container.v1beta1.MasterA" - + "uth\022\027\n\017logging_service\030\006 \001(\t\022\032\n\022monitori" - + "ng_service\030\007 \001(\t\022\017\n\007network\030\010 \001(\t\022\031\n\021clu" - + "ster_ipv4_cidr\030\t \001(\t\022=\n\raddons_config\030\n " - + "\001(\0132&.google.container.v1beta1.AddonsCon" - + "fig\022\022\n\nsubnetwork\030\013 \001(\t\0226\n\nnode_pools\030\014 " - + "\003(\0132\".google.container.v1beta1.NodePool\022" - + "\021\n\tlocations\030\r \003(\t\022\037\n\027enable_kubernetes_" - + "alpha\030\016 \001(\010\022N\n\017resource_labels\030\017 \003(\01325.g" - + "oogle.container.v1beta1.Cluster.Resource" - + "LabelsEntry\022\031\n\021label_fingerprint\030\020 \001(\t\0229" - + "\n\013legacy_abac\030\022 \001(\0132$.google.container.v" - + "1beta1.LegacyAbac\022?\n\016network_policy\030\023 \001(" - + "\0132\'.google.container.v1beta1.NetworkPoli" - + "cy\022J\n\024ip_allocation_policy\030\024 \001(\0132,.googl" - + "e.container.v1beta1.IPAllocationPolicy\022c" - + "\n!master_authorized_networks_config\030\026 \001(" - + "\01328.google.container.v1beta1.MasterAutho" - + "rizedNetworksConfig\022G\n\022maintenance_polic" - + "y\030\027 \001(\0132+.google.container.v1beta1.Maint" - + "enancePolicy\022K\n\024binary_authorization\030\030 \001" - + "(\0132-.google.container.v1beta1.BinaryAuth" - + "orization\022U\n\032pod_security_policy_config\030" - + "\031 \001(\01321.google.container.v1beta1.PodSecu" - + "rityPolicyConfig\022A\n\013autoscaling\030\032 \001(\0132,." - + "google.container.v1beta1.ClusterAutoscal" - + "ing\022?\n\016network_config\030\033 \001(\0132\'.google.con" - + "tainer.v1beta1.NetworkConfig\022\033\n\017private_" - + "cluster\030\034 \001(\010B\002\030\001\022\"\n\026master_ipv4_cidr_bl" - + "ock\030\035 \001(\tB\002\030\001\022P\n\033default_max_pods_constr" - + "aint\030\036 \001(\0132+.google.container.v1beta1.Ma" - + "xPodsConstraint\022Y\n\034resource_usage_export" - + "_config\030! \001(\01323.google.container.v1beta1" - + ".ResourceUsageExportConfig\022X\n\033authentica" - + "tor_groups_config\030\" \001(\01323.google.contain" - + "er.v1beta1.AuthenticatorGroupsConfig\022N\n\026" - + "private_cluster_config\030% \001(\0132..google.co" - + "ntainer.v1beta1.PrivateClusterConfig\022R\n\030" - + "vertical_pod_autoscaling\030\' \001(\01320.google." - + "container.v1beta1.VerticalPodAutoscaling" - + "\022?\n\016shielded_nodes\030( \001(\0132\'.google.contai" - + "ner.v1beta1.ShieldedNodes\022A\n\017release_cha" - + "nnel\030) \001(\0132(.google.container.v1beta1.Re" - + "leaseChannel\022R\n\030workload_identity_config" - + "\030+ \001(\01320.google.container.v1beta1.Worklo" - + "adIdentityConfig\022M\n\025workload_certificate" - + "s\0304 \001(\0132..google.container.v1beta1.Workl" - + "oadCertificates\022E\n\021cluster_telemetry\030. \001" - + "(\0132*.google.container.v1beta1.ClusterTel" - + "emetry\0227\n\ntpu_config\030/ \001(\0132#.google.cont" - + "ainer.v1beta1.TpuConfig\022I\n\023notification_" - + "config\0301 \001(\0132,.google.container.v1beta1." - + "NotificationConfig\022G\n\022confidential_nodes" - + "\0302 \001(\0132+.google.container.v1beta1.Confid" - + "entialNodes\022P\n\027identity_service_config\0306" - + " \001(\0132/.google.container.v1beta1.Identity" - + "ServiceConfig\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\030h \001(\t\022 \n\024current_node_version\030i " - + "\001(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\0228\n\006status\030k" - + " \001(\0162(.google.container.v1beta1.Cluster." - + "Status\022\032\n\016status_message\030l \001(\tB\002\030\001\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\022I\n\023database_encryption\030& \001(\0132,.goog" - + "le.container.v1beta1.DatabaseEncryption\022" - + "=\n\nconditions\030v \003(\0132).google.container.v" - + "1beta1.StatusCondition\0220\n\006master\030| \001(\0132 " - + ".google.container.v1beta1.Master\0227\n\tauto" - + "pilot\030\200\001 \001(\0132#.google.container.v1beta1." - + "Autopilot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003\022L\n\022node_pool" - + "_defaults\030\203\001 \001(\0132*.google.container.v1be" - + "ta1.NodePoolDefaultsH\000\210\001\001\022@\n\016logging_con" - + "fig\030\204\001 \001(\0132\'.google.container.v1beta1.Lo" - + "ggingConfig\022F\n\021monitoring_config\030\205\001 \001(\0132" - + "*.google.container.v1beta1.MonitoringCon" - + "fig\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\022STATUS_U" - + "NSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNIN" - + "G\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ER" - + "ROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_pool_defaul" - + "ts\"^\n\020NodePoolDefaults\022J\n\024node_config_de" - + "faults\030\001 \001(\0132,.google.container.v1beta1." - + "NodeConfigDefaults\"\024\n\022NodeConfigDefaults" - + "\"\367\024\n\rClusterUpdate\022\034\n\024desired_node_versi" - + "on\030\004 \001(\t\022\"\n\032desired_monitoring_service\030\005" - + " \001(\t\022E\n\025desired_addons_config\030\006 \001(\0132&.go" - + "ogle.container.v1beta1.AddonsConfig\022\034\n\024d" - + "esired_node_pool_id\030\007 \001(\t\022\032\n\022desired_ima" - + "ge_type\030\010 \001(\t\022T\n\035desired_node_pool_autos" - + "caling\030\t \001(\0132-.google.container.v1beta1." - + "NodePoolAutoscaling\022\031\n\021desired_locations" - + "\030\n \003(\t\022k\n)desired_master_authorized_netw" - + "orks_config\030\014 \001(\01328.google.container.v1b" - + "eta1.MasterAuthorizedNetworksConfig\022]\n\"d" - + "esired_pod_security_policy_config\030\016 \001(\0132" - + "1.google.container.v1beta1.PodSecurityPo" - + "licyConfig\022Q\n\033desired_cluster_autoscalin" - + "g\030\017 \001(\0132,.google.container.v1beta1.Clust" - + "erAutoscaling\022S\n\034desired_binary_authoriz" - + "ation\030\020 \001(\0132-.google.container.v1beta1.B" - + "inaryAuthorization\022\037\n\027desired_logging_se" - + "rvice\030\023 \001(\t\022a\n$desired_resource_usage_ex" - + "port_config\030\025 \001(\01323.google.container.v1b" - + "eta1.ResourceUsageExportConfig\022Z\n desire" - + "d_vertical_pod_autoscaling\030\026 \001(\01320.googl" - + "e.container.v1beta1.VerticalPodAutoscali" - + "ng\022V\n\036desired_private_cluster_config\030\031 \001" - + "(\0132..google.container.v1beta1.PrivateClu" - + "sterConfig\022a\n$desired_intra_node_visibil" - + "ity_config\030\032 \001(\01323.google.container.v1be" - + "ta1.IntraNodeVisibilityConfig\022P\n\033desired" - + "_default_snat_status\030\034 \001(\0132+.google.cont" - + "ainer.v1beta1.DefaultSnatStatus\022M\n\031desir" - + "ed_cluster_telemetry\030\036 \001(\0132*.google.cont" - + "ainer.v1beta1.ClusterTelemetry\022I\n\027desire" - + "d_release_channel\030\037 \001(\0132(.google.contain" - + "er.v1beta1.ReleaseChannel\022?\n\022desired_tpu" - + "_config\030& \001(\0132#.google.container.v1beta1" - + ".TpuConfig\022V\n\037desired_l4ilb_subsetting_c" - + "onfig\030\' \001(\0132-.google.container.v1beta1.I" - + "LBSubsettingConfig\022M\n\031desired_datapath_p" - + "rovider\0302 \001(\0162*.google.container.v1beta1" - + ".DatapathProvider\022]\n\"desired_private_ipv" - + "6_google_access\0303 \001(\01621.google.container" - + ".v1beta1.PrivateIPv6GoogleAccess\022Q\n\033desi" - + "red_notification_config\0307 \001(\0132,.google.c" - + "ontainer.v1beta1.NotificationConfig\022\036\n\026d" - + "esired_master_version\030d \001(\t\022Q\n\033desired_d" - + "atabase_encryption\030. \001(\0132,.google.contai" - + "ner.v1beta1.DatabaseEncryption\022Z\n desire" - + "d_workload_identity_config\030/ \001(\01320.googl" - + "e.container.v1beta1.WorkloadIdentityConf" - + "ig\022U\n\035desired_workload_certificates\030= \001(" - + "\0132..google.container.v1beta1.WorkloadCer" - + "tificates\022G\n\026desired_shielded_nodes\0300 \001(" - + "\0132\'.google.container.v1beta1.ShieldedNod" - + "es\0228\n\016desired_master\0304 \001(\0132 .google.cont" - + "ainer.v1beta1.Master\022?\n\022desired_dns_conf" - + "ig\0305 \001(\0132#.google.container.v1beta1.DNSC" - + "onfig\022_\n#desired_service_external_ips_co" - + "nfig\030< \001(\01322.google.container.v1beta1.Se" - + "rviceExternalIPsConfig\022`\n#desired_authen" - + "ticator_groups_config\030? \001(\01323.google.con" - + "tainer.v1beta1.AuthenticatorGroupsConfig" - + "\022G\n\026desired_logging_config\030@ \001(\0132\'.googl" - + "e.container.v1beta1.LoggingConfig\022M\n\031des" - + "ired_monitoring_config\030A \001(\0132*.google.co" - + "ntainer.v1beta1.MonitoringConfig\022X\n\037desi" - + "red_identity_service_config\030B \001(\0132/.goog" - + "le.container.v1beta1.IdentityServiceConf" - + "ig\"\212\010\n\tOperation\022\014\n\004name\030\001 \001(\t\022\020\n\004zone\030\002" - + " \001(\tB\002\030\001\022@\n\016operation_type\030\003 \001(\0162(.googl" - + "e.container.v1beta1.Operation.Type\022:\n\006st" - + "atus\030\004 \001(\0162*.google.container.v1beta1.Op" - + "eration.Status\022\016\n\006detail\030\010 \001(\t\022\035\n\016status" - + "_message\030\005 \001(\tB\005\030\001\340A\003\022\021\n\tself_link\030\006 \001(\t" - + "\022\023\n\013target_link\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022" - + "\022\n\nstart_time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022B\n" - + "\010progress\030\014 \001(\0132+.google.container.v1bet" - + "a1.OperationProgressB\003\340A\003\022I\n\022cluster_con" - + "ditions\030\r \003(\0132).google.container.v1beta1" - + ".StatusConditionB\002\030\001\022J\n\023nodepool_conditi" - + "ons\030\016 \003(\0132).google.container.v1beta1.Sta" - + "tusConditionB\002\030\001\022!\n\005error\030\017 \001(\0132\022.google" - + ".rpc.Status\"R\n\006Status\022\026\n\022STATUS_UNSPECIF" - + "IED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020" - + "\003\022\014\n\010ABORTING\020\004\"\375\002\n\004Type\022\024\n\020TYPE_UNSPECI" - + "FIED\020\000\022\022\n\016CREATE_CLUSTER\020\001\022\022\n\016DELETE_CLU" - + "STER\020\002\022\022\n\016UPGRADE_MASTER\020\003\022\021\n\rUPGRADE_NO" - + "DES\020\004\022\022\n\016REPAIR_CLUSTER\020\005\022\022\n\016UPDATE_CLUS" - + "TER\020\006\022\024\n\020CREATE_NODE_POOL\020\007\022\024\n\020DELETE_NO" - + "DE_POOL\020\010\022\034\n\030SET_NODE_POOL_MANAGEMENT\020\t\022" - + "\025\n\021AUTO_REPAIR_NODES\020\n\022\026\n\022AUTO_UPGRADE_N" - + "ODES\020\013\022\016\n\nSET_LABELS\020\014\022\023\n\017SET_MASTER_AUT" - + "H\020\r\022\026\n\022SET_NODE_POOL_SIZE\020\016\022\026\n\022SET_NETWO" - + "RK_POLICY\020\017\022\032\n\026SET_MAINTENANCE_POLICY\020\020\"" - + "\312\002\n\021OperationProgress\022\014\n\004name\030\001 \001(\t\022:\n\006s" - + "tatus\030\002 \001(\0162*.google.container.v1beta1.O" - + "peration.Status\022C\n\007metrics\030\003 \003(\01322.googl" - + "e.container.v1beta1.OperationProgress.Me" - + "tric\022;\n\006stages\030\004 \003(\0132+.google.container." - + "v1beta1.OperationProgress\032i\n\006Metric\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002 \001(\003H\000\022\026\n\014d" - + "ouble_value\030\003 \001(\001H\000\022\026\n\014string_value\030\004 \001(" - + "\tH\000B\007\n\005value\"\217\001\n\024CreateClusterRequest\022\031\n" - + "\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005" - + "\030\001\340A\002\0227\n\007cluster\030\003 \001(\0132!.google.containe" - + "r.v1beta1.ClusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"l" - + "\n\021GetClusterRequest\022\031\n\nproject_id\030\001 \001(\tB" - + "\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_i" - + "d\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\005 \001(\t\"\255\001\n\024UpdateC" - + "lusterRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002" + + "lStorageConfig\0229\n\013gcfs_config\030\031 \001(\0132$.go" + + "ogle.container.v1beta1.GcfsConfig\022T\n\031adv" + + "anced_machine_features\030\032 \001(\01321.google.co" + + "ntainer.v1beta1.AdvancedMachineFeatures\022" + + "3\n\005gvnic\030\035 \001(\0132$.google.container.v1beta" + + "1.VirtualNIC\022\014\n\004spot\030 \001(\010\032/\n\rMetadataEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"M\n\027AdvancedMachineFeatures\022\035\n\020threads" + + "_per_core\030\001 \001(\003H\000\210\001\001B\023\n\021_threads_per_cor" + + "e\"b\n\021NodeNetworkConfig\022\035\n\020create_pod_ran" + + "ge\030\004 \001(\010B\003\340A\004\022\021\n\tpod_range\030\005 \001(\t\022\033\n\023pod_" + + "ipv4_cidr_block\030\006 \001(\t\"Y\n\026ShieldedInstanc" + + "eConfig\022\032\n\022enable_secure_boot\030\001 \001(\010\022#\n\033e" + + "nable_integrity_monitoring\030\002 \001(\010\"\212\001\n\rSan" + + "dboxConfig\022\030\n\014sandbox_type\030\001 \001(\tB\002\030\001\022:\n\004" + + "type\030\002 \001(\0162,.google.container.v1beta1.Sa" + + "ndboxConfig.Type\"#\n\004Type\022\017\n\013UNSPECIFIED\020" + + "\000\022\n\n\006GVISOR\020\001\"1\n\026EphemeralStorageConfig\022" + + "\027\n\017local_ssd_count\030\001 \001(\005\"\035\n\nGcfsConfig\022\017" + + "\n\007enabled\030\001 \001(\010\"\344\001\n\023ReservationAffinity\022" + + "T\n\030consume_reservation_type\030\001 \001(\01622.goog" + + "le.container.v1beta1.ReservationAffinity" + + ".Type\022\013\n\003key\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"Z\n\004Ty" + + "pe\022\017\n\013UNSPECIFIED\020\000\022\022\n\016NO_RESERVATION\020\001\022" + + "\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_RESERVA" + + "TION\020\003\"\276\001\n\tNodeTaint\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t\022:\n\006effect\030\003 \001(\0162*.google.contai" + + "ner.v1beta1.NodeTaint.Effect\"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\"" + + "A\n\nNodeTaints\0223\n\006taints\030\001 \003(\0132#.google.c" + + "ontainer.v1beta1.NodeTaint\"}\n\nNodeLabels" + + "\022@\n\006labels\030\001 \003(\01320.google.container.v1be" + + "ta1.NodeLabels.LabelsEntry\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\033\n\013Net" + + "workTags\022\014\n\004tags\030\001 \003(\t\"\336\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\022T\n\031client_certificate_config\030\003 \001(\01321.g" + + "oogle.container.v1beta1.ClientCertificat" + + "eConfig\022\036\n\026cluster_ca_certificate\030d \001(\t\022" + + "\032\n\022client_certificate\030e \001(\t\022\022\n\nclient_ke" + + "y\030f \001(\t\";\n\027ClientCertificateConfig\022 \n\030is" + + "sue_client_certificate\030\001 \001(\010\"\305\007\n\014AddonsC" + + "onfig\022H\n\023http_load_balancing\030\001 \001(\0132+.goo" + + "gle.container.v1beta1.HttpLoadBalancing\022" + + "V\n\032horizontal_pod_autoscaling\030\002 \001(\01322.go" + + "ogle.container.v1beta1.HorizontalPodAuto" + + "scaling\022O\n\024kubernetes_dashboard\030\003 \001(\0132-." + + "google.container.v1beta1.KubernetesDashb" + + "oardB\002\030\001\022L\n\025network_policy_config\030\004 \001(\0132" + + "-.google.container.v1beta1.NetworkPolicy" + + "Config\022?\n\014istio_config\030\005 \001(\0132%.google.co" + + "ntainer.v1beta1.IstioConfigB\002\030\001\022B\n\020cloud" + + "_run_config\030\007 \001(\0132(.google.container.v1b" + + "eta1.CloudRunConfig\022B\n\020dns_cache_config\030" + + "\010 \001(\0132(.google.container.v1beta1.DnsCach" + + "eConfig\022P\n\027config_connector_config\030\n \001(\013" + + "2/.google.container.v1beta1.ConfigConnec" + + "torConfig\022i\n%gce_persistent_disk_csi_dri" + + "ver_config\030\013 \001(\0132:.google.container.v1be" + + "ta1.GcePersistentDiskCsiDriverConfig\022=\n\013" + + "kalm_config\030\014 \001(\0132$.google.container.v1b" + + "eta1.KalmConfigB\002\030\001\022^\n\037gcp_filestore_csi" + + "_driver_config\030\016 \001(\01325.google.container." + + "v1beta1.GcpFilestoreCsiDriverConfig\022O\n\027g" + + "ke_backup_agent_config\030\020 \001(\0132..google.co" + + "ntainer.v1beta1.GkeBackupAgentConfig\"%\n\021" + + "HttpLoadBalancing\022\020\n\010disabled\030\001 \001(\010\",\n\030H" + + "orizontalPodAutoscaling\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\007enabled\030\001 \001(\010\"!" + + "\n\nKalmConfig\022\023\n\007enabled\030\001 \001(\010B\002\030\001\"\'\n\024Gke" + + "BackupAgentConfig\022\017\n\007enabled\030\001 \001(\010\"(\n\025Co" + + "nfigConnectorConfig\022\017\n\007enabled\030\001 \001(\010\"3\n " + + "GcePersistentDiskCsiDriverConfig\022\017\n\007enab" + + "led\030\001 \001(\010\".\n\033GcpFilestoreCsiDriverConfig" + + "\022\017\n\007enabled\030\001 \001(\010\"9\n&PrivateClusterMaste" + + "rGlobalAccessConfig\022\017\n\007enabled\030\001 \001(\010\"\245\002\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\022\024\n\014peering_name\030\007 \001(\t\022e\n\033master_" + + "global_access_config\030\010 \001(\0132@.google.cont" + + "ainer.v1beta1.PrivateClusterMasterGlobal" + + "AccessConfig\"\237\001\n\013IstioConfig\022\024\n\010disabled" + + "\030\001 \001(\010B\002\030\001\022E\n\004auth\030\002 \001(\01623.google.contai" + + "ner.v1beta1.IstioConfig.IstioAuthModeB\002\030" + + "\001\"3\n\rIstioAuthMode\022\r\n\tAUTH_NONE\020\000\022\023\n\017AUT" + + "H_MUTUAL_TLS\020\001\"\363\001\n\016CloudRunConfig\022\020\n\010dis" + + "abled\030\001 \001(\010\022U\n\022load_balancer_type\030\003 \001(\0162" + + "9.google.container.v1beta1.CloudRunConfi" + + "g.LoadBalancerType\"x\n\020LoadBalancerType\022\"" + + "\n\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\037\n\033LO" + + "AD_BALANCER_TYPE_EXTERNAL\020\001\022\037\n\033LOAD_BALA" + + "NCER_TYPE_INTERNAL\020\002\"\301\001\n\036MasterAuthorize" + + "dNetworksConfig\022\017\n\007enabled\030\001 \001(\010\022W\n\013cidr" + + "_blocks\030\002 \003(\0132B.google.container.v1beta1" + + ".MasterAuthorizedNetworksConfig.CidrBloc" + + "k\0325\n\tCidrBlock\022\024\n\014display_name\030\001 \001(\t\022\022\n\n" + + "cidr_block\030\002 \001(\t\"\035\n\nLegacyAbac\022\017\n\007enable" + + "d\030\001 \001(\010\"\226\001\n\rNetworkPolicy\022B\n\010provider\030\001 " + + "\001(\01620.google.container.v1beta1.NetworkPo" + + "licy.Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Provid" + + "er\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CALICO\020\001" + + "\"\267\003\n\022IPAllocationPolicy\022\026\n\016use_ip_aliase" + + "s\030\001 \001(\010\022\031\n\021create_subnetwork\030\002 \001(\010\022\027\n\017su" + + "bnetwork_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\034cluste" + + "r_secondary_range_name\030\007 \001(\t\022%\n\035services" + + "_secondary_range_name\030\010 \001(\t\022\037\n\027cluster_i" + + "pv4_cidr_block\030\t \001(\t\022\034\n\024node_ipv4_cidr_b" + + "lock\030\n \001(\t\022 \n\030services_ipv4_cidr_block\030\013" + + " \001(\t\022\033\n\023allow_route_overlap\030\014 \001(\010\022\033\n\023tpu" + + "_ipv4_cidr_block\030\r \001(\t\022\022\n\nuse_routes\030\017 \001" + + "(\010\"&\n\023BinaryAuthorization\022\017\n\007enabled\030\001 \001" + + "(\010\"*\n\027PodSecurityPolicyConfig\022\017\n\007enabled" + + "\030\001 \001(\010\"D\n\031AuthenticatorGroupsConfig\022\017\n\007e" + + "nabled\030\001 \001(\010\022\026\n\016security_group\030\002 \001(\t\"\226\001\n" + + "\020ClusterTelemetry\022=\n\004type\030\001 \001(\0162/.google" + + ".container.v1beta1.ClusterTelemetry.Type" + + "\"C\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022" + + "\013\n\007ENABLED\020\002\022\017\n\013SYSTEM_ONLY\020\003\"\254\034\n\007Cluste" + + "r\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\036\n\022" + + "initial_node_count\030\003 \001(\005B\002\030\001\022=\n\013node_con" + + "fig\030\004 \001(\0132$.google.container.v1beta1.Nod" + + "eConfigB\002\030\001\0229\n\013master_auth\030\005 \001(\0132$.googl" + + "e.container.v1beta1.MasterAuth\022\027\n\017loggin" + + "g_service\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_cid" + + "r\030\t \001(\t\022=\n\raddons_config\030\n \001(\0132&.google." + + "container.v1beta1.AddonsConfig\022\022\n\nsubnet" + + "work\030\013 \001(\t\0226\n\nnode_pools\030\014 \003(\0132\".google." + + "container.v1beta1.NodePool\022\021\n\tlocations\030" + + "\r \003(\t\022\037\n\027enable_kubernetes_alpha\030\016 \001(\010\022N" + + "\n\017resource_labels\030\017 \003(\01325.google.contain" + + "er.v1beta1.Cluster.ResourceLabelsEntry\022\031" + + "\n\021label_fingerprint\030\020 \001(\t\0229\n\013legacy_abac" + + "\030\022 \001(\0132$.google.container.v1beta1.Legacy" + + "Abac\022?\n\016network_policy\030\023 \001(\0132\'.google.co" + + "ntainer.v1beta1.NetworkPolicy\022J\n\024ip_allo" + + "cation_policy\030\024 \001(\0132,.google.container.v" + + "1beta1.IPAllocationPolicy\022c\n!master_auth" + + "orized_networks_config\030\026 \001(\01328.google.co" + + "ntainer.v1beta1.MasterAuthorizedNetworks" + + "Config\022G\n\022maintenance_policy\030\027 \001(\0132+.goo" + + "gle.container.v1beta1.MaintenancePolicy\022" + + "K\n\024binary_authorization\030\030 \001(\0132-.google.c" + + "ontainer.v1beta1.BinaryAuthorization\022U\n\032" + + "pod_security_policy_config\030\031 \001(\01321.googl" + + "e.container.v1beta1.PodSecurityPolicyCon" + + "fig\022A\n\013autoscaling\030\032 \001(\0132,.google.contai" + + "ner.v1beta1.ClusterAutoscaling\022?\n\016networ" + + "k_config\030\033 \001(\0132\'.google.container.v1beta" + + "1.NetworkConfig\022\033\n\017private_cluster\030\034 \001(\010" + + "B\002\030\001\022\"\n\026master_ipv4_cidr_block\030\035 \001(\tB\002\030\001" + + "\022P\n\033default_max_pods_constraint\030\036 \001(\0132+." + + "google.container.v1beta1.MaxPodsConstrai" + + "nt\022Y\n\034resource_usage_export_config\030! \001(\013" + + "23.google.container.v1beta1.ResourceUsag" + + "eExportConfig\022X\n\033authenticator_groups_co" + + "nfig\030\" \001(\01323.google.container.v1beta1.Au" + + "thenticatorGroupsConfig\022N\n\026private_clust" + + "er_config\030% \001(\0132..google.container.v1bet" + + "a1.PrivateClusterConfig\022R\n\030vertical_pod_" + + "autoscaling\030\' \001(\01320.google.container.v1b" + + "eta1.VerticalPodAutoscaling\022?\n\016shielded_" + + "nodes\030( \001(\0132\'.google.container.v1beta1.S" + + "hieldedNodes\022A\n\017release_channel\030) \001(\0132(." + + "google.container.v1beta1.ReleaseChannel\022" + + "R\n\030workload_identity_config\030+ \001(\01320.goog" + + "le.container.v1beta1.WorkloadIdentityCon" + + "fig\022M\n\025workload_certificates\0304 \001(\0132..goo" + + "gle.container.v1beta1.WorkloadCertificat" + + "es\022E\n\021mesh_certificates\030C \001(\0132*.google.c" + + "ontainer.v1beta1.MeshCertificates\022E\n\021clu" + + "ster_telemetry\030. \001(\0132*.google.container." + + "v1beta1.ClusterTelemetry\0227\n\ntpu_config\030/" + + " \001(\0132#.google.container.v1beta1.TpuConfi" + + "g\022I\n\023notification_config\0301 \001(\0132,.google." + + "container.v1beta1.NotificationConfig\022G\n\022" + + "confidential_nodes\0302 \001(\0132+.google.contai" + + "ner.v1beta1.ConfidentialNodes\022P\n\027identit" + + "y_service_config\0306 \001(\0132/.google.containe" + + "r.v1beta1.IdentityServiceConfig\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\030h \001(\t\022 \n\024curre" + + "nt_node_version\030i \001(\tB\002\030\001\022\023\n\013create_time" + + "\030j \001(\t\0228\n\006status\030k \001(\0162(.google.containe" + + "r.v1beta1.Cluster.Status\022\032\n\016status_messa" + + "ge\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\023instanc" + + "e_group_urls\030o \003(\tB\002\030\001\022\036\n\022current_node_c" + + "ount\030p \001(\005B\002\030\001\022\023\n\013expire_time\030q \001(\t\022\020\n\010l" + + "ocation\030r \001(\t\022\022\n\nenable_tpu\030s \001(\010\022\033\n\023tpu" + + "_ipv4_cidr_block\030t \001(\t\022I\n\023database_encry" + + "ption\030& \001(\0132,.google.container.v1beta1.D" + + "atabaseEncryption\022=\n\nconditions\030v \003(\0132)." + + "google.container.v1beta1.StatusCondition" + + "\0220\n\006master\030| \001(\0132 .google.container.v1be" + + "ta1.Master\0227\n\tautopilot\030\200\001 \001(\0132#.google." + + "container.v1beta1.Autopilot\022\020\n\002id\030\201\001 \001(\t" + + "B\003\340A\003\022L\n\022node_pool_defaults\030\203\001 \001(\0132*.goo" + + "gle.container.v1beta1.NodePoolDefaultsH\000" + + "\210\001\001\022@\n\016logging_config\030\204\001 \001(\0132\'.google.co" + + "ntainer.v1beta1.LoggingConfig\022F\n\021monitor" + + "ing_config\030\205\001 \001(\0132*.google.container.v1b" + + "eta1.MonitoringConfig\0325\n\023ResourceLabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006" + + "Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVIS" + + "IONING\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\006B\025\n" + + "\023_node_pool_defaults\"^\n\020NodePoolDefaults" + + "\022J\n\024node_config_defaults\030\001 \001(\0132,.google." + + "container.v1beta1.NodeConfigDefaults\"O\n\022" + + "NodeConfigDefaults\0229\n\013gcfs_config\030\001 \001(\0132" + + "$.google.container.v1beta1.GcfsConfig\"\211\026" + + "\n\rClusterUpdate\022\034\n\024desired_node_version\030" + + "\004 \001(\t\022\"\n\032desired_monitoring_service\030\005 \001(" + + "\t\022E\n\025desired_addons_config\030\006 \001(\0132&.googl" + + "e.container.v1beta1.AddonsConfig\022\034\n\024desi" + + "red_node_pool_id\030\007 \001(\t\022\032\n\022desired_image_" + + "type\030\010 \001(\t\022T\n\035desired_node_pool_autoscal" + + "ing\030\t \001(\0132-.google.container.v1beta1.Nod" + + "ePoolAutoscaling\022\031\n\021desired_locations\030\n " + + "\003(\t\022k\n)desired_master_authorized_network" + + "s_config\030\014 \001(\01328.google.container.v1beta" + + "1.MasterAuthorizedNetworksConfig\022]\n\"desi" + + "red_pod_security_policy_config\030\016 \001(\01321.g" + + "oogle.container.v1beta1.PodSecurityPolic" + + "yConfig\022Q\n\033desired_cluster_autoscaling\030\017" + + " \001(\0132,.google.container.v1beta1.ClusterA" + + "utoscaling\022S\n\034desired_binary_authorizati" + + "on\030\020 \001(\0132-.google.container.v1beta1.Bina" + + "ryAuthorization\022\037\n\027desired_logging_servi" + + "ce\030\023 \001(\t\022a\n$desired_resource_usage_expor" + + "t_config\030\025 \001(\01323.google.container.v1beta" + + "1.ResourceUsageExportConfig\022Z\n desired_v" + + "ertical_pod_autoscaling\030\026 \001(\01320.google.c" + + "ontainer.v1beta1.VerticalPodAutoscaling\022" + + "V\n\036desired_private_cluster_config\030\031 \001(\0132" + + "..google.container.v1beta1.PrivateCluste" + + "rConfig\022a\n$desired_intra_node_visibility" + + "_config\030\032 \001(\01323.google.container.v1beta1" + + ".IntraNodeVisibilityConfig\022P\n\033desired_de" + + "fault_snat_status\030\034 \001(\0132+.google.contain" + + "er.v1beta1.DefaultSnatStatus\022M\n\031desired_" + + "cluster_telemetry\030\036 \001(\0132*.google.contain" + + "er.v1beta1.ClusterTelemetry\022I\n\027desired_r" + + "elease_channel\030\037 \001(\0132(.google.container." + + "v1beta1.ReleaseChannel\022?\n\022desired_tpu_co" + + "nfig\030& \001(\0132#.google.container.v1beta1.Tp" + + "uConfig\022V\n\037desired_l4ilb_subsetting_conf" + + "ig\030\' \001(\0132-.google.container.v1beta1.ILBS" + + "ubsettingConfig\022M\n\031desired_datapath_prov" + + "ider\0302 \001(\0162*.google.container.v1beta1.Da" + + "tapathProvider\022]\n\"desired_private_ipv6_g" + + "oogle_access\0303 \001(\01621.google.container.v1" + + "beta1.PrivateIPv6GoogleAccess\022Q\n\033desired" + + "_notification_config\0307 \001(\0132,.google.cont" + + "ainer.v1beta1.NotificationConfig\022\036\n\026desi" + + "red_master_version\030d \001(\t\022A\n\023desired_gcfs" + + "_config\030m \001(\0132$.google.container.v1beta1" + + ".GcfsConfig\022Q\n\033desired_database_encrypti" + + "on\030. \001(\0132,.google.container.v1beta1.Data" + + "baseEncryption\022Z\n desired_workload_ident" + + "ity_config\030/ \001(\01320.google.container.v1be" + + "ta1.WorkloadIdentityConfig\022U\n\035desired_wo" + + "rkload_certificates\030= \001(\0132..google.conta" + + "iner.v1beta1.WorkloadCertificates\022M\n\031des" + + "ired_mesh_certificates\030C \001(\0132*.google.co" + + "ntainer.v1beta1.MeshCertificates\022G\n\026desi" + + "red_shielded_nodes\0300 \001(\0132\'.google.contai" + + "ner.v1beta1.ShieldedNodes\0228\n\016desired_mas" + + "ter\0304 \001(\0132 .google.container.v1beta1.Mas" + + "ter\022?\n\022desired_dns_config\0305 \001(\0132#.google" + + ".container.v1beta1.DNSConfig\022_\n#desired_" + + "service_external_ips_config\030< \001(\01322.goog" + + "le.container.v1beta1.ServiceExternalIPsC" + + "onfig\022`\n#desired_authenticator_groups_co" + + "nfig\030? \001(\01323.google.container.v1beta1.Au" + + "thenticatorGroupsConfig\022G\n\026desired_loggi" + + "ng_config\030@ \001(\0132\'.google.container.v1bet" + + "a1.LoggingConfig\022M\n\031desired_monitoring_c" + + "onfig\030A \001(\0132*.google.container.v1beta1.M" + + "onitoringConfig\022X\n\037desired_identity_serv" + + "ice_config\030B \001(\0132/.google.container.v1be" + + "ta1.IdentityServiceConfig\"\212\010\n\tOperation\022" + + "\014\n\004name\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001\022@\n\016opera" + + "tion_type\030\003 \001(\0162(.google.container.v1bet" + + "a1.Operation.Type\022:\n\006status\030\004 \001(\0162*.goog" + + "le.container.v1beta1.Operation.Status\022\016\n" + + "\006detail\030\010 \001(\t\022\035\n\016status_message\030\005 \001(\tB\005\030" + + "\001\340A\003\022\021\n\tself_link\030\006 \001(\t\022\023\n\013target_link\030\007" + + " \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\nstart_time\030\n \001" + + "(\t\022\020\n\010end_time\030\013 \001(\t\022B\n\010progress\030\014 \001(\0132+" + + ".google.container.v1beta1.OperationProgr" + + "essB\003\340A\003\022I\n\022cluster_conditions\030\r \003(\0132).g" + + "oogle.container.v1beta1.StatusConditionB" + + "\002\030\001\022J\n\023nodepool_conditions\030\016 \003(\0132).googl" + + "e.container.v1beta1.StatusConditionB\002\030\001\022" + + "!\n\005error\030\017 \001(\0132\022.google.rpc.Status\"R\n\006St" + + "atus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PENDING\020" + + "\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING\020\004\"\375" + + "\002\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CREATE_" + + "CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPGRADE" + + "_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPAIR_C" + + "LUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREATE_N" + + "ODE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030SET_" + + "NODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REPAIR_NO" + + "DES\020\n\022\026\n\022AUTO_UPGRADE_NODES\020\013\022\016\n\nSET_LAB" + + "ELS\020\014\022\023\n\017SET_MASTER_AUTH\020\r\022\026\n\022SET_NODE_P" + + "OOL_SIZE\020\016\022\026\n\022SET_NETWORK_POLICY\020\017\022\032\n\026SE" + + "T_MAINTENANCE_POLICY\020\020\"\312\002\n\021OperationProg" + + "ress\022\014\n\004name\030\001 \001(\t\022:\n\006status\030\002 \001(\0162*.goo" + + "gle.container.v1beta1.Operation.Status\022C" + + "\n\007metrics\030\003 \003(\01322.google.container.v1bet" + + "a1.OperationProgress.Metric\022;\n\006stages\030\004 " + + "\003(\0132+.google.container.v1beta1.Operation" + + "Progress\032i\n\006Metric\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n" + + "\tint_value\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001" + + "H\000\022\026\n\014string_value\030\004 \001(\tH\000B\007\n\005value\"\217\001\n\024" + + "CreateClusterRequest\022\031\n\nproject_id\030\001 \001(\t" + + "B\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\0227\n\007cluster\030" + + "\003 \001(\0132!.google.container.v1beta1.Cluster" + + "B\003\340A\002\022\016\n\006parent\030\005 \001(\t\"l\n\021GetClusterReque" + + "st\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 " + + "\001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n" + + "\004name\030\005 \001(\t\"\255\001\n\024UpdateClusterRequest\022\031\n\n" + + "project_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030" + + "\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022<\n\006updat" + + "e\030\004 \001(\0132\'.google.container.v1beta1.Clust" + + "erUpdateB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\222\006\n\025UpdateNo" + + "dePoolRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002" + "\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(" - + "\tB\005\030\001\340A\002\022<\n\006update\030\004 \001(\0132\'.google.contai" - + "ner.v1beta1.ClusterUpdateB\003\340A\002\022\014\n\004name\030\005" - + " \001(\t\"\327\005\n\025UpdateNodePoolRequest\022\031\n\nprojec" + + "\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\031\n" + + "\014node_version\030\005 \001(\tB\003\340A\002\022\027\n\nimage_type\030\006" + + " \001(\tB\003\340A\002\022\021\n\tlocations\030\r \003(\t\022R\n\030workload" + + "_metadata_config\030\016 \001(\01320.google.containe" + + "r.v1beta1.WorkloadMetadataConfig\022\014\n\004name" + + "\030\010 \001(\t\022L\n\020upgrade_settings\030\017 \001(\01322.googl" + + "e.container.v1beta1.NodePool.UpgradeSett" + + "ings\0223\n\004tags\030\020 \001(\0132%.google.container.v1" + + "beta1.NetworkTags\0224\n\006taints\030\021 \001(\0132$.goog" + + "le.container.v1beta1.NodeTaints\0224\n\006label" + + "s\030\022 \001(\0132$.google.container.v1beta1.NodeL" + + "abels\022D\n\021linux_node_config\030\023 \001(\0132).googl" + + "e.container.v1beta1.LinuxNodeConfig\022C\n\016k" + + "ubelet_config\030\024 \001(\0132+.google.container.v" + + "1beta1.NodeKubeletConfig\0229\n\013gcfs_config\030" + + "\026 \001(\0132$.google.container.v1beta1.GcfsCon" + + "fig\0223\n\005gvnic\030\035 \001(\0132$.google.container.v1" + + "beta1.VirtualNIC\"\336\001\n\035SetNodePoolAutoscal" + + "ingRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n", + "\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005" + + "\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022G\n\013au" + + "toscaling\030\005 \001(\0132-.google.container.v1bet" + + "a1.NodePoolAutoscalingB\003\340A\002\022\014\n\004name\030\006 \001(" + + "\t\"\221\001\n\030SetLoggingServiceRequest\022\031\n\nprojec" + "t_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031" - + "\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_i" - + "d\030\004 \001(\tB\005\030\001\340A\002\022\031\n\014node_version\030\005 \001(\tB\003\340A" - + "\002\022\027\n\nimage_type\030\006 \001(\tB\003\340A\002\022\021\n\tlocations\030" - + "\r \003(\t\022R\n\030workload_metadata_config\030\016 \001(\0132" - + "0.google.container.v1beta1.WorkloadMetad" - + "ataConfig\022\014\n\004name\030\010 \001(\t\022L\n\020upgrade_setti" - + "ngs\030\017 \001(\01322.google.container.v1beta1.Nod" - + "ePool.UpgradeSettings\0223\n\004tags\030\020 \001(\0132%.go" - + "ogle.container.v1beta1.NetworkTags\0224\n\006ta" - + "ints\030\021 \001(\0132$.google.container.v1beta1.No" - + "deTaints\0224\n\006labels\030\022 \001(\0132$.google.contai" - + "ner.v1beta1.NodeLabels\022D\n\021linux_node_con" - + "fig\030\023 \001(\0132).google.container.v1beta1.Lin" - + "uxNodeConfig\022C\n\016kubelet_config\030\024 \001(\0132+.g" - + "oogle.container.v1beta1.NodeKubeletConfi" - + "g\0223\n\005gvnic\030\035 \001(\0132$.google.container.v1be" - + "ta1.VirtualNIC\"\336\001\n\035SetNodePoolAutoscalin" - + "gRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004z" - + "one\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001" - + "\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022G\n\013auto" - + "scaling\030\005 \001(\0132-.google.container.v1beta1" - + ".NodePoolAutoscalingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"" - + "\221\001\n\030SetLoggingServiceRequest\022\031\n\nproject_" - + "id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\n" - + "cluster_id\030\003 \001(\tB\005\030\001\340A\002\022\034\n\017logging_servi" - + "ce\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\227\001\n\033SetMonit" - + "oringServiceRequest\022\031\n\nproject_id\030\001 \001(\tB" - + "\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_i" - + "d\030\003 \001(\tB\005\030\001\340A\002\022\037\n\022monitoring_service\030\004 \001" - + "(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\265\001\n\026SetAddonsConfi" - + "gRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004z" + + "\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\034\n\017logging_ser" + + "vice\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\227\001\n\033SetMon" + + "itoringServiceRequest\022\031\n\nproject_id\030\001 \001(" + + "\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster" + + "_id\030\003 \001(\tB\005\030\001\340A\002\022\037\n\022monitoring_service\030\004" + + " \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\265\001\n\026SetAddonsCon" + + "figRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n" + + "\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005" + + "\030\001\340A\002\022B\n\raddons_config\030\004 \001(\0132&.google.co" + + "ntainer.v1beta1.AddonsConfigB\003\340A\002\022\014\n\004nam" + + "e\030\006 \001(\t\"\206\001\n\023SetLocationsRequest\022\031\n\nproje" + + "ct_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022" + + "\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\026\n\tlocations\030" + + "\004 \003(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\213\001\n\023UpdateMaste" + + "rRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004z" + "one\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001" - + "\340A\002\022B\n\raddons_config\030\004 \001(\0132&.google.cont" - + "ainer.v1beta1.AddonsConfigB\003\340A\002\022\014\n\004name\030" - + "\006 \001(\t\"\206\001\n\023SetLocationsRequest\022\031\n\nproject" - + "_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n" - + "\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\026\n\tlocations\030\004 " - + "\003(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\213\001\n\023UpdateMasterR" - + "equest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zon" - + "e\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A", - "\002\022\033\n\016master_version\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007" - + " \001(\t\"\310\002\n\024SetMasterAuthRequest\022\031\n\nproject" - + "_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n" - + "\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022J\n\006action\030\004 \001(\016" - + "25.google.container.v1beta1.SetMasterAut" - + "hRequest.ActionB\003\340A\002\0229\n\006update\030\005 \001(\0132$.g" - + "oogle.container.v1beta1.MasterAuthB\003\340A\002\022" - + "\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000\022\020\n\014" - + "SET_PASSWORD\020\001\022\025\n\021GENERATE_PASSWORD\020\002\022\020\n" - + "\014SET_USERNAME\020\003\"o\n\024DeleteClusterRequest\022" - + "\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\t" - + "B\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004na" - + "me\030\004 \001(\t\"U\n\023ListClustersRequest\022\031\n\nproje" + + "\340A\002\022\033\n\016master_version\030\004 \001(\tB\003\340A\002\022\014\n\004name" + + "\030\007 \001(\t\"\310\002\n\024SetMasterAuthRequest\022\031\n\nproje" + "ct_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022" - + "\016\n\006parent\030\004 \001(\t\"b\n\024ListClustersResponse\022" - + "3\n\010clusters\030\001 \003(\0132!.google.container.v1b" - + "eta1.Cluster\022\025\n\rmissing_zones\030\002 \003(\t\"p\n\023G" - + "etOperationRequest\022\031\n\nproject_id\030\001 \001(\tB\005" - + "\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\033\n\014operation_" - + "id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\005 \001(\t\"W\n\025ListOpe" - + "rationsRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A" - + "\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\016\n\006parent\030\004 \001(\t\"s" - + "\n\026CancelOperationRequest\022\031\n\nproject_id\030\001" - + " \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\033\n\014oper" - + "ation_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"h\n\026L" - + "istOperationsResponse\0227\n\noperations\030\001 \003(" - + "\0132#.google.container.v1beta1.Operation\022\025" - + "\n\rmissing_zones\030\002 \003(\t\"V\n\026GetServerConfig" - + "Request\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zo" - + "ne\030\002 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"\351\005\n\014Server" - + "Config\022\037\n\027default_cluster_version\030\001 \001(\t\022" - + "\033\n\023valid_node_versions\030\003 \003(\t\022\032\n\022default_" - + "image_type\030\004 \001(\t\022\031\n\021valid_image_types\030\005 " - + "\003(\t\022\035\n\025valid_master_versions\030\006 \003(\t\022M\n\010ch" - + "annels\030\t \003(\0132;.google.container.v1beta1." - + "ServerConfig.ReleaseChannelConfig\022\\\n\024win" - + "dows_version_maps\030\n \003(\0132>.google.contain" - + "er.v1beta1.ServerConfig.WindowsVersionMa" - + "psEntry\032\261\002\n\024ReleaseChannelConfig\022A\n\007chan" - + "nel\030\001 \001(\01620.google.container.v1beta1.Rel" - + "easeChannel.Channel\022\027\n\017default_version\030\002" - + " \001(\t\022l\n\022available_versions\030\003 \003(\0132L.googl" - + "e.container.v1beta1.ServerConfig.Release" - + "ChannelConfig.AvailableVersionB\002\030\001\022\026\n\016va" - + "lid_versions\030\004 \003(\t\0327\n\020AvailableVersion\022\017" - + "\n\007version\030\001 \001(\t\022\016\n\006reason\030\002 \001(\t:\002\030\001\032d\n\027W" - + "indowsVersionMapsEntry\022\013\n\003key\030\001 \001(\t\0228\n\005v" - + "alue\030\002 \001(\0132).google.container.v1beta1.Wi" - + "ndowsVersions:\0028\001\"\314\001\n\017WindowsVersions\022R\n" - + "\020windows_versions\030\001 \003(\01328.google.contain" - + "er.v1beta1.WindowsVersions.WindowsVersio" - + "n\032e\n\016WindowsVersion\022\022\n\nimage_type\030\001 \001(\t\022" - + "\022\n\nos_version\030\002 \001(\t\022+\n\020support_end_date\030" - + "\003 \001(\0132\021.google.type.Date\"\256\001\n\025CreateNodeP" - + "oolRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n" - + "\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005" - + "\030\001\340A\002\022:\n\tnode_pool\030\004 \001(\0132\".google.contai" - + "ner.v1beta1.NodePoolB\003\340A\002\022\016\n\006parent\030\006 \001(" - + "\t\"\215\001\n\025DeleteNodePoolRequest\022\031\n\nproject_i" - + "d\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nc" - + "luster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004" - + " \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(\t\"q\n\024ListNodePoo" - + "lsRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004" - + "zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030" - + "\001\340A\002\022\016\n\006parent\030\005 \001(\t\"\212\001\n\022GetNodePoolRequ" - + "est\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002" - + " \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033" - + "\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(" - + "\t\"\222\007\n\010NodePool\022\014\n\004name\030\001 \001(\t\0224\n\006config\030\002" - + " \001(\0132$.google.container.v1beta1.NodeConf" - + "ig\022\032\n\022initial_node_count\030\003 \001(\005\022\021\n\tlocati" - + "ons\030\r \003(\t\022C\n\016network_config\030\016 \001(\0132+.goog" - + "le.container.v1beta1.NodeNetworkConfig\022\021" - + "\n\tself_link\030d \001(\t\022\017\n\007version\030e \001(\t\022\033\n\023in" - + "stance_group_urls\030f \003(\t\0229\n\006status\030g \001(\0162" - + ").google.container.v1beta1.NodePool.Stat" - + "us\022\032\n\016status_message\030h \001(\tB\002\030\001\022B\n\013autosc" - + "aling\030\004 \001(\0132-.google.container.v1beta1.N" - + "odePoolAutoscaling\022<\n\nmanagement\030\005 \001(\0132(" - + ".google.container.v1beta1.NodeManagement" - + "\022H\n\023max_pods_constraint\030\006 \001(\0132+.google.c" - + "ontainer.v1beta1.MaxPodsConstraint\022=\n\nco" - + "nditions\030i \003(\0132).google.container.v1beta" - + "1.StatusCondition\022\032\n\022pod_ipv4_cidr_size\030" - + "\007 \001(\005\022L\n\020upgrade_settings\030k \001(\01322.google" - + ".container.v1beta1.NodePool.UpgradeSetti" - + "ngs\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" - + "\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022" - + "\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH_ERROR\020\003\022\017\n\013" - + "RECONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ERROR\020\006\"\202" - + "\001\n\016NodeManagement\022\024\n\014auto_upgrade\030\001 \001(\010\022" - + "\023\n\013auto_repair\030\002 \001(\010\022E\n\017upgrade_options\030" - + "\n \001(\0132,.google.container.v1beta1.AutoUpg" - + "radeOptions\"J\n\022AutoUpgradeOptions\022\037\n\027aut" - + "o_upgrade_start_time\030\001 \001(\t\022\023\n\013descriptio" - + "n\030\002 \001(\t\"j\n\021MaintenancePolicy\022;\n\006window\030\001" - + " \001(\0132+.google.container.v1beta1.Maintena" - + "nceWindow\022\030\n\020resource_version\030\003 \001(\t\"\212\003\n\021" - + "MaintenanceWindow\022T\n\030daily_maintenance_w" - + "indow\030\002 \001(\01320.google.container.v1beta1.D" - + "ailyMaintenanceWindowH\000\022I\n\020recurring_win" - + "dow\030\003 \001(\0132-.google.container.v1beta1.Rec" - + "urringTimeWindowH\000\022f\n\026maintenance_exclus" - + "ions\030\004 \003(\0132F.google.container.v1beta1.Ma" - + "intenanceWindow.MaintenanceExclusionsEnt" - + "ry\032b\n\032MaintenanceExclusionsEntry\022\013\n\003key\030" - + "\001 \001(\t\0223\n\005value\030\002 \001(\0132$.google.container." - + "v1beta1.TimeWindow:\0028\001B\010\n\006policy\"j\n\nTime" - + "Window\022.\n\nstart_time\030\001 \001(\0132\032.google.prot" - + "obuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.googl" - + "e.protobuf.Timestamp\"_\n\023RecurringTimeWin" - + "dow\0224\n\006window\030\001 \001(\0132$.google.container.v" - + "1beta1.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\"\327\001\n\034SetNodePoolMan" - + "agementRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A" - + "\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001" - + "(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022A" - + "\n\nmanagement\030\005 \001(\0132(.google.container.v1" - + "beta1.NodeManagementB\003\340A\002\022\014\n\004name\030\007 \001(\t\"" - + "\247\001\n\026SetNodePoolSizeRequest\022\031\n\nproject_id" - + "\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncl" - + "uster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 " - + "\001(\tB\005\030\001\340A\002\022\027\n\nnode_count\030\005 \001(\005B\003\340A\002\022\014\n\004n" - + "ame\030\007 \001(\t\"\226\001\n\036RollbackNodePoolUpgradeReq" + + "\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022J\n\006action\030\004 \001" + + "(\01625.google.container.v1beta1.SetMasterA" + + "uthRequest.ActionB\003\340A\002\0229\n\006update\030\005 \001(\0132$" + + ".google.container.v1beta1.MasterAuthB\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\"o\n\024DeleteClusterReques" + + "t\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001" + + "(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004" + + "name\030\004 \001(\t\"U\n\023ListClustersRequest\022\031\n\npro" + + "ject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A" + + "\002\022\016\n\006parent\030\004 \001(\t\"b\n\024ListClustersRespons" + + "e\0223\n\010clusters\030\001 \003(\0132!.google.container.v" + + "1beta1.Cluster\022\025\n\rmissing_zones\030\002 \003(\t\"p\n" + + "\023GetOperationRequest\022\031\n\nproject_id\030\001 \001(\t" + + "B\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\033\n\014operatio" + + "n_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\005 \001(\t\"W\n\025ListO" + + "perationsRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001" + + "\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\016\n\006parent\030\004 \001(\t" + + "\"s\n\026CancelOperationRequest\022\031\n\nproject_id" + + "\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\033\n\014op" + + "eration_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"h\n" + + "\026ListOperationsResponse\0227\n\noperations\030\001 " + + "\003(\0132#.google.container.v1beta1.Operation" + + "\022\025\n\rmissing_zones\030\002 \003(\t\"V\n\026GetServerConf" + + "igRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004" + + "zone\030\002 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"\351\005\n\014Serv" + + "erConfig\022\037\n\027default_cluster_version\030\001 \001(" + + "\t\022\033\n\023valid_node_versions\030\003 \003(\t\022\032\n\022defaul" + + "t_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\022M\n\010" + + "channels\030\t \003(\0132;.google.container.v1beta" + + "1.ServerConfig.ReleaseChannelConfig\022\\\n\024w" + + "indows_version_maps\030\n \003(\0132>.google.conta" + + "iner.v1beta1.ServerConfig.WindowsVersion" + + "MapsEntry\032\261\002\n\024ReleaseChannelConfig\022A\n\007ch" + + "annel\030\001 \001(\01620.google.container.v1beta1.R" + + "eleaseChannel.Channel\022\027\n\017default_version" + + "\030\002 \001(\t\022l\n\022available_versions\030\003 \003(\0132L.goo" + + "gle.container.v1beta1.ServerConfig.Relea" + + "seChannelConfig.AvailableVersionB\002\030\001\022\026\n\016" + + "valid_versions\030\004 \003(\t\0327\n\020AvailableVersion" + + "\022\017\n\007version\030\001 \001(\t\022\016\n\006reason\030\002 \001(\t:\002\030\001\032d\n" + + "\027WindowsVersionMapsEntry\022\013\n\003key\030\001 \001(\t\0228\n" + + "\005value\030\002 \001(\0132).google.container.v1beta1." + + "WindowsVersions:\0028\001\"\314\001\n\017WindowsVersions\022" + + "R\n\020windows_versions\030\001 \003(\01328.google.conta" + + "iner.v1beta1.WindowsVersions.WindowsVers" + + "ion\032e\n\016WindowsVersion\022\022\n\nimage_type\030\001 \001(" + + "\t\022\022\n\nos_version\030\002 \001(\t\022+\n\020support_end_dat" + + "e\030\003 \001(\0132\021.google.type.Date\"\256\001\n\025CreateNod" + + "ePoolRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022" + + "\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\t" + + "B\005\030\001\340A\002\022:\n\tnode_pool\030\004 \001(\0132\".google.cont" + + "ainer.v1beta1.NodePoolB\003\340A\002\022\016\n\006parent\030\006 " + + "\001(\t\"\215\001\n\025DeleteNodePoolRequest\022\031\n\nproject" + + "_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n" + + "\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id" + + "\030\004 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(\t\"q\n\024ListNodeP" + + "oolsRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023" + + "\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB" + + "\005\030\001\340A\002\022\016\n\006parent\030\005 \001(\t\"\212\001\n\022GetNodePoolRe" + + "quest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone" + + "\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002" + + "\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 " + + "\001(\t\"\346\010\n\010NodePool\022\014\n\004name\030\001 \001(\t\0224\n\006config" + + "\030\002 \001(\0132$.google.container.v1beta1.NodeCo" + + "nfig\022\032\n\022initial_node_count\030\003 \001(\005\022\021\n\tloca" + + "tions\030\r \003(\t\022C\n\016network_config\030\016 \001(\0132+.go" + + "ogle.container.v1beta1.NodeNetworkConfig" + + "\022\021\n\tself_link\030d \001(\t\022\017\n\007version\030e \001(\t\022\033\n\023" + + "instance_group_urls\030f \003(\t\0229\n\006status\030g \001(" + + "\0162).google.container.v1beta1.NodePool.St" + + "atus\022\032\n\016status_message\030h \001(\tB\002\030\001\022B\n\013auto" + + "scaling\030\004 \001(\0132-.google.container.v1beta1" + + ".NodePoolAutoscaling\022<\n\nmanagement\030\005 \001(\013" + + "2(.google.container.v1beta1.NodeManageme" + + "nt\022H\n\023max_pods_constraint\030\006 \001(\0132+.google" + + ".container.v1beta1.MaxPodsConstraint\022=\n\n" + + "conditions\030i \003(\0132).google.container.v1be" + + "ta1.StatusCondition\022\032\n\022pod_ipv4_cidr_siz" + + "e\030\007 \001(\005\022L\n\020upgrade_settings\030k \001(\01322.goog" + + "le.container.v1beta1.NodePool.UpgradeSet" + + "tings\022L\n\020placement_policy\030l \001(\01322.google" + + ".container.v1beta1.NodePool.PlacementPol" + + "icy\032=\n\017UpgradeSettings\022\021\n\tmax_surge\030\001 \001(" + + "\005\022\027\n\017max_unavailable\030\002 \001(\005\032\203\001\n\017Placement" + + "Policy\022E\n\004type\030\001 \001(\01627.google.container." + + "v1beta1.NodePool.PlacementPolicy.Type\")\n" + + "\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007COMPACT\020\001" + + "\"\201\001\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014P" + + "ROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WI" + + "TH_ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020" + + "\005\022\t\n\005ERROR\020\006\"\202\001\n\016NodeManagement\022\024\n\014auto_" + + "upgrade\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022E\n\017up" + + "grade_options\030\n \001(\0132,.google.container.v" + + "1beta1.AutoUpgradeOptions\"J\n\022AutoUpgrade" + + "Options\022\037\n\027auto_upgrade_start_time\030\001 \001(\t" + + "\022\023\n\013description\030\002 \001(\t\"j\n\021MaintenancePoli" + + "cy\022;\n\006window\030\001 \001(\0132+.google.container.v1" + + "beta1.MaintenanceWindow\022\030\n\020resource_vers" + + "ion\030\003 \001(\t\"\212\003\n\021MaintenanceWindow\022T\n\030daily" + + "_maintenance_window\030\002 \001(\01320.google.conta" + + "iner.v1beta1.DailyMaintenanceWindowH\000\022I\n" + + "\020recurring_window\030\003 \001(\0132-.google.contain" + + "er.v1beta1.RecurringTimeWindowH\000\022f\n\026main" + + "tenance_exclusions\030\004 \003(\0132F.google.contai" + + "ner.v1beta1.MaintenanceWindow.Maintenanc" + + "eExclusionsEntry\032b\n\032MaintenanceExclusion" + + "sEntry\022\013\n\003key\030\001 \001(\t\0223\n\005value\030\002 \001(\0132$.goo" + + "gle.container.v1beta1.TimeWindow:\0028\001B\010\n\006" + + "policy\"\325\001\n\nTimeWindow\022^\n\035maintenance_exc" + + "lusion_options\030\003 \001(\01325.google.container." + + "v1beta1.MaintenanceExclusionOptionsH\000\022.\n" + + "\nstart_time\030\001 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampB\t\n\007options\"\271\001\n\033MaintenanceEx" + + "clusionOptions\022J\n\005scope\030\001 \001(\0162;.google.c" + + "ontainer.v1beta1.MaintenanceExclusionOpt" + + "ions.Scope\"N\n\005Scope\022\017\n\013NO_UPGRADES\020\000\022\025\n\021" + + "NO_MINOR_UPGRADES\020\001\022\035\n\031NO_MINOR_OR_NODE_" + + "UPGRADES\020\002\"_\n\023RecurringTimeWindow\0224\n\006win" + + "dow\030\001 \001(\0132$.google.container.v1beta1.Tim" + + "eWindow\022\022\n\nrecurrence\030\002 \001(\t\">\n\026DailyMain" + + "tenanceWindow\022\022\n\nstart_time\030\002 \001(\t\022\020\n\010dur" + + "ation\030\003 \001(\t\"\327\001\n\034SetNodePoolManagementReq" + "uest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030" + "\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022" - + "\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001" - + "(\t\"O\n\025ListNodePoolsResponse\0226\n\nnode_pool" - + "s\030\001 \003(\0132\".google.container.v1beta1.NodeP" - + "ool\"\276\003\n\022ClusterAutoscaling\022$\n\034enable_nod" - + "e_autoprovisioning\030\001 \001(\010\022@\n\017resource_lim" - + "its\030\002 \003(\0132\'.google.container.v1beta1.Res" - + "ourceLimit\022\\\n\023autoscaling_profile\030\003 \001(\0162" - + "?.google.container.v1beta1.ClusterAutosc" - + "aling.AutoscalingProfile\022g\n#autoprovisio" - + "ning_node_pool_defaults\030\004 \001(\0132:.google.c" - + "ontainer.v1beta1.AutoprovisioningNodePoo" - + "lDefaults\022\"\n\032autoprovisioning_locations\030" - + "\005 \003(\t\"U\n\022AutoscalingProfile\022\027\n\023PROFILE_U" - + "NSPECIFIED\020\000\022\030\n\024OPTIMIZE_UTILIZATION\020\001\022\014" - + "\n\010BALANCED\020\002\"\243\003\n AutoprovisioningNodePoo" - + "lDefaults\022\024\n\014oauth_scopes\030\001 \003(\t\022\027\n\017servi" - + "ce_account\030\002 \001(\t\022L\n\020upgrade_settings\030\003 \001" - + "(\01322.google.container.v1beta1.NodePool.U" - + "pgradeSettings\022<\n\nmanagement\030\004 \001(\0132(.goo" - + "gle.container.v1beta1.NodeManagement\022\030\n\020" - + "min_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\022R\n\030shielded_inst" - + "ance_config\030\010 \001(\01320.google.container.v1b" - + "eta1.ShieldedInstanceConfig\022\031\n\021boot_disk" - + "_kms_key\030\t \001(\t\022\022\n\nimage_type\030\n \001(\t\"H\n\rRe" - + "sourceLimit\022\025\n\rresource_type\030\001 \001(\t\022\017\n\007mi" - + "nimum\030\002 \001(\003\022\017\n\007maximum\030\003 \001(\003\"o\n\023NodePool" - + "Autoscaling\022\017\n\007enabled\030\001 \001(\010\022\026\n\016min_node" - + "_count\030\002 \001(\005\022\026\n\016max_node_count\030\003 \001(\005\022\027\n\017" - + "autoprovisioned\030\004 \001(\010\"\240\002\n\020SetLabelsReque" - + "st\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 " - + "\001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\\\n" - + "\017resource_labels\030\004 \003(\0132>.google.containe" - + "r.v1beta1.SetLabelsRequest.ResourceLabel" - + "sEntryB\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\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\001\n\024Set" - + "LegacyAbacRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030" - + "\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030" - + "\003 \001(\tB\005\030\001\340A\002\022\024\n\007enabled\030\004 \001(\010B\003\340A\002\022\014\n\004na" - + "me\030\006 \001(\t\"\215\001\n\026StartIPRotationRequest\022\031\n\np" - + "roject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001" - + "\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006" - + " \001(\t\022\032\n\022rotate_credentials\030\007 \001(\010\"t\n\031Comp" - + "leteIPRotationRequest\022\031\n\nproject_id\030\001 \001(" - + "\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster" - + "_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\007 \001(\t\"d\n\021Accele" - + "ratorConfig\022\031\n\021accelerator_count\030\001 \001(\003\022\030" - + "\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_partitio" - + "n_size\030\003 \001(\t\"\313\002\n\026WorkloadMetadataConfig\022" - + "X\n\rnode_metadata\030\001 \001(\0162=.google.containe" - + "r.v1beta1.WorkloadMetadataConfig.NodeMet" - + "adataB\002\030\001\022C\n\004mode\030\002 \001(\01625.google.contain" - + "er.v1beta1.WorkloadMetadataConfig.Mode\"P" - + "\n\014NodeMetadata\022\017\n\013UNSPECIFIED\020\000\022\n\n\006SECUR" - + "E\020\001\022\n\n\006EXPOSE\020\002\022\027\n\023GKE_METADATA_SERVER\020\003" - + "\"@\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n\014GCE_ME" - + "TADATA\020\001\022\020\n\014GKE_METADATA\020\002\"\270\001\n\027SetNetwor" - + "kPolicyRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A" - + "\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001" - + "(\tB\005\030\001\340A\002\022D\n\016network_policy\030\004 \001(\0132\'.goog" - + "le.container.v1beta1.NetworkPolicyB\003\340A\002\022" - + "\014\n\004name\030\006 \001(\t\"\276\001\n\033SetMaintenancePolicyRe" - + "quest\022\027\n\nproject_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\022L\n\022ma" - + "intenance_policy\030\004 \001(\0132+.google.containe" - + "r.v1beta1.MaintenancePolicyB\003\340A\002\022\014\n\004name" - + "\030\005 \001(\t\"+\n\024ListLocationsRequest\022\023\n\006parent" - + "\030\001 \001(\tB\003\340A\002\"g\n\025ListLocationsResponse\0225\n\t" - + "locations\030\001 \003(\0132\".google.container.v1bet" - + "a1.Location\022\027\n\017next_page_token\030\002 \001(\t\"\261\001\n" - + "\010Location\022=\n\004type\030\001 \001(\0162/.google.contain" - + "er.v1beta1.Location.LocationType\022\014\n\004name" - + "\030\002 \001(\t\022\023\n\013recommended\030\003 \001(\010\"C\n\014LocationT" - + "ype\022\035\n\031LOCATION_TYPE_UNSPECIFIED\020\000\022\010\n\004ZO" - + "NE\020\001\022\n\n\006REGION\020\002\"\262\002\n\017StatusCondition\022@\n\004" - + "code\030\001 \001(\0162..google.container.v1beta1.St" - + "atusCondition.CodeB\002\030\001\022\017\n\007message\030\002 \001(\t\022" - + "(\n\016canonical_code\030\003 \001(\0162\020.google.rpc.Cod" - + "e\"\241\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\022GC" - + "E_QUOTA_EXCEEDED\020\003\022\023\n\017SET_BY_OPERATOR\020\004\022" - + "\027\n\023CLOUD_KMS_KEY_ERROR\020\007\022\017\n\013CA_EXPIRING\020" - + "\t\032\002\030\001\"\365\003\n\rNetworkConfig\022\017\n\007network\030\001 \001(\t" - + "\022\022\n\nsubnetwork\030\002 \001(\t\022$\n\034enable_intra_nod" - + "e_visibility\030\005 \001(\010\022H\n\023default_snat_statu" - + "s\030\007 \001(\0132+.google.container.v1beta1.Defau" - + "ltSnatStatus\022\037\n\027enable_l4ilb_subsetting\030" - + "\n \001(\010\022E\n\021datapath_provider\030\013 \001(\0162*.googl" - + "e.container.v1beta1.DatapathProvider\022U\n\032" - + "private_ipv6_google_access\030\014 \001(\01621.googl" - + "e.container.v1beta1.PrivateIPv6GoogleAcc" - + "ess\0227\n\ndns_config\030\r \001(\0132#.google.contain" - + "er.v1beta1.DNSConfig\022W\n\033service_external" - + "_ips_config\030\017 \001(\01322.google.container.v1b" - + "eta1.ServiceExternalIPsConfig\"+\n\030Service" - + "ExternalIPsConfig\022\017\n\007enabled\030\001 \001(\010\"j\n\034Li" - + "stUsableSubnetworksRequest\022\023\n\006parent\030\001 \001" - + "(\tB\003\340A\002\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\"y\n\035ListUsableSubn" - + "etworksResponse\022?\n\013subnetworks\030\001 \003(\0132*.g" - + "oogle.container.v1beta1.UsableSubnetwork" - + "\022\027\n\017next_page_token\030\002 \001(\t\"\205\002\n\036UsableSubn" - + "etworkSecondaryRange\022\022\n\nrange_name\030\001 \001(\t" - + "\022\025\n\rip_cidr_range\030\002 \001(\t\022O\n\006status\030\003 \001(\0162" - + "?.google.container.v1beta1.UsableSubnetw" - + "orkSecondaryRange.Status\"g\n\006Status\022\013\n\007UN" - + "KNOWN\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_MANA" - + "GED_POD\020\004\"\275\001\n\020UsableSubnetwork\022\022\n\nsubnet" - + "work\030\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_r" - + "ange\030\003 \001(\t\022U\n\023secondary_ip_ranges\030\004 \003(\0132" - + "8.google.container.v1beta1.UsableSubnetw" - + "orkSecondaryRange\022\026\n\016status_message\030\005 \001(" - + "\t\")\n\026VerticalPodAutoscaling\022\017\n\007enabled\030\001" - + " \001(\010\"%\n\021DefaultSnatStatus\022\020\n\010disabled\030\001 " - + "\001(\010\",\n\031IntraNodeVisibilityConfig\022\017\n\007enab" - + "led\030\001 \001(\010\"&\n\023ILBSubsettingConfig\022\017\n\007enab" - + "led\030\001 \001(\010\"\307\002\n\tDNSConfig\022A\n\013cluster_dns\030\001" - + " \001(\0162,.google.container.v1beta1.DNSConfi" - + "g.Provider\022G\n\021cluster_dns_scope\030\002 \001(\0162,." - + "google.container.v1beta1.DNSConfig.DNSSc" - + "ope\022\032\n\022cluster_dns_domain\030\003 \001(\t\"I\n\010Provi" - + "der\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\024\n\020PLATFOR" - + "M_DEFAULT\020\001\022\r\n\tCLOUD_DNS\020\002\"G\n\010DNSScope\022\031" - + "\n\025DNS_SCOPE_UNSPECIFIED\020\000\022\021\n\rCLUSTER_SCO" - + "PE\020\001\022\r\n\tVPC_SCOPE\020\002\".\n\021MaxPodsConstraint" - + "\022\031\n\021max_pods_per_node\030\001 \001(\003\"j\n\026WorkloadI" - + "dentityConfig\022\036\n\022identity_namespace\030\001 \001(" - + "\tB\002\030\001\022\025\n\rworkload_pool\030\002 \001(\t\022\031\n\021identity" - + "_provider\030\003 \001(\t\"O\n\024WorkloadCertificates\022" - + "7\n\023enable_certificates\030\001 \001(\0132\032.google.pr" - + "otobuf.BoolValue\"\235\001\n\022DatabaseEncryption\022" - + "A\n\005state\030\002 \001(\01622.google.container.v1beta" - + "1.DatabaseEncryption.State\022\020\n\010key_name\030\001" - + " \001(\t\"2\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n\tENCRYPTED\020" - + "\001\022\r\n\tDECRYPTED\020\002\"\367\002\n\031ResourceUsageExport" - + "Config\022e\n\024bigquery_destination\030\001 \001(\0132G.g" - + "oogle.container.v1beta1.ResourceUsageExp" - + "ortConfig.BigQueryDestination\022&\n\036enable_" - + "network_egress_metering\030\002 \001(\010\022r\n\033consump" - + "tion_metering_config\030\003 \001(\0132M.google.cont" - + "ainer.v1beta1.ResourceUsageExportConfig." - + "ConsumptionMeteringConfig\032)\n\023BigQueryDes" - + "tination\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031Consumpt" - + "ionMeteringConfig\022\017\n\007enabled\030\001 \001(\010\" \n\rSh" - + "ieldedNodes\022\017\n\007enabled\030\001 \001(\010\"\035\n\nVirtualN" - + "IC\022\017\n\007enabled\030\001 \001(\010\"(\n\026GetOpenIDConfigRe" - + "quest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027GetOpenIDConfi" - + "gResponse\022\016\n\006issuer\030\001 \001(\t\022\020\n\010jwks_uri\030\002 " - + "\001(\t\022 \n\030response_types_supported\030\003 \003(\t\022\037\n" - + "\027subject_types_supported\030\004 \003(\t\022-\n%id_tok" - + "en_signing_alg_values_supported\030\005 \003(\t\022\030\n" - + "\020claims_supported\030\006 \003(\t\022\023\n\013grant_types\030\007" - + " \003(\t\"\'\n\025GetJSONWebKeysRequest\022\016\n\006parent\030" - + "\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013\n\003alg\030\002 \001(\t\022\013" - + "\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n\001n\030\005 \001(\t\022\t\n\001e" - + "\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003crv\030\t \001(" - + "\t\"E\n\026GetJSONWebKeysResponse\022+\n\004keys\030\001 \003(" - + "\0132\035.google.container.v1beta1.Jwk\"\223\001\n\016Rel" - + "easeChannel\022A\n\007channel\030\001 \001(\01620.google.co" - + "ntainer.v1beta1.ReleaseChannel.Channel\">" - + "\n\007Channel\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n" - + "\007REGULAR\020\002\022\n\n\006STABLE\020\003\"U\n\tTpuConfig\022\017\n\007e" - + "nabled\030\001 \001(\010\022\036\n\026use_service_networking\030\002" - + " \001(\010\022\027\n\017ipv4_cidr_block\030\003 \001(\t\"\010\n\006Master\"" - + "\034\n\tAutopilot\022\017\n\007enabled\030\001 \001(\010\"\245\001\n\022Notifi" - + "cationConfig\022C\n\006pubsub\030\001 \001(\01323.google.co" - + "ntainer.v1beta1.NotificationConfig.PubSu" - + "b\032J\n\006PubSub\022\017\n\007enabled\030\001 \001(\010\022/\n\005topic\030\002 " - + "\001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\"$\n" - + "\021ConfidentialNodes\022\017\n\007enabled\030\001 \001(\010\"\344\001\n\014" - + "UpgradeEvent\022D\n\rresource_type\030\001 \001(\0162-.go" - + "ogle.container.v1beta1.UpgradeResourceTy" - + "pe\022\021\n\toperation\030\002 \001(\t\0228\n\024operation_start" - + "_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022" - + "\027\n\017current_version\030\004 \001(\t\022\026\n\016target_versi" - + "on\030\005 \001(\t\022\020\n\010resource\030\006 \001(\t\"\210\002\n\025UpgradeAv" - + "ailableEvent\022\017\n\007version\030\001 \001(\t\022D\n\rresourc" - + "e_type\030\002 \001(\0162-.google.container.v1beta1." - + "UpgradeResourceType\022A\n\017release_channel\030\003" - + " \001(\0132(.google.container.v1beta1.ReleaseC" - + "hannel\022\020\n\010resource\030\004 \001(\t\022C\n\020windows_vers" - + "ions\030\005 \001(\0132).google.container.v1beta1.Wi" - + "ndowsVersions\"(\n\025IdentityServiceConfig\022\017" - + "\n\007enabled\030\001 \001(\010\"[\n\rLoggingConfig\022J\n\020comp" - + "onent_config\030\001 \001(\01320.google.container.v1" - + "beta1.LoggingComponentConfig\"\275\001\n\026Logging" - + "ComponentConfig\022U\n\021enable_components\030\001 \003" - + "(\0162:.google.container.v1beta1.LoggingCom" - + "ponentConfig.Component\"L\n\tComponent\022\031\n\025C" - + "OMPONENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONE" - + "NTS\020\001\022\r\n\tWORKLOADS\020\002\"a\n\020MonitoringConfig" - + "\022M\n\020component_config\030\001 \001(\01323.google.cont" - + "ainer.v1beta1.MonitoringComponentConfig\"" - + "\303\001\n\031MonitoringComponentConfig\022X\n\021enable_" - + "components\030\001 \003(\0162=.google.container.v1be" - + "ta1.MonitoringComponentConfig.Component\"" - + "L\n\tComponent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022" - + "\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tWORKLOADS\020\002*\306\001" - + "\n\027PrivateIPv6GoogleAccess\022*\n&PRIVATE_IPV" - + "6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\'\n#PRIVATE" - + "_IPV6_GOOGLE_ACCESS_DISABLED\020\001\022(\n$PRIVAT" - + "E_IPV6_GOOGLE_ACCESS_TO_GOOGLE\020\002\022,\n(PRIV" - + "ATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL\020\003*a" - + "\n\020DatapathProvider\022!\n\035DATAPATH_PROVIDER_" - + "UNSPECIFIED\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021AD" - + "VANCED_DATAPATH\020\002*W\n\023UpgradeResourceType" - + "\022%\n!UPGRADE_RESOURCE_TYPE_UNSPECIFIED\020\000\022" - + "\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\0022\352J\n\016ClusterMa" - + "nager\022\363\001\n\014ListClusters\022-.google.containe" - + "r.v1beta1.ListClustersRequest\032..google.c" - + "ontainer.v1beta1.ListClustersResponse\"\203\001" - + "\202\323\344\223\002k\0221/v1beta1/{parent=projects/*/loca" - + "tions/*}/clustersZ6\0224/v1beta1/projects/{" - + "project_id}/zones/{zone}/clusters\332A\017proj" - + "ect_id,zone\022\372\001\n\nGetCluster\022+.google.cont" - + "ainer.v1beta1.GetClusterRequest\032!.google" - + ".container.v1beta1.Cluster\"\233\001\202\323\344\223\002x\0221/v1" - + "beta1/{name=projects/*/locations/*/clust" - + "ers/*}ZC\022A/v1beta1/projects/{project_id}" - + "/zones/{zone}/clusters/{cluster_id}\332A\032pr" - + "oject_id,zone,cluster_id\022\370\001\n\rCreateClust" - + "er\022..google.container.v1beta1.CreateClus" - + "terRequest\032#.google.container.v1beta1.Op" - + "eration\"\221\001\202\323\344\223\002q\"1/v1beta1/{parent=proje" - + "cts/*/locations/*}/clusters:\001*Z9\"4/v1bet" - + "a1/projects/{project_id}/zones/{zone}/cl" - + "usters:\001*\332A\027project_id,zone,cluster\022\217\002\n\r" - + "UpdateCluster\022..google.container.v1beta1" - + ".UpdateClusterRequest\032#.google.container" - + ".v1beta1.Operation\"\250\001\202\323\344\223\002~\0321/v1beta1/{n" - + "ame=projects/*/locations/*/clusters/*}:\001" - + "*ZF\032A/v1beta1/projects/{project_id}/zone" - + "s/{zone}/clusters/{cluster_id}:\001*\332A!proj" - + "ect_id,zone,cluster_id,update\022\232\002\n\016Update" - + "NodePool\022/.google.container.v1beta1.Upda" - + "teNodePoolRequest\032#.google.container.v1b" - + "eta1.Operation\"\261\001\202\323\344\223\002\252\001\032=/v1beta1/{name" - + "=projects/*/locations/*/clusters/*/nodeP" - + "ools/*}:\001*Zf\"a/v1beta1/projects/{project" - + "_id}/zones/{zone}/clusters/{cluster_id}/" - + "nodePools/{node_pool_id}/update:\001*\022\276\002\n\026S" - + "etNodePoolAutoscaling\0227.google.container" - + ".v1beta1.SetNodePoolAutoscalingRequest\032#" - + ".google.container.v1beta1.Operation\"\305\001\202\323" - + "\344\223\002\276\001\"L/v1beta1/{name=projects/*/locatio" - + "ns/*/clusters/*/nodePools/*}:setAutoscal" - + "ing:\001*Zk\"f/v1beta1/projects/{project_id}" - + "/zones/{zone}/clusters/{cluster_id}/node" - + "Pools/{node_pool_id}/autoscaling:\001*\022\264\002\n\021" - + "SetLoggingService\0222.google.container.v1b" - + "eta1.SetLoggingServiceRequest\032#.google.c" - + "ontainer.v1beta1.Operation\"\305\001\202\323\344\223\002\221\001\".google.container.v1beta1." + + "SetLabelsRequest.ResourceLabelsEntryB\003\340A" + + "\002\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n\004nam" + + "e\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\"\205\001\n\024SetLegacyAbac" + + "Request\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zo" + + "ne\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340" + + "A\002\022\024\n\007enabled\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\215" + + "\001\n\026StartIPRotationRequest\022\031\n\nproject_id\030" + + "\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nclu" + + "ster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(\t\022\032\n\022ro" + + "tate_credentials\030\007 \001(\010\"t\n\031CompleteIPRota" + + "tionRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023" + + "\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB" + + "\005\030\001\340A\002\022\014\n\004name\030\007 \001(\t\"d\n\021AcceleratorConfi" + + "g\022\031\n\021accelerator_count\030\001 \001(\003\022\030\n\020accelera" + + "tor_type\030\002 \001(\t\022\032\n\022gpu_partition_size\030\003 \001" + + "(\t\"*\n\027ManagedPrometheusConfig\022\017\n\007enabled" + + "\030\001 \001(\010\"\313\002\n\026WorkloadMetadataConfig\022X\n\rnod" + + "e_metadata\030\001 \001(\0162=.google.container.v1be" + + "ta1.WorkloadMetadataConfig.NodeMetadataB" + + "\002\030\001\022C\n\004mode\030\002 \001(\01625.google.container.v1b" + + "eta1.WorkloadMetadataConfig.Mode\"P\n\014Node" + + "Metadata\022\017\n\013UNSPECIFIED\020\000\022\n\n\006SECURE\020\001\022\n\n" + + "\006EXPOSE\020\002\022\027\n\023GKE_METADATA_SERVER\020\003\"@\n\004Mo" + + "de\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n\014GCE_METADATA" + + "\020\001\022\020\n\014GKE_METADATA\020\002\"\270\001\n\027SetNetworkPolic" + + "yRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004z" + + "one\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001" + + "\340A\002\022D\n\016network_policy\030\004 \001(\0132\'.google.con" + + "tainer.v1beta1.NetworkPolicyB\003\340A\002\022\014\n\004nam" + + "e\030\006 \001(\t\"\276\001\n\033SetMaintenancePolicyRequest\022" + + "\027\n\nproject_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\022L\n\022maintena" + + "nce_policy\030\004 \001(\0132+.google.container.v1be" + + "ta1.MaintenancePolicyB\003\340A\002\022\014\n\004name\030\005 \001(\t" + + "\"+\n\024ListLocationsRequest\022\023\n\006parent\030\001 \001(\t" + + "B\003\340A\002\"g\n\025ListLocationsResponse\0225\n\tlocati" + + "ons\030\001 \003(\0132\".google.container.v1beta1.Loc" + + "ation\022\027\n\017next_page_token\030\002 \001(\t\"\261\001\n\010Locat" + + "ion\022=\n\004type\030\001 \001(\0162/.google.container.v1b" + + "eta1.Location.LocationType\022\014\n\004name\030\002 \001(\t" + + "\022\023\n\013recommended\030\003 \001(\010\"C\n\014LocationType\022\035\n" + + "\031LOCATION_TYPE_UNSPECIFIED\020\000\022\010\n\004ZONE\020\001\022\n" + + "\n\006REGION\020\002\"\262\002\n\017StatusCondition\022@\n\004code\030\001" + + " \001(\0162..google.container.v1beta1.StatusCo" + + "ndition.CodeB\002\030\001\022\017\n\007message\030\002 \001(\t\022(\n\016can" + + "onical_code\030\003 \001(\0162\020.google.rpc.Code\"\241\001\n\004" + + "Code\022\013\n\007UNKNOWN\020\000\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033G" + + "KE_SERVICE_ACCOUNT_DELETED\020\002\022\026\n\022GCE_QUOT" + + "A_EXCEEDED\020\003\022\023\n\017SET_BY_OPERATOR\020\004\022\027\n\023CLO" + + "UD_KMS_KEY_ERROR\020\007\022\017\n\013CA_EXPIRING\020\t\032\002\030\001\"" + + "\365\003\n\rNetworkConfig\022\017\n\007network\030\001 \001(\t\022\022\n\nsu" + + "bnetwork\030\002 \001(\t\022$\n\034enable_intra_node_visi" + + "bility\030\005 \001(\010\022H\n\023default_snat_status\030\007 \001(" + + "\0132+.google.container.v1beta1.DefaultSnat" + + "Status\022\037\n\027enable_l4ilb_subsetting\030\n \001(\010\022" + + "E\n\021datapath_provider\030\013 \001(\0162*.google.cont" + + "ainer.v1beta1.DatapathProvider\022U\n\032privat" + + "e_ipv6_google_access\030\014 \001(\01621.google.cont" + + "ainer.v1beta1.PrivateIPv6GoogleAccess\0227\n" + + "\ndns_config\030\r \001(\0132#.google.container.v1b" + + "eta1.DNSConfig\022W\n\033service_external_ips_c" + + "onfig\030\017 \001(\01322.google.container.v1beta1.S" + + "erviceExternalIPsConfig\"+\n\030ServiceExtern" + + "alIPsConfig\022\017\n\007enabled\030\001 \001(\010\"j\n\034ListUsab" + + "leSubnetworksRequest\022\023\n\006parent\030\001 \001(\tB\003\340A" + + "\002\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\n" + + "page_token\030\004 \001(\t\"y\n\035ListUsableSubnetwork" + + "sResponse\022?\n\013subnetworks\030\001 \003(\0132*.google." + + "container.v1beta1.UsableSubnetwork\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\205\002\n\036UsableSubnetwork" + + "SecondaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip" + + "_cidr_range\030\002 \001(\t\022O\n\006status\030\003 \001(\0162?.goog" + + "le.container.v1beta1.UsableSubnetworkSec" + + "ondaryRange.Status\"g\n\006Status\022\013\n\007UNKNOWN\020" + + "\000\022\n\n\006UNUSED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_" + + "USE_SHAREABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_PO" + + "D\020\004\"\275\001\n\020UsableSubnetwork\022\022\n\nsubnetwork\030\001" + + " \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003" + + " \001(\t\022U\n\023secondary_ip_ranges\030\004 \003(\01328.goog" + + "le.container.v1beta1.UsableSubnetworkSec" + + "ondaryRange\022\026\n\016status_message\030\005 \001(\t\")\n\026V" + + "erticalPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"%" + + "\n\021DefaultSnatStatus\022\020\n\010disabled\030\001 \001(\010\",\n" + + "\031IntraNodeVisibilityConfig\022\017\n\007enabled\030\001 " + + "\001(\010\"&\n\023ILBSubsettingConfig\022\017\n\007enabled\030\001 " + + "\001(\010\"\307\002\n\tDNSConfig\022A\n\013cluster_dns\030\001 \001(\0162," + + ".google.container.v1beta1.DNSConfig.Prov" + + "ider\022G\n\021cluster_dns_scope\030\002 \001(\0162,.google" + + ".container.v1beta1.DNSConfig.DNSScope\022\032\n" + + "\022cluster_dns_domain\030\003 \001(\t\"I\n\010Provider\022\030\n" + + "\024PROVIDER_UNSPECIFIED\020\000\022\024\n\020PLATFORM_DEFA" + + "ULT\020\001\022\r\n\tCLOUD_DNS\020\002\"G\n\010DNSScope\022\031\n\025DNS_" + + "SCOPE_UNSPECIFIED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022\r" + + "\n\tVPC_SCOPE\020\002\".\n\021MaxPodsConstraint\022\031\n\021ma" + + "x_pods_per_node\030\001 \001(\003\"j\n\026WorkloadIdentit" + + "yConfig\022\036\n\022identity_namespace\030\001 \001(\tB\002\030\001\022" + + "\025\n\rworkload_pool\030\002 \001(\t\022\031\n\021identity_provi" + + "der\030\003 \001(\t\"O\n\024WorkloadCertificates\0227\n\023ena" + + "ble_certificates\030\001 \001(\0132\032.google.protobuf" + + ".BoolValue\"K\n\020MeshCertificates\0227\n\023enable" + + "_certificates\030\001 \001(\0132\032.google.protobuf.Bo" + + "olValue\"\235\001\n\022DatabaseEncryption\022A\n\005state\030" + + "\002 \001(\01622.google.container.v1beta1.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\"\367\002\n\031ResourceUsageExportConfig\022e\n" + + "\024bigquery_destination\030\001 \001(\0132G.google.con" + + "tainer.v1beta1.ResourceUsageExportConfig" + + ".BigQueryDestination\022&\n\036enable_network_e" + + "gress_metering\030\002 \001(\010\022r\n\033consumption_mete" + + "ring_config\030\003 \001(\0132M.google.container.v1b" + + "eta1.ResourceUsageExportConfig.Consumpti" + + "onMeteringConfig\032)\n\023BigQueryDestination\022" + + "\022\n\ndataset_id\030\001 \001(\t\032,\n\031ConsumptionMeteri" + + "ngConfig\022\017\n\007enabled\030\001 \001(\010\" \n\rShieldedNod" + + "es\022\017\n\007enabled\030\001 \001(\010\"\035\n\nVirtualNIC\022\017\n\007ena" + + "bled\030\001 \001(\010\"(\n\026GetOpenIDConfigRequest\022\016\n\006" + + "parent\030\001 \001(\t\"\334\001\n\027GetOpenIDConfigResponse" + + "\022\016\n\006issuer\030\001 \001(\t\022\020\n\010jwks_uri\030\002 \001(\t\022 \n\030re" + + "sponse_types_supported\030\003 \003(\t\022\037\n\027subject_" + + "types_supported\030\004 \003(\t\022-\n%id_token_signin" + + "g_alg_values_supported\030\005 \003(\t\022\030\n\020claims_s" + + "upported\030\006 \003(\t\022\023\n\013grant_types\030\007 \003(\t\"\'\n\025G" + + "etJSONWebKeysRequest\022\016\n\006parent\030\001 \001(\t\"r\n\003" + + "Jwk\022\013\n\003kty\030\001 \001(\t\022\013\n\003alg\030\002 \001(\t\022\013\n\003use\030\003 \001" + + "(\t\022\013\n\003kid\030\004 \001(\t\022\t\n\001n\030\005 \001(\t\022\t\n\001e\030\006 \001(\t\022\t\n" + + "\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003crv\030\t \001(\t\"E\n\026GetJ" + + "SONWebKeysResponse\022+\n\004keys\030\001 \003(\0132\035.googl" + + "e.container.v1beta1.Jwk\"\223\001\n\016ReleaseChann" + + "el\022A\n\007channel\030\001 \001(\01620.google.container.v" + + "1beta1.ReleaseChannel.Channel\">\n\007Channel" + + "\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007REGULAR\020" + + "\002\022\n\n\006STABLE\020\003\"U\n\tTpuConfig\022\017\n\007enabled\030\001 " + + "\001(\010\022\036\n\026use_service_networking\030\002 \001(\010\022\027\n\017i" + + "pv4_cidr_block\030\003 \001(\t\"\010\n\006Master\"\034\n\tAutopi" + + "lot\022\017\n\007enabled\030\001 \001(\010\"\267\003\n\022NotificationCon" + + "fig\022C\n\006pubsub\030\001 \001(\01323.google.container.v" + + "1beta1.NotificationConfig.PubSub\032\217\001\n\006Pub" + + "Sub\022\017\n\007enabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035" + + "\n\033pubsub.googleapis.com/Topic\022C\n\006filter\030" + + "\003 \001(\01323.google.container.v1beta1.Notific" + + "ationConfig.Filter\032T\n\006Filter\022J\n\nevent_ty" + + "pe\030\001 \003(\01626.google.container.v1beta1.Noti" + + "ficationConfig.EventType\"t\n\tEventType\022\032\n" + + "\026EVENT_TYPE_UNSPECIFIED\020\000\022\033\n\027UPGRADE_AVA" + + "ILABLE_EVENT\020\001\022\021\n\rUPGRADE_EVENT\020\002\022\033\n\027SEC" + + "URITY_BULLETIN_EVENT\020\003\"$\n\021ConfidentialNo" + + "des\022\017\n\007enabled\030\001 \001(\010\"\344\001\n\014UpgradeEvent\022D\n" + + "\rresource_type\030\001 \001(\0162-.google.container." + + "v1beta1.UpgradeResourceType\022\021\n\toperation" + + "\030\002 \001(\t\0228\n\024operation_start_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022\027\n\017current_vers" + + "ion\030\004 \001(\t\022\026\n\016target_version\030\005 \001(\t\022\020\n\010res" + + "ource\030\006 \001(\t\"\210\002\n\025UpgradeAvailableEvent\022\017\n" + + "\007version\030\001 \001(\t\022D\n\rresource_type\030\002 \001(\0162-." + + "google.container.v1beta1.UpgradeResource" + + "Type\022A\n\017release_channel\030\003 \001(\0132(.google.c" + + "ontainer.v1beta1.ReleaseChannel\022\020\n\010resou" + + "rce\030\004 \001(\t\022C\n\020windows_versions\030\005 \001(\0132).go" + + "ogle.container.v1beta1.WindowsVersions\"\236" + + "\002\n\025SecurityBulletinEvent\022\036\n\026resource_typ" + + "e_affected\030\001 \001(\t\022\023\n\013bulletin_id\030\002 \001(\t\022\017\n" + + "\007cve_ids\030\003 \003(\t\022\020\n\010severity\030\004 \001(\t\022\024\n\014bull" + + "etin_uri\030\005 \001(\t\022\031\n\021brief_description\030\006 \001(" + + "\t\022!\n\031affected_supported_minors\030\007 \003(\t\022\030\n\020" + + "patched_versions\030\010 \003(\t\022 \n\030suggested_upgr" + + "ade_target\030\t \001(\t\022\035\n\025manual_steps_require" + + "d\030\n \001(\010\"(\n\025IdentityServiceConfig\022\017\n\007enab" + + "led\030\001 \001(\010\"[\n\rLoggingConfig\022J\n\020component_" + + "config\030\001 \001(\01320.google.container.v1beta1." + + "LoggingComponentConfig\"\275\001\n\026LoggingCompon" + + "entConfig\022U\n\021enable_components\030\001 \003(\0162:.g" + + "oogle.container.v1beta1.LoggingComponent" + + "Config.Component\"L\n\tComponent\022\031\n\025COMPONE" + + "NT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022" + + "\r\n\tWORKLOADS\020\002\"\267\001\n\020MonitoringConfig\022M\n\020c" + + "omponent_config\030\001 \001(\01323.google.container" + + ".v1beta1.MonitoringComponentConfig\022T\n\031ma" + + "naged_prometheus_config\030\002 \001(\01321.google.c" + + "ontainer.v1beta1.ManagedPrometheusConfig" + + "\"\303\001\n\031MonitoringComponentConfig\022X\n\021enable" + + "_components\030\001 \003(\0162=.google.container.v1b" + + "eta1.MonitoringComponentConfig.Component" + + "\"L\n\tComponent\022\031\n\025COMPONENT_UNSPECIFIED\020\000" + + "\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tWORKLOADS\020\002*\306" + + "\001\n\027PrivateIPv6GoogleAccess\022*\n&PRIVATE_IP" + + "V6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\'\n#PRIVAT" + + "E_IPV6_GOOGLE_ACCESS_DISABLED\020\001\022(\n$PRIVA" + + "TE_IPV6_GOOGLE_ACCESS_TO_GOOGLE\020\002\022,\n(PRI" + + "VATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL\020\003*" + + "a\n\020DatapathProvider\022!\n\035DATAPATH_PROVIDER" + + "_UNSPECIFIED\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021A" + + "DVANCED_DATAPATH\020\002*W\n\023UpgradeResourceTyp" + + "e\022%\n!UPGRADE_RESOURCE_TYPE_UNSPECIFIED\020\000" + + "\022\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\0022\352J\n\016ClusterM" + + "anager\022\363\001\n\014ListClusters\022-.google.contain" + + "er.v1beta1.ListClustersRequest\032..google." + + "container.v1beta1.ListClustersResponse\"\203" + + "\001\202\323\344\223\002k\0221/v1beta1/{parent=projects/*/loc" + + "ations/*}/clustersZ6\0224/v1beta1/projects/" + + "{project_id}/zones/{zone}/clusters\332A\017pro" + + "ject_id,zone\022\372\001\n\nGetCluster\022+.google.con" + + "tainer.v1beta1.GetClusterRequest\032!.googl", + "e.container.v1beta1.Cluster\"\233\001\202\323\344\223\002x\0221/v" + "1beta1/{name=projects/*/locations/*/clus" - + "ters/*}:setLogging:\001*ZN\"I/v1beta1/projec" - + "ts/{project_id}/zones/{zone}/clusters/{c" - + "luster_id}/logging:\001*\332A*project_id,zone," - + "cluster_id,logging_service\022\303\002\n\024SetMonito" - + "ringService\0225.google.container.v1beta1.S" - + "etMonitoringServiceRequest\032#.google.cont" - + "ainer.v1beta1.Operation\"\316\001\202\323\344\223\002\227\001\"?/v1be" - + "ta1/{name=projects/*/locations/*/cluster" - + "s/*}:setMonitoring:\001*ZQ\"L/v1beta1/projec" - + "ts/{project_id}/zones/{zone}/clusters/{c" - + "luster_id}/monitoring:\001*\332A-project_id,zo" - + "ne,cluster_id,monitoring_service\022\254\002\n\017Set" - + "AddonsConfig\0220.google.container.v1beta1." - + "SetAddonsConfigRequest\032#.google.containe" - + "r.v1beta1.Operation\"\301\001\202\323\344\223\002\217\001\";/v1beta1/" - + "{name=projects/*/locations/*/clusters/*}" - + ":setAddons:\001*ZM\"H/v1beta1/projects/{proj", - "ect_id}/zones/{zone}/clusters/{cluster_i" - + "d}/addons:\001*\332A(project_id,zone,cluster_i" - + "d,addons_config\022\253\002\n\014SetLocations\022-.googl" - + "e.container.v1beta1.SetLocationsRequest\032" - + "#.google.container.v1beta1.Operation\"\306\001\210" - + "\002\001\202\323\344\223\002\225\001\">/v1beta1/{name=projects/*/loc" - + "ations/*/clusters/*}:setLocations:\001*ZP\"K" - + "/v1beta1/projects/{project_id}/zones/{zo" - + "ne}/clusters/{cluster_id}/locations:\001*\332A" - + "$project_id,zone,cluster_id,locations\022\252\002" - + "\n\014UpdateMaster\022-.google.container.v1beta" - + "1.UpdateMasterRequest\032#.google.container" - + ".v1beta1.Operation\"\305\001\202\323\344\223\002\222\001\">/v1beta1/{" + + "ters/*}ZC\022A/v1beta1/projects/{project_id" + + "}/zones/{zone}/clusters/{cluster_id}\332A\032p" + + "roject_id,zone,cluster_id\022\370\001\n\rCreateClus" + + "ter\022..google.container.v1beta1.CreateClu" + + "sterRequest\032#.google.container.v1beta1.O" + + "peration\"\221\001\202\323\344\223\002q\"1/v1beta1/{parent=proj" + + "ects/*/locations/*}/clusters:\001*Z9\"4/v1be" + + "ta1/projects/{project_id}/zones/{zone}/c" + + "lusters:\001*\332A\027project_id,zone,cluster\022\217\002\n" + + "\rUpdateCluster\022..google.container.v1beta" + + "1.UpdateClusterRequest\032#.google.containe" + + "r.v1beta1.Operation\"\250\001\202\323\344\223\002~\0321/v1beta1/{" + "name=projects/*/locations/*/clusters/*}:" - + "updateMaster:\001*ZM\"H/v1beta1/projects/{pr" - + "oject_id}/zones/{zone}/clusters/{cluster" - + "_id}/master:\001*\332A)project_id,zone,cluster" - + "_id,master_version\022\210\002\n\rSetMasterAuth\022..g" - + "oogle.container.v1beta1.SetMasterAuthReq" - + "uest\032#.google.container.v1beta1.Operatio" - + "n\"\241\001\202\323\344\223\002\232\001\"?/v1beta1/{name=projects/*/l" - + "ocations/*/clusters/*}:setMasterAuth:\001*Z" - + "T\"O/v1beta1/projects/{project_id}/zones/" - + "{zone}/clusters/{cluster_id}:setMasterAu" - + "th:\001*\022\202\002\n\rDeleteCluster\022..google.contain" - + "er.v1beta1.DeleteClusterRequest\032#.google" - + ".container.v1beta1.Operation\"\233\001\202\323\344\223\002x*1/" - + "v1beta1/{name=projects/*/locations/*/clu" - + "sters/*}ZC*A/v1beta1/projects/{project_i" - + "d}/zones/{zone}/clusters/{cluster_id}\332A\032" - + "project_id,zone,cluster_id\022\375\001\n\016ListOpera" - + "tions\022/.google.container.v1beta1.ListOpe" - + "rationsRequest\0320.google.container.v1beta" - + "1.ListOperationsResponse\"\207\001\202\323\344\223\002o\0223/v1be" - + "ta1/{parent=projects/*/locations/*}/oper" - + "ationsZ8\0226/v1beta1/projects/{project_id}" - + "/zones/{zone}/operations\332A\017project_id,zo" - + "ne\022\210\002\n\014GetOperation\022-.google.container.v" - + "1beta1.GetOperationRequest\032#.google.cont" - + "ainer.v1beta1.Operation\"\243\001\202\323\344\223\002~\0223/v1bet" - + "a1/{name=projects/*/locations/*/operatio" - + "ns/*}ZG\022E/v1beta1/projects/{project_id}/" - + "zones/{zone}/operations/{operation_id}\332A" - + "\034project_id,zone,operation_id\022\226\002\n\017Cancel" - + "Operation\0220.google.container.v1beta1.Can" - + "celOperationRequest\032\026.google.protobuf.Em" - + "pty\"\270\001\202\323\344\223\002\222\001\":/v1beta1/{name=projects/*" - + "/locations/*/operations/*}:cancel:\001*ZQ\"L" - + "/v1beta1/projects/{project_id}/zones/{zo" - + "ne}/operations/{operation_id}:cancel:\001*\332" - + "A\034project_id,zone,operation_id\022\367\001\n\017GetSe" - + "rverConfig\0220.google.container.v1beta1.Ge" - + "tServerConfigRequest\032&.google.container." - + "v1beta1.ServerConfig\"\211\001\202\323\344\223\002q\0223/v1beta1/" - + "{name=projects/*/locations/*}/serverConf" - + "igZ:\0228/v1beta1/projects/{project_id}/zon" - + "es/{zone}/serverconfig\332A\017project_id,zone" - + "\022\245\002\n\rListNodePools\022..google.container.v1" - + "beta1.ListNodePoolsRequest\032/.google.cont" - + "ainer.v1beta1.ListNodePoolsResponse\"\262\001\202\323" - + "\344\223\002\216\001\022=/v1beta1/{parent=projects/*/locat" - + "ions/*/clusters/*}/nodePoolsZM\022K/v1beta1" - + "/projects/{project_id}/zones/{zone}/clus" - + "ters/{cluster_id}/nodePools\332A\032project_id" - + ",zone,cluster_id\022\265\001\n\016GetJSONWebKeys\022/.go" - + "ogle.container.v1beta1.GetJSONWebKeysReq" - + "uest\0320.google.container.v1beta1.GetJSONW" - + "ebKeysResponse\"@\202\323\344\223\002:\0228/v1beta1/{parent" - + "=projects/*/locations/*/clusters/*}/jwks" - + "\022\260\002\n\013GetNodePool\022,.google.container.v1be" - + "ta1.GetNodePoolRequest\032\".google.containe" - + "r.v1beta1.NodePool\"\316\001\202\323\344\223\002\235\001\022=/v1beta1/{" - + "name=projects/*/locations/*/clusters/*/n" - + "odePools/*}Z\\\022Z/v1beta1/projects/{projec" - + "t_id}/zones/{zone}/clusters/{cluster_id}" - + "/nodePools/{node_pool_id}\332A\'project_id,z" - + "one,cluster_id,node_pool_id\022\253\002\n\016CreateNo" - + "dePool\022/.google.container.v1beta1.Create" - + "NodePoolRequest\032#.google.container.v1bet" - + "a1.Operation\"\302\001\202\323\344\223\002\224\001\"=/v1beta1/{parent" - + "=projects/*/locations/*/clusters/*}/node" - + "Pools:\001*ZP\"K/v1beta1/projects/{project_i" - + "d}/zones/{zone}/clusters/{cluster_id}/no" - + "dePools:\001*\332A$project_id,zone,cluster_id," - + "node_pool\022\267\002\n\016DeleteNodePool\022/.google.co" - + "ntainer.v1beta1.DeleteNodePoolRequest\032#." - + "google.container.v1beta1.Operation\"\316\001\202\323\344" - + "\223\002\235\001*=/v1beta1/{name=projects/*/location" - + "s/*/clusters/*/nodePools/*}Z\\*Z/v1beta1/" - + "projects/{project_id}/zones/{zone}/clust" - + "ers/{cluster_id}/nodePools/{node_pool_id" - + "}\332A\'project_id,zone,cluster_id,node_pool" - + "_id\022\341\002\n\027RollbackNodePoolUpgrade\0228.google" - + ".container.v1beta1.RollbackNodePoolUpgra" - + "deRequest\032#.google.container.v1beta1.Ope" - + "ration\"\346\001\202\323\344\223\002\265\001\"F/v1beta1/{name=project" - + "s/*/locations/*/clusters/*/nodePools/*}:" - + "rollback:\001*Zh\"c/v1beta1/projects/{projec" + + "\001*ZF\032A/v1beta1/projects/{project_id}/zon" + + "es/{zone}/clusters/{cluster_id}:\001*\332A!pro" + + "ject_id,zone,cluster_id,update\022\232\002\n\016Updat" + + "eNodePool\022/.google.container.v1beta1.Upd" + + "ateNodePoolRequest\032#.google.container.v1" + + "beta1.Operation\"\261\001\202\323\344\223\002\252\001\032=/v1beta1/{nam" + + "e=projects/*/locations/*/clusters/*/node" + + "Pools/*}:\001*Zf\"a/v1beta1/projects/{projec" + "t_id}/zones/{zone}/clusters/{cluster_id}" - + "/nodePools/{node_pool_id}:rollback:\001*\332A\'" - + "project_id,zone,cluster_id,node_pool_id\022" - + "\362\002\n\025SetNodePoolManagement\0226.google.conta" - + "iner.v1beta1.SetNodePoolManagementReques" - + "t\032#.google.container.v1beta1.Operation\"\373" - + "\001\202\323\344\223\002\277\001\"K/v1beta1/{name=projects/*/loca" - + "tions/*/clusters/*/nodePools/*}:setManag" - + "ement:\001*Zm\"h/v1beta1/projects/{project_i" - + "d}/zones/{zone}/clusters/{cluster_id}/no" - + "dePools/{node_pool_id}/setManagement:\001*\332" - + "A2project_id,zone,cluster_id,node_pool_i" - + "d,management\022\304\002\n\tSetLabels\022*.google.cont" - + "ainer.v1beta1.SetLabelsRequest\032#.google." - + "container.v1beta1.Operation\"\345\001\202\323\344\223\002\237\001\"C/" + + "/nodePools/{node_pool_id}/update:\001*\022\276\002\n\026" + + "SetNodePoolAutoscaling\0227.google.containe" + + "r.v1beta1.SetNodePoolAutoscalingRequest\032" + + "#.google.container.v1beta1.Operation\"\305\001\202" + + "\323\344\223\002\276\001\"L/v1beta1/{name=projects/*/locati" + + "ons/*/clusters/*/nodePools/*}:setAutosca" + + "ling:\001*Zk\"f/v1beta1/projects/{project_id" + + "}/zones/{zone}/clusters/{cluster_id}/nod" + + "ePools/{node_pool_id}/autoscaling:\001*\022\264\002\n" + + "\021SetLoggingService\0222.google.container.v1" + + "beta1.SetLoggingServiceRequest\032#.google." + + "container.v1beta1.Operation\"\305\001\202\323\344\223\002\221\001\"/v1beta1/{name=projects/*/lo" + + "cations/*/clusters/*}:setLocations:\001*ZP\"" + + "K/v1beta1/projects/{project_id}/zones/{z" + + "one}/clusters/{cluster_id}/locations:\001*\332" + + "A$project_id,zone,cluster_id,locations\022\252" + + "\002\n\014UpdateMaster\022-.google.container.v1bet" + + "a1.UpdateMasterRequest\032#.google.containe" + + "r.v1beta1.Operation\"\305\001\202\323\344\223\002\222\001\">/v1beta1/" + + "{name=projects/*/locations/*/clusters/*}" + + ":updateMaster:\001*ZM\"H/v1beta1/projects/{p" + + "roject_id}/zones/{zone}/clusters/{cluste" + + "r_id}/master:\001*\332A)project_id,zone,cluste" + + "r_id,master_version\022\210\002\n\rSetMasterAuth\022.." + + "google.container.v1beta1.SetMasterAuthRe" + "quest\032#.google.container.v1beta1.Operati" - + "on\"\303\001\202\323\344\223\002\227\001\"?/v1beta1/{name=projects/*/" - + "locations/*/clusters/*}:setLegacyAbac:\001*" - + "ZQ\"L/v1beta1/projects/{project_id}/zones" - + "/{zone}/clusters/{cluster_id}/legacyAbac" - + ":\001*\332A\"project_id,zone,cluster_id,enabled" - + "\022\255\002\n\017StartIPRotation\0220.google.container." - + "v1beta1.StartIPRotationRequest\032#.google." - + "container.v1beta1.Operation\"\302\001\202\323\344\223\002\236\001\"A/" - + "v1beta1/{name=projects/*/locations/*/clu" - + "sters/*}:startIpRotation:\001*ZV\"Q/v1beta1/" - + "projects/{project_id}/zones/{zone}/clust" - + "ers/{cluster_id}:startIpRotation:\001*\332A\032pr" - + "oject_id,zone,cluster_id\022\271\002\n\022CompleteIPR" - + "otation\0223.google.container.v1beta1.Compl" - + "eteIPRotationRequest\032#.google.container." - + "v1beta1.Operation\"\310\001\202\323\344\223\002\244\001\"D/v1beta1/{n" - + "ame=projects/*/locations/*/clusters/*}:c" - + "ompleteIpRotation:\001*ZY\"T/v1beta1/project" - + "s/{project_id}/zones/{zone}/clusters/{cl" - + "uster_id}:completeIpRotation:\001*\332A\032projec" - + "t_id,zone,cluster_id\022\245\002\n\017SetNodePoolSize" - + "\0220.google.container.v1beta1.SetNodePoolS" - + "izeRequest\032#.google.container.v1beta1.Op" - + "eration\"\272\001\202\323\344\223\002\263\001\"E/v1beta1/{name=projec" + + "on\"\241\001\202\323\344\223\002\232\001\"?/v1beta1/{name=projects/*/" + + "locations/*/clusters/*}:setMasterAuth:\001*" + + "ZT\"O/v1beta1/projects/{project_id}/zones" + + "/{zone}/clusters/{cluster_id}:setMasterA" + + "uth:\001*\022\202\002\n\rDeleteCluster\022..google.contai" + + "ner.v1beta1.DeleteClusterRequest\032#.googl" + + "e.container.v1beta1.Operation\"\233\001\202\323\344\223\002x*1" + + "/v1beta1/{name=projects/*/locations/*/cl" + + "usters/*}ZC*A/v1beta1/projects/{project_" + + "id}/zones/{zone}/clusters/{cluster_id}\332A" + + "\032project_id,zone,cluster_id\022\375\001\n\016ListOper" + + "ations\022/.google.container.v1beta1.ListOp" + + "erationsRequest\0320.google.container.v1bet" + + "a1.ListOperationsResponse\"\207\001\202\323\344\223\002o\0223/v1b" + + "eta1/{parent=projects/*/locations/*}/ope" + + "rationsZ8\0226/v1beta1/projects/{project_id" + + "}/zones/{zone}/operations\332A\017project_id,z" + + "one\022\210\002\n\014GetOperation\022-.google.container." + + "v1beta1.GetOperationRequest\032#.google.con" + + "tainer.v1beta1.Operation\"\243\001\202\323\344\223\002~\0223/v1be" + + "ta1/{name=projects/*/locations/*/operati" + + "ons/*}ZG\022E/v1beta1/projects/{project_id}" + + "/zones/{zone}/operations/{operation_id}\332" + + "A\034project_id,zone,operation_id\022\226\002\n\017Cance" + + "lOperation\0220.google.container.v1beta1.Ca" + + "ncelOperationRequest\032\026.google.protobuf.E" + + "mpty\"\270\001\202\323\344\223\002\222\001\":/v1beta1/{name=projects/" + + "*/locations/*/operations/*}:cancel:\001*ZQ\"" + + "L/v1beta1/projects/{project_id}/zones/{z" + + "one}/operations/{operation_id}:cancel:\001*" + + "\332A\034project_id,zone,operation_id\022\367\001\n\017GetS" + + "erverConfig\0220.google.container.v1beta1.G" + + "etServerConfigRequest\032&.google.container" + + ".v1beta1.ServerConfig\"\211\001\202\323\344\223\002q\0223/v1beta1" + + "/{name=projects/*/locations/*}/serverCon" + + "figZ:\0228/v1beta1/projects/{project_id}/zo" + + "nes/{zone}/serverconfig\332A\017project_id,zon" + + "e\022\245\002\n\rListNodePools\022..google.container.v" + + "1beta1.ListNodePoolsRequest\032/.google.con" + + "tainer.v1beta1.ListNodePoolsResponse\"\262\001\202" + + "\323\344\223\002\216\001\022=/v1beta1/{parent=projects/*/loca" + + "tions/*/clusters/*}/nodePoolsZM\022K/v1beta" + + "1/projects/{project_id}/zones/{zone}/clu" + + "sters/{cluster_id}/nodePools\332A\032project_i" + + "d,zone,cluster_id\022\265\001\n\016GetJSONWebKeys\022/.g" + + "oogle.container.v1beta1.GetJSONWebKeysRe" + + "quest\0320.google.container.v1beta1.GetJSON" + + "WebKeysResponse\"@\202\323\344\223\002:\0228/v1beta1/{paren" + + "t=projects/*/locations/*/clusters/*}/jwk" + + "s\022\260\002\n\013GetNodePool\022,.google.container.v1b" + + "eta1.GetNodePoolRequest\032\".google.contain" + + "er.v1beta1.NodePool\"\316\001\202\323\344\223\002\235\001\022=/v1beta1/" + + "{name=projects/*/locations/*/clusters/*/" + + "nodePools/*}Z\\\022Z/v1beta1/projects/{proje" + + "ct_id}/zones/{zone}/clusters/{cluster_id" + + "}/nodePools/{node_pool_id}\332A\'project_id," + + "zone,cluster_id,node_pool_id\022\253\002\n\016CreateN" + + "odePool\022/.google.container.v1beta1.Creat" + + "eNodePoolRequest\032#.google.container.v1be" + + "ta1.Operation\"\302\001\202\323\344\223\002\224\001\"=/v1beta1/{paren" + + "t=projects/*/locations/*/clusters/*}/nod" + + "ePools:\001*ZP\"K/v1beta1/projects/{project_" + + "id}/zones/{zone}/clusters/{cluster_id}/n" + + "odePools:\001*\332A$project_id,zone,cluster_id" + + ",node_pool\022\267\002\n\016DeleteNodePool\022/.google.c" + + "ontainer.v1beta1.DeleteNodePoolRequest\032#" + + ".google.container.v1beta1.Operation\"\316\001\202\323" + + "\344\223\002\235\001*=/v1beta1/{name=projects/*/locatio" + + "ns/*/clusters/*/nodePools/*}Z\\*Z/v1beta1" + + "/projects/{project_id}/zones/{zone}/clus" + + "ters/{cluster_id}/nodePools/{node_pool_i" + + "d}\332A\'project_id,zone,cluster_id,node_poo" + + "l_id\022\341\002\n\027RollbackNodePoolUpgrade\0228.googl" + + "e.container.v1beta1.RollbackNodePoolUpgr" + + "adeRequest\032#.google.container.v1beta1.Op" + + "eration\"\346\001\202\323\344\223\002\265\001\"F/v1beta1/{name=projec" + "ts/*/locations/*/clusters/*/nodePools/*}" - + ":setSize:\001*Zg\"b/v1beta1/projects/{projec" - + "t_id}/zones/{zone}/clusters/{cluster_id}" - + "/nodePools/{node_pool_id}/setSize:\001*\022\300\002\n" - + "\020SetNetworkPolicy\0221.google.container.v1b" - + "eta1.SetNetworkPolicyRequest\032#.google.co" - + "ntainer.v1beta1.Operation\"\323\001\202\323\344\223\002\240\001\"B/v1" - + "beta1/{name=projects/*/locations/*/clust" - + "ers/*}:setNetworkPolicy:\001*ZW\"R/v1beta1/p" - + "rojects/{project_id}/zones/{zone}/cluste" - + "rs/{cluster_id}:setNetworkPolicy:\001*\332A)pr" - + "oject_id,zone,cluster_id,network_policy\022" - + "\324\002\n\024SetMaintenancePolicy\0225.google.contai" - + "ner.v1beta1.SetMaintenancePolicyRequest\032" - + "#.google.container.v1beta1.Operation\"\337\001\202" - + "\323\344\223\002\250\001\"F/v1beta1/{name=projects/*/locati" - + "ons/*/clusters/*}:setMaintenancePolicy:\001" - + "*Z[\"V/v1beta1/projects/{project_id}/zone" - + "s/{zone}/clusters/{cluster_id}:setMainte" - + "nancePolicy:\001*\332A-project_id,zone,cluster" - + "_id,maintenance_policy\022\324\001\n\025ListUsableSub" - + "networks\0226.google.container.v1beta1.List" - + "UsableSubnetworksRequest\0327.google.contai" - + "ner.v1beta1.ListUsableSubnetworksRespons" - + "e\"J\202\323\344\223\002;\0229/v1beta1/{parent=projects/*}/" - + "aggregated/usableSubnetworks\332A\006parent\022\251\001" - + "\n\rListLocations\022..google.container.v1bet" - + "a1.ListLocationsRequest\032/.google.contain" - + "er.v1beta1.ListLocationsResponse\"7\202\323\344\223\002(" - + "\022&/v1beta1/{parent=projects/*}/locations" - + "\332A\006parent\032L\312A\030container.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\241\002\n\034com.google.container.v1beta1" - + "B\023ClusterServiceProtoP\001ZAgoogle.golang.o" - + "rg/genproto/googleapis/container/v1beta1" - + ";container\252\002\036Google.Cloud.Container.V1Be" - + "ta1\312\002\036Google\\Cloud\\Container\\V1beta1\352\002!G" - + "oogle::Cloud::Container::V1beta1\352A@\n\033pub" - + "sub.googleapis.com/Topic\022!projects/{proj" - + "ect}/topics/{topic}b\006proto3" + + ":rollback:\001*Zh\"c/v1beta1/projects/{proje" + + "ct_id}/zones/{zone}/clusters/{cluster_id" + + "}/nodePools/{node_pool_id}:rollback:\001*\332A" + + "\'project_id,zone,cluster_id,node_pool_id" + + "\022\362\002\n\025SetNodePoolManagement\0226.google.cont" + + "ainer.v1beta1.SetNodePoolManagementReque" + + "st\032#.google.container.v1beta1.Operation\"" + + "\373\001\202\323\344\223\002\277\001\"K/v1beta1/{name=projects/*/loc" + + "ations/*/clusters/*/nodePools/*}:setMana" + + "gement:\001*Zm\"h/v1beta1/projects/{project_" + + "id}/zones/{zone}/clusters/{cluster_id}/n" + + "odePools/{node_pool_id}/setManagement:\001*" + + "\332A2project_id,zone,cluster_id,node_pool_" + + "id,management\022\304\002\n\tSetLabels\022*.google.con" + + "tainer.v1beta1.SetLabelsRequest\032#.google" + + ".container.v1beta1.Operation\"\345\001\202\323\344\223\002\237\001\"C" + + "/v1beta1/{name=projects/*/locations/*/cl" + + "usters/*}:setResourceLabels:\001*ZU\"P/v1bet" + + "a1/projects/{project_id}/zones/{zone}/cl" + + "usters/{cluster_id}/resourceLabels:\001*\332A<" + + "project_id,zone,cluster_id,resource_labe" + + "ls,label_fingerprint\022\252\002\n\rSetLegacyAbac\022." + + ".google.container.v1beta1.SetLegacyAbacR" + + "equest\032#.google.container.v1beta1.Operat" + + "ion\"\303\001\202\323\344\223\002\227\001\"?/v1beta1/{name=projects/*" + + "/locations/*/clusters/*}:setLegacyAbac:\001" + + "*ZQ\"L/v1beta1/projects/{project_id}/zone" + + "s/{zone}/clusters/{cluster_id}/legacyAba" + + "c:\001*\332A\"project_id,zone,cluster_id,enable" + + "d\022\255\002\n\017StartIPRotation\0220.google.container" + + ".v1beta1.StartIPRotationRequest\032#.google" + + ".container.v1beta1.Operation\"\302\001\202\323\344\223\002\236\001\"A" + + "/v1beta1/{name=projects/*/locations/*/cl" + + "usters/*}:startIpRotation:\001*ZV\"Q/v1beta1" + + "/projects/{project_id}/zones/{zone}/clus" + + "ters/{cluster_id}:startIpRotation:\001*\332A\032p" + + "roject_id,zone,cluster_id\022\271\002\n\022CompleteIP" + + "Rotation\0223.google.container.v1beta1.Comp" + + "leteIPRotationRequest\032#.google.container" + + ".v1beta1.Operation\"\310\001\202\323\344\223\002\244\001\"D/v1beta1/{" + + "name=projects/*/locations/*/clusters/*}:" + + "completeIpRotation:\001*ZY\"T/v1beta1/projec" + + "ts/{project_id}/zones/{zone}/clusters/{c" + + "luster_id}:completeIpRotation:\001*\332A\032proje" + + "ct_id,zone,cluster_id\022\245\002\n\017SetNodePoolSiz" + + "e\0220.google.container.v1beta1.SetNodePool" + + "SizeRequest\032#.google.container.v1beta1.O" + + "peration\"\272\001\202\323\344\223\002\263\001\"E/v1beta1/{name=proje" + + "cts/*/locations/*/clusters/*/nodePools/*" + + "}:setSize:\001*Zg\"b/v1beta1/projects/{proje" + + "ct_id}/zones/{zone}/clusters/{cluster_id" + + "}/nodePools/{node_pool_id}/setSize:\001*\022\300\002" + + "\n\020SetNetworkPolicy\0221.google.container.v1" + + "beta1.SetNetworkPolicyRequest\032#.google.c" + + "ontainer.v1beta1.Operation\"\323\001\202\323\344\223\002\240\001\"B/v" + + "1beta1/{name=projects/*/locations/*/clus" + + "ters/*}:setNetworkPolicy:\001*ZW\"R/v1beta1/" + + "projects/{project_id}/zones/{zone}/clust" + + "ers/{cluster_id}:setNetworkPolicy:\001*\332A)p" + + "roject_id,zone,cluster_id,network_policy" + + "\022\324\002\n\024SetMaintenancePolicy\0225.google.conta" + + "iner.v1beta1.SetMaintenancePolicyRequest" + + "\032#.google.container.v1beta1.Operation\"\337\001" + + "\202\323\344\223\002\250\001\"F/v1beta1/{name=projects/*/locat" + + "ions/*/clusters/*}:setMaintenancePolicy:" + + "\001*Z[\"V/v1beta1/projects/{project_id}/zon" + + "es/{zone}/clusters/{cluster_id}:setMaint" + + "enancePolicy:\001*\332A-project_id,zone,cluste" + + "r_id,maintenance_policy\022\324\001\n\025ListUsableSu" + + "bnetworks\0226.google.container.v1beta1.Lis" + + "tUsableSubnetworksRequest\0327.google.conta" + + "iner.v1beta1.ListUsableSubnetworksRespon" + + "se\"J\202\323\344\223\002;\0229/v1beta1/{parent=projects/*}" + + "/aggregated/usableSubnetworks\332A\006parent\022\251" + + "\001\n\rListLocations\022..google.container.v1be" + + "ta1.ListLocationsRequest\032/.google.contai" + + "ner.v1beta1.ListLocationsResponse\"7\202\323\344\223\002" + + "(\022&/v1beta1/{parent=projects/*}/location" + + "s\332A\006parent\032L\312A\030container.googleapis.com\322" + + "A.https://www.googleapis.com/auth/cloud-" + + "platformB\241\002\n\034com.google.container.v1beta" + + "1B\023ClusterServiceProtoP\001ZAgoogle.golang." + + "org/genproto/googleapis/container/v1beta" + + "1;container\252\002\036Google.Cloud.Container.V1B" + + "eta1\312\002\036Google\\Cloud\\Container\\V1beta1\352\002!" + + "Google::Cloud::Container::V1beta1\352A@\n\033pu" + + "bsub.googleapis.com/Topic\022!projects/{pro" + + "ject}/topics/{topic}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1678,7 +1772,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LinuxNodeConfig", "KubeletConfig", "EphemeralStorageConfig", + "GcfsConfig", + "AdvancedMachineFeatures", "Gvnic", + "Spot", }); internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_descriptor = internal_static_google_container_v1beta1_NodeConfig_descriptor.getNestedTypes().get(0); @@ -1696,8 +1793,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_container_v1beta1_NodeNetworkConfig_descriptor = + internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_container_v1beta1_AdvancedMachineFeatures_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor, + new java.lang.String[] { + "ThreadsPerCore", "ThreadsPerCore", + }); + internal_static_google_container_v1beta1_NodeNetworkConfig_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_container_v1beta1_NodeNetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NodeNetworkConfig_descriptor, @@ -1705,7 +1810,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreatePodRange", "PodRange", "PodIpv4CidrBlock", }); internal_static_google_container_v1beta1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_container_v1beta1_ShieldedInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ShieldedInstanceConfig_descriptor, @@ -1713,7 +1818,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableSecureBoot", "EnableIntegrityMonitoring", }); internal_static_google_container_v1beta1_SandboxConfig_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_container_v1beta1_SandboxConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SandboxConfig_descriptor, @@ -1721,15 +1826,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SandboxType", "Type", }); internal_static_google_container_v1beta1_EphemeralStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_container_v1beta1_EphemeralStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_EphemeralStorageConfig_descriptor, new java.lang.String[] { "LocalSsdCount", }); + internal_static_google_container_v1beta1_GcfsConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_container_v1beta1_GcfsConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_GcfsConfig_descriptor, + new java.lang.String[] { + "Enabled", + }); internal_static_google_container_v1beta1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_container_v1beta1_ReservationAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ReservationAffinity_descriptor, @@ -1737,7 +1850,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConsumeReservationType", "Key", "Values", }); internal_static_google_container_v1beta1_NodeTaint_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_container_v1beta1_NodeTaint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NodeTaint_descriptor, @@ -1745,7 +1858,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", "Effect", }); internal_static_google_container_v1beta1_NodeTaints_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_container_v1beta1_NodeTaints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NodeTaints_descriptor, @@ -1753,7 +1866,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Taints", }); internal_static_google_container_v1beta1_NodeLabels_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_container_v1beta1_NodeLabels_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NodeLabels_descriptor, @@ -1769,7 +1882,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_container_v1beta1_NetworkTags_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_container_v1beta1_NetworkTags_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NetworkTags_descriptor, @@ -1777,7 +1890,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Tags", }); internal_static_google_container_v1beta1_MasterAuth_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_container_v1beta1_MasterAuth_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_MasterAuth_descriptor, @@ -1790,7 +1903,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ClientKey", }); internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_container_v1beta1_ClientCertificateConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor, @@ -1798,7 +1911,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IssueClientCertificate", }); internal_static_google_container_v1beta1_AddonsConfig_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_container_v1beta1_AddonsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_AddonsConfig_descriptor, @@ -1813,9 +1926,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConfigConnectorConfig", "GcePersistentDiskCsiDriverConfig", "KalmConfig", + "GcpFilestoreCsiDriverConfig", + "GkeBackupAgentConfig", }); internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_container_v1beta1_HttpLoadBalancing_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor, @@ -1823,7 +1938,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disabled", }); internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_container_v1beta1_HorizontalPodAutoscaling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor, @@ -1831,7 +1946,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disabled", }); internal_static_google_container_v1beta1_KubernetesDashboard_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_container_v1beta1_KubernetesDashboard_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_KubernetesDashboard_descriptor, @@ -1839,7 +1954,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disabled", }); internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_container_v1beta1_NetworkPolicyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor, @@ -1847,7 +1962,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disabled", }); internal_static_google_container_v1beta1_DnsCacheConfig_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_container_v1beta1_DnsCacheConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_DnsCacheConfig_descriptor, @@ -1855,15 +1970,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_KalmConfig_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_container_v1beta1_KalmConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_KalmConfig_descriptor, new java.lang.String[] { "Enabled", }); + internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_container_v1beta1_GkeBackupAgentConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor, + new java.lang.String[] { + "Enabled", + }); internal_static_google_container_v1beta1_ConfigConnectorConfig_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(24); internal_static_google_container_v1beta1_ConfigConnectorConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ConfigConnectorConfig_descriptor, @@ -1871,15 +1994,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(25); internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_descriptor, new java.lang.String[] { "Enabled", }); + internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor, + new java.lang.String[] { + "Enabled", + }); internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(27); internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_descriptor, @@ -1887,7 +2018,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(28); internal_static_google_container_v1beta1_PrivateClusterConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor, @@ -1901,7 +2032,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MasterGlobalAccessConfig", }); internal_static_google_container_v1beta1_IstioConfig_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(29); internal_static_google_container_v1beta1_IstioConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_IstioConfig_descriptor, @@ -1909,7 +2040,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disabled", "Auth", }); internal_static_google_container_v1beta1_CloudRunConfig_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(30); internal_static_google_container_v1beta1_CloudRunConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_CloudRunConfig_descriptor, @@ -1917,7 +2048,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disabled", "LoadBalancerType", }); internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(31); internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor, @@ -1935,7 +2066,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "CidrBlock", }); internal_static_google_container_v1beta1_LegacyAbac_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(32); internal_static_google_container_v1beta1_LegacyAbac_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_LegacyAbac_descriptor, @@ -1943,7 +2074,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_NetworkPolicy_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(33); internal_static_google_container_v1beta1_NetworkPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NetworkPolicy_descriptor, @@ -1951,7 +2082,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Provider", "Enabled", }); internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(34); internal_static_google_container_v1beta1_IPAllocationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor, @@ -1972,7 +2103,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UseRoutes", }); internal_static_google_container_v1beta1_BinaryAuthorization_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(35); internal_static_google_container_v1beta1_BinaryAuthorization_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_BinaryAuthorization_descriptor, @@ -1980,7 +2111,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(36); internal_static_google_container_v1beta1_PodSecurityPolicyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor, @@ -1988,7 +2119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(37); internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_descriptor, @@ -1996,7 +2127,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", "SecurityGroup", }); internal_static_google_container_v1beta1_ClusterTelemetry_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(38); internal_static_google_container_v1beta1_ClusterTelemetry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ClusterTelemetry_descriptor, @@ -2004,7 +2135,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", }); internal_static_google_container_v1beta1_Cluster_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(39); internal_static_google_container_v1beta1_Cluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_Cluster_descriptor, @@ -2045,6 +2176,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReleaseChannel", "WorkloadIdentityConfig", "WorkloadCertificates", + "MeshCertificates", "ClusterTelemetry", "TpuConfig", "NotificationConfig", @@ -2086,7 +2218,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_container_v1beta1_NodePoolDefaults_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(40); internal_static_google_container_v1beta1_NodePoolDefaults_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NodePoolDefaults_descriptor, @@ -2094,13 +2226,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeConfigDefaults", }); internal_static_google_container_v1beta1_NodeConfigDefaults_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(41); internal_static_google_container_v1beta1_NodeConfigDefaults_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NodeConfigDefaults_descriptor, - new java.lang.String[] {}); + new java.lang.String[] { + "GcfsConfig", + }); internal_static_google_container_v1beta1_ClusterUpdate_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(42); internal_static_google_container_v1beta1_ClusterUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ClusterUpdate_descriptor, @@ -2130,9 +2264,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DesiredPrivateIpv6GoogleAccess", "DesiredNotificationConfig", "DesiredMasterVersion", + "DesiredGcfsConfig", "DesiredDatabaseEncryption", "DesiredWorkloadIdentityConfig", "DesiredWorkloadCertificates", + "DesiredMeshCertificates", "DesiredShieldedNodes", "DesiredMaster", "DesiredDnsConfig", @@ -2143,7 +2279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DesiredIdentityServiceConfig", }); internal_static_google_container_v1beta1_Operation_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(43); internal_static_google_container_v1beta1_Operation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_Operation_descriptor, @@ -2165,7 +2301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Error", }); internal_static_google_container_v1beta1_OperationProgress_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(44); internal_static_google_container_v1beta1_OperationProgress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_OperationProgress_descriptor, @@ -2183,7 +2319,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "IntValue", "DoubleValue", "StringValue", "Value", }); internal_static_google_container_v1beta1_CreateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(45); internal_static_google_container_v1beta1_CreateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_CreateClusterRequest_descriptor, @@ -2191,7 +2327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "Cluster", "Parent", }); internal_static_google_container_v1beta1_GetClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(46); internal_static_google_container_v1beta1_GetClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_GetClusterRequest_descriptor, @@ -2199,7 +2335,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "Name", }); internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(47); internal_static_google_container_v1beta1_UpdateClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor, @@ -2207,7 +2343,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "Update", "Name", }); internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(48); internal_static_google_container_v1beta1_UpdateNodePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor, @@ -2227,10 +2363,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Labels", "LinuxNodeConfig", "KubeletConfig", + "GcfsConfig", "Gvnic", }); internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(49); internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor, @@ -2238,7 +2375,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Autoscaling", "Name", }); internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(50); internal_static_google_container_v1beta1_SetLoggingServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor, @@ -2246,7 +2383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "LoggingService", "Name", }); internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(51); internal_static_google_container_v1beta1_SetMonitoringServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor, @@ -2254,7 +2391,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "MonitoringService", "Name", }); internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(52); internal_static_google_container_v1beta1_SetAddonsConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor, @@ -2262,7 +2399,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "AddonsConfig", "Name", }); internal_static_google_container_v1beta1_SetLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(53); internal_static_google_container_v1beta1_SetLocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SetLocationsRequest_descriptor, @@ -2270,7 +2407,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "Locations", "Name", }); internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(54); internal_static_google_container_v1beta1_UpdateMasterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor, @@ -2278,7 +2415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "MasterVersion", "Name", }); internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(55); internal_static_google_container_v1beta1_SetMasterAuthRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor, @@ -2286,7 +2423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "Action", "Update", "Name", }); internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(56); internal_static_google_container_v1beta1_DeleteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor, @@ -2294,7 +2431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "Name", }); internal_static_google_container_v1beta1_ListClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(57); internal_static_google_container_v1beta1_ListClustersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ListClustersRequest_descriptor, @@ -2302,7 +2439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "Parent", }); internal_static_google_container_v1beta1_ListClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(58); internal_static_google_container_v1beta1_ListClustersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ListClustersResponse_descriptor, @@ -2310,7 +2447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Clusters", "MissingZones", }); internal_static_google_container_v1beta1_GetOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(59); internal_static_google_container_v1beta1_GetOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_GetOperationRequest_descriptor, @@ -2318,7 +2455,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "OperationId", "Name", }); internal_static_google_container_v1beta1_ListOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(60); internal_static_google_container_v1beta1_ListOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ListOperationsRequest_descriptor, @@ -2326,7 +2463,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "Parent", }); internal_static_google_container_v1beta1_CancelOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(61); internal_static_google_container_v1beta1_CancelOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_CancelOperationRequest_descriptor, @@ -2334,7 +2471,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "OperationId", "Name", }); internal_static_google_container_v1beta1_ListOperationsResponse_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(62); internal_static_google_container_v1beta1_ListOperationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ListOperationsResponse_descriptor, @@ -2342,7 +2479,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operations", "MissingZones", }); internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(63); internal_static_google_container_v1beta1_GetServerConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor, @@ -2350,7 +2487,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "Name", }); internal_static_google_container_v1beta1_ServerConfig_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(64); internal_static_google_container_v1beta1_ServerConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ServerConfig_descriptor, @@ -2390,7 +2527,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_container_v1beta1_WindowsVersions_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(65); internal_static_google_container_v1beta1_WindowsVersions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_WindowsVersions_descriptor, @@ -2406,7 +2543,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ImageType", "OsVersion", "SupportEndDate", }); internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(66); internal_static_google_container_v1beta1_CreateNodePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor, @@ -2414,7 +2551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "NodePool", "Parent", }); internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(63); + getDescriptor().getMessageTypes().get(67); internal_static_google_container_v1beta1_DeleteNodePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor, @@ -2422,7 +2559,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Name", }); internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(64); + getDescriptor().getMessageTypes().get(68); internal_static_google_container_v1beta1_ListNodePoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor, @@ -2430,7 +2567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "Parent", }); internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(65); + getDescriptor().getMessageTypes().get(69); internal_static_google_container_v1beta1_GetNodePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor, @@ -2438,7 +2575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Name", }); internal_static_google_container_v1beta1_NodePool_descriptor = - getDescriptor().getMessageTypes().get(66); + getDescriptor().getMessageTypes().get(70); internal_static_google_container_v1beta1_NodePool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NodePool_descriptor, @@ -2459,6 +2596,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Conditions", "PodIpv4CidrSize", "UpgradeSettings", + "PlacementPolicy", }); internal_static_google_container_v1beta1_NodePool_UpgradeSettings_descriptor = internal_static_google_container_v1beta1_NodePool_descriptor.getNestedTypes().get(0); @@ -2468,8 +2606,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "MaxSurge", "MaxUnavailable", }); + internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor = + internal_static_google_container_v1beta1_NodePool_descriptor.getNestedTypes().get(1); + internal_static_google_container_v1beta1_NodePool_PlacementPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor, + new java.lang.String[] { + "Type", + }); internal_static_google_container_v1beta1_NodeManagement_descriptor = - getDescriptor().getMessageTypes().get(67); + getDescriptor().getMessageTypes().get(71); internal_static_google_container_v1beta1_NodeManagement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NodeManagement_descriptor, @@ -2477,7 +2623,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutoUpgrade", "AutoRepair", "UpgradeOptions", }); internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor = - getDescriptor().getMessageTypes().get(68); + getDescriptor().getMessageTypes().get(72); internal_static_google_container_v1beta1_AutoUpgradeOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor, @@ -2485,7 +2631,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutoUpgradeStartTime", "Description", }); internal_static_google_container_v1beta1_MaintenancePolicy_descriptor = - getDescriptor().getMessageTypes().get(69); + getDescriptor().getMessageTypes().get(73); internal_static_google_container_v1beta1_MaintenancePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_MaintenancePolicy_descriptor, @@ -2493,7 +2639,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Window", "ResourceVersion", }); internal_static_google_container_v1beta1_MaintenanceWindow_descriptor = - getDescriptor().getMessageTypes().get(70); + getDescriptor().getMessageTypes().get(74); internal_static_google_container_v1beta1_MaintenanceWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_MaintenanceWindow_descriptor, @@ -2511,15 +2657,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_container_v1beta1_TimeWindow_descriptor = - getDescriptor().getMessageTypes().get(71); + getDescriptor().getMessageTypes().get(75); internal_static_google_container_v1beta1_TimeWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_TimeWindow_descriptor, new java.lang.String[] { - "StartTime", "EndTime", + "MaintenanceExclusionOptions", "StartTime", "EndTime", "Options", + }); + internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor = + getDescriptor().getMessageTypes().get(76); + internal_static_google_container_v1beta1_MaintenanceExclusionOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor, + new java.lang.String[] { + "Scope", }); internal_static_google_container_v1beta1_RecurringTimeWindow_descriptor = - getDescriptor().getMessageTypes().get(72); + getDescriptor().getMessageTypes().get(77); internal_static_google_container_v1beta1_RecurringTimeWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_RecurringTimeWindow_descriptor, @@ -2527,7 +2681,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Window", "Recurrence", }); internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor = - getDescriptor().getMessageTypes().get(73); + getDescriptor().getMessageTypes().get(78); internal_static_google_container_v1beta1_DailyMaintenanceWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor, @@ -2535,7 +2689,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "Duration", }); internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor = - getDescriptor().getMessageTypes().get(74); + getDescriptor().getMessageTypes().get(79); internal_static_google_container_v1beta1_SetNodePoolManagementRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor, @@ -2543,7 +2697,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Management", "Name", }); internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor = - getDescriptor().getMessageTypes().get(75); + getDescriptor().getMessageTypes().get(80); internal_static_google_container_v1beta1_SetNodePoolSizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor, @@ -2551,7 +2705,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "NodePoolId", "NodeCount", "Name", }); internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor = - getDescriptor().getMessageTypes().get(76); + getDescriptor().getMessageTypes().get(81); internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor, @@ -2559,7 +2713,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "NodePoolId", "Name", }); internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor = - getDescriptor().getMessageTypes().get(77); + getDescriptor().getMessageTypes().get(82); internal_static_google_container_v1beta1_ListNodePoolsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor, @@ -2567,7 +2721,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodePools", }); internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor = - getDescriptor().getMessageTypes().get(78); + getDescriptor().getMessageTypes().get(83); internal_static_google_container_v1beta1_ClusterAutoscaling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor, @@ -2579,7 +2733,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutoprovisioningLocations", }); internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_descriptor = - getDescriptor().getMessageTypes().get(79); + getDescriptor().getMessageTypes().get(84); internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_descriptor, @@ -2596,7 +2750,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ImageType", }); internal_static_google_container_v1beta1_ResourceLimit_descriptor = - getDescriptor().getMessageTypes().get(80); + getDescriptor().getMessageTypes().get(85); internal_static_google_container_v1beta1_ResourceLimit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ResourceLimit_descriptor, @@ -2604,7 +2758,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourceType", "Minimum", "Maximum", }); internal_static_google_container_v1beta1_NodePoolAutoscaling_descriptor = - getDescriptor().getMessageTypes().get(81); + getDescriptor().getMessageTypes().get(86); internal_static_google_container_v1beta1_NodePoolAutoscaling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NodePoolAutoscaling_descriptor, @@ -2612,7 +2766,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", "MinNodeCount", "MaxNodeCount", "Autoprovisioned", }); internal_static_google_container_v1beta1_SetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(82); + getDescriptor().getMessageTypes().get(87); internal_static_google_container_v1beta1_SetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SetLabelsRequest_descriptor, @@ -2630,7 +2784,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor = - getDescriptor().getMessageTypes().get(83); + getDescriptor().getMessageTypes().get(88); internal_static_google_container_v1beta1_SetLegacyAbacRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor, @@ -2638,7 +2792,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "Enabled", "Name", }); internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor = - getDescriptor().getMessageTypes().get(84); + getDescriptor().getMessageTypes().get(89); internal_static_google_container_v1beta1_StartIPRotationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor, @@ -2646,7 +2800,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "Name", "RotateCredentials", }); internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor = - getDescriptor().getMessageTypes().get(85); + getDescriptor().getMessageTypes().get(90); internal_static_google_container_v1beta1_CompleteIPRotationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor, @@ -2654,15 +2808,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "Name", }); internal_static_google_container_v1beta1_AcceleratorConfig_descriptor = - getDescriptor().getMessageTypes().get(86); + getDescriptor().getMessageTypes().get(91); internal_static_google_container_v1beta1_AcceleratorConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_AcceleratorConfig_descriptor, new java.lang.String[] { "AcceleratorCount", "AcceleratorType", "GpuPartitionSize", }); + internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor = + getDescriptor().getMessageTypes().get(92); + internal_static_google_container_v1beta1_ManagedPrometheusConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor, + new java.lang.String[] { + "Enabled", + }); internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor = - getDescriptor().getMessageTypes().get(87); + getDescriptor().getMessageTypes().get(93); internal_static_google_container_v1beta1_WorkloadMetadataConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor, @@ -2670,7 +2832,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeMetadata", "Mode", }); internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(88); + getDescriptor().getMessageTypes().get(94); internal_static_google_container_v1beta1_SetNetworkPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor, @@ -2678,7 +2840,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "NetworkPolicy", "Name", }); internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(89); + getDescriptor().getMessageTypes().get(95); internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor, @@ -2686,7 +2848,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Zone", "ClusterId", "MaintenancePolicy", "Name", }); internal_static_google_container_v1beta1_ListLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(90); + getDescriptor().getMessageTypes().get(96); internal_static_google_container_v1beta1_ListLocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ListLocationsRequest_descriptor, @@ -2694,7 +2856,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_container_v1beta1_ListLocationsResponse_descriptor = - getDescriptor().getMessageTypes().get(91); + getDescriptor().getMessageTypes().get(97); internal_static_google_container_v1beta1_ListLocationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ListLocationsResponse_descriptor, @@ -2702,7 +2864,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Locations", "NextPageToken", }); internal_static_google_container_v1beta1_Location_descriptor = - getDescriptor().getMessageTypes().get(92); + getDescriptor().getMessageTypes().get(98); internal_static_google_container_v1beta1_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_Location_descriptor, @@ -2710,7 +2872,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "Name", "Recommended", }); internal_static_google_container_v1beta1_StatusCondition_descriptor = - getDescriptor().getMessageTypes().get(93); + getDescriptor().getMessageTypes().get(99); internal_static_google_container_v1beta1_StatusCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_StatusCondition_descriptor, @@ -2718,7 +2880,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Code", "Message", "CanonicalCode", }); internal_static_google_container_v1beta1_NetworkConfig_descriptor = - getDescriptor().getMessageTypes().get(94); + getDescriptor().getMessageTypes().get(100); internal_static_google_container_v1beta1_NetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NetworkConfig_descriptor, @@ -2734,7 +2896,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceExternalIpsConfig", }); internal_static_google_container_v1beta1_ServiceExternalIPsConfig_descriptor = - getDescriptor().getMessageTypes().get(95); + getDescriptor().getMessageTypes().get(101); internal_static_google_container_v1beta1_ServiceExternalIPsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ServiceExternalIPsConfig_descriptor, @@ -2742,7 +2904,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(96); + getDescriptor().getMessageTypes().get(102); internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor, @@ -2750,7 +2912,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", }); internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor = - getDescriptor().getMessageTypes().get(97); + getDescriptor().getMessageTypes().get(103); internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor, @@ -2758,7 +2920,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subnetworks", "NextPageToken", }); internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor = - getDescriptor().getMessageTypes().get(98); + getDescriptor().getMessageTypes().get(104); internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor, @@ -2766,7 +2928,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RangeName", "IpCidrRange", "Status", }); internal_static_google_container_v1beta1_UsableSubnetwork_descriptor = - getDescriptor().getMessageTypes().get(99); + getDescriptor().getMessageTypes().get(105); internal_static_google_container_v1beta1_UsableSubnetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_UsableSubnetwork_descriptor, @@ -2774,7 +2936,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subnetwork", "Network", "IpCidrRange", "SecondaryIpRanges", "StatusMessage", }); internal_static_google_container_v1beta1_VerticalPodAutoscaling_descriptor = - getDescriptor().getMessageTypes().get(100); + getDescriptor().getMessageTypes().get(106); internal_static_google_container_v1beta1_VerticalPodAutoscaling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_VerticalPodAutoscaling_descriptor, @@ -2782,7 +2944,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_DefaultSnatStatus_descriptor = - getDescriptor().getMessageTypes().get(101); + getDescriptor().getMessageTypes().get(107); internal_static_google_container_v1beta1_DefaultSnatStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_DefaultSnatStatus_descriptor, @@ -2790,7 +2952,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disabled", }); internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_descriptor = - getDescriptor().getMessageTypes().get(102); + getDescriptor().getMessageTypes().get(108); internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_descriptor, @@ -2798,7 +2960,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_ILBSubsettingConfig_descriptor = - getDescriptor().getMessageTypes().get(103); + getDescriptor().getMessageTypes().get(109); internal_static_google_container_v1beta1_ILBSubsettingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ILBSubsettingConfig_descriptor, @@ -2806,7 +2968,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_DNSConfig_descriptor = - getDescriptor().getMessageTypes().get(104); + getDescriptor().getMessageTypes().get(110); internal_static_google_container_v1beta1_DNSConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_DNSConfig_descriptor, @@ -2814,7 +2976,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ClusterDns", "ClusterDnsScope", "ClusterDnsDomain", }); internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor = - getDescriptor().getMessageTypes().get(105); + getDescriptor().getMessageTypes().get(111); internal_static_google_container_v1beta1_MaxPodsConstraint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor, @@ -2822,7 +2984,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxPodsPerNode", }); internal_static_google_container_v1beta1_WorkloadIdentityConfig_descriptor = - getDescriptor().getMessageTypes().get(106); + getDescriptor().getMessageTypes().get(112); internal_static_google_container_v1beta1_WorkloadIdentityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_WorkloadIdentityConfig_descriptor, @@ -2830,15 +2992,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IdentityNamespace", "WorkloadPool", "IdentityProvider", }); internal_static_google_container_v1beta1_WorkloadCertificates_descriptor = - getDescriptor().getMessageTypes().get(107); + getDescriptor().getMessageTypes().get(113); internal_static_google_container_v1beta1_WorkloadCertificates_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_WorkloadCertificates_descriptor, new java.lang.String[] { "EnableCertificates", }); + internal_static_google_container_v1beta1_MeshCertificates_descriptor = + getDescriptor().getMessageTypes().get(114); + internal_static_google_container_v1beta1_MeshCertificates_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_MeshCertificates_descriptor, + new java.lang.String[] { + "EnableCertificates", + }); internal_static_google_container_v1beta1_DatabaseEncryption_descriptor = - getDescriptor().getMessageTypes().get(108); + getDescriptor().getMessageTypes().get(115); internal_static_google_container_v1beta1_DatabaseEncryption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_DatabaseEncryption_descriptor, @@ -2846,7 +3016,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "KeyName", }); internal_static_google_container_v1beta1_ResourceUsageExportConfig_descriptor = - getDescriptor().getMessageTypes().get(109); + getDescriptor().getMessageTypes().get(116); internal_static_google_container_v1beta1_ResourceUsageExportConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ResourceUsageExportConfig_descriptor, @@ -2874,7 +3044,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_ShieldedNodes_descriptor = - getDescriptor().getMessageTypes().get(110); + getDescriptor().getMessageTypes().get(117); internal_static_google_container_v1beta1_ShieldedNodes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ShieldedNodes_descriptor, @@ -2882,7 +3052,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_VirtualNIC_descriptor = - getDescriptor().getMessageTypes().get(111); + getDescriptor().getMessageTypes().get(118); internal_static_google_container_v1beta1_VirtualNIC_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_VirtualNIC_descriptor, @@ -2890,7 +3060,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_GetOpenIDConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(112); + getDescriptor().getMessageTypes().get(119); internal_static_google_container_v1beta1_GetOpenIDConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_GetOpenIDConfigRequest_descriptor, @@ -2898,7 +3068,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_container_v1beta1_GetOpenIDConfigResponse_descriptor = - getDescriptor().getMessageTypes().get(113); + getDescriptor().getMessageTypes().get(120); internal_static_google_container_v1beta1_GetOpenIDConfigResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_GetOpenIDConfigResponse_descriptor, @@ -2912,7 +3082,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GrantTypes", }); internal_static_google_container_v1beta1_GetJSONWebKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(114); + getDescriptor().getMessageTypes().get(121); internal_static_google_container_v1beta1_GetJSONWebKeysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_GetJSONWebKeysRequest_descriptor, @@ -2920,7 +3090,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_container_v1beta1_Jwk_descriptor = - getDescriptor().getMessageTypes().get(115); + getDescriptor().getMessageTypes().get(122); internal_static_google_container_v1beta1_Jwk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_Jwk_descriptor, @@ -2928,7 +3098,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Kty", "Alg", "Use", "Kid", "N", "E", "X", "Y", "Crv", }); internal_static_google_container_v1beta1_GetJSONWebKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(116); + getDescriptor().getMessageTypes().get(123); internal_static_google_container_v1beta1_GetJSONWebKeysResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_GetJSONWebKeysResponse_descriptor, @@ -2936,7 +3106,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Keys", }); internal_static_google_container_v1beta1_ReleaseChannel_descriptor = - getDescriptor().getMessageTypes().get(117); + getDescriptor().getMessageTypes().get(124); internal_static_google_container_v1beta1_ReleaseChannel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ReleaseChannel_descriptor, @@ -2944,7 +3114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Channel", }); internal_static_google_container_v1beta1_TpuConfig_descriptor = - getDescriptor().getMessageTypes().get(118); + getDescriptor().getMessageTypes().get(125); internal_static_google_container_v1beta1_TpuConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_TpuConfig_descriptor, @@ -2952,12 +3122,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", "UseServiceNetworking", "Ipv4CidrBlock", }); internal_static_google_container_v1beta1_Master_descriptor = - getDescriptor().getMessageTypes().get(119); + getDescriptor().getMessageTypes().get(126); internal_static_google_container_v1beta1_Master_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_Master_descriptor, new java.lang.String[] {}); internal_static_google_container_v1beta1_Autopilot_descriptor = - getDescriptor().getMessageTypes().get(120); + getDescriptor().getMessageTypes().get(127); internal_static_google_container_v1beta1_Autopilot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_Autopilot_descriptor, @@ -2965,7 +3135,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_NotificationConfig_descriptor = - getDescriptor().getMessageTypes().get(121); + getDescriptor().getMessageTypes().get(128); internal_static_google_container_v1beta1_NotificationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NotificationConfig_descriptor, @@ -2980,10 +3150,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_NotificationConfig_PubSub_descriptor, new java.lang.String[] { - "Enabled", "Topic", + "Enabled", "Topic", "Filter", + }); + internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor = + internal_static_google_container_v1beta1_NotificationConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_container_v1beta1_NotificationConfig_Filter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor, + new java.lang.String[] { + "EventType", }); internal_static_google_container_v1beta1_ConfidentialNodes_descriptor = - getDescriptor().getMessageTypes().get(122); + getDescriptor().getMessageTypes().get(129); internal_static_google_container_v1beta1_ConfidentialNodes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_ConfidentialNodes_descriptor, @@ -2991,7 +3171,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_UpgradeEvent_descriptor = - getDescriptor().getMessageTypes().get(123); + getDescriptor().getMessageTypes().get(130); internal_static_google_container_v1beta1_UpgradeEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_UpgradeEvent_descriptor, @@ -3004,15 +3184,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Resource", }); internal_static_google_container_v1beta1_UpgradeAvailableEvent_descriptor = - getDescriptor().getMessageTypes().get(124); + getDescriptor().getMessageTypes().get(131); internal_static_google_container_v1beta1_UpgradeAvailableEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_UpgradeAvailableEvent_descriptor, new java.lang.String[] { "Version", "ResourceType", "ReleaseChannel", "Resource", "WindowsVersions", }); + internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor = + getDescriptor().getMessageTypes().get(132); + internal_static_google_container_v1beta1_SecurityBulletinEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor, + new java.lang.String[] { + "ResourceTypeAffected", + "BulletinId", + "CveIds", + "Severity", + "BulletinUri", + "BriefDescription", + "AffectedSupportedMinors", + "PatchedVersions", + "SuggestedUpgradeTarget", + "ManualStepsRequired", + }); internal_static_google_container_v1beta1_IdentityServiceConfig_descriptor = - getDescriptor().getMessageTypes().get(125); + getDescriptor().getMessageTypes().get(133); internal_static_google_container_v1beta1_IdentityServiceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_IdentityServiceConfig_descriptor, @@ -3020,7 +3217,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", }); internal_static_google_container_v1beta1_LoggingConfig_descriptor = - getDescriptor().getMessageTypes().get(126); + getDescriptor().getMessageTypes().get(134); internal_static_google_container_v1beta1_LoggingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_LoggingConfig_descriptor, @@ -3028,7 +3225,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ComponentConfig", }); internal_static_google_container_v1beta1_LoggingComponentConfig_descriptor = - getDescriptor().getMessageTypes().get(127); + getDescriptor().getMessageTypes().get(135); internal_static_google_container_v1beta1_LoggingComponentConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_LoggingComponentConfig_descriptor, @@ -3036,15 +3233,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableComponents", }); internal_static_google_container_v1beta1_MonitoringConfig_descriptor = - getDescriptor().getMessageTypes().get(128); + getDescriptor().getMessageTypes().get(136); internal_static_google_container_v1beta1_MonitoringConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_MonitoringConfig_descriptor, new java.lang.String[] { - "ComponentConfig", + "ComponentConfig", "ManagedPrometheusConfig", }); internal_static_google_container_v1beta1_MonitoringComponentConfig_descriptor = - getDescriptor().getMessageTypes().get(129); + getDescriptor().getMessageTypes().get(137); internal_static_google_container_v1beta1_MonitoringComponentConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_container_v1beta1_MonitoringComponentConfig_descriptor, diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java index 5ca59ab0..6d28434b 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java @@ -581,6 +581,22 @@ private ClusterUpdate( desiredIdentityServiceConfig_ = subBuilder.buildPartial(); } + break; + } + case 538: + { + com.google.container.v1beta1.MeshCertificates.Builder subBuilder = null; + if (desiredMeshCertificates_ != null) { + subBuilder = desiredMeshCertificates_.toBuilder(); + } + desiredMeshCertificates_ = + input.readMessage( + com.google.container.v1beta1.MeshCertificates.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredMeshCertificates_); + desiredMeshCertificates_ = subBuilder.buildPartial(); + } + break; } case 802: @@ -588,6 +604,22 @@ private ClusterUpdate( java.lang.String s = input.readStringRequireUtf8(); desiredMasterVersion_ = s; + break; + } + case 874: + { + com.google.container.v1beta1.GcfsConfig.Builder subBuilder = null; + if (desiredGcfsConfig_ != null) { + subBuilder = desiredGcfsConfig_.toBuilder(); + } + desiredGcfsConfig_ = + input.readMessage( + com.google.container.v1beta1.GcfsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredGcfsConfig_); + desiredGcfsConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -1980,6 +2012,54 @@ public com.google.protobuf.ByteString getDesiredMasterVersionBytes() { } } + public static final int DESIRED_GCFS_CONFIG_FIELD_NUMBER = 109; + private com.google.container.v1beta1.GcfsConfig desiredGcfsConfig_; + /** + * + * + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * + * @return Whether the desiredGcfsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredGcfsConfig() { + return desiredGcfsConfig_ != null; + } + /** + * + * + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * + * @return The desiredGcfsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig() { + return desiredGcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : desiredGcfsConfig_; + } + /** + * + * + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { + return getDesiredGcfsConfig(); + } + public static final int DESIRED_DATABASE_ENCRYPTION_FIELD_NUMBER = 46; private com.google.container.v1beta1.DatabaseEncryption desiredDatabaseEncryption_; /** @@ -2133,6 +2213,58 @@ public com.google.container.v1beta1.WorkloadCertificates getDesiredWorkloadCerti return getDesiredWorkloadCertificates(); } + public static final int DESIRED_MESH_CERTIFICATES_FIELD_NUMBER = 67; + private com.google.container.v1beta1.MeshCertificates desiredMeshCertificates_; + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * + * @return Whether the desiredMeshCertificates field is set. + */ + @java.lang.Override + public boolean hasDesiredMeshCertificates() { + return desiredMeshCertificates_ != null; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * + * @return The desiredMeshCertificates. + */ + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates() { + return desiredMeshCertificates_ == null + ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() + : desiredMeshCertificates_; + } + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + @java.lang.Override + public com.google.container.v1beta1.MeshCertificatesOrBuilder + getDesiredMeshCertificatesOrBuilder() { + return getDesiredMeshCertificates(); + } + public static final int DESIRED_SHIELDED_NODES_FIELD_NUMBER = 48; private com.google.container.v1beta1.ShieldedNodes desiredShieldedNodes_; /** @@ -2668,9 +2800,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (desiredIdentityServiceConfig_ != null) { output.writeMessage(66, getDesiredIdentityServiceConfig()); } + if (desiredMeshCertificates_ != null) { + output.writeMessage(67, getDesiredMeshCertificates()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); } + if (desiredGcfsConfig_ != null) { + output.writeMessage(109, getDesiredGcfsConfig()); + } unknownFields.writeTo(output); } @@ -2841,9 +2979,17 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 66, getDesiredIdentityServiceConfig()); } + if (desiredMeshCertificates_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 67, getDesiredMeshCertificates()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); } + if (desiredGcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(109, getDesiredGcfsConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2949,6 +3095,10 @@ public boolean equals(final java.lang.Object obj) { return false; } if (!getDesiredMasterVersion().equals(other.getDesiredMasterVersion())) return false; + if (hasDesiredGcfsConfig() != other.hasDesiredGcfsConfig()) return false; + if (hasDesiredGcfsConfig()) { + if (!getDesiredGcfsConfig().equals(other.getDesiredGcfsConfig())) return false; + } if (hasDesiredDatabaseEncryption() != other.hasDesiredDatabaseEncryption()) return false; if (hasDesiredDatabaseEncryption()) { if (!getDesiredDatabaseEncryption().equals(other.getDesiredDatabaseEncryption())) @@ -2965,6 +3115,10 @@ public boolean equals(final java.lang.Object obj) { if (!getDesiredWorkloadCertificates().equals(other.getDesiredWorkloadCertificates())) return false; } + if (hasDesiredMeshCertificates() != other.hasDesiredMeshCertificates()) return false; + if (hasDesiredMeshCertificates()) { + if (!getDesiredMeshCertificates().equals(other.getDesiredMeshCertificates())) return false; + } if (hasDesiredShieldedNodes() != other.hasDesiredShieldedNodes()) return false; if (hasDesiredShieldedNodes()) { if (!getDesiredShieldedNodes().equals(other.getDesiredShieldedNodes())) return false; @@ -3097,6 +3251,10 @@ public int hashCode() { } hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getDesiredMasterVersion().hashCode(); + if (hasDesiredGcfsConfig()) { + hash = (37 * hash) + DESIRED_GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredGcfsConfig().hashCode(); + } if (hasDesiredDatabaseEncryption()) { hash = (37 * hash) + DESIRED_DATABASE_ENCRYPTION_FIELD_NUMBER; hash = (53 * hash) + getDesiredDatabaseEncryption().hashCode(); @@ -3109,6 +3267,10 @@ public int hashCode() { hash = (37 * hash) + DESIRED_WORKLOAD_CERTIFICATES_FIELD_NUMBER; hash = (53 * hash) + getDesiredWorkloadCertificates().hashCode(); } + if (hasDesiredMeshCertificates()) { + hash = (37 * hash) + DESIRED_MESH_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMeshCertificates().hashCode(); + } if (hasDesiredShieldedNodes()) { hash = (37 * hash) + DESIRED_SHIELDED_NODES_FIELD_NUMBER; hash = (53 * hash) + getDesiredShieldedNodes().hashCode(); @@ -3402,6 +3564,12 @@ public Builder clear() { } desiredMasterVersion_ = ""; + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = null; + } else { + desiredGcfsConfig_ = null; + desiredGcfsConfigBuilder_ = null; + } if (desiredDatabaseEncryptionBuilder_ == null) { desiredDatabaseEncryption_ = null; } else { @@ -3420,6 +3588,12 @@ public Builder clear() { desiredWorkloadCertificates_ = null; desiredWorkloadCertificatesBuilder_ = null; } + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = null; + } else { + desiredMeshCertificates_ = null; + desiredMeshCertificatesBuilder_ = null; + } if (desiredShieldedNodesBuilder_ == null) { desiredShieldedNodes_ = null; } else { @@ -3590,6 +3764,11 @@ public com.google.container.v1beta1.ClusterUpdate buildPartial() { result.desiredNotificationConfig_ = desiredNotificationConfigBuilder_.build(); } result.desiredMasterVersion_ = desiredMasterVersion_; + if (desiredGcfsConfigBuilder_ == null) { + result.desiredGcfsConfig_ = desiredGcfsConfig_; + } else { + result.desiredGcfsConfig_ = desiredGcfsConfigBuilder_.build(); + } if (desiredDatabaseEncryptionBuilder_ == null) { result.desiredDatabaseEncryption_ = desiredDatabaseEncryption_; } else { @@ -3605,6 +3784,11 @@ public com.google.container.v1beta1.ClusterUpdate buildPartial() { } else { result.desiredWorkloadCertificates_ = desiredWorkloadCertificatesBuilder_.build(); } + if (desiredMeshCertificatesBuilder_ == null) { + result.desiredMeshCertificates_ = desiredMeshCertificates_; + } else { + result.desiredMeshCertificates_ = desiredMeshCertificatesBuilder_.build(); + } if (desiredShieldedNodesBuilder_ == null) { result.desiredShieldedNodes_ = desiredShieldedNodes_; } else { @@ -3783,6 +3967,9 @@ public Builder mergeFrom(com.google.container.v1beta1.ClusterUpdate other) { desiredMasterVersion_ = other.desiredMasterVersion_; onChanged(); } + if (other.hasDesiredGcfsConfig()) { + mergeDesiredGcfsConfig(other.getDesiredGcfsConfig()); + } if (other.hasDesiredDatabaseEncryption()) { mergeDesiredDatabaseEncryption(other.getDesiredDatabaseEncryption()); } @@ -3792,6 +3979,9 @@ public Builder mergeFrom(com.google.container.v1beta1.ClusterUpdate other) { if (other.hasDesiredWorkloadCertificates()) { mergeDesiredWorkloadCertificates(other.getDesiredWorkloadCertificates()); } + if (other.hasDesiredMeshCertificates()) { + mergeDesiredMeshCertificates(other.getDesiredMeshCertificates()); + } if (other.hasDesiredShieldedNodes()) { mergeDesiredShieldedNodes(other.getDesiredShieldedNodes()); } @@ -8248,6 +8438,192 @@ public Builder setDesiredMasterVersionBytes(com.google.protobuf.ByteString value return this; } + private com.google.container.v1beta1.GcfsConfig desiredGcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + desiredGcfsConfigBuilder_; + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * + * @return Whether the desiredGcfsConfig field is set. + */ + public boolean hasDesiredGcfsConfig() { + return desiredGcfsConfigBuilder_ != null || desiredGcfsConfig_ != null; + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * + * @return The desiredGcfsConfig. + */ + public com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig() { + if (desiredGcfsConfigBuilder_ == null) { + return desiredGcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : desiredGcfsConfig_; + } else { + return desiredGcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder setDesiredGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (desiredGcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredGcfsConfig_ = value; + onChanged(); + } else { + desiredGcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder setDesiredGcfsConfig( + com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredGcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder mergeDesiredGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (desiredGcfsConfigBuilder_ == null) { + if (desiredGcfsConfig_ != null) { + desiredGcfsConfig_ = + com.google.container.v1beta1.GcfsConfig.newBuilder(desiredGcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredGcfsConfig_ = value; + } + onChanged(); + } else { + desiredGcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder clearDesiredGcfsConfig() { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = null; + onChanged(); + } else { + desiredGcfsConfig_ = null; + desiredGcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public com.google.container.v1beta1.GcfsConfig.Builder getDesiredGcfsConfigBuilder() { + + onChanged(); + return getDesiredGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { + if (desiredGcfsConfigBuilder_ != null) { + return desiredGcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredGcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : desiredGcfsConfig_; + } + } + /** + * + * + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + getDesiredGcfsConfigFieldBuilder() { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder>( + getDesiredGcfsConfig(), getParentForChildren(), isClean()); + desiredGcfsConfig_ = null; + } + return desiredGcfsConfigBuilder_; + } + private com.google.container.v1beta1.DatabaseEncryption desiredDatabaseEncryption_; private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1beta1.DatabaseEncryption, @@ -8848,6 +9224,204 @@ public Builder clearDesiredWorkloadCertificates() { return desiredWorkloadCertificatesBuilder_; } + private com.google.container.v1beta1.MeshCertificates desiredMeshCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, + com.google.container.v1beta1.MeshCertificates.Builder, + com.google.container.v1beta1.MeshCertificatesOrBuilder> + desiredMeshCertificatesBuilder_; + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * + * @return Whether the desiredMeshCertificates field is set. + */ + public boolean hasDesiredMeshCertificates() { + return desiredMeshCertificatesBuilder_ != null || desiredMeshCertificates_ != null; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * + * @return The desiredMeshCertificates. + */ + public com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates() { + if (desiredMeshCertificatesBuilder_ == null) { + return desiredMeshCertificates_ == null + ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() + : desiredMeshCertificates_; + } else { + return desiredMeshCertificatesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder setDesiredMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { + if (desiredMeshCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMeshCertificates_ = value; + onChanged(); + } else { + desiredMeshCertificatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder setDesiredMeshCertificates( + com.google.container.v1beta1.MeshCertificates.Builder builderForValue) { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = builderForValue.build(); + onChanged(); + } else { + desiredMeshCertificatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder mergeDesiredMeshCertificates( + com.google.container.v1beta1.MeshCertificates value) { + if (desiredMeshCertificatesBuilder_ == null) { + if (desiredMeshCertificates_ != null) { + desiredMeshCertificates_ = + com.google.container.v1beta1.MeshCertificates.newBuilder(desiredMeshCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredMeshCertificates_ = value; + } + onChanged(); + } else { + desiredMeshCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder clearDesiredMeshCertificates() { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = null; + onChanged(); + } else { + desiredMeshCertificates_ = null; + desiredMeshCertificatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public com.google.container.v1beta1.MeshCertificates.Builder + getDesiredMeshCertificatesBuilder() { + + onChanged(); + return getDesiredMeshCertificatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public com.google.container.v1beta1.MeshCertificatesOrBuilder + getDesiredMeshCertificatesOrBuilder() { + if (desiredMeshCertificatesBuilder_ != null) { + return desiredMeshCertificatesBuilder_.getMessageOrBuilder(); + } else { + return desiredMeshCertificates_ == null + ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() + : desiredMeshCertificates_; + } + } + /** + * + * + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, + com.google.container.v1beta1.MeshCertificates.Builder, + com.google.container.v1beta1.MeshCertificatesOrBuilder> + getDesiredMeshCertificatesFieldBuilder() { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, + com.google.container.v1beta1.MeshCertificates.Builder, + com.google.container.v1beta1.MeshCertificatesOrBuilder>( + getDesiredMeshCertificates(), getParentForChildren(), isClean()); + desiredMeshCertificates_ = null; + } + return desiredMeshCertificatesBuilder_; + } + private com.google.container.v1beta1.ShieldedNodes desiredShieldedNodes_; private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1beta1.ShieldedNodes, diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java index 8cadc5f9..765c7c6e 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java @@ -982,6 +982,41 @@ public interface ClusterUpdateOrBuilder */ com.google.protobuf.ByteString getDesiredMasterVersionBytes(); + /** + * + * + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * + * @return Whether the desiredGcfsConfig field is set. + */ + boolean hasDesiredGcfsConfig(); + /** + * + * + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * + * @return The desiredGcfsConfig. + */ + com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig(); + /** + * + * + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder(); + /** * * @@ -1095,6 +1130,44 @@ public interface ClusterUpdateOrBuilder com.google.container.v1beta1.WorkloadCertificatesOrBuilder getDesiredWorkloadCertificatesOrBuilder(); + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * + * @return Whether the desiredMeshCertificates field is set. + */ + boolean hasDesiredMeshCertificates(); + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * + * @return The desiredMeshCertificates. + */ + com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates(); + /** + * + * + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + com.google.container.v1beta1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder(); + /** * * diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfig.java new file mode 100644 index 00000000..18ba5663 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfig.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * GcfsConfig contains configurations of Google Container File System.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GcfsConfig} + */ +public final class GcfsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcfsConfig) + GcfsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcfsConfig.newBuilder() to construct. + private GcfsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcfsConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcfsConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GcfsConfig( + 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcfsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcfsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcfsConfig.class, + com.google.container.v1beta1.GcfsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether to use GCFS.
+   * 
+ * + * 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.v1beta1.GcfsConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.GcfsConfig other = (com.google.container.v1beta1.GcfsConfig) 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.v1beta1.GcfsConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GcfsConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GcfsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GcfsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GcfsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GcfsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GcfsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GcfsConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GcfsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GcfsConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GcfsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GcfsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.GcfsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GcfsConfig contains configurations of Google Container File System.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GcfsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GcfsConfig) + com.google.container.v1beta1.GcfsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcfsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcfsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcfsConfig.class, + com.google.container.v1beta1.GcfsConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.GcfsConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcfsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GcfsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig build() { + com.google.container.v1beta1.GcfsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig buildPartial() { + com.google.container.v1beta1.GcfsConfig result = + new com.google.container.v1beta1.GcfsConfig(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.v1beta1.GcfsConfig) { + return mergeFrom((com.google.container.v1beta1.GcfsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GcfsConfig other) { + if (other == com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GcfsConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.GcfsConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether to use GCFS.
+     * 
+ * + * 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 to use GCFS.
+     * 
+ * + * 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.v1beta1.GcfsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcfsConfig) + private static final com.google.container.v1beta1.GcfsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GcfsConfig(); + } + + public static com.google.container.v1beta1.GcfsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcfsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcfsConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfigOrBuilder.java new file mode 100644 index 00000000..9e15cbe7 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfigOrBuilder.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GcfsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcfsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether to use GCFS.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfig.java new file mode 100644 index 00000000..bc174879 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfig.java @@ -0,0 +1,547 @@ +/* + * 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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for the GCP Filestore CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GcpFilestoreCsiDriverConfig} + */ +public final class GcpFilestoreCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + GcpFilestoreCsiDriverConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcpFilestoreCsiDriverConfig.newBuilder() to construct. + private GcpFilestoreCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcpFilestoreCsiDriverConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcpFilestoreCsiDriverConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GcpFilestoreCsiDriverConfig( + 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.class, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether the GCP Filestore CSI driver 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.v1beta1.GcpFilestoreCsiDriverConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig other = + (com.google.container.v1beta1.GcpFilestoreCsiDriverConfig) 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.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 GCP Filestore CSI driver.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GcpFilestoreCsiDriverConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.class, + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig build() { + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig buildPartial() { + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig result = + new com.google.container.v1beta1.GcpFilestoreCsiDriverConfig(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.v1beta1.GcpFilestoreCsiDriverConfig) { + return mergeFrom((com.google.container.v1beta1.GcpFilestoreCsiDriverConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GcpFilestoreCsiDriverConfig other) { + if (other == com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.GcpFilestoreCsiDriverConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the GCP Filestore CSI driver 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 the GCP Filestore CSI driver 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.v1beta1.GcpFilestoreCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + private static final com.google.container.v1beta1.GcpFilestoreCsiDriverConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GcpFilestoreCsiDriverConfig(); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcpFilestoreCsiDriverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcpFilestoreCsiDriverConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfigOrBuilder.java new file mode 100644 index 00000000..b1b391d8 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfigOrBuilder.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GcpFilestoreCsiDriverConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the GCP Filestore CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java index 61d3bd50..94923f11 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java @@ -118,7 +118,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The cluster (project, location, cluster id) to get the discovery document
+   * The cluster (project, location, cluster name) to get the discovery document
    * for. Specified in the format `projects/*/locations/*/clusters/*`.
    * 
* @@ -142,7 +142,7 @@ public java.lang.String getParent() { * * *
-   * The cluster (project, location, cluster id) to get the discovery document
+   * The cluster (project, location, cluster name) to get the discovery document
    * for. Specified in the format `projects/*/locations/*/clusters/*`.
    * 
* @@ -487,7 +487,7 @@ public Builder mergeFrom( * * *
-     * The cluster (project, location, cluster id) to get the discovery document
+     * The cluster (project, location, cluster name) to get the discovery document
      * for. Specified in the format `projects/*/locations/*/clusters/*`.
      * 
* @@ -510,7 +510,7 @@ public java.lang.String getParent() { * * *
-     * The cluster (project, location, cluster id) to get the discovery document
+     * The cluster (project, location, cluster name) to get the discovery document
      * for. Specified in the format `projects/*/locations/*/clusters/*`.
      * 
* @@ -533,7 +533,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * The cluster (project, location, cluster id) to get the discovery document
+     * The cluster (project, location, cluster name) to get the discovery document
      * for. Specified in the format `projects/*/locations/*/clusters/*`.
      * 
* @@ -555,7 +555,7 @@ public Builder setParent(java.lang.String value) { * * *
-     * The cluster (project, location, cluster id) to get the discovery document
+     * The cluster (project, location, cluster name) to get the discovery document
      * for. Specified in the format `projects/*/locations/*/clusters/*`.
      * 
* @@ -573,7 +573,7 @@ public Builder clearParent() { * * *
-     * The cluster (project, location, cluster id) to get the discovery document
+     * The cluster (project, location, cluster name) to get the discovery document
      * for. Specified in the format `projects/*/locations/*/clusters/*`.
      * 
* diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java index 5613bd0c..41935945 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface GetOpenIDConfigRequestOrBuilder * * *
-   * The cluster (project, location, cluster id) to get the discovery document
+   * The cluster (project, location, cluster name) to get the discovery document
    * for. Specified in the format `projects/*/locations/*/clusters/*`.
    * 
* @@ -40,7 +40,7 @@ public interface GetOpenIDConfigRequestOrBuilder * * *
-   * The cluster (project, location, cluster id) to get the discovery document
+   * The cluster (project, location, cluster name) to get the discovery document
    * for. Specified in the format `projects/*/locations/*/clusters/*`.
    * 
* diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfig.java new file mode 100644 index 00000000..e651671c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfig.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for the Backup for GKE Agent.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GkeBackupAgentConfig} + */ +public final class GkeBackupAgentConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GkeBackupAgentConfig) + GkeBackupAgentConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GkeBackupAgentConfig.newBuilder() to construct. + private GkeBackupAgentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GkeBackupAgentConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GkeBackupAgentConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GkeBackupAgentConfig( + 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GkeBackupAgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GkeBackupAgentConfig.class, + com.google.container.v1beta1.GkeBackupAgentConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether the Backup for GKE agent 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.v1beta1.GkeBackupAgentConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.GkeBackupAgentConfig other = + (com.google.container.v1beta1.GkeBackupAgentConfig) 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.v1beta1.GkeBackupAgentConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.GkeBackupAgentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 Backup for GKE Agent.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GkeBackupAgentConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GkeBackupAgentConfig) + com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GkeBackupAgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GkeBackupAgentConfig.class, + com.google.container.v1beta1.GkeBackupAgentConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.GkeBackupAgentConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig build() { + com.google.container.v1beta1.GkeBackupAgentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig buildPartial() { + com.google.container.v1beta1.GkeBackupAgentConfig result = + new com.google.container.v1beta1.GkeBackupAgentConfig(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.v1beta1.GkeBackupAgentConfig) { + return mergeFrom((com.google.container.v1beta1.GkeBackupAgentConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GkeBackupAgentConfig other) { + if (other == com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GkeBackupAgentConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.GkeBackupAgentConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the Backup for GKE agent 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 the Backup for GKE agent 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.v1beta1.GkeBackupAgentConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GkeBackupAgentConfig) + private static final com.google.container.v1beta1.GkeBackupAgentConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GkeBackupAgentConfig(); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeBackupAgentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeBackupAgentConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfigOrBuilder.java new file mode 100644 index 00000000..d6916e8e --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfigOrBuilder.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GkeBackupAgentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GkeBackupAgentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the Backup for GKE agent is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java index e3d31ed8..eb46932f 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java @@ -260,11 +260,12 @@ private IstioAuthMode(int value) { * Whether Istio is enabled for this cluster. * * - * bool disabled = 1; + * bool disabled = 1 [deprecated = true]; * * @return The disabled. */ @java.lang.Override + @java.lang.Deprecated public boolean getDisabled() { return disabled_; } @@ -278,11 +279,12 @@ public boolean getDisabled() { * The specified Istio auth mode, either none, or mutual TLS. * * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; * * @return The enum numeric value on the wire for auth. */ @java.lang.Override + @java.lang.Deprecated public int getAuthValue() { return auth_; } @@ -293,11 +295,12 @@ public int getAuthValue() { * The specified Istio auth mode, either none, or mutual TLS. * * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; * * @return The auth. */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { @SuppressWarnings("deprecation") com.google.container.v1beta1.IstioConfig.IstioAuthMode result = @@ -644,11 +647,12 @@ public Builder mergeFrom( * Whether Istio is enabled for this cluster. * * - * bool disabled = 1; + * bool disabled = 1 [deprecated = true]; * * @return The disabled. */ @java.lang.Override + @java.lang.Deprecated public boolean getDisabled() { return disabled_; } @@ -659,11 +663,12 @@ public boolean getDisabled() { * Whether Istio is enabled for this cluster. * * - * bool disabled = 1; + * bool disabled = 1 [deprecated = true]; * * @param value The disabled to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setDisabled(boolean value) { disabled_ = value; @@ -677,10 +682,11 @@ public Builder setDisabled(boolean value) { * Whether Istio is enabled for this cluster. * * - * bool disabled = 1; + * bool disabled = 1 [deprecated = true]; * * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearDisabled() { disabled_ = false; @@ -696,11 +702,13 @@ public Builder clearDisabled() { * The specified Istio auth mode, either none, or mutual TLS. * * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * * * @return The enum numeric value on the wire for auth. */ @java.lang.Override + @java.lang.Deprecated public int getAuthValue() { return auth_; } @@ -711,11 +719,13 @@ public int getAuthValue() { * The specified Istio auth mode, either none, or mutual TLS. * * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * * * @param value The enum numeric value on the wire for auth to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setAuthValue(int value) { auth_ = value; @@ -729,11 +739,13 @@ public Builder setAuthValue(int value) { * The specified Istio auth mode, either none, or mutual TLS. * * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * * * @return The auth. */ @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { @SuppressWarnings("deprecation") com.google.container.v1beta1.IstioConfig.IstioAuthMode result = @@ -749,11 +761,13 @@ public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { * The specified Istio auth mode, either none, or mutual TLS. * * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * * * @param value The auth to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setAuth(com.google.container.v1beta1.IstioConfig.IstioAuthMode value) { if (value == null) { throw new NullPointerException(); @@ -770,10 +784,12 @@ public Builder setAuth(com.google.container.v1beta1.IstioConfig.IstioAuthMode va * The specified Istio auth mode, either none, or mutual TLS. * * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * * * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearAuth() { auth_ = 0; diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java index af3d1989..fea754e0 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java @@ -30,10 +30,11 @@ public interface IstioConfigOrBuilder * Whether Istio is enabled for this cluster. * * - * bool disabled = 1; + * bool disabled = 1 [deprecated = true]; * * @return The disabled. */ + @java.lang.Deprecated boolean getDisabled(); /** @@ -43,10 +44,11 @@ public interface IstioConfigOrBuilder * The specified Istio auth mode, either none, or mutual TLS. * * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; * * @return The enum numeric value on the wire for auth. */ + @java.lang.Deprecated int getAuthValue(); /** * @@ -55,9 +57,10 @@ public interface IstioConfigOrBuilder * The specified Istio auth mode, either none, or mutual TLS. * * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; * * @return The auth. */ + @java.lang.Deprecated com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth(); } diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptions.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptions.java new file mode 100644 index 00000000..31cee718 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptions.java @@ -0,0 +1,790 @@ +/* + * 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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Represents the Maintenance exclusion option.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenanceExclusionOptions} + */ +public final class MaintenanceExclusionOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenanceExclusionOptions) + MaintenanceExclusionOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaintenanceExclusionOptions.newBuilder() to construct. + private MaintenanceExclusionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenanceExclusionOptions() { + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenanceExclusionOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MaintenanceExclusionOptions( + 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(); + + scope_ = 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenanceExclusionOptions.class, + com.google.container.v1beta1.MaintenanceExclusionOptions.Builder.class); + } + + /** + * + * + *
+   * Scope of exclusion.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.MaintenanceExclusionOptions.Scope} + */ + public enum Scope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
+     * upgrades across control planes and nodes. This is the default exclusion
+     * behavior.
+     * 
+ * + * NO_UPGRADES = 0; + */ + NO_UPGRADES(0), + /** + * + * + *
+     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
+     * patches are allowed.
+     * 
+ * + * NO_MINOR_UPGRADES = 1; + */ + NO_MINOR_UPGRADES(1), + /** + * + * + *
+     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
+     * and also exclude all node pool upgrades. Only control
+     * plane patches are allowed.
+     * 
+ * + * NO_MINOR_OR_NODE_UPGRADES = 2; + */ + NO_MINOR_OR_NODE_UPGRADES(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
+     * upgrades across control planes and nodes. This is the default exclusion
+     * behavior.
+     * 
+ * + * NO_UPGRADES = 0; + */ + public static final int NO_UPGRADES_VALUE = 0; + /** + * + * + *
+     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
+     * patches are allowed.
+     * 
+ * + * NO_MINOR_UPGRADES = 1; + */ + public static final int NO_MINOR_UPGRADES_VALUE = 1; + /** + * + * + *
+     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
+     * and also exclude all node pool upgrades. Only control
+     * plane patches are allowed.
+     * 
+ * + * NO_MINOR_OR_NODE_UPGRADES = 2; + */ + public static final int NO_MINOR_OR_NODE_UPGRADES_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 Scope 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 Scope forNumber(int value) { + switch (value) { + case 0: + return NO_UPGRADES; + case 1: + return NO_MINOR_UPGRADES; + case 2: + return NO_MINOR_OR_NODE_UPGRADES; + 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 Scope findValueByNumber(int number) { + return Scope.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.v1beta1.MaintenanceExclusionOptions.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Scope[] VALUES = values(); + + public static Scope 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 Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.MaintenanceExclusionOptions.Scope) + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_; + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The scope. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope result = + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.valueOf(scope_); + return result == null + ? com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.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 (scope_ + != com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { + output.writeEnum(1, scope_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scope_ + != com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scope_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.MaintenanceExclusionOptions)) { + return super.equals(obj); + } + com.google.container.v1beta1.MaintenanceExclusionOptions other = + (com.google.container.v1beta1.MaintenanceExclusionOptions) obj; + + if (scope_ != other.scope_) 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) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.MaintenanceExclusionOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents the Maintenance exclusion option.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenanceExclusionOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MaintenanceExclusionOptions) + com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenanceExclusionOptions.class, + com.google.container.v1beta1.MaintenanceExclusionOptions.Builder.class); + } + + // Construct using com.google.container.v1beta1.MaintenanceExclusionOptions.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(); + scope_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstanceForType() { + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions build() { + com.google.container.v1beta1.MaintenanceExclusionOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions buildPartial() { + com.google.container.v1beta1.MaintenanceExclusionOptions result = + new com.google.container.v1beta1.MaintenanceExclusionOptions(this); + result.scope_ = scope_; + 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.v1beta1.MaintenanceExclusionOptions) { + return mergeFrom((com.google.container.v1beta1.MaintenanceExclusionOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MaintenanceExclusionOptions other) { + if (other == com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance()) + return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MaintenanceExclusionOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.MaintenanceExclusionOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The scope. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope result = + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.valueOf(scope_); + return result == null + ? com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.container.v1beta1.MaintenanceExclusionOptions.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return This builder for chaining. + */ + public Builder clearScope() { + + scope_ = 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.v1beta1.MaintenanceExclusionOptions) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenanceExclusionOptions) + private static final com.google.container.v1beta1.MaintenanceExclusionOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenanceExclusionOptions(); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceExclusionOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenanceExclusionOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptionsOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptionsOrBuilder.java new file mode 100644 index 00000000..244f049f --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptionsOrBuilder.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MaintenanceExclusionOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenanceExclusionOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * + * @return The scope. + */ + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfig.java new file mode 100644 index 00000000..f6dc051c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfig.java @@ -0,0 +1,548 @@ +/* + * 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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ManagedPrometheusConfig defines the configuration for
+ * Google Cloud Managed Service for Prometheus.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ManagedPrometheusConfig} + */ +public final class ManagedPrometheusConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ManagedPrometheusConfig) + ManagedPrometheusConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ManagedPrometheusConfig.newBuilder() to construct. + private ManagedPrometheusConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ManagedPrometheusConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManagedPrometheusConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ManagedPrometheusConfig( + 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ManagedPrometheusConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ManagedPrometheusConfig.class, + com.google.container.v1beta1.ManagedPrometheusConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enable Managed Collection.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ManagedPrometheusConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ManagedPrometheusConfig other = + (com.google.container.v1beta1.ManagedPrometheusConfig) 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.v1beta1.ManagedPrometheusConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ManagedPrometheusConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ManagedPrometheusConfig defines the configuration for
+   * Google Cloud Managed Service for Prometheus.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ManagedPrometheusConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ManagedPrometheusConfig) + com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ManagedPrometheusConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ManagedPrometheusConfig.class, + com.google.container.v1beta1.ManagedPrometheusConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ManagedPrometheusConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig build() { + com.google.container.v1beta1.ManagedPrometheusConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig buildPartial() { + com.google.container.v1beta1.ManagedPrometheusConfig result = + new com.google.container.v1beta1.ManagedPrometheusConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ManagedPrometheusConfig) { + return mergeFrom((com.google.container.v1beta1.ManagedPrometheusConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ManagedPrometheusConfig other) { + if (other == com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ManagedPrometheusConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ManagedPrometheusConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ManagedPrometheusConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ManagedPrometheusConfig) + private static final com.google.container.v1beta1.ManagedPrometheusConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ManagedPrometheusConfig(); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedPrometheusConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ManagedPrometheusConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfigOrBuilder.java new file mode 100644 index 00000000..17db8363 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ManagedPrometheusConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ManagedPrometheusConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enable Managed Collection.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificates.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificates.java new file mode 100644 index 00000000..34667f9c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificates.java @@ -0,0 +1,802 @@ +/* + * 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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MeshCertificates} + */ +public final class MeshCertificates extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MeshCertificates) + MeshCertificatesOrBuilder { + private static final long serialVersionUID = 0L; + // Use MeshCertificates.newBuilder() to construct. + private MeshCertificates(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MeshCertificates() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MeshCertificates(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MeshCertificates( + 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: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (enableCertificates_ != null) { + subBuilder = enableCertificates_.toBuilder(); + } + enableCertificates_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(enableCertificates_); + enableCertificates_ = subBuilder.buildPartial(); + } + + 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MeshCertificates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MeshCertificates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MeshCertificates.class, + com.google.container.v1beta1.MeshCertificates.Builder.class); + } + + public static final int ENABLE_CERTIFICATES_FIELD_NUMBER = 1; + private com.google.protobuf.BoolValue enableCertificates_; + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return Whether the enableCertificates field is set. + */ + @java.lang.Override + public boolean hasEnableCertificates() { + return enableCertificates_ != null; + } + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return The enableCertificates. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getEnableCertificates() { + return enableCertificates_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableCertificates_; + } + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + return getEnableCertificates(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableCertificates_ != null) { + output.writeMessage(1, getEnableCertificates()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableCertificates_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnableCertificates()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.MeshCertificates)) { + return super.equals(obj); + } + com.google.container.v1beta1.MeshCertificates other = + (com.google.container.v1beta1.MeshCertificates) obj; + + if (hasEnableCertificates() != other.hasEnableCertificates()) return false; + if (hasEnableCertificates()) { + if (!getEnableCertificates().equals(other.getEnableCertificates())) 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 (hasEnableCertificates()) { + hash = (37 * hash) + ENABLE_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getEnableCertificates().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MeshCertificates parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MeshCertificates parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MeshCertificates parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MeshCertificates parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MeshCertificates parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MeshCertificates parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MeshCertificates parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MeshCertificates parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MeshCertificates parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MeshCertificates parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MeshCertificates parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MeshCertificates parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.MeshCertificates prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 issuance of mTLS keys and certificates to Kubernetes pods.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MeshCertificates} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MeshCertificates) + com.google.container.v1beta1.MeshCertificatesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MeshCertificates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MeshCertificates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MeshCertificates.class, + com.google.container.v1beta1.MeshCertificates.Builder.class); + } + + // Construct using com.google.container.v1beta1.MeshCertificates.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = null; + } else { + enableCertificates_ = null; + enableCertificatesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MeshCertificates_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates getDefaultInstanceForType() { + return com.google.container.v1beta1.MeshCertificates.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates build() { + com.google.container.v1beta1.MeshCertificates result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates buildPartial() { + com.google.container.v1beta1.MeshCertificates result = + new com.google.container.v1beta1.MeshCertificates(this); + if (enableCertificatesBuilder_ == null) { + result.enableCertificates_ = enableCertificates_; + } else { + result.enableCertificates_ = enableCertificatesBuilder_.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.v1beta1.MeshCertificates) { + return mergeFrom((com.google.container.v1beta1.MeshCertificates) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MeshCertificates other) { + if (other == com.google.container.v1beta1.MeshCertificates.getDefaultInstance()) return this; + if (other.hasEnableCertificates()) { + mergeEnableCertificates(other.getEnableCertificates()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MeshCertificates parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.MeshCertificates) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.BoolValue enableCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + enableCertificatesBuilder_; + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return Whether the enableCertificates field is set. + */ + public boolean hasEnableCertificates() { + return enableCertificatesBuilder_ != null || enableCertificates_ != null; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return The enableCertificates. + */ + public com.google.protobuf.BoolValue getEnableCertificates() { + if (enableCertificatesBuilder_ == null) { + return enableCertificates_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableCertificates_; + } else { + return enableCertificatesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enableCertificates_ = value; + onChanged(); + } else { + enableCertificatesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates(com.google.protobuf.BoolValue.Builder builderForValue) { + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = builderForValue.build(); + onChanged(); + } else { + enableCertificatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder mergeEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (enableCertificates_ != null) { + enableCertificates_ = + com.google.protobuf.BoolValue.newBuilder(enableCertificates_) + .mergeFrom(value) + .buildPartial(); + } else { + enableCertificates_ = value; + } + onChanged(); + } else { + enableCertificatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder clearEnableCertificates() { + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = null; + onChanged(); + } else { + enableCertificates_ = null; + enableCertificatesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { + + onChanged(); + return getEnableCertificatesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + if (enableCertificatesBuilder_ != null) { + return enableCertificatesBuilder_.getMessageOrBuilder(); + } else { + return enableCertificates_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableCertificates_; + } + } + /** + * + * + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getEnableCertificatesFieldBuilder() { + if (enableCertificatesBuilder_ == null) { + enableCertificatesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getEnableCertificates(), getParentForChildren(), isClean()); + enableCertificates_ = null; + } + return enableCertificatesBuilder_; + } + + @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.v1beta1.MeshCertificates) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MeshCertificates) + private static final com.google.container.v1beta1.MeshCertificates DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MeshCertificates(); + } + + public static com.google.container.v1beta1.MeshCertificates getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeshCertificates parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MeshCertificates(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificatesOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificatesOrBuilder.java new file mode 100644 index 00000000..096f7aba --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificatesOrBuilder.java @@ -0,0 +1,78 @@ +/* + * 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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface MeshCertificatesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MeshCertificates) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return Whether the enableCertificates field is set. + */ + boolean hasEnableCertificates(); + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * + * @return The enableCertificates. + */ + com.google.protobuf.BoolValue getEnableCertificates(); + /** + * + * + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfig.java index 01f6c859..d62a1bb5 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfig.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfig.java @@ -83,6 +83,23 @@ private MonitoringConfig( componentConfig_ = subBuilder.buildPartial(); } + break; + } + case 18: + { + com.google.container.v1beta1.ManagedPrometheusConfig.Builder subBuilder = null; + if (managedPrometheusConfig_ != null) { + subBuilder = managedPrometheusConfig_.toBuilder(); + } + managedPrometheusConfig_ = + input.readMessage( + com.google.container.v1beta1.ManagedPrometheusConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(managedPrometheusConfig_); + managedPrometheusConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -168,6 +185,58 @@ public com.google.container.v1beta1.MonitoringComponentConfig getComponentConfig return getComponentConfig(); } + public static final int MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1beta1.ManagedPrometheusConfig managedPrometheusConfig_; + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * @return Whether the managedPrometheusConfig field is set. + */ + @java.lang.Override + public boolean hasManagedPrometheusConfig() { + return managedPrometheusConfig_ != null; + } + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * @return The managedPrometheusConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig() { + return managedPrometheusConfig_ == null + ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() + : managedPrometheusConfig_; + } + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder + getManagedPrometheusConfigOrBuilder() { + return getManagedPrometheusConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -185,6 +254,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (componentConfig_ != null) { output.writeMessage(1, getComponentConfig()); } + if (managedPrometheusConfig_ != null) { + output.writeMessage(2, getManagedPrometheusConfig()); + } unknownFields.writeTo(output); } @@ -197,6 +269,10 @@ public int getSerializedSize() { if (componentConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getComponentConfig()); } + if (managedPrometheusConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getManagedPrometheusConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -217,6 +293,10 @@ public boolean equals(final java.lang.Object obj) { if (hasComponentConfig()) { if (!getComponentConfig().equals(other.getComponentConfig())) return false; } + if (hasManagedPrometheusConfig() != other.hasManagedPrometheusConfig()) return false; + if (hasManagedPrometheusConfig()) { + if (!getManagedPrometheusConfig().equals(other.getManagedPrometheusConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,6 +312,10 @@ public int hashCode() { hash = (37 * hash) + COMPONENT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getComponentConfig().hashCode(); } + if (hasManagedPrometheusConfig()) { + hash = (37 * hash) + MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getManagedPrometheusConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -383,6 +467,12 @@ public Builder clear() { componentConfig_ = null; componentConfigBuilder_ = null; } + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = null; + } else { + managedPrometheusConfig_ = null; + managedPrometheusConfigBuilder_ = null; + } return this; } @@ -415,6 +505,11 @@ public com.google.container.v1beta1.MonitoringConfig buildPartial() { } else { result.componentConfig_ = componentConfigBuilder_.build(); } + if (managedPrometheusConfigBuilder_ == null) { + result.managedPrometheusConfig_ = managedPrometheusConfig_; + } else { + result.managedPrometheusConfig_ = managedPrometheusConfigBuilder_.build(); + } onBuilt(); return result; } @@ -467,6 +562,9 @@ public Builder mergeFrom(com.google.container.v1beta1.MonitoringConfig other) { if (other.hasComponentConfig()) { mergeComponentConfig(other.getComponentConfig()); } + if (other.hasManagedPrometheusConfig()) { + mergeManagedPrometheusConfig(other.getManagedPrometheusConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -686,6 +784,206 @@ public Builder clearComponentConfig() { return componentConfigBuilder_; } + private com.google.container.v1beta1.ManagedPrometheusConfig managedPrometheusConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ManagedPrometheusConfig, + com.google.container.v1beta1.ManagedPrometheusConfig.Builder, + com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder> + managedPrometheusConfigBuilder_; + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * @return Whether the managedPrometheusConfig field is set. + */ + public boolean hasManagedPrometheusConfig() { + return managedPrometheusConfigBuilder_ != null || managedPrometheusConfig_ != null; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * @return The managedPrometheusConfig. + */ + public com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig() { + if (managedPrometheusConfigBuilder_ == null) { + return managedPrometheusConfig_ == null + ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() + : managedPrometheusConfig_; + } else { + return managedPrometheusConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder setManagedPrometheusConfig( + com.google.container.v1beta1.ManagedPrometheusConfig value) { + if (managedPrometheusConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + managedPrometheusConfig_ = value; + onChanged(); + } else { + managedPrometheusConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder setManagedPrometheusConfig( + com.google.container.v1beta1.ManagedPrometheusConfig.Builder builderForValue) { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = builderForValue.build(); + onChanged(); + } else { + managedPrometheusConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder mergeManagedPrometheusConfig( + com.google.container.v1beta1.ManagedPrometheusConfig value) { + if (managedPrometheusConfigBuilder_ == null) { + if (managedPrometheusConfig_ != null) { + managedPrometheusConfig_ = + com.google.container.v1beta1.ManagedPrometheusConfig.newBuilder( + managedPrometheusConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + managedPrometheusConfig_ = value; + } + onChanged(); + } else { + managedPrometheusConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder clearManagedPrometheusConfig() { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = null; + onChanged(); + } else { + managedPrometheusConfig_ = null; + managedPrometheusConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public com.google.container.v1beta1.ManagedPrometheusConfig.Builder + getManagedPrometheusConfigBuilder() { + + onChanged(); + return getManagedPrometheusConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder + getManagedPrometheusConfigOrBuilder() { + if (managedPrometheusConfigBuilder_ != null) { + return managedPrometheusConfigBuilder_.getMessageOrBuilder(); + } else { + return managedPrometheusConfig_ == null + ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() + : managedPrometheusConfig_; + } + } + /** + * + * + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ManagedPrometheusConfig, + com.google.container.v1beta1.ManagedPrometheusConfig.Builder, + com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder> + getManagedPrometheusConfigFieldBuilder() { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ManagedPrometheusConfig, + com.google.container.v1beta1.ManagedPrometheusConfig.Builder, + com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder>( + getManagedPrometheusConfig(), getParentForChildren(), isClean()); + managedPrometheusConfig_ = null; + } + return managedPrometheusConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfigOrBuilder.java index 11f84a3f..e4ee44b4 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfigOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfigOrBuilder.java @@ -57,4 +57,43 @@ public interface MonitoringConfigOrBuilder * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; */ com.google.container.v1beta1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder(); + + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * @return Whether the managedPrometheusConfig field is set. + */ + boolean hasManagedPrometheusConfig(); + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * + * @return The managedPrometheusConfig. + */ + com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig(); + /** + * + * + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder + getManagedPrometheusConfigOrBuilder(); } diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java index c2f4848a..24cbb404 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java @@ -329,6 +329,39 @@ private NodeConfig( ephemeralStorageConfig_ = subBuilder.buildPartial(); } + break; + } + case 202: + { + com.google.container.v1beta1.GcfsConfig.Builder subBuilder = null; + if (gcfsConfig_ != null) { + subBuilder = gcfsConfig_.toBuilder(); + } + gcfsConfig_ = + input.readMessage( + com.google.container.v1beta1.GcfsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcfsConfig_); + gcfsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 210: + { + com.google.container.v1beta1.AdvancedMachineFeatures.Builder subBuilder = null; + if (advancedMachineFeatures_ != null) { + subBuilder = advancedMachineFeatures_.toBuilder(); + } + advancedMachineFeatures_ = + input.readMessage( + com.google.container.v1beta1.AdvancedMachineFeatures.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(advancedMachineFeatures_); + advancedMachineFeatures_ = subBuilder.buildPartial(); + } + break; } case 234: @@ -345,6 +378,11 @@ private NodeConfig( gvnic_ = subBuilder.buildPartial(); } + break; + } + case 256: + { + spot_ = input.readBool(); break; } default: @@ -1877,6 +1915,103 @@ public com.google.container.v1beta1.EphemeralStorageConfig getEphemeralStorageCo return getEphemeralStorageConfig(); } + public static final int GCFS_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + /** + * + * + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return gcfsConfig_ != null; + } + /** + * + * + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + /** + * + * + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return getGcfsConfig(); + } + + public static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER = 26; + private com.google.container.v1beta1.AdvancedMachineFeatures advancedMachineFeatures_; + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return Whether the advancedMachineFeatures field is set. + */ + @java.lang.Override + public boolean hasAdvancedMachineFeatures() { + return advancedMachineFeatures_ != null; + } + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return The advancedMachineFeatures. + */ + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures() { + return advancedMachineFeatures_ == null + ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() + : advancedMachineFeatures_; + } + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder + getAdvancedMachineFeaturesOrBuilder() { + return getAdvancedMachineFeatures(); + } + public static final int GVNIC_FIELD_NUMBER = 29; private com.google.container.v1beta1.VirtualNIC gvnic_; /** @@ -1923,6 +2058,25 @@ public com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder() { return getGvnic(); } + public static final int SPOT_FIELD_NUMBER = 32; + private boolean spot_; + /** + * + * + *
+   * Spot flag for enabling Spot VM, which is a rebrand of
+   * the existing preemptible flag.
+   * 
+ * + * bool spot = 32; + * + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2004,9 +2158,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (ephemeralStorageConfig_ != null) { output.writeMessage(24, getEphemeralStorageConfig()); } + if (gcfsConfig_ != null) { + output.writeMessage(25, getGcfsConfig()); + } + if (advancedMachineFeatures_ != null) { + output.writeMessage(26, getAdvancedMachineFeatures()); + } if (gvnic_ != null) { output.writeMessage(29, getGvnic()); } + if (spot_ != false) { + output.writeBool(32, spot_); + } unknownFields.writeTo(output); } @@ -2113,9 +2276,20 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getEphemeralStorageConfig()); } + if (gcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getGcfsConfig()); + } + if (advancedMachineFeatures_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, getAdvancedMachineFeatures()); + } if (gvnic_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getGvnic()); } + if (spot_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(32, spot_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2175,10 +2349,19 @@ public boolean equals(final java.lang.Object obj) { if (hasEphemeralStorageConfig()) { if (!getEphemeralStorageConfig().equals(other.getEphemeralStorageConfig())) return false; } + if (hasGcfsConfig() != other.hasGcfsConfig()) return false; + if (hasGcfsConfig()) { + if (!getGcfsConfig().equals(other.getGcfsConfig())) return false; + } + if (hasAdvancedMachineFeatures() != other.hasAdvancedMachineFeatures()) return false; + if (hasAdvancedMachineFeatures()) { + if (!getAdvancedMachineFeatures().equals(other.getAdvancedMachineFeatures())) return false; + } if (hasGvnic() != other.hasGvnic()) return false; if (hasGvnic()) { if (!getGvnic().equals(other.getGvnic())) return false; } + if (getSpot() != other.getSpot()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2262,10 +2445,20 @@ public int hashCode() { hash = (37 * hash) + EPHEMERAL_STORAGE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getEphemeralStorageConfig().hashCode(); } + if (hasGcfsConfig()) { + hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcfsConfig().hashCode(); + } + if (hasAdvancedMachineFeatures()) { + hash = (37 * hash) + ADVANCED_MACHINE_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedMachineFeatures().hashCode(); + } if (hasGvnic()) { hash = (37 * hash) + GVNIC_FIELD_NUMBER; hash = (53 * hash) + getGvnic().hashCode(); } + hash = (37 * hash) + SPOT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSpot()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2518,12 +2711,26 @@ public Builder clear() { ephemeralStorageConfig_ = null; ephemeralStorageConfigBuilder_ = null; } + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = null; + } else { + advancedMachineFeatures_ = null; + advancedMachineFeaturesBuilder_ = null; + } if (gvnicBuilder_ == null) { gvnic_ = null; } else { gvnic_ = null; gvnicBuilder_ = null; } + spot_ = false; + return this; } @@ -2629,11 +2836,22 @@ public com.google.container.v1beta1.NodeConfig buildPartial() { } else { result.ephemeralStorageConfig_ = ephemeralStorageConfigBuilder_.build(); } + if (gcfsConfigBuilder_ == null) { + result.gcfsConfig_ = gcfsConfig_; + } else { + result.gcfsConfig_ = gcfsConfigBuilder_.build(); + } + if (advancedMachineFeaturesBuilder_ == null) { + result.advancedMachineFeatures_ = advancedMachineFeatures_; + } else { + result.advancedMachineFeatures_ = advancedMachineFeaturesBuilder_.build(); + } if (gvnicBuilder_ == null) { result.gvnic_ = gvnic_; } else { result.gvnic_ = gvnicBuilder_.build(); } + result.spot_ = spot_; onBuilt(); return result; } @@ -2817,9 +3035,18 @@ public Builder mergeFrom(com.google.container.v1beta1.NodeConfig other) { if (other.hasEphemeralStorageConfig()) { mergeEphemeralStorageConfig(other.getEphemeralStorageConfig()); } + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } + if (other.hasAdvancedMachineFeatures()) { + mergeAdvancedMachineFeatures(other.getAdvancedMachineFeatures()); + } if (other.hasGvnic()) { mergeGvnic(other.getGvnic()); } + if (other.getSpot() != false) { + setSpot(other.getSpot()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -7030,6 +7257,391 @@ public Builder clearEphemeralStorageConfig() { return ephemeralStorageConfigBuilder_; } + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + gcfsConfigBuilder_; + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return gcfsConfigBuilder_ != null || gcfsConfig_ != null; + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * + * @return The gcfsConfig. + */ + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (gcfsConfig_ != null) { + gcfsConfig_ = + com.google.container.v1beta1.GcfsConfig.newBuilder(gcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcfsConfig_ = value; + } + onChanged(); + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public Builder clearGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + onChanged(); + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { + + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + } + /** + * + * + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder>( + getGcfsConfig(), getParentForChildren(), isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1beta1.AdvancedMachineFeatures advancedMachineFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdvancedMachineFeatures, + com.google.container.v1beta1.AdvancedMachineFeatures.Builder, + com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder> + advancedMachineFeaturesBuilder_; + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * + * @return Whether the advancedMachineFeatures field is set. + */ + public boolean hasAdvancedMachineFeatures() { + return advancedMachineFeaturesBuilder_ != null || advancedMachineFeatures_ != null; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * + * @return The advancedMachineFeatures. + */ + public com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures() { + if (advancedMachineFeaturesBuilder_ == null) { + return advancedMachineFeatures_ == null + ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() + : advancedMachineFeatures_; + } else { + return advancedMachineFeaturesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + public Builder setAdvancedMachineFeatures( + com.google.container.v1beta1.AdvancedMachineFeatures value) { + if (advancedMachineFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advancedMachineFeatures_ = value; + onChanged(); + } else { + advancedMachineFeaturesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + public Builder setAdvancedMachineFeatures( + com.google.container.v1beta1.AdvancedMachineFeatures.Builder builderForValue) { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = builderForValue.build(); + onChanged(); + } else { + advancedMachineFeaturesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + public Builder mergeAdvancedMachineFeatures( + com.google.container.v1beta1.AdvancedMachineFeatures value) { + if (advancedMachineFeaturesBuilder_ == null) { + if (advancedMachineFeatures_ != null) { + advancedMachineFeatures_ = + com.google.container.v1beta1.AdvancedMachineFeatures.newBuilder( + advancedMachineFeatures_) + .mergeFrom(value) + .buildPartial(); + } else { + advancedMachineFeatures_ = value; + } + onChanged(); + } else { + advancedMachineFeaturesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + public Builder clearAdvancedMachineFeatures() { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = null; + onChanged(); + } else { + advancedMachineFeatures_ = null; + advancedMachineFeaturesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + public com.google.container.v1beta1.AdvancedMachineFeatures.Builder + getAdvancedMachineFeaturesBuilder() { + + onChanged(); + return getAdvancedMachineFeaturesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + public com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder + getAdvancedMachineFeaturesOrBuilder() { + if (advancedMachineFeaturesBuilder_ != null) { + return advancedMachineFeaturesBuilder_.getMessageOrBuilder(); + } else { + return advancedMachineFeatures_ == null + ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() + : advancedMachineFeatures_; + } + } + /** + * + * + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdvancedMachineFeatures, + com.google.container.v1beta1.AdvancedMachineFeatures.Builder, + com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder> + getAdvancedMachineFeaturesFieldBuilder() { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeaturesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdvancedMachineFeatures, + com.google.container.v1beta1.AdvancedMachineFeatures.Builder, + com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder>( + getAdvancedMachineFeatures(), getParentForChildren(), isClean()); + advancedMachineFeatures_ = null; + } + return advancedMachineFeaturesBuilder_; + } + private com.google.container.v1beta1.VirtualNIC gvnic_; private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1beta1.VirtualNIC, @@ -7215,6 +7827,61 @@ public com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder() { return gvnicBuilder_; } + private boolean spot_; + /** + * + * + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + /** + * + * + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * + * @param value The spot to set. + * @return This builder for chaining. + */ + public Builder setSpot(boolean value) { + + spot_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * + * @return This builder for chaining. + */ + public Builder clearSpot() { + + spot_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaults.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaults.java index 54d6d264..da6ce25c 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaults.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaults.java @@ -68,6 +68,22 @@ private NodeConfigDefaults( case 0: done = true; break; + case 10: + { + com.google.container.v1beta1.GcfsConfig.Builder subBuilder = null; + if (gcfsConfig_ != null) { + subBuilder = gcfsConfig_.toBuilder(); + } + gcfsConfig_ = + input.readMessage( + com.google.container.v1beta1.GcfsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcfsConfig_); + gcfsConfig_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -102,6 +118,54 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.container.v1beta1.NodeConfigDefaults.Builder.class); } + public static final int GCFS_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + /** + * + * + *
+   * GCFS (Google Container File System, a.k.a Riptide) options.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + * + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return gcfsConfig_ != null; + } + /** + * + * + *
+   * GCFS (Google Container File System, a.k.a Riptide) options.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + * + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + /** + * + * + *
+   * GCFS (Google Container File System, a.k.a Riptide) options.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return getGcfsConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -116,6 +180,9 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (gcfsConfig_ != null) { + output.writeMessage(1, getGcfsConfig()); + } unknownFields.writeTo(output); } @@ -125,6 +192,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (gcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcfsConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -141,6 +211,10 @@ public boolean equals(final java.lang.Object obj) { com.google.container.v1beta1.NodeConfigDefaults other = (com.google.container.v1beta1.NodeConfigDefaults) obj; + if (hasGcfsConfig() != other.hasGcfsConfig()) return false; + if (hasGcfsConfig()) { + if (!getGcfsConfig().equals(other.getGcfsConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -152,6 +226,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGcfsConfig()) { + hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcfsConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -297,6 +375,12 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } return this; } @@ -324,6 +408,11 @@ public com.google.container.v1beta1.NodeConfigDefaults build() { public com.google.container.v1beta1.NodeConfigDefaults buildPartial() { com.google.container.v1beta1.NodeConfigDefaults result = new com.google.container.v1beta1.NodeConfigDefaults(this); + if (gcfsConfigBuilder_ == null) { + result.gcfsConfig_ = gcfsConfig_; + } else { + result.gcfsConfig_ = gcfsConfigBuilder_.build(); + } onBuilt(); return result; } @@ -374,6 +463,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.container.v1beta1.NodeConfigDefaults other) { if (other == com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance()) return this; + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -403,6 +495,191 @@ public Builder mergeFrom( return this; } + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + gcfsConfigBuilder_; + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + * + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return gcfsConfigBuilder_ != null || gcfsConfig_ != null; + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + * + * @return The gcfsConfig. + */ + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (gcfsConfig_ != null) { + gcfsConfig_ = + com.google.container.v1beta1.GcfsConfig.newBuilder(gcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcfsConfig_ = value; + } + onChanged(); + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public Builder clearGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + onChanged(); + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { + + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + } + /** + * + * + *
+     * GCFS (Google Container File System, a.k.a Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder>( + getGcfsConfig(), getParentForChildren(), isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaultsOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaultsOrBuilder.java index 6f2fb5de..ac8ae79e 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaultsOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaultsOrBuilder.java @@ -21,4 +21,40 @@ public interface NodeConfigDefaultsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeConfigDefaults) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * GCFS (Google Container File System, a.k.a Riptide) options.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + * + * @return Whether the gcfsConfig field is set. + */ + boolean hasGcfsConfig(); + /** + * + * + *
+   * GCFS (Google Container File System, a.k.a Riptide) options.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + * + * @return The gcfsConfig. + */ + com.google.container.v1beta1.GcfsConfig getGcfsConfig(); + /** + * + * + *
+   * GCFS (Google Container File System, a.k.a Riptide) options.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java index d3a619b2..096330c6 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java @@ -1106,6 +1106,77 @@ public interface NodeConfigOrBuilder */ com.google.container.v1beta1.EphemeralStorageConfigOrBuilder getEphemeralStorageConfigOrBuilder(); + /** + * + * + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * + * @return Whether the gcfsConfig field is set. + */ + boolean hasGcfsConfig(); + /** + * + * + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * + * @return The gcfsConfig. + */ + com.google.container.v1beta1.GcfsConfig getGcfsConfig(); + /** + * + * + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); + + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return Whether the advancedMachineFeatures field is set. + */ + boolean hasAdvancedMachineFeatures(); + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * + * @return The advancedMachineFeatures. + */ + com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures(); + /** + * + * + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder + getAdvancedMachineFeaturesOrBuilder(); + /** * * @@ -1140,4 +1211,18 @@ public interface NodeConfigOrBuilder * .google.container.v1beta1.VirtualNIC gvnic = 29; */ com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder(); + + /** + * + * + *
+   * Spot flag for enabling Spot VM, which is a rebrand of
+   * the existing preemptible flag.
+   * 
+ * + * bool spot = 32; + * + * @return The spot. + */ + boolean getSpot(); } diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java index 2ab612e7..3201efc6 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java @@ -273,6 +273,23 @@ private NodePool( upgradeSettings_ = subBuilder.buildPartial(); } + break; + } + case 866: + { + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder subBuilder = null; + if (placementPolicy_ != null) { + subBuilder = placementPolicy_.toBuilder(); + } + placementPolicy_ = + input.readMessage( + com.google.container.v1beta1.NodePool.PlacementPolicy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(placementPolicy_); + placementPolicy_ = subBuilder.buildPartial(); + } + break; } default: @@ -910,24 +927,823 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool.UpgradeSettings) - com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder { + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool.UpgradeSettings) + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_UpgradeSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_UpgradeSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.UpgradeSettings.class, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder.class); + } + + // Construct using com.google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_UpgradeSettings_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettings getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettings build() { + com.google.container.v1beta1.NodePool.UpgradeSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettings buildPartial() { + com.google.container.v1beta1.NodePool.UpgradeSettings result = + new com.google.container.v1beta1.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.v1beta1.NodePool.UpgradeSettings) { + return mergeFrom((com.google.container.v1beta1.NodePool.UpgradeSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePool.UpgradeSettings other) { + if (other == com.google.container.v1beta1.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.v1beta1.NodePool.UpgradeSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.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.v1beta1.NodePool.UpgradeSettings) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool.UpgradeSettings) + private static final com.google.container.v1beta1.NodePool.UpgradeSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool.UpgradeSettings(); + } + + public static com.google.container.v1beta1.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.v1beta1.NodePool.UpgradeSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PlacementPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool.PlacementPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * + * @return The type. + */ + com.google.container.v1beta1.NodePool.PlacementPolicy.Type getType(); + } + /** + * + * + *
+   * PlacementPolicy defines the placement policy used by the node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.PlacementPolicy} + */ + public static final class PlacementPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool.PlacementPolicy) + PlacementPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use PlacementPolicy.newBuilder() to construct. + private PlacementPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PlacementPolicy() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PlacementPolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PlacementPolicy( + 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(); + + 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_PlacementPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.PlacementPolicy.class, + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder.class); + } + + /** + * + * + *
+     * Type defines the type of placement policy.
+     * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodePool.PlacementPolicy.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * TYPE_UNSPECIFIED specifies no requirements on nodes
+       * placement.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * COMPACT specifies node placement in the same availability domain to
+       * ensure low communication latency.
+       * 
+ * + * COMPACT = 1; + */ + COMPACT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * TYPE_UNSPECIFIED specifies no requirements on nodes
+       * placement.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * COMPACT specifies node placement in the same availability domain to
+       * ensure low communication latency.
+       * 
+ * + * COMPACT = 1; + */ + public static final int COMPACT_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 TYPE_UNSPECIFIED; + case 1: + return COMPACT; + 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.v1beta1.NodePool.PlacementPolicy.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.v1beta1.NodePool.PlacementPolicy.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.PlacementPolicy.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePool.PlacementPolicy.Type result = + com.google.container.v1beta1.NodePool.PlacementPolicy.Type.valueOf(type_); + return result == null + ? com.google.container.v1beta1.NodePool.PlacementPolicy.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.v1beta1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, 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.v1beta1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, 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.v1beta1.NodePool.PlacementPolicy)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePool.PlacementPolicy other = + (com.google.container.v1beta1.NodePool.PlacementPolicy) 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.v1beta1.NodePool.PlacementPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.NodePool.PlacementPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * PlacementPolicy defines the placement policy used by the node pool.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.PlacementPolicy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool.PlacementPolicy) + com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_UpgradeSettings_descriptor; + .internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_UpgradeSettings_fieldAccessorTable + .internal_static_google_container_v1beta1_NodePool_PlacementPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePool.UpgradeSettings.class, - com.google.container.v1beta1.NodePool.UpgradeSettings.Builder.class); + com.google.container.v1beta1.NodePool.PlacementPolicy.class, + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder.class); } - // Construct using com.google.container.v1beta1.NodePool.UpgradeSettings.newBuilder() + // Construct using com.google.container.v1beta1.NodePool.PlacementPolicy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -944,9 +1760,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - maxSurge_ = 0; - - maxUnavailable_ = 0; + type_ = 0; return this; } @@ -954,17 +1768,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_UpgradeSettings_descriptor; + .internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; } @java.lang.Override - public com.google.container.v1beta1.NodePool.UpgradeSettings getDefaultInstanceForType() { - return com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance(); + public com.google.container.v1beta1.NodePool.PlacementPolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance(); } @java.lang.Override - public com.google.container.v1beta1.NodePool.UpgradeSettings build() { - com.google.container.v1beta1.NodePool.UpgradeSettings result = buildPartial(); + public com.google.container.v1beta1.NodePool.PlacementPolicy build() { + com.google.container.v1beta1.NodePool.PlacementPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -972,11 +1786,10 @@ public com.google.container.v1beta1.NodePool.UpgradeSettings build() { } @java.lang.Override - public com.google.container.v1beta1.NodePool.UpgradeSettings buildPartial() { - com.google.container.v1beta1.NodePool.UpgradeSettings result = - new com.google.container.v1beta1.NodePool.UpgradeSettings(this); - result.maxSurge_ = maxSurge_; - result.maxUnavailable_ = maxUnavailable_; + public com.google.container.v1beta1.NodePool.PlacementPolicy buildPartial() { + com.google.container.v1beta1.NodePool.PlacementPolicy result = + new com.google.container.v1beta1.NodePool.PlacementPolicy(this); + result.type_ = type_; onBuilt(); return result; } @@ -1018,22 +1831,19 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NodePool.UpgradeSettings) { - return mergeFrom((com.google.container.v1beta1.NodePool.UpgradeSettings) other); + if (other instanceof com.google.container.v1beta1.NodePool.PlacementPolicy) { + return mergeFrom((com.google.container.v1beta1.NodePool.PlacementPolicy) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.container.v1beta1.NodePool.UpgradeSettings other) { - if (other == com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance()) + public Builder mergeFrom(com.google.container.v1beta1.NodePool.PlacementPolicy other) { + if (other == com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance()) return this; - if (other.getMaxSurge() != 0) { - setMaxSurge(other.getMaxSurge()); - } - if (other.getMaxUnavailable() != 0) { - setMaxUnavailable(other.getMaxUnavailable()); + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1050,12 +1860,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.container.v1beta1.NodePool.UpgradeSettings parsedMessage = null; + com.google.container.v1beta1.NodePool.PlacementPolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.container.v1beta1.NodePool.UpgradeSettings) e.getUnfinishedMessage(); + (com.google.container.v1beta1.NodePool.PlacementPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1065,96 +1875,78 @@ public Builder mergeFrom( return this; } - private int maxSurge_; + private int type_ = 0; /** * * *
-       * The maximum number of nodes that can be created beyond the current size
-       * of the node pool during the upgrade process.
+       * The type of placement.
        * 
* - * int32 max_surge = 1; + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; * - * @return The maxSurge. + * @return The enum numeric value on the wire for type. */ @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; + public int getTypeValue() { + return type_; } /** * * *
-       * The maximum number of nodes that can be created beyond the current size
-       * of the node pool during the upgrade process.
+       * The type of placement.
        * 
* - * int32 max_surge = 1; + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; * + * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ - public Builder clearMaxSurge() { + public Builder setTypeValue(int value) { - maxSurge_ = 0; + type_ = value; 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.
+       * The type of placement.
        * 
* - * int32 max_unavailable = 2; + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; * - * @return The maxUnavailable. + * @return The type. */ @java.lang.Override - public int getMaxUnavailable() { - return maxUnavailable_; + public com.google.container.v1beta1.NodePool.PlacementPolicy.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePool.PlacementPolicy.Type result = + com.google.container.v1beta1.NodePool.PlacementPolicy.Type.valueOf(type_); + return result == null + ? com.google.container.v1beta1.NodePool.PlacementPolicy.Type.UNRECOGNIZED + : result; } /** * * *
-       * The maximum number of nodes that can be simultaneously unavailable during
-       * the upgrade process. A node is considered available if its status is
-       * Ready.
+       * The type of placement.
        * 
* - * int32 max_unavailable = 2; + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; * - * @param value The maxUnavailable to set. + * @param value The type to set. * @return This builder for chaining. */ - public Builder setMaxUnavailable(int value) { + public Builder setType(com.google.container.v1beta1.NodePool.PlacementPolicy.Type value) { + if (value == null) { + throw new NullPointerException(); + } - maxUnavailable_ = value; + type_ = value.getNumber(); onChanged(); return this; } @@ -1162,18 +1954,16 @@ public Builder setMaxUnavailable(int value) { * * *
-       * The maximum number of nodes that can be simultaneously unavailable during
-       * the upgrade process. A node is considered available if its status is
-       * Ready.
+       * The type of placement.
        * 
* - * int32 max_unavailable = 2; + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; * * @return This builder for chaining. */ - public Builder clearMaxUnavailable() { + public Builder clearType() { - maxUnavailable_ = 0; + type_ = 0; onChanged(); return this; } @@ -1190,42 +1980,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodePool.UpgradeSettings) + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodePool.PlacementPolicy) } - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool.UpgradeSettings) - private static final com.google.container.v1beta1.NodePool.UpgradeSettings DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool.PlacementPolicy) + private static final com.google.container.v1beta1.NodePool.PlacementPolicy DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool.UpgradeSettings(); + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool.PlacementPolicy(); } - public static com.google.container.v1beta1.NodePool.UpgradeSettings getDefaultInstance() { + public static com.google.container.v1beta1.NodePool.PlacementPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public UpgradeSettings parsePartialFrom( + public PlacementPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeSettings(input, extensionRegistry); + return new PlacementPolicy(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.container.v1beta1.NodePool.UpgradeSettings getDefaultInstanceForType() { + public com.google.container.v1beta1.NodePool.PlacementPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -2030,6 +2820,55 @@ public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings( return getUpgradeSettings(); } + public static final int PLACEMENT_POLICY_FIELD_NUMBER = 108; + private com.google.container.v1beta1.NodePool.PlacementPolicy placementPolicy_; + /** + * + * + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * + * @return Whether the placementPolicy field is set. + */ + @java.lang.Override + public boolean hasPlacementPolicy() { + return placementPolicy_ != null; + } + /** + * + * + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * + * @return The placementPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy() { + return placementPolicy_ == null + ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() + : placementPolicy_; + } + /** + * + * + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder + getPlacementPolicyOrBuilder() { + return getPlacementPolicy(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2092,6 +2931,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (upgradeSettings_ != null) { output.writeMessage(107, getUpgradeSettings()); } + if (placementPolicy_ != null) { + output.writeMessage(108, getPlacementPolicy()); + } unknownFields.writeTo(output); } @@ -2159,6 +3001,9 @@ public int getSerializedSize() { if (upgradeSettings_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(107, getUpgradeSettings()); } + if (placementPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(108, getPlacementPolicy()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2208,6 +3053,10 @@ public boolean equals(final java.lang.Object obj) { if (hasUpgradeSettings()) { if (!getUpgradeSettings().equals(other.getUpgradeSettings())) return false; } + if (hasPlacementPolicy() != other.hasPlacementPolicy()) return false; + if (hasPlacementPolicy()) { + if (!getPlacementPolicy().equals(other.getPlacementPolicy())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2269,6 +3118,10 @@ public int hashCode() { hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getUpgradeSettings().hashCode(); } + if (hasPlacementPolicy()) { + hash = (37 * hash) + PLACEMENT_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPlacementPolicy().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2498,6 +3351,12 @@ public Builder clear() { upgradeSettings_ = null; upgradeSettingsBuilder_ = null; } + if (placementPolicyBuilder_ == null) { + placementPolicy_ = null; + } else { + placementPolicy_ = null; + placementPolicyBuilder_ = null; + } return this; } @@ -2582,6 +3441,11 @@ public com.google.container.v1beta1.NodePool buildPartial() { } else { result.upgradeSettings_ = upgradeSettingsBuilder_.build(); } + if (placementPolicyBuilder_ == null) { + result.placementPolicy_ = placementPolicy_; + } else { + result.placementPolicy_ = placementPolicyBuilder_.build(); + } onBuilt(); return result; } @@ -2721,6 +3585,9 @@ public Builder mergeFrom(com.google.container.v1beta1.NodePool other) { if (other.hasUpgradeSettings()) { mergeUpgradeSettings(other.getUpgradeSettings()); } + if (other.hasPlacementPolicy()) { + mergePlacementPolicy(other.getPlacementPolicy()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -5308,6 +6175,195 @@ public Builder clearUpgradeSettings() { return upgradeSettingsBuilder_; } + private com.google.container.v1beta1.NodePool.PlacementPolicy placementPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.PlacementPolicy, + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, + com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder> + placementPolicyBuilder_; + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * + * @return Whether the placementPolicy field is set. + */ + public boolean hasPlacementPolicy() { + return placementPolicyBuilder_ != null || placementPolicy_ != null; + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * + * @return The placementPolicy. + */ + public com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy() { + if (placementPolicyBuilder_ == null) { + return placementPolicy_ == null + ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() + : placementPolicy_; + } else { + return placementPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder setPlacementPolicy(com.google.container.v1beta1.NodePool.PlacementPolicy value) { + if (placementPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + placementPolicy_ = value; + onChanged(); + } else { + placementPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder setPlacementPolicy( + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder builderForValue) { + if (placementPolicyBuilder_ == null) { + placementPolicy_ = builderForValue.build(); + onChanged(); + } else { + placementPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder mergePlacementPolicy( + com.google.container.v1beta1.NodePool.PlacementPolicy value) { + if (placementPolicyBuilder_ == null) { + if (placementPolicy_ != null) { + placementPolicy_ = + com.google.container.v1beta1.NodePool.PlacementPolicy.newBuilder(placementPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + placementPolicy_ = value; + } + onChanged(); + } else { + placementPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder clearPlacementPolicy() { + if (placementPolicyBuilder_ == null) { + placementPolicy_ = null; + onChanged(); + } else { + placementPolicy_ = null; + placementPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public com.google.container.v1beta1.NodePool.PlacementPolicy.Builder + getPlacementPolicyBuilder() { + + onChanged(); + return getPlacementPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder + getPlacementPolicyOrBuilder() { + if (placementPolicyBuilder_ != null) { + return placementPolicyBuilder_.getMessageOrBuilder(); + } else { + return placementPolicy_ == null + ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() + : placementPolicy_; + } + } + /** + * + * + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.PlacementPolicy, + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, + com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder> + getPlacementPolicyFieldBuilder() { + if (placementPolicyBuilder_ == null) { + placementPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.PlacementPolicy, + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, + com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder>( + getPlacementPolicy(), getParentForChildren(), isClean()); + placementPolicy_ = null; + } + return placementPolicyBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java index 980fd116..03fe1991 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java @@ -147,8 +147,8 @@ public boolean getEnabled() { * * *
-   * Minimum number of nodes in the NodePool. Must be >= 1 and <=
-   * max_node_count.
+   * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+   * <= max_node_count.
    * 
* * int32 min_node_count = 2; @@ -166,8 +166,8 @@ public int getMinNodeCount() { * * *
-   * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-   * has to be enough quota to scale up the cluster.
+   * Maximum number of nodes for one location in the NodePool. Must be >=
+   * min_node_count. There has to be enough quota to scale up the cluster.
    * 
* * int32 max_node_count = 3; @@ -616,8 +616,8 @@ public Builder clearEnabled() { * * *
-     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
-     * max_node_count.
+     * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+     * <= max_node_count.
      * 
* * int32 min_node_count = 2; @@ -632,8 +632,8 @@ public int getMinNodeCount() { * * *
-     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
-     * max_node_count.
+     * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+     * <= max_node_count.
      * 
* * int32 min_node_count = 2; @@ -651,8 +651,8 @@ public Builder setMinNodeCount(int value) { * * *
-     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
-     * max_node_count.
+     * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+     * <= max_node_count.
      * 
* * int32 min_node_count = 2; @@ -671,8 +671,8 @@ public Builder clearMinNodeCount() { * * *
-     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-     * has to be enough quota to scale up the cluster.
+     * Maximum number of nodes for one location in the NodePool. Must be >=
+     * min_node_count. There has to be enough quota to scale up the cluster.
      * 
* * int32 max_node_count = 3; @@ -687,8 +687,8 @@ public int getMaxNodeCount() { * * *
-     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-     * has to be enough quota to scale up the cluster.
+     * Maximum number of nodes for one location in the NodePool. Must be >=
+     * min_node_count. There has to be enough quota to scale up the cluster.
      * 
* * int32 max_node_count = 3; @@ -706,8 +706,8 @@ public Builder setMaxNodeCount(int value) { * * *
-     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-     * has to be enough quota to scale up the cluster.
+     * Maximum number of nodes for one location in the NodePool. Must be >=
+     * min_node_count. There has to be enough quota to scale up the cluster.
      * 
* * int32 max_node_count = 3; diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java index 079b6f33..eec49228 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java @@ -40,8 +40,8 @@ public interface NodePoolAutoscalingOrBuilder * * *
-   * Minimum number of nodes in the NodePool. Must be >= 1 and <=
-   * max_node_count.
+   * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+   * <= max_node_count.
    * 
* * int32 min_node_count = 2; @@ -54,8 +54,8 @@ public interface NodePoolAutoscalingOrBuilder * * *
-   * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-   * has to be enough quota to scale up the cluster.
+   * Maximum number of nodes for one location in the NodePool. Must be >=
+   * min_node_count. There has to be enough quota to scale up the cluster.
    * 
* * int32 max_node_count = 3; diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java index 54881e36..5f477bf4 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java @@ -591,4 +591,39 @@ public interface NodePoolOrBuilder * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; */ com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); + + /** + * + * + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * + * @return Whether the placementPolicy field is set. + */ + boolean hasPlacementPolicy(); + /** + * + * + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * + * @return The placementPolicy. + */ + com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy(); + /** + * + * + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder(); } diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java index 99bc1e2f..2ebb0b96 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java @@ -119,6 +119,186 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.container.v1beta1.NotificationConfig.Builder.class); } + /** + * + * + *
+   * Types of notifications currently supported. Can be used to filter what
+   * notifications are sent.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.NotificationConfig.EventType} + */ + public enum EventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set, will be ignored.
+     * 
+ * + * EVENT_TYPE_UNSPECIFIED = 0; + */ + EVENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Corresponds with UpgradeAvailableEvent.
+     * 
+ * + * UPGRADE_AVAILABLE_EVENT = 1; + */ + UPGRADE_AVAILABLE_EVENT(1), + /** + * + * + *
+     * Corresponds with UpgradeEvent.
+     * 
+ * + * UPGRADE_EVENT = 2; + */ + UPGRADE_EVENT(2), + /** + * + * + *
+     * Corresponds with SecurityBulletinEvent.
+     * 
+ * + * SECURITY_BULLETIN_EVENT = 3; + */ + SECURITY_BULLETIN_EVENT(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set, will be ignored.
+     * 
+ * + * EVENT_TYPE_UNSPECIFIED = 0; + */ + public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Corresponds with UpgradeAvailableEvent.
+     * 
+ * + * UPGRADE_AVAILABLE_EVENT = 1; + */ + public static final int UPGRADE_AVAILABLE_EVENT_VALUE = 1; + /** + * + * + *
+     * Corresponds with UpgradeEvent.
+     * 
+ * + * UPGRADE_EVENT = 2; + */ + public static final int UPGRADE_EVENT_VALUE = 2; + /** + * + * + *
+     * Corresponds with SecurityBulletinEvent.
+     * 
+ * + * SECURITY_BULLETIN_EVENT = 3; + */ + public static final int SECURITY_BULLETIN_EVENT_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 EventType 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 EventType forNumber(int value) { + switch (value) { + case 0: + return EVENT_TYPE_UNSPECIFIED; + case 1: + return UPGRADE_AVAILABLE_EVENT; + case 2: + return UPGRADE_EVENT; + case 3: + return SECURITY_BULLETIN_EVENT; + 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 EventType findValueByNumber(int number) { + return EventType.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.v1beta1.NotificationConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final EventType[] VALUES = values(); + + public static EventType 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 EventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NotificationConfig.EventType) + } + public interface PubSubOrBuilder extends // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NotificationConfig.PubSub) @@ -163,6 +343,47 @@ public interface PubSubOrBuilder * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); + + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * + * @return The filter. + */ + com.google.container.v1beta1.NotificationConfig.Filter getFilter(); + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder(); } /** * @@ -226,6 +447,23 @@ private PubSub( java.lang.String s = input.readStringRequireUtf8(); topic_ = s; + break; + } + case 26: + { + com.google.container.v1beta1.NotificationConfig.Filter.Builder subBuilder = null; + if (filter_ != null) { + subBuilder = filter_.toBuilder(); + } + filter_ = + input.readMessage( + com.google.container.v1beta1.NotificationConfig.Filter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filter_); + filter_ = subBuilder.buildPartial(); + } + break; } default: @@ -331,6 +569,60 @@ public com.google.protobuf.ByteString getTopicBytes() { } } + public static final int FILTER_FIELD_NUMBER = 3; + private com.google.container.v1beta1.NotificationConfig.Filter filter_; + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return filter_ != null; + } + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * + * @return The filter. + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter getFilter() { + return filter_ == null + ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() + : filter_; + } + /** + * + * + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { + return getFilter(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -351,6 +643,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); } + if (filter_ != null) { + output.writeMessage(3, getFilter()); + } unknownFields.writeTo(output); } @@ -366,6 +661,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); } + if (filter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFilter()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -384,6 +682,10 @@ public boolean equals(final java.lang.Object obj) { if (getEnabled() != other.getEnabled()) return false; if (!getTopic().equals(other.getTopic())) return false; + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -399,6 +701,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -551,6 +857,12 @@ public Builder clear() { topic_ = ""; + if (filterBuilder_ == null) { + filter_ = null; + } else { + filter_ = null; + filterBuilder_ = null; + } return this; } @@ -580,6 +892,11 @@ public com.google.container.v1beta1.NotificationConfig.PubSub buildPartial() { new com.google.container.v1beta1.NotificationConfig.PubSub(this); result.enabled_ = enabled_; result.topic_ = topic_; + if (filterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } onBuilt(); return result; } @@ -639,6 +956,9 @@ public Builder mergeFrom(com.google.container.v1beta1.NotificationConfig.PubSub topic_ = other.topic_; onChanged(); } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -832,46 +1152,250 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + private com.google.container.v1beta1.NotificationConfig.Filter filter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.Filter, + com.google.container.v1beta1.NotificationConfig.Filter.Builder, + com.google.container.v1beta1.NotificationConfig.FilterOrBuilder> + filterBuilder_; + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return filterBuilder_ != null || filter_ != null; } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * + * @return The filter. + */ + public com.google.container.v1beta1.NotificationConfig.Filter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null + ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() + : filter_; + } else { + return filterBuilder_.getMessage(); + } } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public Builder setFilter(com.google.container.v1beta1.NotificationConfig.Filter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NotificationConfig.PubSub) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NotificationConfig.PubSub) - private static final com.google.container.v1beta1.NotificationConfig.PubSub DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NotificationConfig.PubSub(); - } - - public static com.google.container.v1beta1.NotificationConfig.PubSub getDefaultInstance() { - return DEFAULT_INSTANCE; - } + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public Builder setFilter( + com.google.container.v1beta1.NotificationConfig.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubSub parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PubSub(input, extensionRegistry); + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public Builder mergeFilter(com.google.container.v1beta1.NotificationConfig.Filter value) { + if (filterBuilder_ == null) { + if (filter_ != null) { + filter_ = + com.google.container.v1beta1.NotificationConfig.Filter.newBuilder(filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + onChanged(); + } else { + filterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = null; + onChanged(); + } else { + filter_ = null; + filterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public com.google.container.v1beta1.NotificationConfig.Filter.Builder getFilterBuilder() { + + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null + ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() + : filter_; + } + } + /** + * + * + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.Filter, + com.google.container.v1beta1.NotificationConfig.Filter.Builder, + com.google.container.v1beta1.NotificationConfig.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.Filter, + com.google.container.v1beta1.NotificationConfig.Filter.Builder, + com.google.container.v1beta1.NotificationConfig.FilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + @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.v1beta1.NotificationConfig.PubSub) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NotificationConfig.PubSub) + private static final com.google.container.v1beta1.NotificationConfig.PubSub DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NotificationConfig.PubSub(); + } + + public static com.google.container.v1beta1.NotificationConfig.PubSub getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSub parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PubSub(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } @java.lang.Override public com.google.protobuf.Parser getParserForType() { @@ -884,6 +1408,935 @@ public com.google.container.v1beta1.NotificationConfig.PubSub getDefaultInstance } } + public interface FilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NotificationConfig.Filter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the eventType. + */ + java.util.List getEventTypeList(); + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @return The count of eventType. + */ + int getEventTypeCount(); + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + com.google.container.v1beta1.NotificationConfig.EventType getEventType(int index); + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the enum numeric values on the wire for eventType. + */ + java.util.List getEventTypeValueList(); + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + int getEventTypeValue(int index); + } + /** + * + * + *
+   * Allows filtering to one or more specific event types. If event types are
+   * present, those and only those event types will be transmitted to the
+   * cluster. Other types will be skipped. If no filter is specified, or no
+   * event types are present, all event types will be sent
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NotificationConfig.Filter} + */ + public static final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NotificationConfig.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Filter() { + eventType_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Filter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Filter( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + eventType_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + eventType_.add(rawValue); + break; + } + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + eventType_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + eventType_.add(rawValue); + } + input.popLimit(oldLimit); + 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)) { + eventType_ = java.util.Collections.unmodifiableList(eventType_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NotificationConfig.Filter.class, + com.google.container.v1beta1.NotificationConfig.Filter.Builder.class); + } + + public static final int EVENT_TYPE_FIELD_NUMBER = 1; + private java.util.List eventType_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType> + eventType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>() { + public com.google.container.v1beta1.NotificationConfig.EventType convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NotificationConfig.EventType result = + com.google.container.v1beta1.NotificationConfig.EventType.valueOf(from); + return result == null + ? com.google.container.v1beta1.NotificationConfig.EventType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the eventType. + */ + @java.lang.Override + public java.util.List + getEventTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>( + eventType_, eventType_converter_); + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @return The count of eventType. + */ + @java.lang.Override + public int getEventTypeCount() { + return eventType_.size(); + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.EventType getEventType(int index) { + return eventType_converter_.convert(eventType_.get(index)); + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @return A list containing the enum numeric values on the wire for eventType. + */ + @java.lang.Override + public java.util.List getEventTypeValueList() { + return eventType_; + } + /** + * + * + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + @java.lang.Override + public int getEventTypeValue(int index) { + return eventType_.get(index); + } + + private int eventTypeMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getEventTypeList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(eventTypeMemoizedSerializedSize); + } + for (int i = 0; i < eventType_.size(); i++) { + output.writeEnumNoTag(eventType_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < eventType_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(eventType_.get(i)); + } + size += dataSize; + if (!getEventTypeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + eventTypeMemoizedSerializedSize = dataSize; + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.NotificationConfig.Filter)) { + return super.equals(obj); + } + com.google.container.v1beta1.NotificationConfig.Filter other = + (com.google.container.v1beta1.NotificationConfig.Filter) obj; + + if (!eventType_.equals(other.eventType_)) 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 (getEventTypeCount() > 0) { + hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + eventType_.hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.NotificationConfig.Filter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Allows filtering to one or more specific event types. If event types are
+     * present, those and only those event types will be transmitted to the
+     * cluster. Other types will be skipped. If no filter is specified, or no
+     * event types are present, all event types will be sent
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.NotificationConfig.Filter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NotificationConfig.Filter) + com.google.container.v1beta1.NotificationConfig.FilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NotificationConfig.Filter.class, + com.google.container.v1beta1.NotificationConfig.Filter.Builder.class); + } + + // Construct using com.google.container.v1beta1.NotificationConfig.Filter.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(); + eventType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter getDefaultInstanceForType() { + return com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter build() { + com.google.container.v1beta1.NotificationConfig.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter buildPartial() { + com.google.container.v1beta1.NotificationConfig.Filter result = + new com.google.container.v1beta1.NotificationConfig.Filter(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + eventType_ = java.util.Collections.unmodifiableList(eventType_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.eventType_ = eventType_; + 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.v1beta1.NotificationConfig.Filter) { + return mergeFrom((com.google.container.v1beta1.NotificationConfig.Filter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NotificationConfig.Filter other) { + if (other == com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance()) + return this; + if (!other.eventType_.isEmpty()) { + if (eventType_.isEmpty()) { + eventType_ = other.eventType_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventTypeIsMutable(); + eventType_.addAll(other.eventType_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NotificationConfig.Filter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.NotificationConfig.Filter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List eventType_ = java.util.Collections.emptyList(); + + private void ensureEventTypeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + eventType_ = new java.util.ArrayList(eventType_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * + * @return A list containing the eventType. + */ + public java.util.List + getEventTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>( + eventType_, eventType_converter_); + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * + * @return The count of eventType. + */ + public int getEventTypeCount() { + return eventType_.size(); + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + public com.google.container.v1beta1.NotificationConfig.EventType getEventType(int index) { + return eventType_converter_.convert(eventType_.get(index)); + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * + * @param index The index to set the value at. + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType( + int index, com.google.container.v1beta1.NotificationConfig.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventTypeIsMutable(); + eventType_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * + * @param value The eventType to add. + * @return This builder for chaining. + */ + public Builder addEventType(com.google.container.v1beta1.NotificationConfig.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventTypeIsMutable(); + eventType_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * + * @param values The eventType to add. + * @return This builder for chaining. + */ + public Builder addAllEventType( + java.lang.Iterable + values) { + ensureEventTypeIsMutable(); + for (com.google.container.v1beta1.NotificationConfig.EventType value : values) { + eventType_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearEventType() { + eventType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * + * @return A list containing the enum numeric values on the wire for eventType. + */ + public java.util.List getEventTypeValueList() { + return java.util.Collections.unmodifiableList(eventType_); + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + public int getEventTypeValue(int index) { + return eventType_.get(index); + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + * @return This builder for chaining. + */ + public Builder setEventTypeValue(int index, int value) { + ensureEventTypeIsMutable(); + eventType_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * + * @param value The enum numeric value on the wire for eventType to add. + * @return This builder for chaining. + */ + public Builder addEventTypeValue(int value) { + ensureEventTypeIsMutable(); + eventType_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * + * + * @param values The enum numeric values on the wire for eventType to add. + * @return This builder for chaining. + */ + public Builder addAllEventTypeValue(java.lang.Iterable values) { + ensureEventTypeIsMutable(); + for (int value : values) { + eventType_.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.v1beta1.NotificationConfig.Filter) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NotificationConfig.Filter) + private static final com.google.container.v1beta1.NotificationConfig.Filter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NotificationConfig.Filter(); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Filter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int PUBSUB_FIELD_NUMBER = 1; private com.google.container.v1beta1.NotificationConfig.PubSub pubsub_; /** diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEvent.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEvent.java new file mode 100644 index 00000000..aa868326 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEvent.java @@ -0,0 +1,2511 @@ +/* + * 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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * SecurityBulletinEvent is a notification sent to customers when a security
+ * bulletin has been posted that they are vulnerable to.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SecurityBulletinEvent} + */ +public final class SecurityBulletinEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SecurityBulletinEvent) + SecurityBulletinEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecurityBulletinEvent.newBuilder() to construct. + private SecurityBulletinEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecurityBulletinEvent() { + resourceTypeAffected_ = ""; + bulletinId_ = ""; + cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + severity_ = ""; + bulletinUri_ = ""; + briefDescription_ = ""; + affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + suggestedUpgradeTarget_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecurityBulletinEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SecurityBulletinEvent( + 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(); + + resourceTypeAffected_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + bulletinId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cveIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + cveIds_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + severity_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + bulletinUri_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + briefDescription_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + affectedSupportedMinors_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + affectedSupportedMinors_.add(s); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + patchedVersions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + patchedVersions_.add(s); + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + suggestedUpgradeTarget_ = s; + break; + } + case 80: + { + manualStepsRequired_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + cveIds_ = cveIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + affectedSupportedMinors_ = affectedSupportedMinors_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + patchedVersions_ = patchedVersions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecurityBulletinEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SecurityBulletinEvent.class, + com.google.container.v1beta1.SecurityBulletinEvent.Builder.class); + } + + public static final int RESOURCE_TYPE_AFFECTED_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceTypeAffected_; + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The resourceTypeAffected. + */ + @java.lang.Override + public java.lang.String getResourceTypeAffected() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceTypeAffected_ = s; + return s; + } + } + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The bytes for resourceTypeAffected. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeAffectedBytes() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceTypeAffected_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BULLETIN_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object bulletinId_; + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bulletinId. + */ + @java.lang.Override + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinId_ = s; + return s; + } + } + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bytes for bulletinId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CVE_IDS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList cveIds_; + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return A list containing the cveIds. + */ + public com.google.protobuf.ProtocolStringList getCveIdsList() { + return cveIds_; + } + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return The count of cveIds. + */ + public int getCveIdsCount() { + return cveIds_.size(); + } + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + public java.lang.String getCveIds(int index) { + return cveIds_.get(index); + } + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + public com.google.protobuf.ByteString getCveIdsBytes(int index) { + return cveIds_.getByteString(index); + } + + public static final int SEVERITY_FIELD_NUMBER = 4; + private volatile java.lang.Object severity_; + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The severity. + */ + @java.lang.Override + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } + } + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The bytes for severity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BULLETIN_URI_FIELD_NUMBER = 5; + private volatile java.lang.Object bulletinUri_; + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bulletinUri. + */ + @java.lang.Override + public java.lang.String getBulletinUri() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinUri_ = s; + return s; + } + } + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bytes for bulletinUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBulletinUriBytes() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRIEF_DESCRIPTION_FIELD_NUMBER = 6; + private volatile java.lang.Object briefDescription_; + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The briefDescription. + */ + @java.lang.Override + public java.lang.String getBriefDescription() { + java.lang.Object ref = briefDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + briefDescription_ = s; + return s; + } + } + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The bytes for briefDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBriefDescriptionBytes() { + java.lang.Object ref = briefDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + briefDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList affectedSupportedMinors_; + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return A list containing the affectedSupportedMinors. + */ + public com.google.protobuf.ProtocolStringList getAffectedSupportedMinorsList() { + return affectedSupportedMinors_; + } + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return The count of affectedSupportedMinors. + */ + public int getAffectedSupportedMinorsCount() { + return affectedSupportedMinors_.size(); + } + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + public java.lang.String getAffectedSupportedMinors(int index) { + return affectedSupportedMinors_.get(index); + } + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + public com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index) { + return affectedSupportedMinors_.getByteString(index); + } + + public static final int PATCHED_VERSIONS_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList patchedVersions_; + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return A list containing the patchedVersions. + */ + public com.google.protobuf.ProtocolStringList getPatchedVersionsList() { + return patchedVersions_; + } + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return The count of patchedVersions. + */ + public int getPatchedVersionsCount() { + return patchedVersions_.size(); + } + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + public java.lang.String getPatchedVersions(int index) { + return patchedVersions_.get(index); + } + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + public com.google.protobuf.ByteString getPatchedVersionsBytes(int index) { + return patchedVersions_.getByteString(index); + } + + public static final int SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER = 9; + private volatile java.lang.Object suggestedUpgradeTarget_; + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The suggestedUpgradeTarget. + */ + @java.lang.Override + public java.lang.String getSuggestedUpgradeTarget() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedUpgradeTarget_ = s; + return s; + } + } + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The bytes for suggestedUpgradeTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestedUpgradeTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANUAL_STEPS_REQUIRED_FIELD_NUMBER = 10; + private boolean manualStepsRequired_; + /** + * + * + *
+   * If this field is specified, it means there are manual steps that the user
+   * must take to make their clusters safe.
+   * 
+ * + * bool manual_steps_required = 10; + * + * @return The manualStepsRequired. + */ + @java.lang.Override + public boolean getManualStepsRequired() { + return manualStepsRequired_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypeAffected_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bulletinId_); + } + for (int i = 0; i < cveIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cveIds_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bulletinUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, briefDescription_); + } + for (int i = 0; i < affectedSupportedMinors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 7, affectedSupportedMinors_.getRaw(i)); + } + for (int i = 0; i < patchedVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patchedVersions_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, suggestedUpgradeTarget_); + } + if (manualStepsRequired_ != false) { + output.writeBool(10, manualStepsRequired_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceTypeAffected_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bulletinId_); + } + { + int dataSize = 0; + for (int i = 0; i < cveIds_.size(); i++) { + dataSize += computeStringSizeNoTag(cveIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getCveIdsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bulletinUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, briefDescription_); + } + { + int dataSize = 0; + for (int i = 0; i < affectedSupportedMinors_.size(); i++) { + dataSize += computeStringSizeNoTag(affectedSupportedMinors_.getRaw(i)); + } + size += dataSize; + size += 1 * getAffectedSupportedMinorsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < patchedVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(patchedVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getPatchedVersionsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, suggestedUpgradeTarget_); + } + if (manualStepsRequired_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, manualStepsRequired_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SecurityBulletinEvent)) { + return super.equals(obj); + } + com.google.container.v1beta1.SecurityBulletinEvent other = + (com.google.container.v1beta1.SecurityBulletinEvent) obj; + + if (!getResourceTypeAffected().equals(other.getResourceTypeAffected())) return false; + if (!getBulletinId().equals(other.getBulletinId())) return false; + if (!getCveIdsList().equals(other.getCveIdsList())) return false; + if (!getSeverity().equals(other.getSeverity())) return false; + if (!getBulletinUri().equals(other.getBulletinUri())) return false; + if (!getBriefDescription().equals(other.getBriefDescription())) return false; + if (!getAffectedSupportedMinorsList().equals(other.getAffectedSupportedMinorsList())) + return false; + if (!getPatchedVersionsList().equals(other.getPatchedVersionsList())) return false; + if (!getSuggestedUpgradeTarget().equals(other.getSuggestedUpgradeTarget())) return false; + if (getManualStepsRequired() != other.getManualStepsRequired()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_AFFECTED_FIELD_NUMBER; + hash = (53 * hash) + getResourceTypeAffected().hashCode(); + hash = (37 * hash) + BULLETIN_ID_FIELD_NUMBER; + hash = (53 * hash) + getBulletinId().hashCode(); + if (getCveIdsCount() > 0) { + hash = (37 * hash) + CVE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getCveIdsList().hashCode(); + } + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + getSeverity().hashCode(); + hash = (37 * hash) + BULLETIN_URI_FIELD_NUMBER; + hash = (53 * hash) + getBulletinUri().hashCode(); + hash = (37 * hash) + BRIEF_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getBriefDescription().hashCode(); + if (getAffectedSupportedMinorsCount() > 0) { + hash = (37 * hash) + AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER; + hash = (53 * hash) + getAffectedSupportedMinorsList().hashCode(); + } + if (getPatchedVersionsCount() > 0) { + hash = (37 * hash) + PATCHED_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getPatchedVersionsList().hashCode(); + } + hash = (37 * hash) + SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getSuggestedUpgradeTarget().hashCode(); + hash = (37 * hash) + MANUAL_STEPS_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManualStepsRequired()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.SecurityBulletinEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SecurityBulletinEvent is a notification sent to customers when a security
+   * bulletin has been posted that they are vulnerable to.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SecurityBulletinEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SecurityBulletinEvent) + com.google.container.v1beta1.SecurityBulletinEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecurityBulletinEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SecurityBulletinEvent.class, + com.google.container.v1beta1.SecurityBulletinEvent.Builder.class); + } + + // Construct using com.google.container.v1beta1.SecurityBulletinEvent.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(); + resourceTypeAffected_ = ""; + + bulletinId_ = ""; + + cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + severity_ = ""; + + bulletinUri_ = ""; + + briefDescription_ = ""; + + affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + suggestedUpgradeTarget_ = ""; + + manualStepsRequired_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstanceForType() { + return com.google.container.v1beta1.SecurityBulletinEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityBulletinEvent build() { + com.google.container.v1beta1.SecurityBulletinEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityBulletinEvent buildPartial() { + com.google.container.v1beta1.SecurityBulletinEvent result = + new com.google.container.v1beta1.SecurityBulletinEvent(this); + int from_bitField0_ = bitField0_; + result.resourceTypeAffected_ = resourceTypeAffected_; + result.bulletinId_ = bulletinId_; + if (((bitField0_ & 0x00000001) != 0)) { + cveIds_ = cveIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cveIds_ = cveIds_; + result.severity_ = severity_; + result.bulletinUri_ = bulletinUri_; + result.briefDescription_ = briefDescription_; + if (((bitField0_ & 0x00000002) != 0)) { + affectedSupportedMinors_ = affectedSupportedMinors_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.affectedSupportedMinors_ = affectedSupportedMinors_; + if (((bitField0_ & 0x00000004) != 0)) { + patchedVersions_ = patchedVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.patchedVersions_ = patchedVersions_; + result.suggestedUpgradeTarget_ = suggestedUpgradeTarget_; + result.manualStepsRequired_ = manualStepsRequired_; + 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.v1beta1.SecurityBulletinEvent) { + return mergeFrom((com.google.container.v1beta1.SecurityBulletinEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SecurityBulletinEvent other) { + if (other == com.google.container.v1beta1.SecurityBulletinEvent.getDefaultInstance()) + return this; + if (!other.getResourceTypeAffected().isEmpty()) { + resourceTypeAffected_ = other.resourceTypeAffected_; + onChanged(); + } + if (!other.getBulletinId().isEmpty()) { + bulletinId_ = other.bulletinId_; + onChanged(); + } + if (!other.cveIds_.isEmpty()) { + if (cveIds_.isEmpty()) { + cveIds_ = other.cveIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCveIdsIsMutable(); + cveIds_.addAll(other.cveIds_); + } + onChanged(); + } + if (!other.getSeverity().isEmpty()) { + severity_ = other.severity_; + onChanged(); + } + if (!other.getBulletinUri().isEmpty()) { + bulletinUri_ = other.bulletinUri_; + onChanged(); + } + if (!other.getBriefDescription().isEmpty()) { + briefDescription_ = other.briefDescription_; + onChanged(); + } + if (!other.affectedSupportedMinors_.isEmpty()) { + if (affectedSupportedMinors_.isEmpty()) { + affectedSupportedMinors_ = other.affectedSupportedMinors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.addAll(other.affectedSupportedMinors_); + } + onChanged(); + } + if (!other.patchedVersions_.isEmpty()) { + if (patchedVersions_.isEmpty()) { + patchedVersions_ = other.patchedVersions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePatchedVersionsIsMutable(); + patchedVersions_.addAll(other.patchedVersions_); + } + onChanged(); + } + if (!other.getSuggestedUpgradeTarget().isEmpty()) { + suggestedUpgradeTarget_ = other.suggestedUpgradeTarget_; + onChanged(); + } + if (other.getManualStepsRequired() != false) { + setManualStepsRequired(other.getManualStepsRequired()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SecurityBulletinEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.SecurityBulletinEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object resourceTypeAffected_ = ""; + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @return The resourceTypeAffected. + */ + public java.lang.String getResourceTypeAffected() { + java.lang.Object ref = resourceTypeAffected_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceTypeAffected_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @return The bytes for resourceTypeAffected. + */ + public com.google.protobuf.ByteString getResourceTypeAffectedBytes() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceTypeAffected_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @param value The resourceTypeAffected to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeAffected(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceTypeAffected_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @return This builder for chaining. + */ + public Builder clearResourceTypeAffected() { + + resourceTypeAffected_ = getDefaultInstance().getResourceTypeAffected(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * + * @param value The bytes for resourceTypeAffected to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeAffectedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceTypeAffected_ = value; + onChanged(); + return this; + } + + private java.lang.Object bulletinId_ = ""; + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @return The bulletinId. + */ + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @return The bytes for bulletinId. + */ + public com.google.protobuf.ByteString getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @param value The bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bulletinId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearBulletinId() { + + bulletinId_ = getDefaultInstance().getBulletinId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * + * @param value The bytes for bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bulletinId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList cveIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureCveIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cveIds_ = new com.google.protobuf.LazyStringArrayList(cveIds_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @return A list containing the cveIds. + */ + public com.google.protobuf.ProtocolStringList getCveIdsList() { + return cveIds_.getUnmodifiableView(); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @return The count of cveIds. + */ + public int getCveIdsCount() { + return cveIds_.size(); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + public java.lang.String getCveIds(int index) { + return cveIds_.get(index); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + public com.google.protobuf.ByteString getCveIdsBytes(int index) { + return cveIds_.getByteString(index); + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index to set the value at. + * @param value The cveIds to set. + * @return This builder for chaining. + */ + public Builder setCveIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCveIdsIsMutable(); + cveIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param value The cveIds to add. + * @return This builder for chaining. + */ + public Builder addCveIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCveIdsIsMutable(); + cveIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param values The cveIds to add. + * @return This builder for chaining. + */ + public Builder addAllCveIds(java.lang.Iterable values) { + ensureCveIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cveIds_); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @return This builder for chaining. + */ + public Builder clearCveIds() { + cveIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * + * @param value The bytes of the cveIds to add. + * @return This builder for chaining. + */ + public Builder addCveIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCveIdsIsMutable(); + cveIds_.add(value); + onChanged(); + return this; + } + + private java.lang.Object severity_ = ""; + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @return The severity. + */ + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @return The bytes for severity. + */ + public com.google.protobuf.ByteString getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + severity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + + severity_ = getDefaultInstance().getSeverity(); + onChanged(); + return this; + } + /** + * + * + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * + * @param value The bytes for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + severity_ = value; + onChanged(); + return this; + } + + private java.lang.Object bulletinUri_ = ""; + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @return The bulletinUri. + */ + public java.lang.String getBulletinUri() { + java.lang.Object ref = bulletinUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @return The bytes for bulletinUri. + */ + public com.google.protobuf.ByteString getBulletinUriBytes() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @param value The bulletinUri to set. + * @return This builder for chaining. + */ + public Builder setBulletinUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bulletinUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearBulletinUri() { + + bulletinUri_ = getDefaultInstance().getBulletinUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * + * @param value The bytes for bulletinUri to set. + * @return This builder for chaining. + */ + public Builder setBulletinUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bulletinUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object briefDescription_ = ""; + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @return The briefDescription. + */ + public java.lang.String getBriefDescription() { + java.lang.Object ref = briefDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + briefDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @return The bytes for briefDescription. + */ + public com.google.protobuf.ByteString getBriefDescriptionBytes() { + java.lang.Object ref = briefDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + briefDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @param value The briefDescription to set. + * @return This builder for chaining. + */ + public Builder setBriefDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + briefDescription_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @return This builder for chaining. + */ + public Builder clearBriefDescription() { + + briefDescription_ = getDefaultInstance().getBriefDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * + * @param value The bytes for briefDescription to set. + * @return This builder for chaining. + */ + public Builder setBriefDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + briefDescription_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAffectedSupportedMinorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + affectedSupportedMinors_ = + new com.google.protobuf.LazyStringArrayList(affectedSupportedMinors_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return A list containing the affectedSupportedMinors. + */ + public com.google.protobuf.ProtocolStringList getAffectedSupportedMinorsList() { + return affectedSupportedMinors_.getUnmodifiableView(); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return The count of affectedSupportedMinors. + */ + public int getAffectedSupportedMinorsCount() { + return affectedSupportedMinors_.size(); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + public java.lang.String getAffectedSupportedMinors(int index) { + return affectedSupportedMinors_.get(index); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + public com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index) { + return affectedSupportedMinors_.getByteString(index); + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index to set the value at. + * @param value The affectedSupportedMinors to set. + * @return This builder for chaining. + */ + public Builder setAffectedSupportedMinors(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param value The affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAffectedSupportedMinors(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param values The affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAllAffectedSupportedMinors(java.lang.Iterable values) { + ensureAffectedSupportedMinorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, affectedSupportedMinors_); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return This builder for chaining. + */ + public Builder clearAffectedSupportedMinors() { + affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param value The bytes of the affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAffectedSupportedMinorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList patchedVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePatchedVersionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + patchedVersions_ = new com.google.protobuf.LazyStringArrayList(patchedVersions_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @return A list containing the patchedVersions. + */ + public com.google.protobuf.ProtocolStringList getPatchedVersionsList() { + return patchedVersions_.getUnmodifiableView(); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @return The count of patchedVersions. + */ + public int getPatchedVersionsCount() { + return patchedVersions_.size(); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + public java.lang.String getPatchedVersions(int index) { + return patchedVersions_.get(index); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + public com.google.protobuf.ByteString getPatchedVersionsBytes(int index) { + return patchedVersions_.getByteString(index); + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index to set the value at. + * @param value The patchedVersions to set. + * @return This builder for chaining. + */ + public Builder setPatchedVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatchedVersionsIsMutable(); + patchedVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param value The patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addPatchedVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param values The patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addAllPatchedVersions(java.lang.Iterable values) { + ensurePatchedVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, patchedVersions_); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @return This builder for chaining. + */ + public Builder clearPatchedVersions() { + patchedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * + * @param value The bytes of the patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addPatchedVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(value); + onChanged(); + return this; + } + + private java.lang.Object suggestedUpgradeTarget_ = ""; + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The suggestedUpgradeTarget. + */ + public java.lang.String getSuggestedUpgradeTarget() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedUpgradeTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The bytes for suggestedUpgradeTarget. + */ + public com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestedUpgradeTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @param value The suggestedUpgradeTarget to set. + * @return This builder for chaining. + */ + public Builder setSuggestedUpgradeTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + suggestedUpgradeTarget_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @return This builder for chaining. + */ + public Builder clearSuggestedUpgradeTarget() { + + suggestedUpgradeTarget_ = getDefaultInstance().getSuggestedUpgradeTarget(); + onChanged(); + return this; + } + /** + * + * + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * + * @param value The bytes for suggestedUpgradeTarget to set. + * @return This builder for chaining. + */ + public Builder setSuggestedUpgradeTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + suggestedUpgradeTarget_ = value; + onChanged(); + return this; + } + + private boolean manualStepsRequired_; + /** + * + * + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * + * @return The manualStepsRequired. + */ + @java.lang.Override + public boolean getManualStepsRequired() { + return manualStepsRequired_; + } + /** + * + * + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * + * @param value The manualStepsRequired to set. + * @return This builder for chaining. + */ + public Builder setManualStepsRequired(boolean value) { + + manualStepsRequired_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * + * @return This builder for chaining. + */ + public Builder clearManualStepsRequired() { + + manualStepsRequired_ = 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.v1beta1.SecurityBulletinEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SecurityBulletinEvent) + private static final com.google.container.v1beta1.SecurityBulletinEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SecurityBulletinEvent(); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityBulletinEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityBulletinEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEventOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEventOrBuilder.java new file mode 100644 index 00000000..dfb6c6ce --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEventOrBuilder.java @@ -0,0 +1,356 @@ +/* + * 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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface SecurityBulletinEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SecurityBulletinEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The resourceTypeAffected. + */ + java.lang.String getResourceTypeAffected(); + /** + * + * + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * + * @return The bytes for resourceTypeAffected. + */ + com.google.protobuf.ByteString getResourceTypeAffectedBytes(); + + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bulletinId. + */ + java.lang.String getBulletinId(); + /** + * + * + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * + * @return The bytes for bulletinId. + */ + com.google.protobuf.ByteString getBulletinIdBytes(); + + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return A list containing the cveIds. + */ + java.util.List getCveIdsList(); + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @return The count of cveIds. + */ + int getCveIdsCount(); + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + java.lang.String getCveIds(int index); + /** + * + * + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + com.google.protobuf.ByteString getCveIdsBytes(int index); + + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The severity. + */ + java.lang.String getSeverity(); + /** + * + * + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * + * @return The bytes for severity. + */ + com.google.protobuf.ByteString getSeverityBytes(); + + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bulletinUri. + */ + java.lang.String getBulletinUri(); + /** + * + * + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * + * @return The bytes for bulletinUri. + */ + com.google.protobuf.ByteString getBulletinUriBytes(); + + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The briefDescription. + */ + java.lang.String getBriefDescription(); + /** + * + * + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * + * @return The bytes for briefDescription. + */ + com.google.protobuf.ByteString getBriefDescriptionBytes(); + + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return A list containing the affectedSupportedMinors. + */ + java.util.List getAffectedSupportedMinorsList(); + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @return The count of affectedSupportedMinors. + */ + int getAffectedSupportedMinorsCount(); + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + java.lang.String getAffectedSupportedMinors(int index); + /** + * + * + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index); + + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return A list containing the patchedVersions. + */ + java.util.List getPatchedVersionsList(); + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @return The count of patchedVersions. + */ + int getPatchedVersionsCount(); + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + java.lang.String getPatchedVersions(int index); + /** + * + * + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + com.google.protobuf.ByteString getPatchedVersionsBytes(int index); + + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The suggestedUpgradeTarget. + */ + java.lang.String getSuggestedUpgradeTarget(); + /** + * + * + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * + * @return The bytes for suggestedUpgradeTarget. + */ + com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes(); + + /** + * + * + *
+   * If this field is specified, it means there are manual steps that the user
+   * must take to make their clusters safe.
+   * 
+ * + * bool manual_steps_required = 10; + * + * @return The manualStepsRequired. + */ + boolean getManualStepsRequired(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java index 012a97c1..88b4f4fd 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java @@ -326,8 +326,8 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * Required. The desired configurations for the various addons available to
-   * run in the cluster.
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
    * 
* * @@ -344,8 +344,8 @@ public boolean hasAddonsConfig() { * * *
-   * Required. The desired configurations for the various addons available to
-   * run in the cluster.
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
    * 
* * @@ -364,8 +364,8 @@ public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { * * *
-   * Required. The desired configurations for the various addons available to
-   * run in the cluster.
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
    * 
* * @@ -1205,8 +1205,8 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
      * 
* * @@ -1222,8 +1222,8 @@ public boolean hasAddonsConfig() { * * *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
      * 
* * @@ -1245,8 +1245,8 @@ public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { * * *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
      * 
* * @@ -1270,8 +1270,8 @@ public Builder setAddonsConfig(com.google.container.v1beta1.AddonsConfig value) * * *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
      * 
* * @@ -1293,8 +1293,8 @@ public Builder setAddonsConfig( * * *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
      * 
* * @@ -1322,8 +1322,8 @@ public Builder mergeAddonsConfig(com.google.container.v1beta1.AddonsConfig value * * *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
      * 
* * @@ -1345,8 +1345,8 @@ public Builder clearAddonsConfig() { * * *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
      * 
* * @@ -1362,8 +1362,8 @@ public com.google.container.v1beta1.AddonsConfig.Builder getAddonsConfigBuilder( * * *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
      * 
* * @@ -1383,8 +1383,8 @@ public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuild * * *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
      * 
* * diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java index 5eb602b2..6ac20a82 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java @@ -124,8 +124,8 @@ public interface SetAddonsConfigRequestOrBuilder * * *
-   * Required. The desired configurations for the various addons available to
-   * run in the cluster.
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
    * 
* * @@ -139,8 +139,8 @@ public interface SetAddonsConfigRequestOrBuilder * * *
-   * Required. The desired configurations for the various addons available to
-   * run in the cluster.
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
    * 
* * @@ -154,8 +154,8 @@ public interface SetAddonsConfigRequestOrBuilder * * *
-   * Required. The desired configurations for the various addons available to
-   * run in the cluster.
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
    * 
* * diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java index 886b5360..0ba36d98 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java @@ -96,6 +96,26 @@ private TimeWindow( endTime_ = subBuilder.buildPartial(); } + break; + } + case 26: + { + com.google.container.v1beta1.MaintenanceExclusionOptions.Builder subBuilder = null; + if (optionsCase_ == 3) { + subBuilder = + ((com.google.container.v1beta1.MaintenanceExclusionOptions) options_) + .toBuilder(); + } + options_ = + input.readMessage( + com.google.container.v1beta1.MaintenanceExclusionOptions.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.container.v1beta1.MaintenanceExclusionOptions) options_); + options_ = subBuilder.buildPartial(); + } + optionsCase_ = 3; break; } default: @@ -132,6 +152,108 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.container.v1beta1.TimeWindow.Builder.class); } + private int optionsCase_ = 0; + private java.lang.Object options_; + + public enum OptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAINTENANCE_EXCLUSION_OPTIONS(3), + OPTIONS_NOT_SET(0); + private final int value; + + private OptionsCase(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 OptionsCase valueOf(int value) { + return forNumber(value); + } + + public static OptionsCase forNumber(int value) { + switch (value) { + case 3: + return MAINTENANCE_EXCLUSION_OPTIONS; + case 0: + return OPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OptionsCase getOptionsCase() { + return OptionsCase.forNumber(optionsCase_); + } + + public static final int MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER = 3; + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return Whether the maintenanceExclusionOptions field is set. + */ + @java.lang.Override + public boolean hasMaintenanceExclusionOptions() { + return optionsCase_ == 3; + } + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return The maintenanceExclusionOptions. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { + if (optionsCase_ == 3) { + return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder + getMaintenanceExclusionOptionsOrBuilder() { + if (optionsCase_ == 3) { + return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** @@ -247,6 +369,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(2, getEndTime()); } + if (optionsCase_ == 3) { + output.writeMessage(3, (com.google.container.v1beta1.MaintenanceExclusionOptions) options_); + } unknownFields.writeTo(output); } @@ -262,6 +387,11 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } + if (optionsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.container.v1beta1.MaintenanceExclusionOptions) options_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -285,6 +415,15 @@ public boolean equals(final java.lang.Object obj) { if (hasEndTime()) { if (!getEndTime().equals(other.getEndTime())) return false; } + if (!getOptionsCase().equals(other.getOptionsCase())) return false; + switch (optionsCase_) { + case 3: + if (!getMaintenanceExclusionOptions().equals(other.getMaintenanceExclusionOptions())) + return false; + break; + case 0: + default: + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -304,6 +443,14 @@ public int hashCode() { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } + switch (optionsCase_) { + case 3: + hash = (37 * hash) + MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceExclusionOptions().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -461,6 +608,8 @@ public Builder clear() { endTime_ = null; endTimeBuilder_ = null; } + optionsCase_ = 0; + options_ = null; return this; } @@ -488,6 +637,13 @@ public com.google.container.v1beta1.TimeWindow build() { public com.google.container.v1beta1.TimeWindow buildPartial() { com.google.container.v1beta1.TimeWindow result = new com.google.container.v1beta1.TimeWindow(this); + if (optionsCase_ == 3) { + if (maintenanceExclusionOptionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = maintenanceExclusionOptionsBuilder_.build(); + } + } if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -498,6 +654,7 @@ public com.google.container.v1beta1.TimeWindow buildPartial() { } else { result.endTime_ = endTimeBuilder_.build(); } + result.optionsCase_ = optionsCase_; onBuilt(); return result; } @@ -553,6 +710,17 @@ public Builder mergeFrom(com.google.container.v1beta1.TimeWindow other) { if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } + switch (other.getOptionsCase()) { + case MAINTENANCE_EXCLUSION_OPTIONS: + { + mergeMaintenanceExclusionOptions(other.getMaintenanceExclusionOptions()); + break; + } + case OPTIONS_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -582,6 +750,262 @@ public Builder mergeFrom( return this; } + private int optionsCase_ = 0; + private java.lang.Object options_; + + public OptionsCase getOptionsCase() { + return OptionsCase.forNumber(optionsCase_); + } + + public Builder clearOptions() { + optionsCase_ = 0; + options_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceExclusionOptions, + com.google.container.v1beta1.MaintenanceExclusionOptions.Builder, + com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder> + maintenanceExclusionOptionsBuilder_; + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return Whether the maintenanceExclusionOptions field is set. + */ + @java.lang.Override + public boolean hasMaintenanceExclusionOptions() { + return optionsCase_ == 3; + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return The maintenanceExclusionOptions. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions + getMaintenanceExclusionOptions() { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (optionsCase_ == 3) { + return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } else { + if (optionsCase_ == 3) { + return maintenanceExclusionOptionsBuilder_.getMessage(); + } + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + public Builder setMaintenanceExclusionOptions( + com.google.container.v1beta1.MaintenanceExclusionOptions value) { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + maintenanceExclusionOptionsBuilder_.setMessage(value); + } + optionsCase_ = 3; + return this; + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + public Builder setMaintenanceExclusionOptions( + com.google.container.v1beta1.MaintenanceExclusionOptions.Builder builderForValue) { + if (maintenanceExclusionOptionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + maintenanceExclusionOptionsBuilder_.setMessage(builderForValue.build()); + } + optionsCase_ = 3; + return this; + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + public Builder mergeMaintenanceExclusionOptions( + com.google.container.v1beta1.MaintenanceExclusionOptions value) { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (optionsCase_ == 3 + && options_ + != com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance()) { + options_ = + com.google.container.v1beta1.MaintenanceExclusionOptions.newBuilder( + (com.google.container.v1beta1.MaintenanceExclusionOptions) options_) + .mergeFrom(value) + .buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + if (optionsCase_ == 3) { + maintenanceExclusionOptionsBuilder_.mergeFrom(value); + } + maintenanceExclusionOptionsBuilder_.setMessage(value); + } + optionsCase_ = 3; + return this; + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + public Builder clearMaintenanceExclusionOptions() { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (optionsCase_ == 3) { + optionsCase_ = 0; + options_ = null; + onChanged(); + } + } else { + if (optionsCase_ == 3) { + optionsCase_ = 0; + options_ = null; + } + maintenanceExclusionOptionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + public com.google.container.v1beta1.MaintenanceExclusionOptions.Builder + getMaintenanceExclusionOptionsBuilder() { + return getMaintenanceExclusionOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder + getMaintenanceExclusionOptionsOrBuilder() { + if ((optionsCase_ == 3) && (maintenanceExclusionOptionsBuilder_ != null)) { + return maintenanceExclusionOptionsBuilder_.getMessageOrBuilder(); + } else { + if (optionsCase_ == 3) { + return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceExclusionOptions, + com.google.container.v1beta1.MaintenanceExclusionOptions.Builder, + com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder> + getMaintenanceExclusionOptionsFieldBuilder() { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (!(optionsCase_ == 3)) { + options_ = com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + maintenanceExclusionOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceExclusionOptions, + com.google.container.v1beta1.MaintenanceExclusionOptions.Builder, + com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder>( + (com.google.container.v1beta1.MaintenanceExclusionOptions) options_, + getParentForChildren(), + isClean()); + options_ = null; + } + optionsCase_ = 3; + onChanged(); + ; + return maintenanceExclusionOptionsBuilder_; + } + private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java index 330d20cb..5c908f22 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java @@ -23,6 +23,48 @@ public interface TimeWindowOrBuilder // @@protoc_insertion_point(interface_extends:google.container.v1beta1.TimeWindow) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return Whether the maintenanceExclusionOptions field is set. + */ + boolean hasMaintenanceExclusionOptions(); + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + * + * @return The maintenanceExclusionOptions. + */ + com.google.container.v1beta1.MaintenanceExclusionOptions getMaintenanceExclusionOptions(); + /** + * + * + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * + */ + com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder + getMaintenanceExclusionOptionsOrBuilder(); + /** * * @@ -95,4 +137,6 @@ public interface TimeWindowOrBuilder * .google.protobuf.Timestamp end_time = 2; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + public com.google.container.v1beta1.TimeWindow.OptionsCase getOptionsCase(); } diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java index cdada635..95f7b532 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java @@ -249,6 +249,22 @@ private UpdateNodePoolRequest( kubeletConfig_ = subBuilder.buildPartial(); } + break; + } + case 178: + { + com.google.container.v1beta1.GcfsConfig.Builder subBuilder = null; + if (gcfsConfig_ != null) { + subBuilder = gcfsConfig_.toBuilder(); + } + gcfsConfig_ = + input.readMessage( + com.google.container.v1beta1.GcfsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcfsConfig_); + gcfsConfig_ = subBuilder.buildPartial(); + } + break; } case 234: @@ -1122,6 +1138,54 @@ public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigO return getKubeletConfig(); } + public static final int GCFS_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return gcfsConfig_ != null; + } + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return getGcfsConfig(); + } + public static final int GVNIC_FIELD_NUMBER = 29; private com.google.container.v1beta1.VirtualNIC gvnic_; /** @@ -1227,6 +1291,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (kubeletConfig_ != null) { output.writeMessage(20, getKubeletConfig()); } + if (gcfsConfig_ != null) { + output.writeMessage(22, getGcfsConfig()); + } if (gvnic_ != null) { output.writeMessage(29, getGvnic()); } @@ -1290,6 +1357,9 @@ public int getSerializedSize() { if (kubeletConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getKubeletConfig()); } + if (gcfsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getGcfsConfig()); + } if (gvnic_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getGvnic()); } @@ -1345,6 +1415,10 @@ public boolean equals(final java.lang.Object obj) { if (hasKubeletConfig()) { if (!getKubeletConfig().equals(other.getKubeletConfig())) return false; } + if (hasGcfsConfig() != other.hasGcfsConfig()) return false; + if (hasGcfsConfig()) { + if (!getGcfsConfig().equals(other.getGcfsConfig())) return false; + } if (hasGvnic() != other.hasGvnic()) return false; if (hasGvnic()) { if (!getGvnic().equals(other.getGvnic())) return false; @@ -1406,6 +1480,10 @@ public int hashCode() { hash = (37 * hash) + KUBELET_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getKubeletConfig().hashCode(); } + if (hasGcfsConfig()) { + hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcfsConfig().hashCode(); + } if (hasGvnic()) { hash = (37 * hash) + GVNIC_FIELD_NUMBER; hash = (53 * hash) + getGvnic().hashCode(); @@ -1613,6 +1691,12 @@ public Builder clear() { kubeletConfig_ = null; kubeletConfigBuilder_ = null; } + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } if (gvnicBuilder_ == null) { gvnic_ = null; } else { @@ -1694,6 +1778,11 @@ public com.google.container.v1beta1.UpdateNodePoolRequest buildPartial() { } else { result.kubeletConfig_ = kubeletConfigBuilder_.build(); } + if (gcfsConfigBuilder_ == null) { + result.gcfsConfig_ = gcfsConfig_; + } else { + result.gcfsConfig_ = gcfsConfigBuilder_.build(); + } if (gvnicBuilder_ == null) { result.gvnic_ = gvnic_; } else { @@ -1808,6 +1897,9 @@ public Builder mergeFrom(com.google.container.v1beta1.UpdateNodePoolRequest othe if (other.hasKubeletConfig()) { mergeKubeletConfig(other.getKubeletConfig()); } + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } if (other.hasGvnic()) { mergeGvnic(other.getGvnic()); } @@ -4270,6 +4362,191 @@ public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigO return kubeletConfigBuilder_; } + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + gcfsConfigBuilder_; + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return gcfsConfigBuilder_ != null || gcfsConfig_ != null; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * + * @return The gcfsConfig. + */ + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + onChanged(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (gcfsConfig_ != null) { + gcfsConfig_ = + com.google.container.v1beta1.GcfsConfig.newBuilder(gcfsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + gcfsConfig_ = value; + } + onChanged(); + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public Builder clearGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = null; + onChanged(); + } else { + gcfsConfig_ = null; + gcfsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { + + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null + ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() + : gcfsConfig_; + } + } + /** + * + * + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, + com.google.container.v1beta1.GcfsConfig.Builder, + com.google.container.v1beta1.GcfsConfigOrBuilder>( + getGcfsConfig(), getParentForChildren(), isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + private com.google.container.v1beta1.VirtualNIC gvnic_; private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1beta1.VirtualNIC, diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java index 3e0fd590..f91585a8 100644 --- a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java @@ -576,6 +576,41 @@ public interface UpdateNodePoolRequestOrBuilder */ com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder(); + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * + * @return Whether the gcfsConfig field is set. + */ + boolean hasGcfsConfig(); + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * + * @return The gcfsConfig. + */ + com.google.container.v1beta1.GcfsConfig getGcfsConfig(); + /** + * + * + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); + /** * * diff --git a/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto b/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto index 0bc24ec1..32e851a1 100644 --- a/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto +++ b/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto @@ -42,8 +42,7 @@ option (google.api.resource_definition) = { // Google Kubernetes Engine Cluster Manager v1beta1 service ClusterManager { option (google.api.default_host) = "container.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; // Lists all clusters owned by a project in either the specified zone or all // zones. @@ -120,8 +119,7 @@ service ClusterManager { } // Sets the autoscaling settings of a specific node pool. - rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest) - returns (Operation) { + rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest) returns (Operation) { option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling" body: "*" @@ -142,8 +140,7 @@ service ClusterManager { body: "*" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,logging_service"; + option (google.api.method_signature) = "project_id,zone,cluster_id,logging_service"; } // Sets the monitoring service for a specific cluster. @@ -156,8 +153,7 @@ service ClusterManager { body: "*" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,monitoring_service"; + option (google.api.method_signature) = "project_id,zone,cluster_id,monitoring_service"; } // Sets the addons for a specific cluster. @@ -170,8 +166,7 @@ service ClusterManager { body: "*" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,addons_config"; + option (google.api.method_signature) = "project_id,zone,cluster_id,addons_config"; } // Sets the locations for a specific cluster. @@ -188,8 +183,7 @@ service ClusterManager { body: "*" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,locations"; + option (google.api.method_signature) = "project_id,zone,cluster_id,locations"; } // Updates the master for a specific cluster. @@ -202,8 +196,7 @@ service ClusterManager { body: "*" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,master_version"; + option (google.api.method_signature) = "project_id,zone,cluster_id,master_version"; } // Sets master auth materials. Currently supports changing the admin password @@ -314,8 +307,7 @@ service ClusterManager { get: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,node_pool_id"; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; } // Creates a node pool for a cluster. @@ -328,8 +320,7 @@ service ClusterManager { body: "*" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,node_pool"; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool"; } // Deletes a node pool from a cluster. @@ -340,14 +331,12 @@ service ClusterManager { delete: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,node_pool_id"; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; } // Rolls back a previously Aborted or Failed NodePool upgrade. // This makes no changes if the last upgrade successfully completed. - rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest) - returns (Operation) { + rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest) returns (Operation) { option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback" body: "*" @@ -356,8 +345,7 @@ service ClusterManager { body: "*" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,node_pool_id"; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; } // Sets the NodeManagement options for a node pool. @@ -370,8 +358,7 @@ service ClusterManager { body: "*" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,node_pool_id,management"; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id,management"; } // Sets labels on a cluster. @@ -384,8 +371,7 @@ service ClusterManager { body: "*" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,resource_labels,label_fingerprint"; + option (google.api.method_signature) = "project_id,zone,cluster_id,resource_labels,label_fingerprint"; } // Enables or disables the ABAC authorization mechanism on a cluster. @@ -451,8 +437,7 @@ service ClusterManager { body: "*" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,network_policy"; + option (google.api.method_signature) = "project_id,zone,cluster_id,network_policy"; } // Sets the maintenance policy for a cluster. @@ -465,13 +450,11 @@ service ClusterManager { body: "*" } }; - option (google.api.method_signature) = - "project_id,zone,cluster_id,maintenance_policy"; + option (google.api.method_signature) = "project_id,zone,cluster_id,maintenance_policy"; } // Lists subnetworks that can be used for creating clusters in a project. - rpc ListUsableSubnetworks(ListUsableSubnetworksRequest) - returns (ListUsableSubnetworksResponse) { + rpc ListUsableSubnetworks(ListUsableSubnetworksRequest) returns (ListUsableSubnetworksResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*}/aggregated/usableSubnetworks" }; @@ -710,8 +693,26 @@ message NodeConfig { // If unspecified, ephemeral storage is backed by the boot disk. EphemeralStorageConfig ephemeral_storage_config = 24; + // GCFS (Google Container File System) configs. + GcfsConfig gcfs_config = 25; + + // Advanced features for the Compute Engine VM. + AdvancedMachineFeatures advanced_machine_features = 26; + // Enable or disable gvnic on the node pool. VirtualNIC gvnic = 29; + + // Spot flag for enabling Spot VM, which is a rebrand of + // the existing preemptible flag. + bool spot = 32; +} + +// Specifies options for controlling advanced machine features. +message AdvancedMachineFeatures { + // The number of threads per physical core. To disable simultaneous + // multithreading (SMT) set this to 1. If unset, the maximum number of threads + // supported per core by the underlying processor is assumed. + optional int64 threads_per_core = 1; } // Parameters for node pool-level network config. @@ -803,6 +804,12 @@ message EphemeralStorageConfig { int32 local_ssd_count = 1; } +// GcfsConfig contains configurations of Google Container File System. +message GcfsConfig { + // Whether to use GCFS. + bool enabled = 1; +} + // [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) // is the configuration of desired reservation which instances could take // capacity from. @@ -962,7 +969,7 @@ message AddonsConfig { // Configuration for Istio, an open platform to connect, manage, and secure // microservices. - IstioConfig istio_config = 5; + IstioConfig istio_config = 5 [deprecated = true]; // Configuration for the Cloud Run addon. The `IstioConfig` addon must be // enabled in order to enable Cloud Run addon. This option can only be enabled @@ -982,6 +989,12 @@ message AddonsConfig { // Configuration for the KALM addon, which manages the lifecycle of k8s // applications. KalmConfig kalm_config = 12 [deprecated = true]; + + // Configuration for the GCP Filestore CSI driver. + GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + + // Configuration for the Backup for GKE agent addon. + GkeBackupAgentConfig gke_backup_agent_config = 16; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -1029,6 +1042,12 @@ message KalmConfig { bool enabled = 1 [deprecated = true]; } +// Configuration for the Backup for GKE Agent. +message GkeBackupAgentConfig { + // Whether the Backup for GKE agent is enabled for this cluster. + bool enabled = 1; +} + // Configuration options for the Config Connector add-on. message ConfigConnectorConfig { // Whether Cloud Connector is enabled for this cluster. @@ -1041,6 +1060,12 @@ message GcePersistentDiskCsiDriverConfig { bool enabled = 1; } +// Configuration for the GCP Filestore CSI driver. +message GcpFilestoreCsiDriverConfig { + // Whether the GCP Filestore CSI driver is enabled for this cluster. + bool enabled = 1; +} + // Configuration for controlling master global access settings. message PrivateClusterMasterGlobalAccessConfig { // Whenever master is accessible globally or not. @@ -1088,10 +1113,10 @@ message IstioConfig { } // Whether Istio is enabled for this cluster. - bool disabled = 1; + bool disabled = 1 [deprecated = true]; // The specified Istio auth mode, either none, or mutual TLS. - IstioAuthMode auth = 2; + IstioAuthMode auth = 2 [deprecated = true]; } // Configuration options for the Cloud Run feature. @@ -1575,6 +1600,10 @@ message Cluster { // pods. WorkloadCertificates workload_certificates = 52; + // Configuration for issuance of mTLS keys and certificates to Kubernetes + // pods. + MeshCertificates mesh_certificates = 67; + // Telemetry integration for the cluster. ClusterTelemetry cluster_telemetry = 46; @@ -1716,7 +1745,10 @@ message NodePoolDefaults { } // Subset of NodeConfig message that has defaults. -message NodeConfigDefaults {} +message NodeConfigDefaults { + // GCFS (Google Container File System, a.k.a Riptide) options. + GcfsConfig gcfs_config = 1; +} // ClusterUpdate describes an update to the cluster. Exactly one update can // be applied to a cluster with each request, so at most one field can be @@ -1851,6 +1883,9 @@ message ClusterUpdate { // - "-": picks the default Kubernetes version string desired_master_version = 100; + // The desired GCFS config for the cluster. + GcfsConfig desired_gcfs_config = 109; + // Configuration of etcd encryption. DatabaseEncryption desired_database_encryption = 46; @@ -1861,6 +1896,10 @@ message ClusterUpdate { // pods. WorkloadCertificates desired_workload_certificates = 61; + // Configuration for issuance of mTLS keys and certificates to Kubernetes + // pods. + MeshCertificates desired_mesh_certificates = 67; + // Configuration for Shielded Nodes. ShieldedNodes desired_shielded_nodes = 48; @@ -1982,8 +2021,10 @@ message Operation { // Output only. If an error has occurred, a textual description of the error. // Deprecated. Use field error instead. - string status_message = 5 - [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + string status_message = 5 [ + deprecated = true, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Server-defined URL for the resource. string self_link = 6; @@ -2066,14 +2107,19 @@ message CreateClusterRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the parent field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. A [cluster // resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters) @@ -2089,19 +2135,26 @@ message GetClusterRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster to retrieve. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster) of the cluster to retrieve. // Specified in the format `projects/*/locations/*/clusters/*`. @@ -2113,19 +2166,26 @@ message UpdateClusterRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. A description of the update. ClusterUpdate update = 4 [(google.api.field_behavior) = REQUIRED]; @@ -2140,24 +2200,33 @@ message UpdateNodePoolRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the node pool to upgrade. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. The Kubernetes version to change the nodes to (typically an // upgrade). @@ -2214,6 +2283,9 @@ message UpdateNodePoolRequest { // Node kubelet configs. NodeKubeletConfig kubelet_config = 20; + // GCFS config. + GcfsConfig gcfs_config = 22; + // Enable or disable gvnic on the node pool. VirtualNIC gvnic = 29; } @@ -2223,24 +2295,33 @@ message SetNodePoolAutoscalingRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the node pool to upgrade. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Autoscaling configuration for the node pool. NodePoolAutoscaling autoscaling = 5 [(google.api.field_behavior) = REQUIRED]; @@ -2256,19 +2337,26 @@ message SetLoggingServiceRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. The logging service the cluster should use to write logs. // Currently available options: @@ -2293,19 +2381,26 @@ message SetMonitoringServiceRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. The monitoring service the cluster should use to write metrics. // Currently available options: @@ -2330,22 +2425,29 @@ message SetAddonsConfigRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Required. The desired configurations for the various addons available to - // run in the cluster. + // Required. The desired configurations for the various addons available to run in the + // cluster. AddonsConfig addons_config = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set addons. @@ -2358,19 +2460,26 @@ message SetLocationsRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. The desired list of Google Compute Engine // [zones](https://cloud.google.com/compute/docs/zones#available) in which the @@ -2391,19 +2500,26 @@ message UpdateMasterRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. The Kubernetes version to change the master to. // @@ -2445,19 +2561,26 @@ message SetMasterAuthRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. The exact form of action to be taken on the master auth. Action action = 4 [(google.api.field_behavior) = REQUIRED]; @@ -2475,19 +2598,26 @@ message DeleteClusterRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster to delete. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster) of the cluster to delete. // Specified in the format `projects/*/locations/*/clusters/*`. @@ -2499,14 +2629,19 @@ message ListClustersRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the parent field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The parent (project and location) where the clusters will be listed. // Specified in the format `projects/*/locations/*`. @@ -2530,19 +2665,26 @@ message GetOperationRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The server-assigned `name` of the operation. // This field has been deprecated and replaced by the name field. - string operation_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string operation_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, operation id) of the operation to get. // Specified in the format `projects/*/locations/*/operations/*`. @@ -2554,14 +2696,19 @@ message ListOperationsRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the parent field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The parent (project and location) where the operations will be listed. // Specified in the format `projects/*/locations/*`. @@ -2574,19 +2721,26 @@ message CancelOperationRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The server-assigned `name` of the operation. // This field has been deprecated and replaced by the name field. - string operation_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string operation_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, operation id) of the operation to cancel. // Specified in the format `projects/*/locations/*/operations/*`. @@ -2608,14 +2762,19 @@ message GetServerConfigRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project and location) of the server config to get, // specified in the format `projects/*/locations/*`. @@ -2697,19 +2856,26 @@ message CreateNodePoolRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the parent field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the parent field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. The node pool to create. NodePool node_pool = 4 [(google.api.field_behavior) = REQUIRED]; @@ -2725,24 +2891,33 @@ message DeleteNodePoolRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the node pool to delete. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster, node pool id) of the node pool to // delete. Specified in the format @@ -2755,19 +2930,26 @@ message ListNodePoolsRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the parent field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the parent field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The parent (project, location, cluster id) where the node pools will be // listed. Specified in the format `projects/*/locations/*/clusters/*`. @@ -2779,24 +2961,33 @@ message GetNodePoolRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the node pool. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster, node pool id) of the node pool to // get. Specified in the format @@ -2876,6 +3067,23 @@ message NodePool { ERROR = 6; } + // PlacementPolicy defines the placement policy used by the node pool. + message PlacementPolicy { + // Type defines the type of placement policy. + enum Type { + // TYPE_UNSPECIFIED specifies no requirements on nodes + // placement. + TYPE_UNSPECIFIED = 0; + + // COMPACT specifies node placement in the same availability domain to + // ensure low communication latency. + COMPACT = 1; + } + + // The type of placement. + Type type = 1; + } + // The name of the node pool. string name = 1; @@ -2942,6 +3150,9 @@ message NodePool { // Upgrade settings control disruption and speed of the upgrade. UpgradeSettings upgrade_settings = 107; + + // Specifies the node placement policy. + PlacementPolicy placement_policy = 108; } // NodeManagement defines the set of node management services turned on for the @@ -3004,6 +3215,12 @@ message MaintenanceWindow { // Represents an arbitrary window of time. message TimeWindow { + oneof options { + // MaintenanceExclusionOptions provides maintenance exclusion related + // options. + MaintenanceExclusionOptions maintenance_exclusion_options = 3; + } + // The time that the window first starts. google.protobuf.Timestamp start_time = 1; @@ -3012,6 +3229,30 @@ message TimeWindow { google.protobuf.Timestamp end_time = 2; } +// Represents the Maintenance exclusion option. +message MaintenanceExclusionOptions { + // Scope of exclusion. + enum Scope { + // NO_UPGRADES excludes all upgrades, including patch upgrades and minor + // upgrades across control planes and nodes. This is the default exclusion + // behavior. + NO_UPGRADES = 0; + + // NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only + // patches are allowed. + NO_MINOR_UPGRADES = 1; + + // NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster, + // and also exclude all node pool upgrades. Only control + // plane patches are allowed. + NO_MINOR_OR_NODE_UPGRADES = 2; + } + + // Scope specifies the upgrade scope which upgrades are blocked by the + // exclusion. + Scope scope = 1; +} + // Represents an arbitrary window of time that recurs. message RecurringTimeWindow { // The window of the first recurrence. @@ -3069,24 +3310,33 @@ message SetNodePoolManagementRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster to update. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the node pool to update. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. NodeManagement configuration for the node pool. NodeManagement management = 5 [(google.api.field_behavior) = REQUIRED]; @@ -3102,24 +3352,33 @@ message SetNodePoolSizeRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster to update. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the node pool to update. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. The desired node count for the pool. int32 node_count = 5 [(google.api.field_behavior) = REQUIRED]; @@ -3137,24 +3396,33 @@ message RollbackNodePoolUpgradeRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster to rollback. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the node pool to rollback. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster, node pool id) of the node poll to // rollback upgrade. @@ -3294,12 +3562,12 @@ message NodePoolAutoscaling { // Is autoscaling enabled for this node pool. bool enabled = 1; - // Minimum number of nodes in the NodePool. Must be >= 1 and <= - // max_node_count. + // Minimum number of nodes for one location in the NodePool. Must be >= 1 and + // <= max_node_count. int32 min_node_count = 2; - // Maximum number of nodes in the NodePool. Must be >= min_node_count. There - // has to be enough quota to scale up the cluster. + // Maximum number of nodes for one location in the NodePool. Must be >= + // min_node_count. There has to be enough quota to scale up the cluster. int32 max_node_count = 3; // Can this node pool be deleted automatically. @@ -3313,23 +3581,29 @@ message SetLabelsRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. The labels to set for that cluster. - map resource_labels = 4 - [(google.api.field_behavior) = REQUIRED]; + map resource_labels = 4 [(google.api.field_behavior) = REQUIRED]; // Required. The fingerprint of the previous set of labels for this resource, // used to detect conflicts. The fingerprint is initially generated by @@ -3350,19 +3624,26 @@ message SetLegacyAbacRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster to update. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Whether ABAC authorization will be enabled in the cluster. bool enabled = 4 [(google.api.field_behavior) = REQUIRED]; @@ -3378,19 +3659,26 @@ message StartIPRotationRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster id) of the cluster to start IP // rotation. Specified in the format `projects/*/locations/*/clusters/*`. @@ -3405,19 +3693,26 @@ message CompleteIPRotationRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster id) of the cluster to complete IP // rotation. Specified in the format `projects/*/locations/*/clusters/*`. @@ -3439,6 +3734,13 @@ message AcceleratorConfig { string gpu_partition_size = 3; } +// ManagedPrometheusConfig defines the configuration for +// Google Cloud Managed Service for Prometheus. +message ManagedPrometheusConfig { + // Enable Managed Collection. + bool enabled = 1; +} + // WorkloadMetadataConfig defines the metadata configuration to expose to // workloads on the node pool. message WorkloadMetadataConfig { @@ -3500,19 +3802,26 @@ message SetNetworkPolicyRequest { // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. 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. - string zone = 2 [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // Required. Configuration options for the NetworkPolicy feature. NetworkPolicy network_policy = 4 [(google.api.field_behavior) = REQUIRED]; @@ -3538,8 +3847,7 @@ message SetMaintenancePolicyRequest { // Required. The maintenance policy to be set for the cluster. An empty field // clears the existing maintenance policy. - MaintenancePolicy maintenance_policy = 4 - [(google.api.field_behavior) = REQUIRED]; + MaintenancePolicy maintenance_policy = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster id) of the cluster to set maintenance // policy. @@ -3882,6 +4190,20 @@ message WorkloadCertificates { google.protobuf.BoolValue enable_certificates = 1; } +// Configuration for issuance of mTLS keys and certificates to Kubernetes pods. +message MeshCertificates { + // enable_certificates controls issuance of workload mTLS certificates. + // + // If set, the GKE Workload Identity Certificates controller and node agent + // will be deployed in the cluster, which can then be configured by creating a + // WorkloadCertificateConfig Custom Resource. + // + // Requires Workload Identity + // ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool] + // must be non-empty). + google.protobuf.BoolValue enable_certificates = 1; +} + // Configuration of etcd encryption. message DatabaseEncryption { // State of etcd encryption. @@ -3947,7 +4269,7 @@ message VirtualNIC { // 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 + // The cluster (project, location, cluster name) to get the discovery document // for. Specified in the format `projects/*/locations/*/clusters/*`. string parent = 1; } @@ -4070,8 +4392,42 @@ message TpuConfig { string ipv4_cidr_block = 3; } +// PrivateIPv6GoogleAccess controls whether and how the pods can communicate +// with Google Services through gRPC over IPv6. +enum PrivateIPv6GoogleAccess { + // Default value. Same as DISABLED + PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + + // No private access to or from Google Services + PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + + // Enables private IPv6 access to Google Services from GKE + PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + + // Enables priate IPv6 access to and from Google Services + PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; +} + // Master is the configuration for components on master. -message Master {} +message Master { + +} + +// The datapath provider selects the implementation of the Kubernetes networking +// // model for service resolution and network policy enforcement. +enum DatapathProvider { + // Default value. + DATAPATH_PROVIDER_UNSPECIFIED = 0; + + // Use the IPTables implementation based on kube-proxy. + LEGACY_DATAPATH = 1; + + // Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE + // Dataplane V2 + // documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2) + // for more. + ADVANCED_DATAPATH = 2; +} // Autopilot is the configuration for Autopilot settings on the cluster. message Autopilot { @@ -4081,6 +4437,22 @@ message Autopilot { // NotificationConfig is the configuration of notifications. message NotificationConfig { + // Types of notifications currently supported. Can be used to filter what + // notifications are sent. + enum EventType { + // Not set, will be ignored. + EVENT_TYPE_UNSPECIFIED = 0; + + // Corresponds with UpgradeAvailableEvent. + UPGRADE_AVAILABLE_EVENT = 1; + + // Corresponds with UpgradeEvent. + UPGRADE_EVENT = 2; + + // Corresponds with SecurityBulletinEvent. + SECURITY_BULLETIN_EVENT = 3; + } + // Pub/Sub specific notification config. message PubSub { // Enable notifications for Pub/Sub. @@ -4088,9 +4460,23 @@ message NotificationConfig { // The desired Pub/Sub topic to which notifications will be // sent by GKE. Format is `projects/{project}/topics/{topic}`. - string topic = 2 [ - (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } - ]; + string topic = 2 [(google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + }]; + + // Allows filtering to one or more specific event types. If no filter is + // specified, or if a filter is specified with no event types, all event + // types will be sent + Filter filter = 3; + } + + // Allows filtering to one or more specific event types. If event types are + // present, those and only those event types will be transmitted to the + // cluster. Other types will be skipped. If no filter is specified, or no + // event types are present, all event types will be sent + message Filter { + // Event types to allowlist. + repeated EventType event_type = 1; } // Notification config for Pub/Sub. @@ -4105,19 +4491,37 @@ message ConfidentialNodes { bool enabled = 1; } +// UpgradeResourceType is the resource type that is upgrading. It is used +// in upgrade notifications. +enum UpgradeResourceType { + // Default value. This shouldn't be used. + UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + + // Master / control plane + MASTER = 1; + + // Node pool + NODE_POOL = 2; +} + // UpgradeEvent is a notification sent to customers by the cluster server when // a resource is upgrading. message UpgradeEvent { // The resource type that is upgrading. UpgradeResourceType resource_type = 1; + // The operation associated with this upgrade. string operation = 2; + // The time when the operation was started. google.protobuf.Timestamp operation_start_time = 3; + // The current version before the upgrade. string current_version = 4; + // The target version for the upgrade. string target_version = 5; + // Optional relative path to the resource. For example in node pool upgrades, // the relative path of the node pool. string resource = 6; @@ -4144,6 +4548,48 @@ message UpgradeAvailableEvent { WindowsVersions windows_versions = 5; } +// SecurityBulletinEvent is a notification sent to customers when a security +// bulletin has been posted that they are vulnerable to. +message SecurityBulletinEvent { + // The resource type (node/control plane) that has the vulnerability. Multiple + // notifications (1 notification per resource type) will be sent for a + // vulnerability that affects > 1 resource type. + string resource_type_affected = 1; + + // The ID of the bulletin corresponding to the vulnerability. + string bulletin_id = 2; + + // The CVEs associated with this bulletin. + repeated string cve_ids = 3; + + // The severity of this bulletin as it relates to GKE. + string severity = 4; + + // The URI link to the bulletin on the website for more information. + string bulletin_uri = 5; + + // A brief description of the bulletin. See the bulletin pointed to by the + // bulletin_uri field for an expanded description. + string brief_description = 6; + + // The GKE minor versions affected by this vulnerability. + repeated string affected_supported_minors = 7; + + // The GKE versions where this vulnerability is patched. + repeated string patched_versions = 8; + + // This represents a version selected from the patched_versions field that + // the cluster receiving this notification should most likely want to upgrade + // to based on its current version. Note that if this notification is being + // received by a given cluster, it means that this version is currently + // available as an upgrade target in that cluster's location. + string suggested_upgrade_target = 9; + + // If this field is specified, it means there are manual steps that the user + // must take to make their clusters safe. + bool manual_steps_required = 10; +} + // IdentityServiceConfig is configuration for Identity Service which allows // customers to use external identity providers with the K8S API message IdentityServiceConfig { @@ -4179,6 +4625,10 @@ message LoggingComponentConfig { message MonitoringConfig { // Monitoring components configuration MonitoringComponentConfig component_config = 1; + + // Enable Google Cloud Managed Service for Prometheus + // in the cluster. + ManagedPrometheusConfig managed_prometheus_config = 2; } // MonitoringComponentConfig is cluster monitoring component configuration. @@ -4199,48 +4649,3 @@ message MonitoringComponentConfig { // monitoring. repeated Component enable_components = 1; } - -// PrivateIPv6GoogleAccess controls whether and how the pods can communicate -// with Google Services through gRPC over IPv6. -enum PrivateIPv6GoogleAccess { - // Default value. Same as DISABLED - PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - - // No private access to or from Google Services - PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; - - // Enables private IPv6 access to Google Services from GKE - PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; - - // Enables priate IPv6 access to and from Google Services - PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; -} - -// The datapath provider selects the implementation of the Kubernetes networking -// // model for service resolution and network policy enforcement. -enum DatapathProvider { - // Default value. - DATAPATH_PROVIDER_UNSPECIFIED = 0; - - // Use the IPTables implementation based on kube-proxy. - LEGACY_DATAPATH = 1; - - // Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE - // Dataplane V2 - // documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2) - // for more. - ADVANCED_DATAPATH = 2; -} - -// UpgradeResourceType is the resource type that is upgrading. It is used -// in upgrade notifications. -enum UpgradeResourceType { - // Default value. This shouldn't be used. - UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - - // Master / control plane - MASTER = 1; - - // Node pool - NODE_POOL = 2; -}