From 06f09bbb866945d6f6b2cf768a4ddaf5179110fd Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 24 Jun 2021 18:46:28 +0000 Subject: [PATCH] chore: release gapic-generator-java v1.0.13 (#484) Committer: @miraleung PiperOrigin-RevId: 379784268 Source-Link: https://github.com/googleapis/googleapis/commit/551681f25e36b11829e87e580281350461f4f3f5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/478f36572d7bcf1dc66038d0e76b9b3fa2abae63 feat: add v1beta1 client --- google-cloud-container-bom/pom.xml | 10 + google-cloud-container/pom.xml | 9 + .../v1beta1/ClusterManagerClient.java | 3251 ++++ .../v1beta1/ClusterManagerSettings.java | 585 + .../container/v1beta1/gapic_metadata.json | 117 + .../cloud/container/v1beta1/package-info.java | 37 + .../v1beta1/stub/ClusterManagerStub.java | 223 + .../stub/ClusterManagerStubSettings.java | 1185 ++ .../GrpcClusterManagerCallableFactory.java | 115 + .../v1beta1/stub/GrpcClusterManagerStub.java | 1362 ++ .../v1beta1/ClusterManagerClientTest.java | 2083 +++ .../container/v1beta1/MockClusterManager.java | 59 + .../v1beta1/MockClusterManagerImpl.java | 795 + grpc-google-cloud-container-v1beta1/pom.xml | 65 + .../container/v1beta1/ClusterManagerGrpc.java | 4216 +++++ pom.xml | 12 + .../clirr-ignored-differences.xml | 19 + proto-google-cloud-container-v1beta1/pom.xml | 42 + .../container/v1beta1/AcceleratorConfig.java | 731 + .../v1beta1/AcceleratorConfigOrBuilder.java | 65 + .../container/v1beta1/AddonsConfig.java | 3512 ++++ .../v1beta1/AddonsConfigOrBuilder.java | 435 + .../v1beta1/AuthenticatorGroupsConfig.java | 738 + .../AuthenticatorGroupsConfigOrBuilder.java | 66 + .../container/v1beta1/AutoUpgradeOptions.java | 837 + .../v1beta1/AutoUpgradeOptionsOrBuilder.java | 81 + .../AutoprovisioningNodePoolDefaults.java | 2847 +++ ...provisioningNodePoolDefaultsOrBuilder.java | 399 + .../v1beta1/BinaryAuthorization.java | 549 + .../v1beta1/BinaryAuthorizationOrBuilder.java | 39 + .../v1beta1/CancelOperationRequest.java | 1257 ++ .../CancelOperationRequestOrBuilder.java | 149 + .../v1beta1/ClientCertificateConfig.java | 546 + .../ClientCertificateConfigOrBuilder.java | 38 + .../container/v1beta1/CloudRunConfig.java | 870 + .../v1beta1/CloudRunConfigOrBuilder.java | 63 + .../com/google/container/v1beta1/Cluster.java | 15376 ++++++++++++++++ .../container/v1beta1/ClusterAutoscaling.java | 2045 ++ .../v1beta1/ClusterAutoscalingOrBuilder.java | 227 + .../container/v1beta1/ClusterOrBuilder.java | 2115 +++ .../v1beta1/ClusterServiceProto.java | 2676 +++ .../container/v1beta1/ClusterTelemetry.java | 788 + .../v1beta1/ClusterTelemetryOrBuilder.java | 50 + .../container/v1beta1/ClusterUpdate.java | 7887 ++++++++ .../v1beta1/ClusterUpdateOrBuilder.java | 1060 ++ .../v1beta1/CompleteIPRotationRequest.java | 1258 ++ .../CompleteIPRotationRequestOrBuilder.java | 149 + .../container/v1beta1/ConfidentialNodes.java | 550 + .../v1beta1/ConfidentialNodesOrBuilder.java | 39 + .../v1beta1/ConfigConnectorConfig.java | 546 + .../ConfigConnectorConfigOrBuilder.java | 38 + .../v1beta1/CreateClusterRequest.java | 1365 ++ .../CreateClusterRequestOrBuilder.java | 159 + .../v1beta1/CreateNodePoolRequest.java | 1565 ++ .../CreateNodePoolRequestOrBuilder.java | 192 + .../v1beta1/DailyMaintenanceWindow.java | 829 + .../DailyMaintenanceWindowOrBuilder.java | 79 + .../container/v1beta1/DatabaseEncryption.java | 955 + .../v1beta1/DatabaseEncryptionOrBuilder.java | 77 + .../container/v1beta1/DatapathProvider.java | 183 + .../container/v1beta1/DefaultSnatStatus.java | 546 + .../v1beta1/DefaultSnatStatusOrBuilder.java | 38 + .../v1beta1/DeleteClusterRequest.java | 1257 ++ .../DeleteClusterRequestOrBuilder.java | 149 + .../v1beta1/DeleteNodePoolRequest.java | 1464 ++ .../DeleteNodePoolRequestOrBuilder.java | 182 + .../container/v1beta1/DnsCacheConfig.java | 544 + .../v1beta1/DnsCacheConfigOrBuilder.java | 38 + .../v1beta1/EphemeralStorageConfig.java | 556 + .../EphemeralStorageConfigOrBuilder.java | 40 + .../GcePersistentDiskCsiDriverConfig.java | 554 + ...ersistentDiskCsiDriverConfigOrBuilder.java | 38 + .../container/v1beta1/GetClusterRequest.java | 1255 ++ .../v1beta1/GetClusterRequestOrBuilder.java | 149 + .../v1beta1/GetJSONWebKeysRequest.java | 649 + .../GetJSONWebKeysRequestOrBuilder.java | 52 + .../v1beta1/GetJSONWebKeysResponse.java | 968 + .../GetJSONWebKeysResponseOrBuilder.java | 81 + .../container/v1beta1/GetNodePoolRequest.java | 1463 ++ .../v1beta1/GetNodePoolRequestOrBuilder.java | 182 + .../v1beta1/GetOpenIDConfigRequest.java | 645 + .../GetOpenIDConfigRequestOrBuilder.java | 52 + .../v1beta1/GetOpenIDConfigResponse.java | 2211 +++ .../GetOpenIDConfigResponseOrBuilder.java | 330 + .../v1beta1/GetOperationRequest.java | 1256 ++ .../v1beta1/GetOperationRequestOrBuilder.java | 149 + .../v1beta1/GetServerConfigRequest.java | 1057 ++ .../GetServerConfigRequestOrBuilder.java | 118 + .../v1beta1/HorizontalPodAutoscaling.java | 559 + .../HorizontalPodAutoscalingOrBuilder.java | 40 + .../container/v1beta1/HttpLoadBalancing.java | 554 + .../v1beta1/HttpLoadBalancingOrBuilder.java | 40 + .../container/v1beta1/IPAllocationPolicy.java | 3062 +++ .../v1beta1/IPAllocationPolicyOrBuilder.java | 454 + .../v1beta1/IntraNodeVisibilityConfig.java | 549 + .../IntraNodeVisibilityConfigOrBuilder.java | 38 + .../google/container/v1beta1/IstioConfig.java | 833 + .../v1beta1/IstioConfigOrBuilder.java | 63 + .../com/google/container/v1beta1/Jwk.java | 2062 +++ .../container/v1beta1/JwkOrBuilder.java | 250 + .../google/container/v1beta1/KalmConfig.java | 543 + .../v1beta1/KalmConfigOrBuilder.java | 38 + .../v1beta1/KubernetesDashboard.java | 545 + .../v1beta1/KubernetesDashboardOrBuilder.java | 38 + .../google/container/v1beta1/LegacyAbac.java | 557 + .../v1beta1/LegacyAbacOrBuilder.java | 41 + .../container/v1beta1/LinuxNodeConfig.java | 900 + .../v1beta1/LinuxNodeConfigOrBuilder.java | 134 + .../v1beta1/ListClustersRequest.java | 1063 ++ .../v1beta1/ListClustersRequestOrBuilder.java | 120 + .../v1beta1/ListClustersResponse.java | 1260 ++ .../ListClustersResponseOrBuilder.java | 137 + .../v1beta1/ListLocationsRequest.java | 643 + .../ListLocationsRequestOrBuilder.java | 52 + .../v1beta1/ListLocationsResponse.java | 1150 ++ .../ListLocationsResponseOrBuilder.java | 108 + .../v1beta1/ListNodePoolsRequest.java | 1257 ++ .../ListNodePoolsRequestOrBuilder.java | 149 + .../v1beta1/ListNodePoolsResponse.java | 948 + .../ListNodePoolsResponseOrBuilder.java | 77 + .../v1beta1/ListOperationsRequest.java | 1064 ++ .../ListOperationsRequestOrBuilder.java | 120 + .../v1beta1/ListOperationsResponse.java | 1238 ++ .../ListOperationsResponseOrBuilder.java | 132 + .../v1beta1/ListUsableSubnetworksRequest.java | 1134 ++ ...ListUsableSubnetworksRequestOrBuilder.java | 126 + .../ListUsableSubnetworksResponse.java | 1156 ++ ...istUsableSubnetworksResponseOrBuilder.java | 108 + .../google/container/v1beta1/Location.java | 1053 ++ .../container/v1beta1/LocationOrBuilder.java | 92 + .../container/v1beta1/MaintenancePolicy.java | 940 + .../v1beta1/MaintenancePolicyOrBuilder.java | 93 + .../container/v1beta1/MaintenanceWindow.java | 1554 ++ .../v1beta1/MaintenanceWindowOrBuilder.java | 170 + .../com/google/container/v1beta1/Master.java | 451 + .../google/container/v1beta1/MasterAuth.java | 1740 ++ .../v1beta1/MasterAuthOrBuilder.java | 214 + .../MasterAuthorizedNetworksConfig.java | 2024 ++ ...sterAuthorizedNetworksConfigOrBuilder.java | 108 + .../container/v1beta1/MasterOrBuilder.java | 24 + .../container/v1beta1/MaxPodsConstraint.java | 544 + .../v1beta1/MaxPodsConstraintOrBuilder.java | 38 + .../container/v1beta1/NetworkConfig.java | 1424 ++ .../v1beta1/NetworkConfigOrBuilder.java | 172 + .../container/v1beta1/NetworkPolicy.java | 838 + .../v1beta1/NetworkPolicyConfig.java | 549 + .../v1beta1/NetworkPolicyConfigOrBuilder.java | 38 + .../v1beta1/NetworkPolicyOrBuilder.java | 63 + .../google/container/v1beta1/NodeConfig.java | 7014 +++++++ .../v1beta1/NodeConfigOrBuilder.java | 1118 ++ .../container/v1beta1/NodeKubeletConfig.java | 1248 ++ .../v1beta1/NodeKubeletConfigOrBuilder.java | 153 + .../container/v1beta1/NodeManagement.java | 914 + .../v1beta1/NodeManagementOrBuilder.java | 86 + .../google/container/v1beta1/NodePool.java | 5084 +++++ .../v1beta1/NodePoolAutoscaling.java | 825 + .../v1beta1/NodePoolAutoscalingOrBuilder.java | 79 + .../container/v1beta1/NodePoolOrBuilder.java | 556 + .../google/container/v1beta1/NodeTaint.java | 1149 ++ .../container/v1beta1/NodeTaintOrBuilder.java | 100 + .../container/v1beta1/NotificationConfig.java | 1499 ++ .../v1beta1/NotificationConfigOrBuilder.java | 60 + .../google/container/v1beta1/Operation.java | 4881 +++++ .../container/v1beta1/OperationOrBuilder.java | 546 + .../container/v1beta1/OperationProgress.java | 3235 ++++ .../v1beta1/OperationProgressOrBuilder.java | 208 + .../v1beta1/PodSecurityPolicyConfig.java | 550 + .../PodSecurityPolicyConfigOrBuilder.java | 39 + .../v1beta1/PrivateClusterConfig.java | 1701 ++ .../PrivateClusterConfigOrBuilder.java | 201 + ...rivateClusterMasterGlobalAccessConfig.java | 560 + ...sterMasterGlobalAccessConfigOrBuilder.java | 38 + .../v1beta1/RecurringTimeWindow.java | 1085 ++ .../v1beta1/RecurringTimeWindowOrBuilder.java | 135 + .../container/v1beta1/ReleaseChannel.java | 810 + .../v1beta1/ReleaseChannelOrBuilder.java | 50 + .../v1beta1/ReservationAffinity.java | 1271 ++ .../v1beta1/ReservationAffinityOrBuilder.java | 130 + .../container/v1beta1/ResourceLimit.java | 816 + .../v1beta1/ResourceLimitOrBuilder.java | 76 + .../v1beta1/ResourceUsageExportConfig.java | 2474 +++ .../ResourceUsageExportConfigOrBuilder.java | 125 + .../RollbackNodePoolUpgradeRequest.java | 1470 ++ ...llbackNodePoolUpgradeRequestOrBuilder.java | 182 + .../container/v1beta1/SandboxConfig.java | 926 + .../v1beta1/SandboxConfigOrBuilder.java | 77 + .../container/v1beta1/ServerConfig.java | 4989 +++++ .../v1beta1/ServerConfigOrBuilder.java | 281 + .../v1beta1/SetAddonsConfigRequest.java | 1571 ++ .../SetAddonsConfigRequestOrBuilder.java | 193 + .../container/v1beta1/SetLabelsRequest.java | 1825 ++ .../v1beta1/SetLabelsRequestOrBuilder.java | 243 + .../v1beta1/SetLegacyAbacRequest.java | 1349 ++ .../SetLegacyAbacRequestOrBuilder.java | 162 + .../v1beta1/SetLocationsRequest.java | 1601 ++ .../v1beta1/SetLocationsRequestOrBuilder.java | 220 + .../v1beta1/SetLoggingServiceRequest.java | 1493 ++ .../SetLoggingServiceRequestOrBuilder.java | 190 + .../v1beta1/SetMaintenancePolicyRequest.java | 1523 ++ .../SetMaintenancePolicyRequestOrBuilder.java | 179 + .../v1beta1/SetMasterAuthRequest.java | 1911 ++ .../SetMasterAuthRequestOrBuilder.java | 219 + .../v1beta1/SetMonitoringServiceRequest.java | 1493 ++ .../SetMonitoringServiceRequestOrBuilder.java | 190 + .../v1beta1/SetNetworkPolicyRequest.java | 1559 ++ .../SetNetworkPolicyRequestOrBuilder.java | 190 + .../SetNodePoolAutoscalingRequest.java | 1767 ++ ...etNodePoolAutoscalingRequestOrBuilder.java | 223 + .../v1beta1/SetNodePoolManagementRequest.java | 1769 ++ ...SetNodePoolManagementRequestOrBuilder.java | 223 + .../v1beta1/SetNodePoolSizeRequest.java | 1556 ++ .../SetNodePoolSizeRequestOrBuilder.java | 195 + .../v1beta1/ShieldedInstanceConfig.java | 664 + .../ShieldedInstanceConfigOrBuilder.java | 58 + .../container/v1beta1/ShieldedNodes.java | 544 + .../v1beta1/ShieldedNodesOrBuilder.java | 38 + .../v1beta1/StartIPRotationRequest.java | 1349 ++ .../StartIPRotationRequestOrBuilder.java | 162 + .../container/v1beta1/StatusCondition.java | 1181 ++ .../v1beta1/StatusConditionOrBuilder.java | 104 + .../google/container/v1beta1/TimeWindow.java | 1001 + .../v1beta1/TimeWindowOrBuilder.java | 98 + .../google/container/v1beta1/TopicName.java | 191 + .../google/container/v1beta1/TpuConfig.java | 813 + .../container/v1beta1/TpuConfigOrBuilder.java | 76 + .../v1beta1/UpdateClusterRequest.java | 1558 ++ .../UpdateClusterRequestOrBuilder.java | 190 + .../v1beta1/UpdateMasterRequest.java | 1484 ++ .../v1beta1/UpdateMasterRequestOrBuilder.java | 188 + .../v1beta1/UpdateNodePoolRequest.java | 3335 ++++ .../UpdateNodePoolRequestOrBuilder.java | 455 + .../container/v1beta1/UpgradeEvent.java | 1650 ++ .../v1beta1/UpgradeEventOrBuilder.java | 197 + .../v1beta1/UpgradeResourceType.java | 180 + .../container/v1beta1/UsableSubnetwork.java | 1777 ++ .../v1beta1/UsableSubnetworkOrBuilder.java | 199 + .../UsableSubnetworkSecondaryRange.java | 1192 ++ ...ableSubnetworkSecondaryRangeOrBuilder.java | 102 + .../v1beta1/VerticalPodAutoscaling.java | 550 + .../VerticalPodAutoscalingOrBuilder.java | 38 + .../v1beta1/WorkloadIdentityConfig.java | 1003 + .../WorkloadIdentityConfigOrBuilder.java | 102 + .../v1beta1/WorkloadMetadataConfig.java | 1179 ++ .../WorkloadMetadataConfigOrBuilder.java | 85 + .../container/v1beta1/cluster_service.proto | 4080 ++++ versions.txt | 2 + 246 files changed, 213519 insertions(+) create mode 100644 google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java create mode 100644 google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java create mode 100644 google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/gapic_metadata.json create mode 100644 google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java create mode 100644 google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java create mode 100644 google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java create mode 100644 google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerCallableFactory.java create mode 100644 google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerStub.java create mode 100644 google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java create mode 100644 google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManager.java create mode 100644 google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManagerImpl.java create mode 100644 grpc-google-cloud-container-v1beta1/pom.xml create mode 100644 grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java create mode 100644 proto-google-cloud-container-v1beta1/clirr-ignored-differences.xml create mode 100644 proto-google-cloud-container-v1beta1/pom.xml create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetry.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetryOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodes.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodesOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryption.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryptionOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatapathProvider.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatus.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatusOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponse.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponseOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponse.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponseOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Jwk.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/JwkOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbac.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Location.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Master.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagement.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaint.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgress.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindowOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannel.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannelOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinity.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinityOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimit.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodes.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodesOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TopicName.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEvent.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEventOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeResourceType.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscaling.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscalingOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java create mode 100644 proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto diff --git a/google-cloud-container-bom/pom.xml b/google-cloud-container-bom/pom.xml index 9757e13c..e246c1a7 100644 --- a/google-cloud-container-bom/pom.xml +++ b/google-cloud-container-bom/pom.xml @@ -70,11 +70,21 @@ grpc-google-cloud-container-v1 1.4.1-SNAPSHOT + + com.google.api.grpc + grpc-google-cloud-container-v1beta1 + 1.4.1-SNAPSHOT + com.google.api.grpc proto-google-cloud-container-v1 1.4.1-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-container-v1beta1 + 1.4.1-SNAPSHOT + diff --git a/google-cloud-container/pom.xml b/google-cloud-container/pom.xml index 184f2468..7b63e52d 100644 --- a/google-cloud-container/pom.xml +++ b/google-cloud-container/pom.xml @@ -41,6 +41,10 @@ com.google.api.grpc proto-google-common-protos + + com.google.api.grpc + proto-google-cloud-container-v1beta1 + com.google.api.grpc proto-google-cloud-container-v1 @@ -79,6 +83,11 @@ grpc-google-cloud-container-v1 test + + com.google.api.grpc + grpc-google-cloud-container-v1beta1 + test + com.google.api 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 new file mode 100644 index 00000000..295a95c9 --- /dev/null +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java @@ -0,0 +1,3251 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1beta1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.container.v1beta1.stub.ClusterManagerStub; +import com.google.cloud.container.v1beta1.stub.ClusterManagerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.container.v1beta1.AddonsConfig; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.ClusterUpdate; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetJSONWebKeysRequest; +import com.google.container.v1beta1.GetJSONWebKeysResponse; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.MaintenancePolicy; +import com.google.container.v1beta1.NetworkPolicy; +import com.google.container.v1beta1.NodeManagement; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; +import com.google.container.v1beta1.UsableSubnetwork; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Google Kubernetes Engine Cluster Manager v1beta1 + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+ *   String projectId = "projectId-894832108";
+ *   String zone = "zone3744684";
+ *   ListClustersResponse response = clusterManagerClient.listClusters(projectId, zone);
+ * }
+ * }
+ * + *

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

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

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

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of ClusterManagerSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * ClusterManagerSettings clusterManagerSettings =
+ *     ClusterManagerSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ClusterManagerClient clusterManagerClient = ClusterManagerClient.create(clusterManagerSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * ClusterManagerSettings clusterManagerSettings =
+ *     ClusterManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ClusterManagerClient clusterManagerClient = ClusterManagerClient.create(clusterManagerSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ClusterManagerClient implements BackgroundResource { + private final ClusterManagerSettings settings; + private final ClusterManagerStub stub; + + /** Constructs an instance of ClusterManagerClient with default settings. */ + public static final ClusterManagerClient create() throws IOException { + return create(ClusterManagerSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ClusterManagerClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ClusterManagerClient create(ClusterManagerSettings settings) + throws IOException { + return new ClusterManagerClient(settings); + } + + /** + * Constructs an instance of ClusterManagerClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(ClusterManagerSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final ClusterManagerClient create(ClusterManagerStub stub) { + return new ClusterManagerClient(stub); + } + + /** + * Constructs an instance of ClusterManagerClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected ClusterManagerClient(ClusterManagerSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ClusterManagerStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected ClusterManagerClient(ClusterManagerStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ClusterManagerSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ClusterManagerStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all clusters owned by a project in either the specified zone or all zones. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   ListClustersResponse response = clusterManagerClient.listClusters(projectId, zone);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListClustersResponse listClusters(String projectId, String zone) { + ListClustersRequest request = + ListClustersRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); + return listClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all clusters owned by a project in either the specified zone or all zones. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListClustersRequest request =
+   *       ListClustersRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setParent("parent-995424086")
+   *           .build();
+   *   ListClustersResponse response = clusterManagerClient.listClusters(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListClustersResponse listClusters(ListClustersRequest request) { + return listClustersCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all clusters owned by a project in either the specified zone or all zones. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListClustersRequest request =
+   *       ListClustersRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setParent("parent-995424086")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.listClustersCallable().futureCall(request);
+   *   // Do something.
+   *   ListClustersResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable listClustersCallable() { + return stub.listClustersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   Cluster response = clusterManagerClient.getCluster(projectId, zone, clusterId);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster to retrieve. This field has been + * deprecated and replaced by the name field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Cluster getCluster(String projectId, String zone, String clusterId) { + GetClusterRequest request = + GetClusterRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .build(); + return getCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   GetClusterRequest request =
+   *       GetClusterRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setName("name3373707")
+   *           .build();
+   *   Cluster response = clusterManagerClient.getCluster(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Cluster getCluster(GetClusterRequest request) { + return getClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   GetClusterRequest request =
+   *       GetClusterRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future = clusterManagerClient.getClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Cluster response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getClusterCallable() { + return stub.getClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a cluster, consisting of the specified number and type of Google Compute Engine + * instances. + * + *

By default, the cluster is created in the project's [default + * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + * + *

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes + * for each node to allow the containers on that node to communicate with all other instances in + * the cluster. + * + *

Finally, an entry is added to the project's global metadata indicating which CIDR range the + * cluster is using. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   Cluster cluster = Cluster.newBuilder().build();
+   *   Operation response = clusterManagerClient.createCluster(projectId, zone, cluster);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param cluster Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters) + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation createCluster(String projectId, String zone, Cluster cluster) { + CreateClusterRequest request = + CreateClusterRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setCluster(cluster) + .build(); + return createCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a cluster, consisting of the specified number and type of Google Compute Engine + * instances. + * + *

By default, the cluster is created in the project's [default + * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + * + *

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes + * for each node to allow the containers on that node to communicate with all other instances in + * the cluster. + * + *

Finally, an entry is added to the project's global metadata indicating which CIDR range the + * cluster is using. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   CreateClusterRequest request =
+   *       CreateClusterRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setParent("parent-995424086")
+   *           .build();
+   *   Operation response = clusterManagerClient.createCluster(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation createCluster(CreateClusterRequest request) { + return createClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a cluster, consisting of the specified number and type of Google Compute Engine + * instances. + * + *

By default, the cluster is created in the project's [default + * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + * + *

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes + * for each node to allow the containers on that node to communicate with all other instances in + * the cluster. + * + *

Finally, an entry is added to the project's global metadata indicating which CIDR range the + * cluster is using. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   CreateClusterRequest request =
+   *       CreateClusterRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .setParent("parent-995424086")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.createClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createClusterCallable() { + return stub.createClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the settings for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   ClusterUpdate update = ClusterUpdate.newBuilder().build();
+   *   Operation response = clusterManagerClient.updateCluster(projectId, zone, clusterId, update);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + * @param update Required. A description of the update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation updateCluster( + String projectId, String zone, String clusterId, ClusterUpdate update) { + UpdateClusterRequest request = + UpdateClusterRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setUpdate(update) + .build(); + return updateCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the settings for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   UpdateClusterRequest request =
+   *       UpdateClusterRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setUpdate(ClusterUpdate.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.updateCluster(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation updateCluster(UpdateClusterRequest request) { + return updateClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the settings for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   UpdateClusterRequest request =
+   *       UpdateClusterRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setUpdate(ClusterUpdate.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.updateClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateClusterCallable() { + return stub.updateClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the version and/or image type of a specific node pool. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   UpdateNodePoolRequest request =
+   *       UpdateNodePoolRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setNodeVersion("nodeVersion1155309686")
+   *           .setImageType("imageType-878147787")
+   *           .addAllLocations(new ArrayList())
+   *           .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build())
+   *           .setName("name3373707")
+   *           .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build())
+   *           .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build())
+   *           .setKubeletConfig(NodeKubeletConfig.newBuilder().build())
+   *           .build();
+   *   Operation response = clusterManagerClient.updateNodePool(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation updateNodePool(UpdateNodePoolRequest request) { + return updateNodePoolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the version and/or image type of a specific node pool. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   UpdateNodePoolRequest request =
+   *       UpdateNodePoolRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setNodeVersion("nodeVersion1155309686")
+   *           .setImageType("imageType-878147787")
+   *           .addAllLocations(new ArrayList())
+   *           .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build())
+   *           .setName("name3373707")
+   *           .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build())
+   *           .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build())
+   *           .setKubeletConfig(NodeKubeletConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.updateNodePoolCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateNodePoolCallable() { + return stub.updateNodePoolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the autoscaling settings of a specific node pool. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetNodePoolAutoscalingRequest request =
+   *       SetNodePoolAutoscalingRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setAutoscaling(NodePoolAutoscaling.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.setNodePoolAutoscaling(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest request) { + return setNodePoolAutoscalingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the autoscaling settings of a specific node pool. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetNodePoolAutoscalingRequest request =
+   *       SetNodePoolAutoscalingRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setAutoscaling(NodePoolAutoscaling.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.setNodePoolAutoscalingCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + setNodePoolAutoscalingCallable() { + return stub.setNodePoolAutoscalingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the logging service for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   String loggingService = "loggingService1098570326";
+   *   Operation response =
+   *       clusterManagerClient.setLoggingService(projectId, zone, clusterId, loggingService);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + * @param loggingService Required. The logging service the cluster should use to write logs. + * Currently available options: + *
    + *
  • `logging.googleapis.com/kubernetes` - The Cloud Logging service with a + * Kubernetes-native resource model + *
  • `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as + * of GKE 1.15). + *
  • `none` - no logs will be exported from the cluster. + *
+ *

If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE + * 1.14+ or `logging.googleapis.com` for earlier versions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setLoggingService( + String projectId, String zone, String clusterId, String loggingService) { + SetLoggingServiceRequest request = + SetLoggingServiceRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setLoggingService(loggingService) + .build(); + return setLoggingService(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the logging service for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetLoggingServiceRequest request =
+   *       SetLoggingServiceRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setLoggingService("loggingService1098570326")
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.setLoggingService(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setLoggingService(SetLoggingServiceRequest request) { + return setLoggingServiceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the logging service for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetLoggingServiceRequest request =
+   *       SetLoggingServiceRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setLoggingService("loggingService1098570326")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.setLoggingServiceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setLoggingServiceCallable() { + return stub.setLoggingServiceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the monitoring service for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   String monitoringService = "monitoringService-1431578291";
+   *   Operation response =
+   *       clusterManagerClient.setMonitoringService(projectId, zone, clusterId, monitoringService);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + * @param monitoringService Required. The monitoring service the cluster should use to write + * metrics. Currently available options: + *
    + *
  • "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a + * Kubernetes-native resource model + *
  • `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer + * available as of GKE 1.15). + *
  • `none` - No metrics will be exported from the cluster. + *
+ *

If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE + * 1.14+ or `monitoring.googleapis.com` for earlier versions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setMonitoringService( + String projectId, String zone, String clusterId, String monitoringService) { + SetMonitoringServiceRequest request = + SetMonitoringServiceRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setMonitoringService(monitoringService) + .build(); + return setMonitoringService(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the monitoring service for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetMonitoringServiceRequest request =
+   *       SetMonitoringServiceRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setMonitoringService("monitoringService-1431578291")
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.setMonitoringService(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setMonitoringService(SetMonitoringServiceRequest request) { + return setMonitoringServiceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the monitoring service for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetMonitoringServiceRequest request =
+   *       SetMonitoringServiceRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setMonitoringService("monitoringService-1431578291")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.setMonitoringServiceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + setMonitoringServiceCallable() { + return stub.setMonitoringServiceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the addons for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   AddonsConfig addonsConfig = AddonsConfig.newBuilder().build();
+   *   Operation response =
+   *       clusterManagerClient.setAddonsConfig(projectId, zone, clusterId, addonsConfig);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + * @param addonsConfig Required. The desired configurations for the various addons available to + * run in the cluster. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setAddonsConfig( + String projectId, String zone, String clusterId, AddonsConfig addonsConfig) { + SetAddonsConfigRequest request = + SetAddonsConfigRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setAddonsConfig(addonsConfig) + .build(); + return setAddonsConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the addons for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetAddonsConfigRequest request =
+   *       SetAddonsConfigRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setAddonsConfig(AddonsConfig.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.setAddonsConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setAddonsConfig(SetAddonsConfigRequest request) { + return setAddonsConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the addons for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetAddonsConfigRequest request =
+   *       SetAddonsConfigRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setAddonsConfig(AddonsConfig.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.setAddonsConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setAddonsConfigCallable() { + return stub.setAddonsConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the locations for a specific cluster. Deprecated. Use + * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update) + * instead. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   List locations = new ArrayList<>();
+   *   Operation response = clusterManagerClient.setLocations(projectId, zone, clusterId, locations);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + * @param locations Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes + * should be located. Changing the locations a cluster is in will result in nodes being either + * created or removed from the cluster, depending on whether locations are being added or + * removed. + *

This list must always include the cluster's primary zone. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public final Operation setLocations( + String projectId, String zone, String clusterId, List locations) { + SetLocationsRequest request = + SetLocationsRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .addAllLocations(locations) + .build(); + return setLocations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the locations for a specific cluster. Deprecated. Use + * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update) + * instead. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetLocationsRequest request =
+   *       SetLocationsRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .addAllLocations(new ArrayList())
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.setLocations(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public final Operation setLocations(SetLocationsRequest request) { + return setLocationsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the locations for a specific cluster. Deprecated. Use + * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update) + * instead. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetLocationsRequest request =
+   *       SetLocationsRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .addAllLocations(new ArrayList())
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future = clusterManagerClient.setLocationsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public final UnaryCallable setLocationsCallable() { + return stub.setLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the master for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   String masterVersion = "masterVersion1167095830";
+   *   Operation response =
+   *       clusterManagerClient.updateMaster(projectId, zone, clusterId, masterVersion);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + * @param masterVersion Required. 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 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation updateMaster( + String projectId, String zone, String clusterId, String masterVersion) { + UpdateMasterRequest request = + UpdateMasterRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setMasterVersion(masterVersion) + .build(); + return updateMaster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the master for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   UpdateMasterRequest request =
+   *       UpdateMasterRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setMasterVersion("masterVersion1167095830")
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.updateMaster(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation updateMaster(UpdateMasterRequest request) { + return updateMasterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the master for a specific cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   UpdateMasterRequest request =
+   *       UpdateMasterRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setMasterVersion("masterVersion1167095830")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future = clusterManagerClient.updateMasterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateMasterCallable() { + return stub.updateMasterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets master auth materials. Currently supports changing the admin password or a specific + * cluster, either via password generation or explicitly setting the password. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetMasterAuthRequest request =
+   *       SetMasterAuthRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setUpdate(MasterAuth.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.setMasterAuth(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setMasterAuth(SetMasterAuthRequest request) { + return setMasterAuthCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets master auth materials. Currently supports changing the admin password or a specific + * cluster, either via password generation or explicitly setting the password. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetMasterAuthRequest request =
+   *       SetMasterAuthRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setUpdate(MasterAuth.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.setMasterAuthCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setMasterAuthCallable() { + return stub.setMasterAuthCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the cluster, including the Kubernetes endpoint and all worker nodes. + * + *

Firewalls and routes that were configured during cluster creation are also deleted. + * + *

Other Google Compute Engine resources that might be in use by the cluster, such as load + * balancer resources, are not deleted if they weren't present when the cluster was initially + * created. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   Operation response = clusterManagerClient.deleteCluster(projectId, zone, clusterId);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster to delete. This field has been + * deprecated and replaced by the name field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation deleteCluster(String projectId, String zone, String clusterId) { + DeleteClusterRequest request = + DeleteClusterRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .build(); + return deleteCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the cluster, including the Kubernetes endpoint and all worker nodes. + * + *

Firewalls and routes that were configured during cluster creation are also deleted. + * + *

Other Google Compute Engine resources that might be in use by the cluster, such as load + * balancer resources, are not deleted if they weren't present when the cluster was initially + * created. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   DeleteClusterRequest request =
+   *       DeleteClusterRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.deleteCluster(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation deleteCluster(DeleteClusterRequest request) { + return deleteClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the cluster, including the Kubernetes endpoint and all worker nodes. + * + *

Firewalls and routes that were configured during cluster creation are also deleted. + * + *

Other Google Compute Engine resources that might be in use by the cluster, such as load + * balancer resources, are not deleted if they weren't present when the cluster was initially + * created. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   DeleteClusterRequest request =
+   *       DeleteClusterRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.deleteClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteClusterCallable() { + return stub.deleteClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all operations in a project in the specified zone or all zones. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   ListOperationsResponse response = clusterManagerClient.listOperations(projectId, zone);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOperationsResponse listOperations(String projectId, String zone) { + ListOperationsRequest request = + ListOperationsRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); + return listOperations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all operations in a project in the specified zone or all zones. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListOperationsRequest request =
+   *       ListOperationsRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setParent("parent-995424086")
+   *           .build();
+   *   ListOperationsResponse response = clusterManagerClient.listOperations(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOperationsResponse listOperations(ListOperationsRequest request) { + return listOperationsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all operations in a project in the specified zone or all zones. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListOperationsRequest request =
+   *       ListOperationsRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setParent("parent-995424086")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.listOperationsCallable().futureCall(request);
+   *   // Do something.
+   *   ListOperationsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + listOperationsCallable() { + return stub.listOperationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the specified operation. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String operationId = "operationId129704162";
+   *   Operation response = clusterManagerClient.getOperation(projectId, zone, operationId);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param operationId Required. Deprecated. The server-assigned `name` of the operation. This + * field has been deprecated and replaced by the name field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation getOperation(String projectId, String zone, String operationId) { + GetOperationRequest request = + GetOperationRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setOperationId(operationId) + .build(); + return getOperation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the specified operation. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   GetOperationRequest request =
+   *       GetOperationRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setOperationId("operationId129704162")
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.getOperation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation getOperation(GetOperationRequest request) { + return getOperationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the specified operation. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   GetOperationRequest request =
+   *       GetOperationRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setOperationId("operationId129704162")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future = clusterManagerClient.getOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getOperationCallable() { + return stub.getOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the specified operation. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String operationId = "operationId129704162";
+   *   clusterManagerClient.cancelOperation(projectId, zone, operationId);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param operationId Required. Deprecated. The server-assigned `name` of the operation. This + * field has been deprecated and replaced by the name field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void cancelOperation(String projectId, String zone, String operationId) { + CancelOperationRequest request = + CancelOperationRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setOperationId(operationId) + .build(); + cancelOperation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the specified operation. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   CancelOperationRequest request =
+   *       CancelOperationRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setOperationId("operationId129704162")
+   *           .setName("name3373707")
+   *           .build();
+   *   clusterManagerClient.cancelOperation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void cancelOperation(CancelOperationRequest request) { + cancelOperationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the specified operation. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   CancelOperationRequest request =
+   *       CancelOperationRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setOperationId("operationId129704162")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future = clusterManagerClient.cancelOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable cancelOperationCallable() { + return stub.cancelOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns configuration info about the Google Kubernetes Engine service. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   ServerConfig response = clusterManagerClient.getServerConfig(projectId, zone);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServerConfig getServerConfig(String projectId, String zone) { + GetServerConfigRequest request = + GetServerConfigRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); + return getServerConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns configuration info about the Google Kubernetes Engine service. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   GetServerConfigRequest request =
+   *       GetServerConfigRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setName("name3373707")
+   *           .build();
+   *   ServerConfig response = clusterManagerClient.getServerConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServerConfig getServerConfig(GetServerConfigRequest request) { + return getServerConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns configuration info about the Google Kubernetes Engine service. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   GetServerConfigRequest request =
+   *       GetServerConfigRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.getServerConfigCallable().futureCall(request);
+   *   // Do something.
+   *   ServerConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getServerConfigCallable() { + return stub.getServerConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the node pools for a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   ListNodePoolsResponse response =
+   *       clusterManagerClient.listNodePools(projectId, zone, clusterId);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the parent field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNodePoolsResponse listNodePools( + String projectId, String zone, String clusterId) { + ListNodePoolsRequest request = + ListNodePoolsRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .build(); + return listNodePools(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the node pools for a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListNodePoolsRequest request =
+   *       ListNodePoolsRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setParent("parent-995424086")
+   *           .build();
+   *   ListNodePoolsResponse response = clusterManagerClient.listNodePools(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNodePoolsResponse listNodePools(ListNodePoolsRequest request) { + return listNodePoolsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the node pools for a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListNodePoolsRequest request =
+   *       ListNodePoolsRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setParent("parent-995424086")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.listNodePoolsCallable().futureCall(request);
+   *   // Do something.
+   *   ListNodePoolsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable listNodePoolsCallable() { + return stub.listNodePoolsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the public component of the cluster signing keys in JSON Web Key format. This API is not + * yet intended for general use, and is not available for all clusters. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   GetJSONWebKeysRequest request =
+   *       GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build();
+   *   GetJSONWebKeysResponse response = clusterManagerClient.getJSONWebKeys(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GetJSONWebKeysResponse getJSONWebKeys(GetJSONWebKeysRequest request) { + return getJSONWebKeysCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the public component of the cluster signing keys in JSON Web Key format. This API is not + * yet intended for general use, and is not available for all clusters. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   GetJSONWebKeysRequest request =
+   *       GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build();
+   *   ApiFuture future =
+   *       clusterManagerClient.getJSONWebKeysCallable().futureCall(request);
+   *   // Do something.
+   *   GetJSONWebKeysResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getJSONWebKeysCallable() { + return stub.getJSONWebKeysCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the requested node pool. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   String nodePoolId = "nodePoolId1121557241";
+   *   NodePool response = clusterManagerClient.getNodePool(projectId, zone, clusterId, nodePoolId);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the name field. + * @param nodePoolId Required. Deprecated. The name of the node pool. This field has been + * deprecated and replaced by the name field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NodePool getNodePool( + String projectId, String zone, String clusterId, String nodePoolId) { + GetNodePoolRequest request = + GetNodePoolRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setNodePoolId(nodePoolId) + .build(); + return getNodePool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the requested node pool. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   GetNodePoolRequest request =
+   *       GetNodePoolRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setName("name3373707")
+   *           .build();
+   *   NodePool response = clusterManagerClient.getNodePool(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NodePool getNodePool(GetNodePoolRequest request) { + return getNodePoolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the requested node pool. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   GetNodePoolRequest request =
+   *       GetNodePoolRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future = clusterManagerClient.getNodePoolCallable().futureCall(request);
+   *   // Do something.
+   *   NodePool response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getNodePoolCallable() { + return stub.getNodePoolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a node pool for a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   NodePool nodePool = NodePool.newBuilder().build();
+   *   Operation response =
+   *       clusterManagerClient.createNodePool(projectId, zone, clusterId, nodePool);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the parent field. + * @param nodePool Required. The node pool to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation createNodePool( + String projectId, String zone, String clusterId, NodePool nodePool) { + CreateNodePoolRequest request = + CreateNodePoolRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setNodePool(nodePool) + .build(); + return createNodePool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a node pool for a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   CreateNodePoolRequest request =
+   *       CreateNodePoolRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePool(NodePool.newBuilder().build())
+   *           .setParent("parent-995424086")
+   *           .build();
+   *   Operation response = clusterManagerClient.createNodePool(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation createNodePool(CreateNodePoolRequest request) { + return createNodePoolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a node pool for a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   CreateNodePoolRequest request =
+   *       CreateNodePoolRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePool(NodePool.newBuilder().build())
+   *           .setParent("parent-995424086")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.createNodePoolCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createNodePoolCallable() { + return stub.createNodePoolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a node pool from a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   String nodePoolId = "nodePoolId1121557241";
+   *   Operation response =
+   *       clusterManagerClient.deleteNodePool(projectId, zone, clusterId, nodePoolId);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the name field. + * @param nodePoolId Required. Deprecated. The name of the node pool to delete. This field has + * been deprecated and replaced by the name field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation deleteNodePool( + String projectId, String zone, String clusterId, String nodePoolId) { + DeleteNodePoolRequest request = + DeleteNodePoolRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setNodePoolId(nodePoolId) + .build(); + return deleteNodePool(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a node pool from a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   DeleteNodePoolRequest request =
+   *       DeleteNodePoolRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.deleteNodePool(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation deleteNodePool(DeleteNodePoolRequest request) { + return deleteNodePoolCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a node pool from a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   DeleteNodePoolRequest request =
+   *       DeleteNodePoolRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.deleteNodePoolCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteNodePoolCallable() { + return stub.deleteNodePoolCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last + * upgrade successfully completed. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   String nodePoolId = "nodePoolId1121557241";
+   *   Operation response =
+   *       clusterManagerClient.rollbackNodePoolUpgrade(projectId, zone, clusterId, nodePoolId);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster to rollback. This field has been + * deprecated and replaced by the name field. + * @param nodePoolId Required. Deprecated. The name of the node pool to rollback. This field has + * been deprecated and replaced by the name field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation rollbackNodePoolUpgrade( + String projectId, String zone, String clusterId, String nodePoolId) { + RollbackNodePoolUpgradeRequest request = + RollbackNodePoolUpgradeRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setNodePoolId(nodePoolId) + .build(); + return rollbackNodePoolUpgrade(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last + * upgrade successfully completed. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   RollbackNodePoolUpgradeRequest request =
+   *       RollbackNodePoolUpgradeRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.rollbackNodePoolUpgrade(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation rollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest request) { + return rollbackNodePoolUpgradeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last + * upgrade successfully completed. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   RollbackNodePoolUpgradeRequest request =
+   *       RollbackNodePoolUpgradeRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.rollbackNodePoolUpgradeCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + rollbackNodePoolUpgradeCallable() { + return stub.rollbackNodePoolUpgradeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the NodeManagement options for a node pool. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   String nodePoolId = "nodePoolId1121557241";
+   *   NodeManagement management = NodeManagement.newBuilder().build();
+   *   Operation response =
+   *       clusterManagerClient.setNodePoolManagement(
+   *           projectId, zone, clusterId, nodePoolId, management);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster to update. This field has been + * deprecated and replaced by the name field. + * @param nodePoolId Required. Deprecated. The name of the node pool to update. This field has + * been deprecated and replaced by the name field. + * @param management Required. NodeManagement configuration for the node pool. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setNodePoolManagement( + String projectId, + String zone, + String clusterId, + String nodePoolId, + NodeManagement management) { + SetNodePoolManagementRequest request = + SetNodePoolManagementRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setNodePoolId(nodePoolId) + .setManagement(management) + .build(); + return setNodePoolManagement(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the NodeManagement options for a node pool. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetNodePoolManagementRequest request =
+   *       SetNodePoolManagementRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setManagement(NodeManagement.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.setNodePoolManagement(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setNodePoolManagement(SetNodePoolManagementRequest request) { + return setNodePoolManagementCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the NodeManagement options for a node pool. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetNodePoolManagementRequest request =
+   *       SetNodePoolManagementRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setManagement(NodeManagement.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.setNodePoolManagementCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + setNodePoolManagementCallable() { + return stub.setNodePoolManagementCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets labels on a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   Map resourceLabels = new HashMap<>();
+   *   String labelFingerprint = "labelFingerprint379449680";
+   *   Operation response =
+   *       clusterManagerClient.setLabels(
+   *           projectId, zone, clusterId, resourceLabels, labelFingerprint);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the name field. + * @param resourceLabels Required. The labels to set for that cluster. + * @param labelFingerprint Required. The fingerprint of the previous set of labels for this + * resource, used to detect conflicts. The fingerprint is initially generated by Kubernetes + * Engine and changes after every request to modify or update labels. You must always provide + * an up-to-date fingerprint hash when updating or changing labels. Make a `get()` request to + * the resource to get the latest fingerprint. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setLabels( + String projectId, + String zone, + String clusterId, + Map resourceLabels, + String labelFingerprint) { + SetLabelsRequest request = + SetLabelsRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .putAllResourceLabels(resourceLabels) + .setLabelFingerprint(labelFingerprint) + .build(); + return setLabels(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets labels on a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetLabelsRequest request =
+   *       SetLabelsRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .putAllResourceLabels(new HashMap())
+   *           .setLabelFingerprint("labelFingerprint379449680")
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.setLabels(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setLabels(SetLabelsRequest request) { + return setLabelsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets labels on a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetLabelsRequest request =
+   *       SetLabelsRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .putAllResourceLabels(new HashMap())
+   *           .setLabelFingerprint("labelFingerprint379449680")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future = clusterManagerClient.setLabelsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setLabelsCallable() { + return stub.setLabelsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables or disables the ABAC authorization mechanism on a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   boolean enabled = true;
+   *   Operation response = clusterManagerClient.setLegacyAbac(projectId, zone, clusterId, enabled);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster to update. This field has been + * deprecated and replaced by the name field. + * @param enabled Required. Whether ABAC authorization will be enabled in the cluster. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setLegacyAbac( + String projectId, String zone, String clusterId, boolean enabled) { + SetLegacyAbacRequest request = + SetLegacyAbacRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setEnabled(enabled) + .build(); + return setLegacyAbac(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables or disables the ABAC authorization mechanism on a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetLegacyAbacRequest request =
+   *       SetLegacyAbacRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setEnabled(true)
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.setLegacyAbac(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setLegacyAbac(SetLegacyAbacRequest request) { + return setLegacyAbacCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables or disables the ABAC authorization mechanism on a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetLegacyAbacRequest request =
+   *       SetLegacyAbacRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setEnabled(true)
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.setLegacyAbacCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setLegacyAbacCallable() { + return stub.setLegacyAbacCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts master IP rotation. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   Operation response = clusterManagerClient.startIPRotation(projectId, zone, clusterId);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the name field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation startIPRotation(String projectId, String zone, String clusterId) { + StartIPRotationRequest request = + StartIPRotationRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .build(); + return startIPRotation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts master IP rotation. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   StartIPRotationRequest request =
+   *       StartIPRotationRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setName("name3373707")
+   *           .setRotateCredentials(true)
+   *           .build();
+   *   Operation response = clusterManagerClient.startIPRotation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation startIPRotation(StartIPRotationRequest request) { + return startIPRotationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts master IP rotation. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   StartIPRotationRequest request =
+   *       StartIPRotationRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setName("name3373707")
+   *           .setRotateCredentials(true)
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.startIPRotationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable startIPRotationCallable() { + return stub.startIPRotationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Completes master IP rotation. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   Operation response = clusterManagerClient.completeIPRotation(projectId, zone, clusterId);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the name field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation completeIPRotation(String projectId, String zone, String clusterId) { + CompleteIPRotationRequest request = + CompleteIPRotationRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .build(); + return completeIPRotation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Completes master IP rotation. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   CompleteIPRotationRequest request =
+   *       CompleteIPRotationRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.completeIPRotation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation completeIPRotation(CompleteIPRotationRequest request) { + return completeIPRotationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Completes master IP rotation. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   CompleteIPRotationRequest request =
+   *       CompleteIPRotationRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.completeIPRotationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable completeIPRotationCallable() { + return stub.completeIPRotationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the size for a specific node pool. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetNodePoolSizeRequest request =
+   *       SetNodePoolSizeRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setNodeCount(1539922066)
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.setNodePoolSize(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setNodePoolSize(SetNodePoolSizeRequest request) { + return setNodePoolSizeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the size for a specific node pool. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetNodePoolSizeRequest request =
+   *       SetNodePoolSizeRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNodePoolId("nodePoolId1121557241")
+   *           .setNodeCount(1539922066)
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.setNodePoolSizeCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setNodePoolSizeCallable() { + return stub.setNodePoolSizeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables or disables Network Policy for a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build();
+   *   Operation response =
+   *       clusterManagerClient.setNetworkPolicy(projectId, zone, clusterId, networkPolicy);
+   * }
+   * }
+ * + * @param projectId 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. + * @param zone 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. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the name field. + * @param networkPolicy Required. Configuration options for the NetworkPolicy feature. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setNetworkPolicy( + String projectId, String zone, String clusterId, NetworkPolicy networkPolicy) { + SetNetworkPolicyRequest request = + SetNetworkPolicyRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setNetworkPolicy(networkPolicy) + .build(); + return setNetworkPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables or disables Network Policy for a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetNetworkPolicyRequest request =
+   *       SetNetworkPolicyRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNetworkPolicy(NetworkPolicy.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.setNetworkPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setNetworkPolicy(SetNetworkPolicyRequest request) { + return setNetworkPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables or disables Network Policy for a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetNetworkPolicyRequest request =
+   *       SetNetworkPolicyRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setNetworkPolicy(NetworkPolicy.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.setNetworkPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setNetworkPolicyCallable() { + return stub.setNetworkPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the maintenance policy for a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String projectId = "projectId-894832108";
+   *   String zone = "zone3744684";
+   *   String clusterId = "clusterId561939637";
+   *   MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build();
+   *   Operation response =
+   *       clusterManagerClient.setMaintenancePolicy(projectId, zone, clusterId, maintenancePolicy);
+   * }
+   * }
+ * + * @param projectId Required. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param zone Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. + * @param clusterId Required. The name of the cluster to update. + * @param maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty + * field clears the existing maintenance policy. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setMaintenancePolicy( + String projectId, String zone, String clusterId, MaintenancePolicy maintenancePolicy) { + SetMaintenancePolicyRequest request = + SetMaintenancePolicyRequest.newBuilder() + .setProjectId(projectId) + .setZone(zone) + .setClusterId(clusterId) + .setMaintenancePolicy(maintenancePolicy) + .build(); + return setMaintenancePolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the maintenance policy for a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetMaintenancePolicyRequest request =
+   *       SetMaintenancePolicyRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setMaintenancePolicy(MaintenancePolicy.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   Operation response = clusterManagerClient.setMaintenancePolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation setMaintenancePolicy(SetMaintenancePolicyRequest request) { + return setMaintenancePolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the maintenance policy for a cluster. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   SetMaintenancePolicyRequest request =
+   *       SetMaintenancePolicyRequest.newBuilder()
+   *           .setProjectId("projectId-894832108")
+   *           .setZone("zone3744684")
+   *           .setClusterId("clusterId561939637")
+   *           .setMaintenancePolicy(MaintenancePolicy.newBuilder().build())
+   *           .setName("name3373707")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.setMaintenancePolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + setMaintenancePolicyCallable() { + return stub.setMaintenancePolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnetworks that can be used for creating clusters in a project. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String parent = "parent-995424086";
+   *   for (UsableSubnetwork element :
+   *       clusterManagerClient.listUsableSubnetworks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent project where subnetworks are usable. Specified in the + * format `projects/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUsableSubnetworksPagedResponse listUsableSubnetworks(String parent) { + ListUsableSubnetworksRequest request = + ListUsableSubnetworksRequest.newBuilder().setParent(parent).build(); + return listUsableSubnetworks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnetworks that can be used for creating clusters in a project. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListUsableSubnetworksRequest request =
+   *       ListUsableSubnetworksRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (UsableSubnetwork element :
+   *       clusterManagerClient.listUsableSubnetworks(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUsableSubnetworksPagedResponse listUsableSubnetworks( + ListUsableSubnetworksRequest request) { + return listUsableSubnetworksPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnetworks that can be used for creating clusters in a project. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListUsableSubnetworksRequest request =
+   *       ListUsableSubnetworksRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       clusterManagerClient.listUsableSubnetworksPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (UsableSubnetwork element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listUsableSubnetworksPagedCallable() { + return stub.listUsableSubnetworksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists subnetworks that can be used for creating clusters in a project. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListUsableSubnetworksRequest request =
+   *       ListUsableSubnetworksRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListUsableSubnetworksResponse response =
+   *         clusterManagerClient.listUsableSubnetworksCallable().call(request);
+   *     for (UsableSubnetwork element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listUsableSubnetworksCallable() { + return stub.listUsableSubnetworksCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches locations that offer Google Kubernetes Engine. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String parent = "parent-995424086";
+   *   ListLocationsResponse response = clusterManagerClient.listLocations(parent);
+   * }
+   * }
+ * + * @param parent Required. Contains the name of the resource requested. Specified in the format + * `projects/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsResponse listLocations(String parent) { + ListLocationsRequest request = ListLocationsRequest.newBuilder().setParent(parent).build(); + return listLocations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches locations that offer Google Kubernetes Engine. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder().setParent("parent-995424086").build();
+   *   ListLocationsResponse response = clusterManagerClient.listLocations(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsResponse listLocations(ListLocationsRequest request) { + return listLocationsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches locations that offer Google Kubernetes Engine. + * + *

Sample code: + * + *

{@code
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder().setParent("parent-995424086").build();
+   *   ApiFuture future =
+   *       clusterManagerClient.listLocationsCallable().futureCall(request);
+   *   // Do something.
+   *   ListLocationsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListUsableSubnetworksPagedResponse + extends AbstractPagedListResponse< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + UsableSubnetwork, + ListUsableSubnetworksPage, + ListUsableSubnetworksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListUsableSubnetworksPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListUsableSubnetworksPagedResponse apply(ListUsableSubnetworksPage input) { + return new ListUsableSubnetworksPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListUsableSubnetworksPagedResponse(ListUsableSubnetworksPage page) { + super(page, ListUsableSubnetworksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListUsableSubnetworksPage + extends AbstractPage< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + UsableSubnetwork, + ListUsableSubnetworksPage> { + + private ListUsableSubnetworksPage( + PageContext + context, + ListUsableSubnetworksResponse response) { + super(context, response); + } + + private static ListUsableSubnetworksPage createEmptyPage() { + return new ListUsableSubnetworksPage(null, null); + } + + @Override + protected ListUsableSubnetworksPage createPage( + PageContext + context, + ListUsableSubnetworksResponse response) { + return new ListUsableSubnetworksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListUsableSubnetworksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + UsableSubnetwork, + ListUsableSubnetworksPage, + ListUsableSubnetworksFixedSizeCollection> { + + private ListUsableSubnetworksFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListUsableSubnetworksFixedSizeCollection createEmptyCollection() { + return new ListUsableSubnetworksFixedSizeCollection(null, 0); + } + + @Override + protected ListUsableSubnetworksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListUsableSubnetworksFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java new file mode 100644 index 00000000..38969126 --- /dev/null +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java @@ -0,0 +1,585 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1beta1; + +import static com.google.cloud.container.v1beta1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.container.v1beta1.stub.ClusterManagerStubSettings; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetJSONWebKeysRequest; +import com.google.container.v1beta1.GetJSONWebKeysResponse; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ClusterManagerClient}. + * + *

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

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

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

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

{@code
+ * ClusterManagerSettings.Builder clusterManagerSettingsBuilder =
+ *     ClusterManagerSettings.newBuilder();
+ * clusterManagerSettingsBuilder
+ *     .listClustersSettings()
+ *     .setRetrySettings(
+ *         clusterManagerSettingsBuilder
+ *             .listClustersSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class ClusterManagerSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listClusters. */ + public UnaryCallSettings listClustersSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).listClustersSettings(); + } + + /** Returns the object with the settings used for calls to getCluster. */ + public UnaryCallSettings getClusterSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).getClusterSettings(); + } + + /** Returns the object with the settings used for calls to createCluster. */ + public UnaryCallSettings createClusterSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).createClusterSettings(); + } + + /** Returns the object with the settings used for calls to updateCluster. */ + public UnaryCallSettings updateClusterSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).updateClusterSettings(); + } + + /** Returns the object with the settings used for calls to updateNodePool. */ + public UnaryCallSettings updateNodePoolSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).updateNodePoolSettings(); + } + + /** Returns the object with the settings used for calls to setNodePoolAutoscaling. */ + public UnaryCallSettings + setNodePoolAutoscalingSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).setNodePoolAutoscalingSettings(); + } + + /** Returns the object with the settings used for calls to setLoggingService. */ + public UnaryCallSettings setLoggingServiceSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).setLoggingServiceSettings(); + } + + /** Returns the object with the settings used for calls to setMonitoringService. */ + public UnaryCallSettings setMonitoringServiceSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).setMonitoringServiceSettings(); + } + + /** Returns the object with the settings used for calls to setAddonsConfig. */ + public UnaryCallSettings setAddonsConfigSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).setAddonsConfigSettings(); + } + + /** + * Returns the object with the settings used for calls to setLocations. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public UnaryCallSettings setLocationsSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).setLocationsSettings(); + } + + /** Returns the object with the settings used for calls to updateMaster. */ + public UnaryCallSettings updateMasterSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).updateMasterSettings(); + } + + /** Returns the object with the settings used for calls to setMasterAuth. */ + public UnaryCallSettings setMasterAuthSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).setMasterAuthSettings(); + } + + /** Returns the object with the settings used for calls to deleteCluster. */ + public UnaryCallSettings deleteClusterSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).deleteClusterSettings(); + } + + /** Returns the object with the settings used for calls to listOperations. */ + public UnaryCallSettings listOperationsSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).listOperationsSettings(); + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getOperationSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).getOperationSettings(); + } + + /** Returns the object with the settings used for calls to cancel. */ + public UnaryCallSettings cancelOperationSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).cancelOperationSettings(); + } + + /** Returns the object with the settings used for calls to getServerConfig. */ + public UnaryCallSettings getServerConfigSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).getServerConfigSettings(); + } + + /** Returns the object with the settings used for calls to listNodePools. */ + public UnaryCallSettings listNodePoolsSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).listNodePoolsSettings(); + } + + /** Returns the object with the settings used for calls to getJSONWebKeys. */ + public UnaryCallSettings getJSONWebKeysSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).getJSONWebKeysSettings(); + } + + /** Returns the object with the settings used for calls to getNodePool. */ + public UnaryCallSettings getNodePoolSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).getNodePoolSettings(); + } + + /** Returns the object with the settings used for calls to createNodePool. */ + public UnaryCallSettings createNodePoolSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).createNodePoolSettings(); + } + + /** Returns the object with the settings used for calls to deleteNodePool. */ + public UnaryCallSettings deleteNodePoolSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).deleteNodePoolSettings(); + } + + /** Returns the object with the settings used for calls to rollbackNodePoolUpgrade. */ + public UnaryCallSettings + rollbackNodePoolUpgradeSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).rollbackNodePoolUpgradeSettings(); + } + + /** Returns the object with the settings used for calls to setNodePoolManagement. */ + public UnaryCallSettings + setNodePoolManagementSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).setNodePoolManagementSettings(); + } + + /** Returns the object with the settings used for calls to setLabels. */ + public UnaryCallSettings setLabelsSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).setLabelsSettings(); + } + + /** Returns the object with the settings used for calls to setLegacyAbac. */ + public UnaryCallSettings setLegacyAbacSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).setLegacyAbacSettings(); + } + + /** Returns the object with the settings used for calls to startIPRotation. */ + public UnaryCallSettings startIPRotationSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).startIPRotationSettings(); + } + + /** Returns the object with the settings used for calls to completeIPRotation. */ + public UnaryCallSettings completeIPRotationSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).completeIPRotationSettings(); + } + + /** Returns the object with the settings used for calls to setNodePoolSize. */ + public UnaryCallSettings setNodePoolSizeSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).setNodePoolSizeSettings(); + } + + /** Returns the object with the settings used for calls to setNetworkPolicy. */ + public UnaryCallSettings setNetworkPolicySettings() { + return ((ClusterManagerStubSettings) getStubSettings()).setNetworkPolicySettings(); + } + + /** Returns the object with the settings used for calls to setMaintenancePolicy. */ + public UnaryCallSettings setMaintenancePolicySettings() { + return ((ClusterManagerStubSettings) getStubSettings()).setMaintenancePolicySettings(); + } + + /** Returns the object with the settings used for calls to listUsableSubnetworks. */ + public PagedCallSettings< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).listUsableSubnetworksSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public UnaryCallSettings listLocationsSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).listLocationsSettings(); + } + + public static final ClusterManagerSettings create(ClusterManagerStubSettings stub) + throws IOException { + return new ClusterManagerSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ClusterManagerStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ClusterManagerStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ClusterManagerStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ClusterManagerStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ClusterManagerStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ClusterManagerStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ClusterManagerStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ClusterManagerSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ClusterManagerSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ClusterManagerStubSettings.newBuilder(clientContext)); + } + + protected Builder(ClusterManagerSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ClusterManagerStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ClusterManagerStubSettings.newBuilder()); + } + + public ClusterManagerStubSettings.Builder getStubSettingsBuilder() { + return ((ClusterManagerStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception'. + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listClusters. */ + public UnaryCallSettings.Builder + listClustersSettings() { + return getStubSettingsBuilder().listClustersSettings(); + } + + /** Returns the builder for the settings used for calls to getCluster. */ + public UnaryCallSettings.Builder getClusterSettings() { + return getStubSettingsBuilder().getClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createCluster. */ + public UnaryCallSettings.Builder createClusterSettings() { + return getStubSettingsBuilder().createClusterSettings(); + } + + /** Returns the builder for the settings used for calls to updateCluster. */ + public UnaryCallSettings.Builder updateClusterSettings() { + return getStubSettingsBuilder().updateClusterSettings(); + } + + /** Returns the builder for the settings used for calls to updateNodePool. */ + public UnaryCallSettings.Builder updateNodePoolSettings() { + return getStubSettingsBuilder().updateNodePoolSettings(); + } + + /** Returns the builder for the settings used for calls to setNodePoolAutoscaling. */ + public UnaryCallSettings.Builder + setNodePoolAutoscalingSettings() { + return getStubSettingsBuilder().setNodePoolAutoscalingSettings(); + } + + /** Returns the builder for the settings used for calls to setLoggingService. */ + public UnaryCallSettings.Builder + setLoggingServiceSettings() { + return getStubSettingsBuilder().setLoggingServiceSettings(); + } + + /** Returns the builder for the settings used for calls to setMonitoringService. */ + public UnaryCallSettings.Builder + setMonitoringServiceSettings() { + return getStubSettingsBuilder().setMonitoringServiceSettings(); + } + + /** Returns the builder for the settings used for calls to setAddonsConfig. */ + public UnaryCallSettings.Builder setAddonsConfigSettings() { + return getStubSettingsBuilder().setAddonsConfigSettings(); + } + + /** + * Returns the builder for the settings used for calls to setLocations. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public UnaryCallSettings.Builder setLocationsSettings() { + return getStubSettingsBuilder().setLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to updateMaster. */ + public UnaryCallSettings.Builder updateMasterSettings() { + return getStubSettingsBuilder().updateMasterSettings(); + } + + /** Returns the builder for the settings used for calls to setMasterAuth. */ + public UnaryCallSettings.Builder setMasterAuthSettings() { + return getStubSettingsBuilder().setMasterAuthSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCluster. */ + public UnaryCallSettings.Builder deleteClusterSettings() { + return getStubSettingsBuilder().deleteClusterSettings(); + } + + /** Returns the builder for the settings used for calls to listOperations. */ + public UnaryCallSettings.Builder + listOperationsSettings() { + return getStubSettingsBuilder().listOperationsSettings(); + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder getOperationSettings() { + return getStubSettingsBuilder().getOperationSettings(); + } + + /** Returns the builder for the settings used for calls to cancel. */ + public UnaryCallSettings.Builder cancelOperationSettings() { + return getStubSettingsBuilder().cancelOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getServerConfig. */ + public UnaryCallSettings.Builder + getServerConfigSettings() { + return getStubSettingsBuilder().getServerConfigSettings(); + } + + /** Returns the builder for the settings used for calls to listNodePools. */ + public UnaryCallSettings.Builder + listNodePoolsSettings() { + return getStubSettingsBuilder().listNodePoolsSettings(); + } + + /** Returns the builder for the settings used for calls to getJSONWebKeys. */ + public UnaryCallSettings.Builder + getJSONWebKeysSettings() { + return getStubSettingsBuilder().getJSONWebKeysSettings(); + } + + /** Returns the builder for the settings used for calls to getNodePool. */ + public UnaryCallSettings.Builder getNodePoolSettings() { + return getStubSettingsBuilder().getNodePoolSettings(); + } + + /** Returns the builder for the settings used for calls to createNodePool. */ + public UnaryCallSettings.Builder createNodePoolSettings() { + return getStubSettingsBuilder().createNodePoolSettings(); + } + + /** Returns the builder for the settings used for calls to deleteNodePool. */ + public UnaryCallSettings.Builder deleteNodePoolSettings() { + return getStubSettingsBuilder().deleteNodePoolSettings(); + } + + /** Returns the builder for the settings used for calls to rollbackNodePoolUpgrade. */ + public UnaryCallSettings.Builder + rollbackNodePoolUpgradeSettings() { + return getStubSettingsBuilder().rollbackNodePoolUpgradeSettings(); + } + + /** Returns the builder for the settings used for calls to setNodePoolManagement. */ + public UnaryCallSettings.Builder + setNodePoolManagementSettings() { + return getStubSettingsBuilder().setNodePoolManagementSettings(); + } + + /** Returns the builder for the settings used for calls to setLabels. */ + public UnaryCallSettings.Builder setLabelsSettings() { + return getStubSettingsBuilder().setLabelsSettings(); + } + + /** Returns the builder for the settings used for calls to setLegacyAbac. */ + public UnaryCallSettings.Builder setLegacyAbacSettings() { + return getStubSettingsBuilder().setLegacyAbacSettings(); + } + + /** Returns the builder for the settings used for calls to startIPRotation. */ + public UnaryCallSettings.Builder startIPRotationSettings() { + return getStubSettingsBuilder().startIPRotationSettings(); + } + + /** Returns the builder for the settings used for calls to completeIPRotation. */ + public UnaryCallSettings.Builder + completeIPRotationSettings() { + return getStubSettingsBuilder().completeIPRotationSettings(); + } + + /** Returns the builder for the settings used for calls to setNodePoolSize. */ + public UnaryCallSettings.Builder setNodePoolSizeSettings() { + return getStubSettingsBuilder().setNodePoolSizeSettings(); + } + + /** Returns the builder for the settings used for calls to setNetworkPolicy. */ + public UnaryCallSettings.Builder + setNetworkPolicySettings() { + return getStubSettingsBuilder().setNetworkPolicySettings(); + } + + /** Returns the builder for the settings used for calls to setMaintenancePolicy. */ + public UnaryCallSettings.Builder + setMaintenancePolicySettings() { + return getStubSettingsBuilder().setMaintenancePolicySettings(); + } + + /** Returns the builder for the settings used for calls to listUsableSubnetworks. */ + public PagedCallSettings.Builder< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings() { + return getStubSettingsBuilder().listUsableSubnetworksSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public UnaryCallSettings.Builder + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + @Override + public ClusterManagerSettings build() throws IOException { + return new ClusterManagerSettings(this); + } + } +} diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/gapic_metadata.json b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/gapic_metadata.json new file mode 100644 index 00000000..42cdf11a --- /dev/null +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/gapic_metadata.json @@ -0,0 +1,117 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.container.v1beta1", + "libraryPackage": "com.google.cloud.container.v1beta1", + "services": { + "ClusterManager": { + "clients": { + "grpc": { + "libraryClient": "ClusterManagerClient", + "rpcs": { + "CancelOperation": { + "methods": ["cancelOperation", "cancelOperation", "cancelOperationCallable"] + }, + "CompleteIPRotation": { + "methods": ["completeIPRotation", "completeIPRotation", "completeIPRotationCallable"] + }, + "CreateCluster": { + "methods": ["createCluster", "createCluster", "createClusterCallable"] + }, + "CreateNodePool": { + "methods": ["createNodePool", "createNodePool", "createNodePoolCallable"] + }, + "DeleteCluster": { + "methods": ["deleteCluster", "deleteCluster", "deleteClusterCallable"] + }, + "DeleteNodePool": { + "methods": ["deleteNodePool", "deleteNodePool", "deleteNodePoolCallable"] + }, + "GetCluster": { + "methods": ["getCluster", "getCluster", "getClusterCallable"] + }, + "GetJSONWebKeys": { + "methods": ["getJSONWebKeys", "getJSONWebKeysCallable"] + }, + "GetNodePool": { + "methods": ["getNodePool", "getNodePool", "getNodePoolCallable"] + }, + "GetOperation": { + "methods": ["getOperation", "getOperation", "getOperationCallable"] + }, + "GetServerConfig": { + "methods": ["getServerConfig", "getServerConfig", "getServerConfigCallable"] + }, + "ListClusters": { + "methods": ["listClusters", "listClusters", "listClustersCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocations", "listLocationsCallable"] + }, + "ListNodePools": { + "methods": ["listNodePools", "listNodePools", "listNodePoolsCallable"] + }, + "ListOperations": { + "methods": ["listOperations", "listOperations", "listOperationsCallable"] + }, + "ListUsableSubnetworks": { + "methods": ["listUsableSubnetworks", "listUsableSubnetworks", "listUsableSubnetworksPagedCallable", "listUsableSubnetworksCallable"] + }, + "RollbackNodePoolUpgrade": { + "methods": ["rollbackNodePoolUpgrade", "rollbackNodePoolUpgrade", "rollbackNodePoolUpgradeCallable"] + }, + "SetAddonsConfig": { + "methods": ["setAddonsConfig", "setAddonsConfig", "setAddonsConfigCallable"] + }, + "SetLabels": { + "methods": ["setLabels", "setLabels", "setLabelsCallable"] + }, + "SetLegacyAbac": { + "methods": ["setLegacyAbac", "setLegacyAbac", "setLegacyAbacCallable"] + }, + "SetLocations": { + "methods": ["setLocations", "setLocations", "setLocationsCallable"] + }, + "SetLoggingService": { + "methods": ["setLoggingService", "setLoggingService", "setLoggingServiceCallable"] + }, + "SetMaintenancePolicy": { + "methods": ["setMaintenancePolicy", "setMaintenancePolicy", "setMaintenancePolicyCallable"] + }, + "SetMasterAuth": { + "methods": ["setMasterAuth", "setMasterAuthCallable"] + }, + "SetMonitoringService": { + "methods": ["setMonitoringService", "setMonitoringService", "setMonitoringServiceCallable"] + }, + "SetNetworkPolicy": { + "methods": ["setNetworkPolicy", "setNetworkPolicy", "setNetworkPolicyCallable"] + }, + "SetNodePoolAutoscaling": { + "methods": ["setNodePoolAutoscaling", "setNodePoolAutoscalingCallable"] + }, + "SetNodePoolManagement": { + "methods": ["setNodePoolManagement", "setNodePoolManagement", "setNodePoolManagementCallable"] + }, + "SetNodePoolSize": { + "methods": ["setNodePoolSize", "setNodePoolSizeCallable"] + }, + "StartIPRotation": { + "methods": ["startIPRotation", "startIPRotation", "startIPRotationCallable"] + }, + "UpdateCluster": { + "methods": ["updateCluster", "updateCluster", "updateClusterCallable"] + }, + "UpdateMaster": { + "methods": ["updateMaster", "updateMaster", "updateMasterCallable"] + }, + "UpdateNodePool": { + "methods": ["updateNodePool", "updateNodePoolCallable"] + } + } + } + } + } + } +} \ No newline at end of file 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 new file mode 100644 index 00000000..bb6d7a01 --- /dev/null +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java @@ -0,0 +1,37 @@ +/* + * Copyright 2021 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. + */ + +/** + * The interfaces provided are listed below, along with usage samples. + * + *

======================= ClusterManagerClient ======================= + * + *

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

Sample for ClusterManagerClient: + * + *

{@code
+ * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+ *   String projectId = "projectId-894832108";
+ *   String zone = "zone3744684";
+ *   ListClustersResponse response = clusterManagerClient.listClusters(projectId, zone);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.container.v1beta1; + +import javax.annotation.Generated; diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java new file mode 100644 index 00000000..1bc60980 --- /dev/null +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java @@ -0,0 +1,223 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1beta1.stub; + +import static com.google.cloud.container.v1beta1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetJSONWebKeysRequest; +import com.google.container.v1beta1.GetJSONWebKeysResponse; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ClusterManager service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class ClusterManagerStub implements BackgroundResource { + + public UnaryCallable listClustersCallable() { + throw new UnsupportedOperationException("Not implemented: listClustersCallable()"); + } + + public UnaryCallable getClusterCallable() { + throw new UnsupportedOperationException("Not implemented: getClusterCallable()"); + } + + public UnaryCallable createClusterCallable() { + throw new UnsupportedOperationException("Not implemented: createClusterCallable()"); + } + + public UnaryCallable updateClusterCallable() { + throw new UnsupportedOperationException("Not implemented: updateClusterCallable()"); + } + + public UnaryCallable updateNodePoolCallable() { + throw new UnsupportedOperationException("Not implemented: updateNodePoolCallable()"); + } + + public UnaryCallable setNodePoolAutoscalingCallable() { + throw new UnsupportedOperationException("Not implemented: setNodePoolAutoscalingCallable()"); + } + + public UnaryCallable setLoggingServiceCallable() { + throw new UnsupportedOperationException("Not implemented: setLoggingServiceCallable()"); + } + + public UnaryCallable setMonitoringServiceCallable() { + throw new UnsupportedOperationException("Not implemented: setMonitoringServiceCallable()"); + } + + public UnaryCallable setAddonsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: setAddonsConfigCallable()"); + } + + @Deprecated + public UnaryCallable setLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: setLocationsCallable()"); + } + + public UnaryCallable updateMasterCallable() { + throw new UnsupportedOperationException("Not implemented: updateMasterCallable()"); + } + + public UnaryCallable setMasterAuthCallable() { + throw new UnsupportedOperationException("Not implemented: setMasterAuthCallable()"); + } + + public UnaryCallable deleteClusterCallable() { + throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()"); + } + + public UnaryCallable listOperationsCallable() { + throw new UnsupportedOperationException("Not implemented: listOperationsCallable()"); + } + + public UnaryCallable getOperationCallable() { + throw new UnsupportedOperationException("Not implemented: getOperationCallable()"); + } + + public UnaryCallable cancelOperationCallable() { + throw new UnsupportedOperationException("Not implemented: cancelOperationCallable()"); + } + + public UnaryCallable getServerConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getServerConfigCallable()"); + } + + public UnaryCallable listNodePoolsCallable() { + throw new UnsupportedOperationException("Not implemented: listNodePoolsCallable()"); + } + + public UnaryCallable getJSONWebKeysCallable() { + throw new UnsupportedOperationException("Not implemented: getJSONWebKeysCallable()"); + } + + public UnaryCallable getNodePoolCallable() { + throw new UnsupportedOperationException("Not implemented: getNodePoolCallable()"); + } + + public UnaryCallable createNodePoolCallable() { + throw new UnsupportedOperationException("Not implemented: createNodePoolCallable()"); + } + + public UnaryCallable deleteNodePoolCallable() { + throw new UnsupportedOperationException("Not implemented: deleteNodePoolCallable()"); + } + + public UnaryCallable + rollbackNodePoolUpgradeCallable() { + throw new UnsupportedOperationException("Not implemented: rollbackNodePoolUpgradeCallable()"); + } + + public UnaryCallable setNodePoolManagementCallable() { + throw new UnsupportedOperationException("Not implemented: setNodePoolManagementCallable()"); + } + + public UnaryCallable setLabelsCallable() { + throw new UnsupportedOperationException("Not implemented: setLabelsCallable()"); + } + + public UnaryCallable setLegacyAbacCallable() { + throw new UnsupportedOperationException("Not implemented: setLegacyAbacCallable()"); + } + + public UnaryCallable startIPRotationCallable() { + throw new UnsupportedOperationException("Not implemented: startIPRotationCallable()"); + } + + public UnaryCallable completeIPRotationCallable() { + throw new UnsupportedOperationException("Not implemented: completeIPRotationCallable()"); + } + + public UnaryCallable setNodePoolSizeCallable() { + throw new UnsupportedOperationException("Not implemented: setNodePoolSizeCallable()"); + } + + public UnaryCallable setNetworkPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setNetworkPolicyCallable()"); + } + + public UnaryCallable setMaintenancePolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setMaintenancePolicyCallable()"); + } + + public UnaryCallable + listUsableSubnetworksPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listUsableSubnetworksPagedCallable()"); + } + + public UnaryCallable + listUsableSubnetworksCallable() { + throw new UnsupportedOperationException("Not implemented: listUsableSubnetworksCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java new file mode 100644 index 00000000..720cd5a8 --- /dev/null +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java @@ -0,0 +1,1185 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1beta1.stub; + +import static com.google.cloud.container.v1beta1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetJSONWebKeysRequest; +import com.google.container.v1beta1.GetJSONWebKeysResponse; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; +import com.google.container.v1beta1.UsableSubnetwork; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ClusterManagerStub}. + * + *

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

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

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

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

{@code
+ * ClusterManagerStubSettings.Builder clusterManagerSettingsBuilder =
+ *     ClusterManagerStubSettings.newBuilder();
+ * clusterManagerSettingsBuilder
+ *     .listClustersSettings()
+ *     .setRetrySettings(
+ *         clusterManagerSettingsBuilder
+ *             .listClustersSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ClusterManagerStubSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class ClusterManagerStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings listClustersSettings; + private final UnaryCallSettings getClusterSettings; + private final UnaryCallSettings createClusterSettings; + private final UnaryCallSettings updateClusterSettings; + private final UnaryCallSettings updateNodePoolSettings; + private final UnaryCallSettings + setNodePoolAutoscalingSettings; + private final UnaryCallSettings setLoggingServiceSettings; + private final UnaryCallSettings + setMonitoringServiceSettings; + private final UnaryCallSettings setAddonsConfigSettings; + private final UnaryCallSettings setLocationsSettings; + private final UnaryCallSettings updateMasterSettings; + private final UnaryCallSettings setMasterAuthSettings; + private final UnaryCallSettings deleteClusterSettings; + private final UnaryCallSettings + listOperationsSettings; + private final UnaryCallSettings getOperationSettings; + private final UnaryCallSettings cancelOperationSettings; + private final UnaryCallSettings getServerConfigSettings; + private final UnaryCallSettings + listNodePoolsSettings; + private final UnaryCallSettings + getJSONWebKeysSettings; + private final UnaryCallSettings getNodePoolSettings; + private final UnaryCallSettings createNodePoolSettings; + private final UnaryCallSettings deleteNodePoolSettings; + private final UnaryCallSettings + rollbackNodePoolUpgradeSettings; + private final UnaryCallSettings + setNodePoolManagementSettings; + private final UnaryCallSettings setLabelsSettings; + private final UnaryCallSettings setLegacyAbacSettings; + private final UnaryCallSettings startIPRotationSettings; + private final UnaryCallSettings completeIPRotationSettings; + private final UnaryCallSettings setNodePoolSizeSettings; + private final UnaryCallSettings setNetworkPolicySettings; + private final UnaryCallSettings + setMaintenancePolicySettings; + private final PagedCallSettings< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings; + private final UnaryCallSettings + listLocationsSettings; + + private static final PagedListDescriptor< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> + LIST_USABLE_SUBNETWORKS_PAGE_STR_DESC = + new PagedListDescriptor< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListUsableSubnetworksRequest injectToken( + ListUsableSubnetworksRequest payload, String token) { + return ListUsableSubnetworksRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListUsableSubnetworksRequest injectPageSize( + ListUsableSubnetworksRequest payload, int pageSize) { + return ListUsableSubnetworksRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListUsableSubnetworksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListUsableSubnetworksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListUsableSubnetworksResponse payload) { + return payload.getSubnetworksList() == null + ? ImmutableList.of() + : payload.getSubnetworksList(); + } + }; + + private static final PagedListResponseFactory< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + LIST_USABLE_SUBNETWORKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListUsableSubnetworksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> + pageContext = + PageContext.create( + callable, LIST_USABLE_SUBNETWORKS_PAGE_STR_DESC, request, context); + return ListUsableSubnetworksPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listClusters. */ + public UnaryCallSettings listClustersSettings() { + return listClustersSettings; + } + + /** Returns the object with the settings used for calls to getCluster. */ + public UnaryCallSettings getClusterSettings() { + return getClusterSettings; + } + + /** Returns the object with the settings used for calls to createCluster. */ + public UnaryCallSettings createClusterSettings() { + return createClusterSettings; + } + + /** Returns the object with the settings used for calls to updateCluster. */ + public UnaryCallSettings updateClusterSettings() { + return updateClusterSettings; + } + + /** Returns the object with the settings used for calls to updateNodePool. */ + public UnaryCallSettings updateNodePoolSettings() { + return updateNodePoolSettings; + } + + /** Returns the object with the settings used for calls to setNodePoolAutoscaling. */ + public UnaryCallSettings + setNodePoolAutoscalingSettings() { + return setNodePoolAutoscalingSettings; + } + + /** Returns the object with the settings used for calls to setLoggingService. */ + public UnaryCallSettings setLoggingServiceSettings() { + return setLoggingServiceSettings; + } + + /** Returns the object with the settings used for calls to setMonitoringService. */ + public UnaryCallSettings setMonitoringServiceSettings() { + return setMonitoringServiceSettings; + } + + /** Returns the object with the settings used for calls to setAddonsConfig. */ + public UnaryCallSettings setAddonsConfigSettings() { + return setAddonsConfigSettings; + } + + /** + * Returns the object with the settings used for calls to setLocations. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public UnaryCallSettings setLocationsSettings() { + return setLocationsSettings; + } + + /** Returns the object with the settings used for calls to updateMaster. */ + public UnaryCallSettings updateMasterSettings() { + return updateMasterSettings; + } + + /** Returns the object with the settings used for calls to setMasterAuth. */ + public UnaryCallSettings setMasterAuthSettings() { + return setMasterAuthSettings; + } + + /** Returns the object with the settings used for calls to deleteCluster. */ + public UnaryCallSettings deleteClusterSettings() { + return deleteClusterSettings; + } + + /** Returns the object with the settings used for calls to listOperations. */ + public UnaryCallSettings listOperationsSettings() { + return listOperationsSettings; + } + + /** Returns the object with the settings used for calls to get. */ + public UnaryCallSettings getOperationSettings() { + return getOperationSettings; + } + + /** Returns the object with the settings used for calls to cancel. */ + public UnaryCallSettings cancelOperationSettings() { + return cancelOperationSettings; + } + + /** Returns the object with the settings used for calls to getServerConfig. */ + public UnaryCallSettings getServerConfigSettings() { + return getServerConfigSettings; + } + + /** Returns the object with the settings used for calls to listNodePools. */ + public UnaryCallSettings listNodePoolsSettings() { + return listNodePoolsSettings; + } + + /** Returns the object with the settings used for calls to getJSONWebKeys. */ + public UnaryCallSettings getJSONWebKeysSettings() { + return getJSONWebKeysSettings; + } + + /** Returns the object with the settings used for calls to getNodePool. */ + public UnaryCallSettings getNodePoolSettings() { + return getNodePoolSettings; + } + + /** Returns the object with the settings used for calls to createNodePool. */ + public UnaryCallSettings createNodePoolSettings() { + return createNodePoolSettings; + } + + /** Returns the object with the settings used for calls to deleteNodePool. */ + public UnaryCallSettings deleteNodePoolSettings() { + return deleteNodePoolSettings; + } + + /** Returns the object with the settings used for calls to rollbackNodePoolUpgrade. */ + public UnaryCallSettings + rollbackNodePoolUpgradeSettings() { + return rollbackNodePoolUpgradeSettings; + } + + /** Returns the object with the settings used for calls to setNodePoolManagement. */ + public UnaryCallSettings + setNodePoolManagementSettings() { + return setNodePoolManagementSettings; + } + + /** Returns the object with the settings used for calls to setLabels. */ + public UnaryCallSettings setLabelsSettings() { + return setLabelsSettings; + } + + /** Returns the object with the settings used for calls to setLegacyAbac. */ + public UnaryCallSettings setLegacyAbacSettings() { + return setLegacyAbacSettings; + } + + /** Returns the object with the settings used for calls to startIPRotation. */ + public UnaryCallSettings startIPRotationSettings() { + return startIPRotationSettings; + } + + /** Returns the object with the settings used for calls to completeIPRotation. */ + public UnaryCallSettings completeIPRotationSettings() { + return completeIPRotationSettings; + } + + /** Returns the object with the settings used for calls to setNodePoolSize. */ + public UnaryCallSettings setNodePoolSizeSettings() { + return setNodePoolSizeSettings; + } + + /** Returns the object with the settings used for calls to setNetworkPolicy. */ + public UnaryCallSettings setNetworkPolicySettings() { + return setNetworkPolicySettings; + } + + /** Returns the object with the settings used for calls to setMaintenancePolicy. */ + public UnaryCallSettings setMaintenancePolicySettings() { + return setMaintenancePolicySettings; + } + + /** Returns the object with the settings used for calls to listUsableSubnetworks. */ + public PagedCallSettings< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings() { + return listUsableSubnetworksSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public UnaryCallSettings listLocationsSettings() { + return listLocationsSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ClusterManagerStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcClusterManagerStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "container.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "container.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ClusterManagerStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ClusterManagerStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listClustersSettings = settingsBuilder.listClustersSettings().build(); + getClusterSettings = settingsBuilder.getClusterSettings().build(); + createClusterSettings = settingsBuilder.createClusterSettings().build(); + updateClusterSettings = settingsBuilder.updateClusterSettings().build(); + updateNodePoolSettings = settingsBuilder.updateNodePoolSettings().build(); + setNodePoolAutoscalingSettings = settingsBuilder.setNodePoolAutoscalingSettings().build(); + setLoggingServiceSettings = settingsBuilder.setLoggingServiceSettings().build(); + setMonitoringServiceSettings = settingsBuilder.setMonitoringServiceSettings().build(); + setAddonsConfigSettings = settingsBuilder.setAddonsConfigSettings().build(); + setLocationsSettings = settingsBuilder.setLocationsSettings().build(); + updateMasterSettings = settingsBuilder.updateMasterSettings().build(); + setMasterAuthSettings = settingsBuilder.setMasterAuthSettings().build(); + deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); + listOperationsSettings = settingsBuilder.listOperationsSettings().build(); + getOperationSettings = settingsBuilder.getOperationSettings().build(); + cancelOperationSettings = settingsBuilder.cancelOperationSettings().build(); + getServerConfigSettings = settingsBuilder.getServerConfigSettings().build(); + listNodePoolsSettings = settingsBuilder.listNodePoolsSettings().build(); + getJSONWebKeysSettings = settingsBuilder.getJSONWebKeysSettings().build(); + getNodePoolSettings = settingsBuilder.getNodePoolSettings().build(); + createNodePoolSettings = settingsBuilder.createNodePoolSettings().build(); + deleteNodePoolSettings = settingsBuilder.deleteNodePoolSettings().build(); + rollbackNodePoolUpgradeSettings = settingsBuilder.rollbackNodePoolUpgradeSettings().build(); + setNodePoolManagementSettings = settingsBuilder.setNodePoolManagementSettings().build(); + setLabelsSettings = settingsBuilder.setLabelsSettings().build(); + setLegacyAbacSettings = settingsBuilder.setLegacyAbacSettings().build(); + startIPRotationSettings = settingsBuilder.startIPRotationSettings().build(); + completeIPRotationSettings = settingsBuilder.completeIPRotationSettings().build(); + setNodePoolSizeSettings = settingsBuilder.setNodePoolSizeSettings().build(); + setNetworkPolicySettings = settingsBuilder.setNetworkPolicySettings().build(); + setMaintenancePolicySettings = settingsBuilder.setMaintenancePolicySettings().build(); + listUsableSubnetworksSettings = settingsBuilder.listUsableSubnetworksSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + } + + /** Builder for ClusterManagerStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + listClustersSettings; + private final UnaryCallSettings.Builder getClusterSettings; + private final UnaryCallSettings.Builder createClusterSettings; + private final UnaryCallSettings.Builder updateClusterSettings; + private final UnaryCallSettings.Builder + updateNodePoolSettings; + private final UnaryCallSettings.Builder + setNodePoolAutoscalingSettings; + private final UnaryCallSettings.Builder + setLoggingServiceSettings; + private final UnaryCallSettings.Builder + setMonitoringServiceSettings; + private final UnaryCallSettings.Builder + setAddonsConfigSettings; + private final UnaryCallSettings.Builder setLocationsSettings; + private final UnaryCallSettings.Builder updateMasterSettings; + private final UnaryCallSettings.Builder setMasterAuthSettings; + private final UnaryCallSettings.Builder deleteClusterSettings; + private final UnaryCallSettings.Builder + listOperationsSettings; + private final UnaryCallSettings.Builder getOperationSettings; + private final UnaryCallSettings.Builder cancelOperationSettings; + private final UnaryCallSettings.Builder + getServerConfigSettings; + private final UnaryCallSettings.Builder + listNodePoolsSettings; + private final UnaryCallSettings.Builder + getJSONWebKeysSettings; + private final UnaryCallSettings.Builder getNodePoolSettings; + private final UnaryCallSettings.Builder + createNodePoolSettings; + private final UnaryCallSettings.Builder + deleteNodePoolSettings; + private final UnaryCallSettings.Builder + rollbackNodePoolUpgradeSettings; + private final UnaryCallSettings.Builder + setNodePoolManagementSettings; + private final UnaryCallSettings.Builder setLabelsSettings; + private final UnaryCallSettings.Builder setLegacyAbacSettings; + private final UnaryCallSettings.Builder + startIPRotationSettings; + private final UnaryCallSettings.Builder + completeIPRotationSettings; + private final UnaryCallSettings.Builder + setNodePoolSizeSettings; + private final UnaryCallSettings.Builder + setNetworkPolicySettings; + private final UnaryCallSettings.Builder + setMaintenancePolicySettings; + private final PagedCallSettings.Builder< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings; + private final UnaryCallSettings.Builder + listLocationsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(20000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(45000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(45000L)) + .setTotalTimeout(Duration.ofMillis(45000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listClustersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setNodePoolAutoscalingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setLoggingServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setMonitoringServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setAddonsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setLocationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateMasterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setMasterAuthSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listOperationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + cancelOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getServerConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listNodePoolsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getJSONWebKeysSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + rollbackNodePoolUpgradeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setNodePoolManagementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setLabelsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setLegacyAbacSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + startIPRotationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + completeIPRotationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setNodePoolSizeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setNetworkPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setMaintenancePolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listUsableSubnetworksSettings = + PagedCallSettings.newBuilder(LIST_USABLE_SUBNETWORKS_PAGE_STR_FACT); + listLocationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listClustersSettings, + getClusterSettings, + createClusterSettings, + updateClusterSettings, + updateNodePoolSettings, + setNodePoolAutoscalingSettings, + setLoggingServiceSettings, + setMonitoringServiceSettings, + setAddonsConfigSettings, + setLocationsSettings, + updateMasterSettings, + setMasterAuthSettings, + deleteClusterSettings, + listOperationsSettings, + getOperationSettings, + cancelOperationSettings, + getServerConfigSettings, + listNodePoolsSettings, + getJSONWebKeysSettings, + getNodePoolSettings, + createNodePoolSettings, + deleteNodePoolSettings, + rollbackNodePoolUpgradeSettings, + setNodePoolManagementSettings, + setLabelsSettings, + setLegacyAbacSettings, + startIPRotationSettings, + completeIPRotationSettings, + setNodePoolSizeSettings, + setNetworkPolicySettings, + setMaintenancePolicySettings, + listUsableSubnetworksSettings, + listLocationsSettings); + initDefaults(this); + } + + protected Builder(ClusterManagerStubSettings settings) { + super(settings); + + listClustersSettings = settings.listClustersSettings.toBuilder(); + getClusterSettings = settings.getClusterSettings.toBuilder(); + createClusterSettings = settings.createClusterSettings.toBuilder(); + updateClusterSettings = settings.updateClusterSettings.toBuilder(); + updateNodePoolSettings = settings.updateNodePoolSettings.toBuilder(); + setNodePoolAutoscalingSettings = settings.setNodePoolAutoscalingSettings.toBuilder(); + setLoggingServiceSettings = settings.setLoggingServiceSettings.toBuilder(); + setMonitoringServiceSettings = settings.setMonitoringServiceSettings.toBuilder(); + setAddonsConfigSettings = settings.setAddonsConfigSettings.toBuilder(); + setLocationsSettings = settings.setLocationsSettings.toBuilder(); + updateMasterSettings = settings.updateMasterSettings.toBuilder(); + setMasterAuthSettings = settings.setMasterAuthSettings.toBuilder(); + deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); + listOperationsSettings = settings.listOperationsSettings.toBuilder(); + getOperationSettings = settings.getOperationSettings.toBuilder(); + cancelOperationSettings = settings.cancelOperationSettings.toBuilder(); + getServerConfigSettings = settings.getServerConfigSettings.toBuilder(); + listNodePoolsSettings = settings.listNodePoolsSettings.toBuilder(); + getJSONWebKeysSettings = settings.getJSONWebKeysSettings.toBuilder(); + getNodePoolSettings = settings.getNodePoolSettings.toBuilder(); + createNodePoolSettings = settings.createNodePoolSettings.toBuilder(); + deleteNodePoolSettings = settings.deleteNodePoolSettings.toBuilder(); + rollbackNodePoolUpgradeSettings = settings.rollbackNodePoolUpgradeSettings.toBuilder(); + setNodePoolManagementSettings = settings.setNodePoolManagementSettings.toBuilder(); + setLabelsSettings = settings.setLabelsSettings.toBuilder(); + setLegacyAbacSettings = settings.setLegacyAbacSettings.toBuilder(); + startIPRotationSettings = settings.startIPRotationSettings.toBuilder(); + completeIPRotationSettings = settings.completeIPRotationSettings.toBuilder(); + setNodePoolSizeSettings = settings.setNodePoolSizeSettings.toBuilder(); + setNetworkPolicySettings = settings.setNetworkPolicySettings.toBuilder(); + setMaintenancePolicySettings = settings.setMaintenancePolicySettings.toBuilder(); + listUsableSubnetworksSettings = settings.listUsableSubnetworksSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listClustersSettings, + getClusterSettings, + createClusterSettings, + updateClusterSettings, + updateNodePoolSettings, + setNodePoolAutoscalingSettings, + setLoggingServiceSettings, + setMonitoringServiceSettings, + setAddonsConfigSettings, + setLocationsSettings, + updateMasterSettings, + setMasterAuthSettings, + deleteClusterSettings, + listOperationsSettings, + getOperationSettings, + cancelOperationSettings, + getServerConfigSettings, + listNodePoolsSettings, + getJSONWebKeysSettings, + getNodePoolSettings, + createNodePoolSettings, + deleteNodePoolSettings, + rollbackNodePoolUpgradeSettings, + setNodePoolManagementSettings, + setLabelsSettings, + setLegacyAbacSettings, + startIPRotationSettings, + completeIPRotationSettings, + setNodePoolSizeSettings, + setNetworkPolicySettings, + setMaintenancePolicySettings, + listUsableSubnetworksSettings, + listLocationsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listClustersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateNodePoolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setNodePoolAutoscalingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setLoggingServiceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setMonitoringServiceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setAddonsConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateMasterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setMasterAuthSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listOperationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getOperationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .cancelOperationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getServerConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listNodePoolsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getJSONWebKeysSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getNodePoolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createNodePoolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteNodePoolSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .rollbackNodePoolUpgradeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setNodePoolManagementSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setLabelsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setLegacyAbacSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .startIPRotationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .completeIPRotationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setNodePoolSizeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setNetworkPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .setMaintenancePolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listUsableSubnetworksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + return builder; + } + + // NEXT_MAJOR_VER: remove 'throws Exception'. + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listClusters. */ + public UnaryCallSettings.Builder + listClustersSettings() { + return listClustersSettings; + } + + /** Returns the builder for the settings used for calls to getCluster. */ + public UnaryCallSettings.Builder getClusterSettings() { + return getClusterSettings; + } + + /** Returns the builder for the settings used for calls to createCluster. */ + public UnaryCallSettings.Builder createClusterSettings() { + return createClusterSettings; + } + + /** Returns the builder for the settings used for calls to updateCluster. */ + public UnaryCallSettings.Builder updateClusterSettings() { + return updateClusterSettings; + } + + /** Returns the builder for the settings used for calls to updateNodePool. */ + public UnaryCallSettings.Builder updateNodePoolSettings() { + return updateNodePoolSettings; + } + + /** Returns the builder for the settings used for calls to setNodePoolAutoscaling. */ + public UnaryCallSettings.Builder + setNodePoolAutoscalingSettings() { + return setNodePoolAutoscalingSettings; + } + + /** Returns the builder for the settings used for calls to setLoggingService. */ + public UnaryCallSettings.Builder + setLoggingServiceSettings() { + return setLoggingServiceSettings; + } + + /** Returns the builder for the settings used for calls to setMonitoringService. */ + public UnaryCallSettings.Builder + setMonitoringServiceSettings() { + return setMonitoringServiceSettings; + } + + /** Returns the builder for the settings used for calls to setAddonsConfig. */ + public UnaryCallSettings.Builder setAddonsConfigSettings() { + return setAddonsConfigSettings; + } + + /** + * Returns the builder for the settings used for calls to setLocations. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated + public UnaryCallSettings.Builder setLocationsSettings() { + return setLocationsSettings; + } + + /** Returns the builder for the settings used for calls to updateMaster. */ + public UnaryCallSettings.Builder updateMasterSettings() { + return updateMasterSettings; + } + + /** Returns the builder for the settings used for calls to setMasterAuth. */ + public UnaryCallSettings.Builder setMasterAuthSettings() { + return setMasterAuthSettings; + } + + /** Returns the builder for the settings used for calls to deleteCluster. */ + public UnaryCallSettings.Builder deleteClusterSettings() { + return deleteClusterSettings; + } + + /** Returns the builder for the settings used for calls to listOperations. */ + public UnaryCallSettings.Builder + listOperationsSettings() { + return listOperationsSettings; + } + + /** Returns the builder for the settings used for calls to get. */ + public UnaryCallSettings.Builder getOperationSettings() { + return getOperationSettings; + } + + /** Returns the builder for the settings used for calls to cancel. */ + public UnaryCallSettings.Builder cancelOperationSettings() { + return cancelOperationSettings; + } + + /** Returns the builder for the settings used for calls to getServerConfig. */ + public UnaryCallSettings.Builder + getServerConfigSettings() { + return getServerConfigSettings; + } + + /** Returns the builder for the settings used for calls to listNodePools. */ + public UnaryCallSettings.Builder + listNodePoolsSettings() { + return listNodePoolsSettings; + } + + /** Returns the builder for the settings used for calls to getJSONWebKeys. */ + public UnaryCallSettings.Builder + getJSONWebKeysSettings() { + return getJSONWebKeysSettings; + } + + /** Returns the builder for the settings used for calls to getNodePool. */ + public UnaryCallSettings.Builder getNodePoolSettings() { + return getNodePoolSettings; + } + + /** Returns the builder for the settings used for calls to createNodePool. */ + public UnaryCallSettings.Builder createNodePoolSettings() { + return createNodePoolSettings; + } + + /** Returns the builder for the settings used for calls to deleteNodePool. */ + public UnaryCallSettings.Builder deleteNodePoolSettings() { + return deleteNodePoolSettings; + } + + /** Returns the builder for the settings used for calls to rollbackNodePoolUpgrade. */ + public UnaryCallSettings.Builder + rollbackNodePoolUpgradeSettings() { + return rollbackNodePoolUpgradeSettings; + } + + /** Returns the builder for the settings used for calls to setNodePoolManagement. */ + public UnaryCallSettings.Builder + setNodePoolManagementSettings() { + return setNodePoolManagementSettings; + } + + /** Returns the builder for the settings used for calls to setLabels. */ + public UnaryCallSettings.Builder setLabelsSettings() { + return setLabelsSettings; + } + + /** Returns the builder for the settings used for calls to setLegacyAbac. */ + public UnaryCallSettings.Builder setLegacyAbacSettings() { + return setLegacyAbacSettings; + } + + /** Returns the builder for the settings used for calls to startIPRotation. */ + public UnaryCallSettings.Builder startIPRotationSettings() { + return startIPRotationSettings; + } + + /** Returns the builder for the settings used for calls to completeIPRotation. */ + public UnaryCallSettings.Builder + completeIPRotationSettings() { + return completeIPRotationSettings; + } + + /** Returns the builder for the settings used for calls to setNodePoolSize. */ + public UnaryCallSettings.Builder setNodePoolSizeSettings() { + return setNodePoolSizeSettings; + } + + /** Returns the builder for the settings used for calls to setNetworkPolicy. */ + public UnaryCallSettings.Builder + setNetworkPolicySettings() { + return setNetworkPolicySettings; + } + + /** Returns the builder for the settings used for calls to setMaintenancePolicy. */ + public UnaryCallSettings.Builder + setMaintenancePolicySettings() { + return setMaintenancePolicySettings; + } + + /** Returns the builder for the settings used for calls to listUsableSubnetworks. */ + public PagedCallSettings.Builder< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings() { + return listUsableSubnetworksSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public UnaryCallSettings.Builder + listLocationsSettings() { + return listLocationsSettings; + } + + @Override + public ClusterManagerStubSettings build() throws IOException { + return new ClusterManagerStubSettings(this); + } + } +} diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerCallableFactory.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerCallableFactory.java new file mode 100644 index 00000000..5322e44d --- /dev/null +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the ClusterManager service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcClusterManagerCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerStub.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerStub.java new file mode 100644 index 00000000..9638b785 --- /dev/null +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerStub.java @@ -0,0 +1,1362 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1beta1.stub; + +import static com.google.cloud.container.v1beta1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsExtractor; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableMap; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetJSONWebKeysRequest; +import com.google.container.v1beta1.GetJSONWebKeysResponse; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the ClusterManager service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcClusterManagerStub extends ClusterManagerStub { + private static final MethodDescriptor + listClustersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/ListClusters") + .setRequestMarshaller(ProtoUtils.marshaller(ListClustersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListClustersResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/GetCluster") + .setRequestMarshaller(ProtoUtils.marshaller(GetClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Cluster.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/CreateCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/UpdateCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateNodePoolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/UpdateNodePool") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + setNodePoolAutoscalingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/SetNodePoolAutoscaling") + .setRequestMarshaller( + ProtoUtils.marshaller(SetNodePoolAutoscalingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + setLoggingServiceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/SetLoggingService") + .setRequestMarshaller( + ProtoUtils.marshaller(SetLoggingServiceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + setMonitoringServiceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/SetMonitoringService") + .setRequestMarshaller( + ProtoUtils.marshaller(SetMonitoringServiceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + setAddonsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/SetAddonsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(SetAddonsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + setLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/SetLocations") + .setRequestMarshaller(ProtoUtils.marshaller(SetLocationsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateMasterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/UpdateMaster") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateMasterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + setMasterAuthMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/SetMasterAuth") + .setRequestMarshaller( + ProtoUtils.marshaller(SetMasterAuthRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/DeleteCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listOperationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/ListOperations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListOperationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListOperationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getOperationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/GetOperation") + .setRequestMarshaller(ProtoUtils.marshaller(GetOperationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + cancelOperationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/CancelOperation") + .setRequestMarshaller( + ProtoUtils.marshaller(CancelOperationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getServerConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/GetServerConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetServerConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ServerConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listNodePoolsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/ListNodePools") + .setRequestMarshaller( + ProtoUtils.marshaller(ListNodePoolsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListNodePoolsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getJSONWebKeysMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/GetJSONWebKeys") + .setRequestMarshaller( + ProtoUtils.marshaller(GetJSONWebKeysRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GetJSONWebKeysResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getNodePoolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/GetNodePool") + .setRequestMarshaller(ProtoUtils.marshaller(GetNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(NodePool.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createNodePoolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/CreateNodePool") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteNodePoolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/DeleteNodePool") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + rollbackNodePoolUpgradeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/RollbackNodePoolUpgrade") + .setRequestMarshaller( + ProtoUtils.marshaller(RollbackNodePoolUpgradeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + setNodePoolManagementMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/SetNodePoolManagement") + .setRequestMarshaller( + ProtoUtils.marshaller(SetNodePoolManagementRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor setLabelsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/SetLabels") + .setRequestMarshaller(ProtoUtils.marshaller(SetLabelsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + setLegacyAbacMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/SetLegacyAbac") + .setRequestMarshaller( + ProtoUtils.marshaller(SetLegacyAbacRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + startIPRotationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/StartIPRotation") + .setRequestMarshaller( + ProtoUtils.marshaller(StartIPRotationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + completeIPRotationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/CompleteIPRotation") + .setRequestMarshaller( + ProtoUtils.marshaller(CompleteIPRotationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + setNodePoolSizeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/SetNodePoolSize") + .setRequestMarshaller( + ProtoUtils.marshaller(SetNodePoolSizeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + setNetworkPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/SetNetworkPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(SetNetworkPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + setMaintenancePolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/SetMaintenancePolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(SetMaintenancePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listUsableSubnetworksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/ListUsableSubnetworks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListUsableSubnetworksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListUsableSubnetworksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable listClustersCallable; + private final UnaryCallable getClusterCallable; + private final UnaryCallable createClusterCallable; + private final UnaryCallable updateClusterCallable; + private final UnaryCallable updateNodePoolCallable; + private final UnaryCallable + setNodePoolAutoscalingCallable; + private final UnaryCallable setLoggingServiceCallable; + private final UnaryCallable setMonitoringServiceCallable; + private final UnaryCallable setAddonsConfigCallable; + private final UnaryCallable setLocationsCallable; + private final UnaryCallable updateMasterCallable; + private final UnaryCallable setMasterAuthCallable; + private final UnaryCallable deleteClusterCallable; + private final UnaryCallable listOperationsCallable; + private final UnaryCallable getOperationCallable; + private final UnaryCallable cancelOperationCallable; + private final UnaryCallable getServerConfigCallable; + private final UnaryCallable listNodePoolsCallable; + private final UnaryCallable getJSONWebKeysCallable; + private final UnaryCallable getNodePoolCallable; + private final UnaryCallable createNodePoolCallable; + private final UnaryCallable deleteNodePoolCallable; + private final UnaryCallable + rollbackNodePoolUpgradeCallable; + private final UnaryCallable + setNodePoolManagementCallable; + private final UnaryCallable setLabelsCallable; + private final UnaryCallable setLegacyAbacCallable; + private final UnaryCallable startIPRotationCallable; + private final UnaryCallable completeIPRotationCallable; + private final UnaryCallable setNodePoolSizeCallable; + private final UnaryCallable setNetworkPolicyCallable; + private final UnaryCallable setMaintenancePolicyCallable; + private final UnaryCallable + listUsableSubnetworksCallable; + private final UnaryCallable + listUsableSubnetworksPagedCallable; + private final UnaryCallable listLocationsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcClusterManagerStub create(ClusterManagerStubSettings settings) + throws IOException { + return new GrpcClusterManagerStub(settings, ClientContext.create(settings)); + } + + public static final GrpcClusterManagerStub create(ClientContext clientContext) + throws IOException { + return new GrpcClusterManagerStub( + ClusterManagerStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcClusterManagerStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcClusterManagerStub( + ClusterManagerStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcClusterManagerStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcClusterManagerStub(ClusterManagerStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcClusterManagerCallableFactory()); + } + + /** + * Constructs an instance of GrpcClusterManagerStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcClusterManagerStub( + ClusterManagerStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings listClustersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listClustersMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListClustersRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings getClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings createClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings updateClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings updateNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateNodePoolMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateNodePoolRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + setNodePoolAutoscalingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolAutoscalingMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetNodePoolAutoscalingRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings setLoggingServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLoggingServiceMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetLoggingServiceRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings setMonitoringServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMonitoringServiceMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetMonitoringServiceRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings setAddonsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setAddonsConfigMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetAddonsConfigRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings setLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLocationsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetLocationsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings updateMasterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMasterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateMasterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings setMasterAuthTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMasterAuthMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetMasterAuthRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings deleteClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteClusterMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteClusterRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listOperationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listOperationsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListOperationsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings getOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOperationMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetOperationRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + params.put("operation_id", String.valueOf(request.getOperationId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings cancelOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(cancelOperationMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CancelOperationRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + params.put("operation_id", String.valueOf(request.getOperationId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings getServerConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getServerConfigMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetServerConfigRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings listNodePoolsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNodePoolsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListNodePoolsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + getJSONWebKeysTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getJSONWebKeysMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetJSONWebKeysRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings getNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNodePoolMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetNodePoolRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings createNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createNodePoolMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateNodePoolRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("parent", String.valueOf(request.getParent())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings deleteNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteNodePoolMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteNodePoolRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + rollbackNodePoolUpgradeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(rollbackNodePoolUpgradeMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(RollbackNodePoolUpgradeRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + setNodePoolManagementTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolManagementMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetNodePoolManagementRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings setLabelsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLabelsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetLabelsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings setLegacyAbacTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLegacyAbacMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetLegacyAbacRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings startIPRotationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(startIPRotationMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(StartIPRotationRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings completeIPRotationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(completeIPRotationMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CompleteIPRotationRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings setNodePoolSizeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolSizeMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetNodePoolSizeRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("node_pool_id", String.valueOf(request.getNodePoolId())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings setNetworkPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNetworkPolicyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetNetworkPolicyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings setMaintenancePolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMaintenancePolicyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetMaintenancePolicyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("cluster_id", String.valueOf(request.getClusterId())); + params.put("name", String.valueOf(request.getName())); + params.put("project_id", String.valueOf(request.getProjectId())); + params.put("zone", String.valueOf(request.getZone())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listUsableSubnetworksTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListUsableSubnetworksRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListLocationsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + + this.listClustersCallable = + callableFactory.createUnaryCallable( + listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.getClusterCallable = + callableFactory.createUnaryCallable( + getClusterTransportSettings, settings.getClusterSettings(), clientContext); + this.createClusterCallable = + callableFactory.createUnaryCallable( + createClusterTransportSettings, settings.createClusterSettings(), clientContext); + this.updateClusterCallable = + callableFactory.createUnaryCallable( + updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); + this.updateNodePoolCallable = + callableFactory.createUnaryCallable( + updateNodePoolTransportSettings, settings.updateNodePoolSettings(), clientContext); + this.setNodePoolAutoscalingCallable = + callableFactory.createUnaryCallable( + setNodePoolAutoscalingTransportSettings, + settings.setNodePoolAutoscalingSettings(), + clientContext); + this.setLoggingServiceCallable = + callableFactory.createUnaryCallable( + setLoggingServiceTransportSettings, + settings.setLoggingServiceSettings(), + clientContext); + this.setMonitoringServiceCallable = + callableFactory.createUnaryCallable( + setMonitoringServiceTransportSettings, + settings.setMonitoringServiceSettings(), + clientContext); + this.setAddonsConfigCallable = + callableFactory.createUnaryCallable( + setAddonsConfigTransportSettings, settings.setAddonsConfigSettings(), clientContext); + this.setLocationsCallable = + callableFactory.createUnaryCallable( + setLocationsTransportSettings, settings.setLocationsSettings(), clientContext); + this.updateMasterCallable = + callableFactory.createUnaryCallable( + updateMasterTransportSettings, settings.updateMasterSettings(), clientContext); + this.setMasterAuthCallable = + callableFactory.createUnaryCallable( + setMasterAuthTransportSettings, settings.setMasterAuthSettings(), clientContext); + this.deleteClusterCallable = + callableFactory.createUnaryCallable( + deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); + this.listOperationsCallable = + callableFactory.createUnaryCallable( + listOperationsTransportSettings, settings.listOperationsSettings(), clientContext); + this.getOperationCallable = + callableFactory.createUnaryCallable( + getOperationTransportSettings, settings.getOperationSettings(), clientContext); + this.cancelOperationCallable = + callableFactory.createUnaryCallable( + cancelOperationTransportSettings, settings.cancelOperationSettings(), clientContext); + this.getServerConfigCallable = + callableFactory.createUnaryCallable( + getServerConfigTransportSettings, settings.getServerConfigSettings(), clientContext); + this.listNodePoolsCallable = + callableFactory.createUnaryCallable( + listNodePoolsTransportSettings, settings.listNodePoolsSettings(), clientContext); + this.getJSONWebKeysCallable = + callableFactory.createUnaryCallable( + getJSONWebKeysTransportSettings, settings.getJSONWebKeysSettings(), clientContext); + this.getNodePoolCallable = + callableFactory.createUnaryCallable( + getNodePoolTransportSettings, settings.getNodePoolSettings(), clientContext); + this.createNodePoolCallable = + callableFactory.createUnaryCallable( + createNodePoolTransportSettings, settings.createNodePoolSettings(), clientContext); + this.deleteNodePoolCallable = + callableFactory.createUnaryCallable( + deleteNodePoolTransportSettings, settings.deleteNodePoolSettings(), clientContext); + this.rollbackNodePoolUpgradeCallable = + callableFactory.createUnaryCallable( + rollbackNodePoolUpgradeTransportSettings, + settings.rollbackNodePoolUpgradeSettings(), + clientContext); + this.setNodePoolManagementCallable = + callableFactory.createUnaryCallable( + setNodePoolManagementTransportSettings, + settings.setNodePoolManagementSettings(), + clientContext); + this.setLabelsCallable = + callableFactory.createUnaryCallable( + setLabelsTransportSettings, settings.setLabelsSettings(), clientContext); + this.setLegacyAbacCallable = + callableFactory.createUnaryCallable( + setLegacyAbacTransportSettings, settings.setLegacyAbacSettings(), clientContext); + this.startIPRotationCallable = + callableFactory.createUnaryCallable( + startIPRotationTransportSettings, settings.startIPRotationSettings(), clientContext); + this.completeIPRotationCallable = + callableFactory.createUnaryCallable( + completeIPRotationTransportSettings, + settings.completeIPRotationSettings(), + clientContext); + this.setNodePoolSizeCallable = + callableFactory.createUnaryCallable( + setNodePoolSizeTransportSettings, settings.setNodePoolSizeSettings(), clientContext); + this.setNetworkPolicyCallable = + callableFactory.createUnaryCallable( + setNetworkPolicyTransportSettings, settings.setNetworkPolicySettings(), clientContext); + this.setMaintenancePolicyCallable = + callableFactory.createUnaryCallable( + setMaintenancePolicyTransportSettings, + settings.setMaintenancePolicySettings(), + clientContext); + this.listUsableSubnetworksCallable = + callableFactory.createUnaryCallable( + listUsableSubnetworksTransportSettings, + settings.listUsableSubnetworksSettings(), + clientContext); + this.listUsableSubnetworksPagedCallable = + callableFactory.createPagedCallable( + listUsableSubnetworksTransportSettings, + settings.listUsableSubnetworksSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listClustersCallable() { + return listClustersCallable; + } + + @Override + public UnaryCallable getClusterCallable() { + return getClusterCallable; + } + + @Override + public UnaryCallable createClusterCallable() { + return createClusterCallable; + } + + @Override + public UnaryCallable updateClusterCallable() { + return updateClusterCallable; + } + + @Override + public UnaryCallable updateNodePoolCallable() { + return updateNodePoolCallable; + } + + @Override + public UnaryCallable setNodePoolAutoscalingCallable() { + return setNodePoolAutoscalingCallable; + } + + @Override + public UnaryCallable setLoggingServiceCallable() { + return setLoggingServiceCallable; + } + + @Override + public UnaryCallable setMonitoringServiceCallable() { + return setMonitoringServiceCallable; + } + + @Override + public UnaryCallable setAddonsConfigCallable() { + return setAddonsConfigCallable; + } + + @Override + public UnaryCallable setLocationsCallable() { + return setLocationsCallable; + } + + @Override + public UnaryCallable updateMasterCallable() { + return updateMasterCallable; + } + + @Override + public UnaryCallable setMasterAuthCallable() { + return setMasterAuthCallable; + } + + @Override + public UnaryCallable deleteClusterCallable() { + return deleteClusterCallable; + } + + @Override + public UnaryCallable listOperationsCallable() { + return listOperationsCallable; + } + + @Override + public UnaryCallable getOperationCallable() { + return getOperationCallable; + } + + @Override + public UnaryCallable cancelOperationCallable() { + return cancelOperationCallable; + } + + @Override + public UnaryCallable getServerConfigCallable() { + return getServerConfigCallable; + } + + @Override + public UnaryCallable listNodePoolsCallable() { + return listNodePoolsCallable; + } + + @Override + public UnaryCallable getJSONWebKeysCallable() { + return getJSONWebKeysCallable; + } + + @Override + public UnaryCallable getNodePoolCallable() { + return getNodePoolCallable; + } + + @Override + public UnaryCallable createNodePoolCallable() { + return createNodePoolCallable; + } + + @Override + public UnaryCallable deleteNodePoolCallable() { + return deleteNodePoolCallable; + } + + @Override + public UnaryCallable + rollbackNodePoolUpgradeCallable() { + return rollbackNodePoolUpgradeCallable; + } + + @Override + public UnaryCallable setNodePoolManagementCallable() { + return setNodePoolManagementCallable; + } + + @Override + public UnaryCallable setLabelsCallable() { + return setLabelsCallable; + } + + @Override + public UnaryCallable setLegacyAbacCallable() { + return setLegacyAbacCallable; + } + + @Override + public UnaryCallable startIPRotationCallable() { + return startIPRotationCallable; + } + + @Override + public UnaryCallable completeIPRotationCallable() { + return completeIPRotationCallable; + } + + @Override + public UnaryCallable setNodePoolSizeCallable() { + return setNodePoolSizeCallable; + } + + @Override + public UnaryCallable setNetworkPolicyCallable() { + return setNetworkPolicyCallable; + } + + @Override + public UnaryCallable setMaintenancePolicyCallable() { + return setMaintenancePolicyCallable; + } + + @Override + public UnaryCallable + listUsableSubnetworksCallable() { + return listUsableSubnetworksCallable; + } + + @Override + public UnaryCallable + listUsableSubnetworksPagedCallable() { + return listUsableSubnetworksPagedCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/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 new file mode 100644 index 00000000..ec81c9f5 --- /dev/null +++ b/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java @@ -0,0 +1,2083 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1beta1; + +import static com.google.cloud.container.v1beta1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.container.v1beta1.AddonsConfig; +import com.google.container.v1beta1.AuthenticatorGroupsConfig; +import com.google.container.v1beta1.BinaryAuthorization; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.ClusterAutoscaling; +import com.google.container.v1beta1.ClusterTelemetry; +import com.google.container.v1beta1.ClusterUpdate; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.ConfidentialNodes; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DatabaseEncryption; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetJSONWebKeysRequest; +import com.google.container.v1beta1.GetJSONWebKeysResponse; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.IPAllocationPolicy; +import com.google.container.v1beta1.Jwk; +import com.google.container.v1beta1.LegacyAbac; +import com.google.container.v1beta1.LinuxNodeConfig; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.Location; +import com.google.container.v1beta1.MaintenancePolicy; +import com.google.container.v1beta1.Master; +import com.google.container.v1beta1.MasterAuth; +import com.google.container.v1beta1.MasterAuthorizedNetworksConfig; +import com.google.container.v1beta1.MaxPodsConstraint; +import com.google.container.v1beta1.NetworkConfig; +import com.google.container.v1beta1.NetworkPolicy; +import com.google.container.v1beta1.NodeConfig; +import com.google.container.v1beta1.NodeKubeletConfig; +import com.google.container.v1beta1.NodeManagement; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.NodePoolAutoscaling; +import com.google.container.v1beta1.NotificationConfig; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.OperationProgress; +import com.google.container.v1beta1.PodSecurityPolicyConfig; +import com.google.container.v1beta1.PrivateClusterConfig; +import com.google.container.v1beta1.ReleaseChannel; +import com.google.container.v1beta1.ResourceUsageExportConfig; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.ShieldedNodes; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.StatusCondition; +import com.google.container.v1beta1.TpuConfig; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; +import com.google.container.v1beta1.UsableSubnetwork; +import com.google.container.v1beta1.VerticalPodAutoscaling; +import com.google.container.v1beta1.WorkloadIdentityConfig; +import com.google.container.v1beta1.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; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ClusterManagerClientTest { + private static MockClusterManager mockClusterManager; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ClusterManagerClient client; + + @BeforeClass + public static void startStaticServer() { + mockClusterManager = new MockClusterManager(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockClusterManager)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ClusterManagerSettings settings = + ClusterManagerSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ClusterManagerClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listClustersTest() throws Exception { + ListClustersResponse expectedResponse = + ListClustersResponse.newBuilder() + .addAllClusters(new ArrayList()) + .addAllMissingZones(new ArrayList()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + + ListClustersResponse actualResponse = client.listClusters(projectId, zone); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listClustersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + client.listClusters(projectId, zone); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName("name3373707") + .setDescription("description-1724546052") + .setInitialNodeCount(1682564205) + .setNodeConfig(NodeConfig.newBuilder().build()) + .setMasterAuth(MasterAuth.newBuilder().build()) + .setLoggingService("loggingService1098570326") + .setMonitoringService("monitoringService-1431578291") + .setNetwork("network1843485230") + .setClusterIpv4Cidr("clusterIpv4Cidr-277423341") + .setAddonsConfig(AddonsConfig.newBuilder().build()) + .setSubnetwork("subnetwork-1302785042") + .addAllNodePools(new ArrayList()) + .addAllLocations(new ArrayList()) + .setEnableKubernetesAlpha(true) + .putAllResourceLabels(new HashMap()) + .setLabelFingerprint("labelFingerprint379449680") + .setLegacyAbac(LegacyAbac.newBuilder().build()) + .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + .setIpAllocationPolicy(IPAllocationPolicy.newBuilder().build()) + .setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig.newBuilder().build()) + .setMaintenancePolicy(MaintenancePolicy.newBuilder().build()) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setPodSecurityPolicyConfig(PodSecurityPolicyConfig.newBuilder().build()) + .setAutoscaling(ClusterAutoscaling.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setPrivateCluster(true) + .setMasterIpv4CidrBlock("masterIpv4CidrBlock42581458") + .setDefaultMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .setResourceUsageExportConfig(ResourceUsageExportConfig.newBuilder().build()) + .setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig.newBuilder().build()) + .setPrivateClusterConfig(PrivateClusterConfig.newBuilder().build()) + .setVerticalPodAutoscaling(VerticalPodAutoscaling.newBuilder().build()) + .setShieldedNodes(ShieldedNodes.newBuilder().build()) + .setReleaseChannel(ReleaseChannel.newBuilder().build()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setClusterTelemetry(ClusterTelemetry.newBuilder().build()) + .setTpuConfig(TpuConfig.newBuilder().build()) + .setNotificationConfig(NotificationConfig.newBuilder().build()) + .setConfidentialNodes(ConfidentialNodes.newBuilder().build()) + .setSelfLink("selfLink1191800166") + .setZone("zone3744684") + .setEndpoint("endpoint1741102485") + .setInitialClusterVersion("initialClusterVersion-1547734558") + .setCurrentMasterVersion("currentMasterVersion1871927069") + .setCurrentNodeVersion("currentNodeVersion373921085") + .setCreateTime("createTime1369213417") + .setStatusMessage("statusMessage-958704715") + .setNodeIpv4CidrSize(1181176815) + .setServicesIpv4Cidr("servicesIpv4Cidr-1785842313") + .addAllInstanceGroupUrls(new ArrayList()) + .setCurrentNodeCount(178977560) + .setExpireTime("expireTime-834724724") + .setLocation("location1901043637") + .setEnableTpu(true) + .setTpuIpv4CidrBlock("tpuIpv4CidrBlock997172251") + .setDatabaseEncryption(DatabaseEncryption.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setMaster(Master.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.getCluster(projectId, zone, clusterId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetClusterRequest actualRequest = ((GetClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + client.getCluster(projectId, zone, clusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createClusterTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + Cluster cluster = Cluster.newBuilder().build(); + + Operation actualResponse = client.createCluster(projectId, zone, cluster); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(cluster, actualRequest.getCluster()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + Cluster cluster = Cluster.newBuilder().build(); + client.createCluster(projectId, zone, cluster); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateClusterTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + ClusterUpdate update = ClusterUpdate.newBuilder().build(); + + Operation actualResponse = client.updateCluster(projectId, zone, clusterId, update); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateClusterRequest actualRequest = ((UpdateClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(update, actualRequest.getUpdate()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + ClusterUpdate update = ClusterUpdate.newBuilder().build(); + client.updateCluster(projectId, zone, clusterId, update); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateNodePoolTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + UpdateNodePoolRequest request = + UpdateNodePoolRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setNodeVersion("nodeVersion1155309686") + .setImageType("imageType-878147787") + .addAllLocations(new ArrayList()) + .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build()) + .setName("name3373707") + .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) + .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build()) + .setKubeletConfig(NodeKubeletConfig.newBuilder().build()) + .build(); + + Operation actualResponse = client.updateNodePool(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateNodePoolRequest actualRequest = ((UpdateNodePoolRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); + Assert.assertEquals(request.getZone(), actualRequest.getZone()); + Assert.assertEquals(request.getClusterId(), actualRequest.getClusterId()); + Assert.assertEquals(request.getNodePoolId(), actualRequest.getNodePoolId()); + Assert.assertEquals(request.getNodeVersion(), actualRequest.getNodeVersion()); + Assert.assertEquals(request.getImageType(), actualRequest.getImageType()); + Assert.assertEquals(request.getLocationsList(), actualRequest.getLocationsList()); + Assert.assertEquals( + request.getWorkloadMetadataConfig(), actualRequest.getWorkloadMetadataConfig()); + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getUpgradeSettings(), actualRequest.getUpgradeSettings()); + Assert.assertEquals(request.getLinuxNodeConfig(), actualRequest.getLinuxNodeConfig()); + Assert.assertEquals(request.getKubeletConfig(), actualRequest.getKubeletConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateNodePoolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + UpdateNodePoolRequest request = + UpdateNodePoolRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setNodeVersion("nodeVersion1155309686") + .setImageType("imageType-878147787") + .addAllLocations(new ArrayList()) + .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build()) + .setName("name3373707") + .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) + .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build()) + .setKubeletConfig(NodeKubeletConfig.newBuilder().build()) + .build(); + client.updateNodePool(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setNodePoolAutoscalingTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + SetNodePoolAutoscalingRequest request = + SetNodePoolAutoscalingRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setAutoscaling(NodePoolAutoscaling.newBuilder().build()) + .setName("name3373707") + .build(); + + Operation actualResponse = client.setNodePoolAutoscaling(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetNodePoolAutoscalingRequest actualRequest = + ((SetNodePoolAutoscalingRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); + Assert.assertEquals(request.getZone(), actualRequest.getZone()); + Assert.assertEquals(request.getClusterId(), actualRequest.getClusterId()); + Assert.assertEquals(request.getNodePoolId(), actualRequest.getNodePoolId()); + Assert.assertEquals(request.getAutoscaling(), actualRequest.getAutoscaling()); + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setNodePoolAutoscalingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + SetNodePoolAutoscalingRequest request = + SetNodePoolAutoscalingRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setAutoscaling(NodePoolAutoscaling.newBuilder().build()) + .setName("name3373707") + .build(); + client.setNodePoolAutoscaling(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setLoggingServiceTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String loggingService = "loggingService1098570326"; + + Operation actualResponse = client.setLoggingService(projectId, zone, clusterId, loggingService); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetLoggingServiceRequest actualRequest = ((SetLoggingServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(loggingService, actualRequest.getLoggingService()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setLoggingServiceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String loggingService = "loggingService1098570326"; + client.setLoggingService(projectId, zone, clusterId, loggingService); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setMonitoringServiceTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String monitoringService = "monitoringService-1431578291"; + + Operation actualResponse = + client.setMonitoringService(projectId, zone, clusterId, monitoringService); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetMonitoringServiceRequest actualRequest = + ((SetMonitoringServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(monitoringService, actualRequest.getMonitoringService()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setMonitoringServiceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String monitoringService = "monitoringService-1431578291"; + client.setMonitoringService(projectId, zone, clusterId, monitoringService); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setAddonsConfigTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); + + Operation actualResponse = client.setAddonsConfig(projectId, zone, clusterId, addonsConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetAddonsConfigRequest actualRequest = ((SetAddonsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(addonsConfig, actualRequest.getAddonsConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setAddonsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); + client.setAddonsConfig(projectId, zone, clusterId, addonsConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setLocationsTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + List locations = new ArrayList<>(); + + Operation actualResponse = client.setLocations(projectId, zone, clusterId, locations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetLocationsRequest actualRequest = ((SetLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(locations, actualRequest.getLocationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + List locations = new ArrayList<>(); + client.setLocations(projectId, zone, clusterId, locations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateMasterTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String masterVersion = "masterVersion1167095830"; + + Operation actualResponse = client.updateMaster(projectId, zone, clusterId, masterVersion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMasterRequest actualRequest = ((UpdateMasterRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(masterVersion, actualRequest.getMasterVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMasterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String masterVersion = "masterVersion1167095830"; + client.updateMaster(projectId, zone, clusterId, masterVersion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setMasterAuthTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + SetMasterAuthRequest request = + SetMasterAuthRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setUpdate(MasterAuth.newBuilder().build()) + .setName("name3373707") + .build(); + + Operation actualResponse = client.setMasterAuth(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetMasterAuthRequest actualRequest = ((SetMasterAuthRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); + Assert.assertEquals(request.getZone(), actualRequest.getZone()); + Assert.assertEquals(request.getClusterId(), actualRequest.getClusterId()); + Assert.assertEquals(request.getAction(), actualRequest.getAction()); + Assert.assertEquals(request.getUpdate(), actualRequest.getUpdate()); + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setMasterAuthExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + SetMasterAuthRequest request = + SetMasterAuthRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setUpdate(MasterAuth.newBuilder().build()) + .setName("name3373707") + .build(); + client.setMasterAuth(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteClusterTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + + Operation actualResponse = client.deleteCluster(projectId, zone, clusterId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteClusterRequest actualRequest = ((DeleteClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + client.deleteCluster(projectId, zone, clusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOperationsTest() throws Exception { + ListOperationsResponse expectedResponse = + ListOperationsResponse.newBuilder() + .addAllOperations(new ArrayList()) + .addAllMissingZones(new ArrayList()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + + ListOperationsResponse actualResponse = client.listOperations(projectId, zone); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOperationsRequest actualRequest = ((ListOperationsRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOperationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + client.listOperations(projectId, zone); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOperationTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String operationId = "operationId129704162"; + + Operation actualResponse = client.getOperation(projectId, zone, operationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOperationRequest actualRequest = ((GetOperationRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(operationId, actualRequest.getOperationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOperationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String operationId = "operationId129704162"; + client.getOperation(projectId, zone, operationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelOperationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String operationId = "operationId129704162"; + + client.cancelOperation(projectId, zone, operationId); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CancelOperationRequest actualRequest = ((CancelOperationRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(operationId, actualRequest.getOperationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cancelOperationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String operationId = "operationId129704162"; + client.cancelOperation(projectId, zone, operationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServerConfigTest() throws Exception { + ServerConfig expectedResponse = + ServerConfig.newBuilder() + .setDefaultClusterVersion("defaultClusterVersion-2007666145") + .addAllValidNodeVersions(new ArrayList()) + .setDefaultImageType("defaultImageType933054964") + .addAllValidImageTypes(new ArrayList()) + .addAllValidMasterVersions(new ArrayList()) + .addAllChannels(new ArrayList()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + + ServerConfig actualResponse = client.getServerConfig(projectId, zone); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetServerConfigRequest actualRequest = ((GetServerConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getServerConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + client.getServerConfig(projectId, zone); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNodePoolsTest() throws Exception { + ListNodePoolsResponse expectedResponse = + ListNodePoolsResponse.newBuilder().addAllNodePools(new ArrayList()).build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + + ListNodePoolsResponse actualResponse = client.listNodePools(projectId, zone, clusterId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListNodePoolsRequest actualRequest = ((ListNodePoolsRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listNodePoolsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + client.listNodePools(projectId, zone, clusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getJSONWebKeysTest() throws Exception { + GetJSONWebKeysResponse expectedResponse = + GetJSONWebKeysResponse.newBuilder().addAllKeys(new ArrayList()).build(); + mockClusterManager.addResponse(expectedResponse); + + GetJSONWebKeysRequest request = + GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build(); + + GetJSONWebKeysResponse actualResponse = client.getJSONWebKeys(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetJSONWebKeysRequest actualRequest = ((GetJSONWebKeysRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getJSONWebKeysExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + GetJSONWebKeysRequest request = + GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build(); + client.getJSONWebKeys(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodePoolTest() throws Exception { + NodePool expectedResponse = + NodePool.newBuilder() + .setName("name3373707") + .setConfig(NodeConfig.newBuilder().build()) + .setInitialNodeCount(1682564205) + .addAllLocations(new ArrayList()) + .setSelfLink("selfLink1191800166") + .setVersion("version351608024") + .addAllInstanceGroupUrls(new ArrayList()) + .setStatusMessage("statusMessage-958704715") + .setAutoscaling(NodePoolAutoscaling.newBuilder().build()) + .setManagement(NodeManagement.newBuilder().build()) + .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setPodIpv4CidrSize(1098768716) + .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + + NodePool actualResponse = client.getNodePool(projectId, zone, clusterId, nodePoolId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetNodePoolRequest actualRequest = ((GetNodePoolRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(nodePoolId, actualRequest.getNodePoolId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getNodePoolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + client.getNodePool(projectId, zone, clusterId, nodePoolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNodePoolTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + NodePool nodePool = NodePool.newBuilder().build(); + + Operation actualResponse = client.createNodePool(projectId, zone, clusterId, nodePool); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateNodePoolRequest actualRequest = ((CreateNodePoolRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(nodePool, actualRequest.getNodePool()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createNodePoolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + NodePool nodePool = NodePool.newBuilder().build(); + client.createNodePool(projectId, zone, clusterId, nodePool); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteNodePoolTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + + Operation actualResponse = client.deleteNodePool(projectId, zone, clusterId, nodePoolId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteNodePoolRequest actualRequest = ((DeleteNodePoolRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(nodePoolId, actualRequest.getNodePoolId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteNodePoolExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + client.deleteNodePool(projectId, zone, clusterId, nodePoolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackNodePoolUpgradeTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + + Operation actualResponse = + client.rollbackNodePoolUpgrade(projectId, zone, clusterId, nodePoolId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RollbackNodePoolUpgradeRequest actualRequest = + ((RollbackNodePoolUpgradeRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(nodePoolId, actualRequest.getNodePoolId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rollbackNodePoolUpgradeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + client.rollbackNodePoolUpgrade(projectId, zone, clusterId, nodePoolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setNodePoolManagementTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + NodeManagement management = NodeManagement.newBuilder().build(); + + Operation actualResponse = + client.setNodePoolManagement(projectId, zone, clusterId, nodePoolId, management); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetNodePoolManagementRequest actualRequest = + ((SetNodePoolManagementRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(nodePoolId, actualRequest.getNodePoolId()); + Assert.assertEquals(management, actualRequest.getManagement()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setNodePoolManagementExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + NodeManagement management = NodeManagement.newBuilder().build(); + client.setNodePoolManagement(projectId, zone, clusterId, nodePoolId, management); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setLabelsTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + Map resourceLabels = new HashMap<>(); + String labelFingerprint = "labelFingerprint379449680"; + + Operation actualResponse = + client.setLabels(projectId, zone, clusterId, resourceLabels, labelFingerprint); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetLabelsRequest actualRequest = ((SetLabelsRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(resourceLabels, actualRequest.getResourceLabelsMap()); + Assert.assertEquals(labelFingerprint, actualRequest.getLabelFingerprint()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setLabelsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + Map resourceLabels = new HashMap<>(); + String labelFingerprint = "labelFingerprint379449680"; + client.setLabels(projectId, zone, clusterId, resourceLabels, labelFingerprint); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setLegacyAbacTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + boolean enabled = true; + + Operation actualResponse = client.setLegacyAbac(projectId, zone, clusterId, enabled); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetLegacyAbacRequest actualRequest = ((SetLegacyAbacRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(enabled, actualRequest.getEnabled()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setLegacyAbacExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + boolean enabled = true; + client.setLegacyAbac(projectId, zone, clusterId, enabled); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void startIPRotationTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + + Operation actualResponse = client.startIPRotation(projectId, zone, clusterId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StartIPRotationRequest actualRequest = ((StartIPRotationRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void startIPRotationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + client.startIPRotation(projectId, zone, clusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void completeIPRotationTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + + Operation actualResponse = client.completeIPRotation(projectId, zone, clusterId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CompleteIPRotationRequest actualRequest = ((CompleteIPRotationRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void completeIPRotationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + client.completeIPRotation(projectId, zone, clusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setNodePoolSizeTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + SetNodePoolSizeRequest request = + SetNodePoolSizeRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setNodeCount(1539922066) + .setName("name3373707") + .build(); + + Operation actualResponse = client.setNodePoolSize(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetNodePoolSizeRequest actualRequest = ((SetNodePoolSizeRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); + Assert.assertEquals(request.getZone(), actualRequest.getZone()); + Assert.assertEquals(request.getClusterId(), actualRequest.getClusterId()); + Assert.assertEquals(request.getNodePoolId(), actualRequest.getNodePoolId()); + Assert.assertEquals(request.getNodeCount(), actualRequest.getNodeCount()); + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setNodePoolSizeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + SetNodePoolSizeRequest request = + SetNodePoolSizeRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setNodeCount(1539922066) + .setName("name3373707") + .build(); + client.setNodePoolSize(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setNetworkPolicyTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + + Operation actualResponse = client.setNetworkPolicy(projectId, zone, clusterId, networkPolicy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetNetworkPolicyRequest actualRequest = ((SetNetworkPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setNetworkPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + client.setNetworkPolicy(projectId, zone, clusterId, networkPolicy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setMaintenancePolicyTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); + + Operation actualResponse = + client.setMaintenancePolicy(projectId, zone, clusterId, maintenancePolicy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetMaintenancePolicyRequest actualRequest = + ((SetMaintenancePolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertEquals(maintenancePolicy, actualRequest.getMaintenancePolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setMaintenancePolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); + client.setMaintenancePolicy(projectId, zone, clusterId, maintenancePolicy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUsableSubnetworksTest() throws Exception { + UsableSubnetwork responsesElement = UsableSubnetwork.newBuilder().build(); + ListUsableSubnetworksResponse expectedResponse = + ListUsableSubnetworksResponse.newBuilder() + .setNextPageToken("") + .addAllSubnetworks(Arrays.asList(responsesElement)) + .build(); + mockClusterManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListUsableSubnetworksPagedResponse pagedListResponse = client.listUsableSubnetworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubnetworksList().get(0), resources.get(0)); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUsableSubnetworksRequest actualRequest = + ((ListUsableSubnetworksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUsableSubnetworksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listUsableSubnetworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .addAllLocations(new ArrayList()) + .setNextPageToken("nextPageToken-1386094857") + .build(); + mockClusterManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListLocationsResponse actualResponse = client.listLocations(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listLocations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManager.java b/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManager.java new file mode 100644 index 00000000..fc04eeda --- /dev/null +++ b/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManager.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockClusterManager implements MockGrpcService { + private final MockClusterManagerImpl serviceImpl; + + public MockClusterManager() { + serviceImpl = new MockClusterManagerImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManagerImpl.java b/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManagerImpl.java new file mode 100644 index 00000000..b66f69ac --- /dev/null +++ b/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManagerImpl.java @@ -0,0 +1,795 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.ClusterManagerGrpc.ClusterManagerImplBase; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CreateClusterRequest; +import com.google.container.v1beta1.CreateNodePoolRequest; +import com.google.container.v1beta1.DeleteClusterRequest; +import com.google.container.v1beta1.DeleteNodePoolRequest; +import com.google.container.v1beta1.GetClusterRequest; +import com.google.container.v1beta1.GetJSONWebKeysRequest; +import com.google.container.v1beta1.GetJSONWebKeysResponse; +import com.google.container.v1beta1.GetNodePoolRequest; +import com.google.container.v1beta1.GetOperationRequest; +import com.google.container.v1beta1.GetServerConfigRequest; +import com.google.container.v1beta1.ListClustersRequest; +import com.google.container.v1beta1.ListClustersResponse; +import com.google.container.v1beta1.ListLocationsRequest; +import com.google.container.v1beta1.ListLocationsResponse; +import com.google.container.v1beta1.ListNodePoolsRequest; +import com.google.container.v1beta1.ListNodePoolsResponse; +import com.google.container.v1beta1.ListOperationsRequest; +import com.google.container.v1beta1.ListOperationsResponse; +import com.google.container.v1beta1.ListUsableSubnetworksRequest; +import com.google.container.v1beta1.ListUsableSubnetworksResponse; +import com.google.container.v1beta1.NodePool; +import com.google.container.v1beta1.Operation; +import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.ServerConfig; +import com.google.container.v1beta1.SetAddonsConfigRequest; +import com.google.container.v1beta1.SetLabelsRequest; +import com.google.container.v1beta1.SetLegacyAbacRequest; +import com.google.container.v1beta1.SetLocationsRequest; +import com.google.container.v1beta1.SetLoggingServiceRequest; +import com.google.container.v1beta1.SetMaintenancePolicyRequest; +import com.google.container.v1beta1.SetMasterAuthRequest; +import com.google.container.v1beta1.SetMonitoringServiceRequest; +import com.google.container.v1beta1.SetNetworkPolicyRequest; +import com.google.container.v1beta1.SetNodePoolAutoscalingRequest; +import com.google.container.v1beta1.SetNodePoolManagementRequest; +import com.google.container.v1beta1.SetNodePoolSizeRequest; +import com.google.container.v1beta1.StartIPRotationRequest; +import com.google.container.v1beta1.UpdateClusterRequest; +import com.google.container.v1beta1.UpdateMasterRequest; +import com.google.container.v1beta1.UpdateNodePoolRequest; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockClusterManagerImpl extends ClusterManagerImplBase { + private List requests; + private Queue responses; + + public MockClusterManagerImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listClusters( + ListClustersRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListClustersResponse) { + requests.add(request); + responseObserver.onNext(((ListClustersResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListClusters, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListClustersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCluster(GetClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Cluster) { + requests.add(request); + responseObserver.onNext(((Cluster) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Cluster.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCluster( + CreateClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCluster( + UpdateClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateNodePool( + UpdateNodePoolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateNodePool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setNodePoolAutoscaling( + SetNodePoolAutoscalingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetNodePoolAutoscaling, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setLoggingService( + SetLoggingServiceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetLoggingService, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setMonitoringService( + SetMonitoringServiceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetMonitoringService, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setAddonsConfig( + SetAddonsConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetAddonsConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setLocations( + SetLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMaster( + UpdateMasterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateMaster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setMasterAuth( + SetMasterAuthRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetMasterAuth, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCluster( + DeleteClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listOperations( + ListOperationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListOperationsResponse) { + requests.add(request); + responseObserver.onNext(((ListOperationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListOperations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListOperationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getOperation( + GetOperationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetOperation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void cancelOperation( + CancelOperationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CancelOperation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getServerConfig( + GetServerConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ServerConfig) { + requests.add(request); + responseObserver.onNext(((ServerConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetServerConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ServerConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listNodePools( + ListNodePoolsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListNodePoolsResponse) { + requests.add(request); + responseObserver.onNext(((ListNodePoolsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListNodePools, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListNodePoolsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getJSONWebKeys( + GetJSONWebKeysRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GetJSONWebKeysResponse) { + requests.add(request); + responseObserver.onNext(((GetJSONWebKeysResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetJSONWebKeys, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GetJSONWebKeysResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getNodePool(GetNodePoolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof NodePool) { + requests.add(request); + responseObserver.onNext(((NodePool) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetNodePool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + NodePool.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createNodePool( + CreateNodePoolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateNodePool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteNodePool( + DeleteNodePoolRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteNodePool, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void rollbackNodePoolUpgrade( + RollbackNodePoolUpgradeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RollbackNodePoolUpgrade, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setNodePoolManagement( + SetNodePoolManagementRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetNodePoolManagement, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setLabels(SetLabelsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetLabels, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setLegacyAbac( + SetLegacyAbacRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetLegacyAbac, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void startIPRotation( + StartIPRotationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StartIPRotation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void completeIPRotation( + CompleteIPRotationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CompleteIPRotation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setNodePoolSize( + SetNodePoolSizeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetNodePoolSize, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setNetworkPolicy( + SetNetworkPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetNetworkPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setMaintenancePolicy( + SetMaintenancePolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetMaintenancePolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listUsableSubnetworks( + ListUsableSubnetworksRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListUsableSubnetworksResponse) { + requests.add(request); + responseObserver.onNext(((ListUsableSubnetworksResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListUsableSubnetworks, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListUsableSubnetworksResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/grpc-google-cloud-container-v1beta1/pom.xml b/grpc-google-cloud-container-v1beta1/pom.xml new file mode 100644 index 00000000..20d89d77 --- /dev/null +++ b/grpc-google-cloud-container-v1beta1/pom.xml @@ -0,0 +1,65 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-container-v1beta1 + 1.4.1-SNAPSHOT + grpc-google-cloud-container-v1beta1 + GRPC library for google-cloud-container + + com.google.cloud + google-cloud-container-parent + 1.4.1-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-cloud-container-v1beta1 + + + com.google.guava + guava + + + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + \ No newline at end of file diff --git a/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java b/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java new file mode 100644 index 00000000..6d42b5c5 --- /dev/null +++ b/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java @@ -0,0 +1,4216 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.container.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Google Kubernetes Engine Cluster Manager v1beta1
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/container/v1beta1/cluster_service.proto") +public final class ClusterManagerGrpc { + + private ClusterManagerGrpc() {} + + public static final String SERVICE_NAME = "google.container.v1beta1.ClusterManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListClustersRequest, + com.google.container.v1beta1.ListClustersResponse> + getListClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListClusters", + requestType = com.google.container.v1beta1.ListClustersRequest.class, + responseType = com.google.container.v1beta1.ListClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListClustersRequest, + com.google.container.v1beta1.ListClustersResponse> + getListClustersMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListClustersRequest, + com.google.container.v1beta1.ListClustersResponse> + getListClustersMethod; + if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { + ClusterManagerGrpc.getListClustersMethod = + getListClustersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListClustersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListClustersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("ListClusters")) + .build(); + } + } + } + return getListClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetClusterRequest, com.google.container.v1beta1.Cluster> + getGetClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCluster", + requestType = com.google.container.v1beta1.GetClusterRequest.class, + responseType = com.google.container.v1beta1.Cluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetClusterRequest, com.google.container.v1beta1.Cluster> + getGetClusterMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetClusterRequest, com.google.container.v1beta1.Cluster> + getGetClusterMethod; + if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { + ClusterManagerGrpc.getGetClusterMethod = + getGetClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetClusterRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Cluster.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetCluster")) + .build(); + } + } + } + return getGetClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.CreateClusterRequest, com.google.container.v1beta1.Operation> + getCreateClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCluster", + requestType = com.google.container.v1beta1.CreateClusterRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.CreateClusterRequest, com.google.container.v1beta1.Operation> + getCreateClusterMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.CreateClusterRequest, + com.google.container.v1beta1.Operation> + getCreateClusterMethod; + if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { + ClusterManagerGrpc.getCreateClusterMethod = + getCreateClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CreateClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("CreateCluster")) + .build(); + } + } + } + return getCreateClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateClusterRequest, com.google.container.v1beta1.Operation> + getUpdateClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCluster", + requestType = com.google.container.v1beta1.UpdateClusterRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateClusterRequest, com.google.container.v1beta1.Operation> + getUpdateClusterMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateClusterRequest, + com.google.container.v1beta1.Operation> + getUpdateClusterMethod; + if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { + ClusterManagerGrpc.getUpdateClusterMethod = + getUpdateClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.UpdateClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("UpdateCluster")) + .build(); + } + } + } + return getUpdateClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateNodePoolRequest, + com.google.container.v1beta1.Operation> + getUpdateNodePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNodePool", + requestType = com.google.container.v1beta1.UpdateNodePoolRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateNodePoolRequest, + com.google.container.v1beta1.Operation> + getUpdateNodePoolMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateNodePoolRequest, + com.google.container.v1beta1.Operation> + getUpdateNodePoolMethod; + if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { + ClusterManagerGrpc.getUpdateNodePoolMethod = + getUpdateNodePoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.UpdateNodePoolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("UpdateNodePool")) + .build(); + } + } + } + return getUpdateNodePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNodePoolAutoscalingRequest, + com.google.container.v1beta1.Operation> + getSetNodePoolAutoscalingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetNodePoolAutoscaling", + requestType = com.google.container.v1beta1.SetNodePoolAutoscalingRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNodePoolAutoscalingRequest, + com.google.container.v1beta1.Operation> + getSetNodePoolAutoscalingMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNodePoolAutoscalingRequest, + com.google.container.v1beta1.Operation> + getSetNodePoolAutoscalingMethod; + if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) + == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) + == null) { + ClusterManagerGrpc.getSetNodePoolAutoscalingMethod = + getSetNodePoolAutoscalingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SetNodePoolAutoscaling")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetNodePoolAutoscaling")) + .build(); + } + } + } + return getSetNodePoolAutoscalingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLoggingServiceRequest, + com.google.container.v1beta1.Operation> + getSetLoggingServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetLoggingService", + requestType = com.google.container.v1beta1.SetLoggingServiceRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLoggingServiceRequest, + com.google.container.v1beta1.Operation> + getSetLoggingServiceMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLoggingServiceRequest, + com.google.container.v1beta1.Operation> + getSetLoggingServiceMethod; + if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { + ClusterManagerGrpc.getSetLoggingServiceMethod = + getSetLoggingServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLoggingService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetLoggingServiceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetLoggingService")) + .build(); + } + } + } + return getSetLoggingServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMonitoringServiceRequest, + com.google.container.v1beta1.Operation> + getSetMonitoringServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetMonitoringService", + requestType = com.google.container.v1beta1.SetMonitoringServiceRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMonitoringServiceRequest, + com.google.container.v1beta1.Operation> + getSetMonitoringServiceMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMonitoringServiceRequest, + com.google.container.v1beta1.Operation> + getSetMonitoringServiceMethod; + if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) + == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) + == null) { + ClusterManagerGrpc.getSetMonitoringServiceMethod = + getSetMonitoringServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SetMonitoringService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetMonitoringServiceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetMonitoringService")) + .build(); + } + } + } + return getSetMonitoringServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetAddonsConfigRequest, + com.google.container.v1beta1.Operation> + getSetAddonsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetAddonsConfig", + requestType = com.google.container.v1beta1.SetAddonsConfigRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetAddonsConfigRequest, + com.google.container.v1beta1.Operation> + getSetAddonsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetAddonsConfigRequest, + com.google.container.v1beta1.Operation> + getSetAddonsConfigMethod; + if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { + ClusterManagerGrpc.getSetAddonsConfigMethod = + getSetAddonsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAddonsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetAddonsConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetAddonsConfig")) + .build(); + } + } + } + return getSetAddonsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLocationsRequest, com.google.container.v1beta1.Operation> + getSetLocationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetLocations", + requestType = com.google.container.v1beta1.SetLocationsRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLocationsRequest, com.google.container.v1beta1.Operation> + getSetLocationsMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLocationsRequest, + com.google.container.v1beta1.Operation> + getSetLocationsMethod; + if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { + ClusterManagerGrpc.getSetLocationsMethod = + getSetLocationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLocations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetLocationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetLocations")) + .build(); + } + } + } + return getSetLocationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateMasterRequest, com.google.container.v1beta1.Operation> + getUpdateMasterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMaster", + requestType = com.google.container.v1beta1.UpdateMasterRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateMasterRequest, com.google.container.v1beta1.Operation> + getUpdateMasterMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.UpdateMasterRequest, + com.google.container.v1beta1.Operation> + getUpdateMasterMethod; + if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { + ClusterManagerGrpc.getUpdateMasterMethod = + getUpdateMasterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMaster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.UpdateMasterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("UpdateMaster")) + .build(); + } + } + } + return getUpdateMasterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMasterAuthRequest, com.google.container.v1beta1.Operation> + getSetMasterAuthMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetMasterAuth", + requestType = com.google.container.v1beta1.SetMasterAuthRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMasterAuthRequest, com.google.container.v1beta1.Operation> + getSetMasterAuthMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMasterAuthRequest, + com.google.container.v1beta1.Operation> + getSetMasterAuthMethod; + if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { + ClusterManagerGrpc.getSetMasterAuthMethod = + getSetMasterAuthMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetMasterAuth")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetMasterAuthRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetMasterAuth")) + .build(); + } + } + } + return getSetMasterAuthMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.DeleteClusterRequest, com.google.container.v1beta1.Operation> + getDeleteClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCluster", + requestType = com.google.container.v1beta1.DeleteClusterRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.DeleteClusterRequest, com.google.container.v1beta1.Operation> + getDeleteClusterMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.DeleteClusterRequest, + com.google.container.v1beta1.Operation> + getDeleteClusterMethod; + if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { + ClusterManagerGrpc.getDeleteClusterMethod = + getDeleteClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.DeleteClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("DeleteCluster")) + .build(); + } + } + } + return getDeleteClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListOperationsRequest, + com.google.container.v1beta1.ListOperationsResponse> + getListOperationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOperations", + requestType = com.google.container.v1beta1.ListOperationsRequest.class, + responseType = com.google.container.v1beta1.ListOperationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListOperationsRequest, + com.google.container.v1beta1.ListOperationsResponse> + getListOperationsMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListOperationsRequest, + com.google.container.v1beta1.ListOperationsResponse> + getListOperationsMethod; + if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { + ClusterManagerGrpc.getListOperationsMethod = + getListOperationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOperations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListOperationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListOperationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("ListOperations")) + .build(); + } + } + } + return getListOperationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetOperationRequest, com.google.container.v1beta1.Operation> + getGetOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOperation", + requestType = com.google.container.v1beta1.GetOperationRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetOperationRequest, com.google.container.v1beta1.Operation> + getGetOperationMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetOperationRequest, + com.google.container.v1beta1.Operation> + getGetOperationMethod; + if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { + ClusterManagerGrpc.getGetOperationMethod = + getGetOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetOperationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("GetOperation")) + .build(); + } + } + } + return getGetOperationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.CancelOperationRequest, com.google.protobuf.Empty> + getCancelOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelOperation", + requestType = com.google.container.v1beta1.CancelOperationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.CancelOperationRequest, com.google.protobuf.Empty> + getCancelOperationMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.CancelOperationRequest, com.google.protobuf.Empty> + getCancelOperationMethod; + if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { + ClusterManagerGrpc.getCancelOperationMethod = + getCancelOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CancelOperationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("CancelOperation")) + .build(); + } + } + } + return getCancelOperationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetServerConfigRequest, + com.google.container.v1beta1.ServerConfig> + getGetServerConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetServerConfig", + requestType = com.google.container.v1beta1.GetServerConfigRequest.class, + responseType = com.google.container.v1beta1.ServerConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetServerConfigRequest, + com.google.container.v1beta1.ServerConfig> + getGetServerConfigMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetServerConfigRequest, + com.google.container.v1beta1.ServerConfig> + getGetServerConfigMethod; + if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { + ClusterManagerGrpc.getGetServerConfigMethod = + getGetServerConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServerConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetServerConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ServerConfig.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("GetServerConfig")) + .build(); + } + } + } + return getGetServerConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListNodePoolsRequest, + com.google.container.v1beta1.ListNodePoolsResponse> + getListNodePoolsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNodePools", + requestType = com.google.container.v1beta1.ListNodePoolsRequest.class, + responseType = com.google.container.v1beta1.ListNodePoolsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListNodePoolsRequest, + com.google.container.v1beta1.ListNodePoolsResponse> + getListNodePoolsMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListNodePoolsRequest, + com.google.container.v1beta1.ListNodePoolsResponse> + getListNodePoolsMethod; + if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { + ClusterManagerGrpc.getListNodePoolsMethod = + getListNodePoolsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodePools")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListNodePoolsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListNodePoolsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("ListNodePools")) + .build(); + } + } + } + return getListNodePoolsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetJSONWebKeysRequest, + com.google.container.v1beta1.GetJSONWebKeysResponse> + getGetJSONWebKeysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetJSONWebKeys", + requestType = com.google.container.v1beta1.GetJSONWebKeysRequest.class, + responseType = com.google.container.v1beta1.GetJSONWebKeysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetJSONWebKeysRequest, + com.google.container.v1beta1.GetJSONWebKeysResponse> + getGetJSONWebKeysMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetJSONWebKeysRequest, + com.google.container.v1beta1.GetJSONWebKeysResponse> + getGetJSONWebKeysMethod; + if ((getGetJSONWebKeysMethod = ClusterManagerGrpc.getGetJSONWebKeysMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetJSONWebKeysMethod = ClusterManagerGrpc.getGetJSONWebKeysMethod) == null) { + ClusterManagerGrpc.getGetJSONWebKeysMethod = + getGetJSONWebKeysMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJSONWebKeys")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetJSONWebKeysRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetJSONWebKeysResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("GetJSONWebKeys")) + .build(); + } + } + } + return getGetJSONWebKeysMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetNodePoolRequest, com.google.container.v1beta1.NodePool> + getGetNodePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNodePool", + requestType = com.google.container.v1beta1.GetNodePoolRequest.class, + responseType = com.google.container.v1beta1.NodePool.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetNodePoolRequest, com.google.container.v1beta1.NodePool> + getGetNodePoolMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.GetNodePoolRequest, com.google.container.v1beta1.NodePool> + getGetNodePoolMethod; + if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { + ClusterManagerGrpc.getGetNodePoolMethod = + getGetNodePoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.GetNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.NodePool.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("GetNodePool")) + .build(); + } + } + } + return getGetNodePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.CreateNodePoolRequest, + com.google.container.v1beta1.Operation> + getCreateNodePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNodePool", + requestType = com.google.container.v1beta1.CreateNodePoolRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.CreateNodePoolRequest, + com.google.container.v1beta1.Operation> + getCreateNodePoolMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.CreateNodePoolRequest, + com.google.container.v1beta1.Operation> + getCreateNodePoolMethod; + if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { + ClusterManagerGrpc.getCreateNodePoolMethod = + getCreateNodePoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CreateNodePoolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("CreateNodePool")) + .build(); + } + } + } + return getCreateNodePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.DeleteNodePoolRequest, + com.google.container.v1beta1.Operation> + getDeleteNodePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNodePool", + requestType = com.google.container.v1beta1.DeleteNodePoolRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.DeleteNodePoolRequest, + com.google.container.v1beta1.Operation> + getDeleteNodePoolMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.DeleteNodePoolRequest, + com.google.container.v1beta1.Operation> + getDeleteNodePoolMethod; + if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { + ClusterManagerGrpc.getDeleteNodePoolMethod = + getDeleteNodePoolMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.DeleteNodePoolRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("DeleteNodePool")) + .build(); + } + } + } + return getDeleteNodePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest, + com.google.container.v1beta1.Operation> + getRollbackNodePoolUpgradeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RollbackNodePoolUpgrade", + requestType = com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest, + com.google.container.v1beta1.Operation> + getRollbackNodePoolUpgradeMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest, + com.google.container.v1beta1.Operation> + getRollbackNodePoolUpgradeMethod; + if ((getRollbackNodePoolUpgradeMethod = ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod) + == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getRollbackNodePoolUpgradeMethod = ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod) + == null) { + ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod = + getRollbackNodePoolUpgradeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RollbackNodePoolUpgrade")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("RollbackNodePoolUpgrade")) + .build(); + } + } + } + return getRollbackNodePoolUpgradeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNodePoolManagementRequest, + com.google.container.v1beta1.Operation> + getSetNodePoolManagementMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetNodePoolManagement", + requestType = com.google.container.v1beta1.SetNodePoolManagementRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNodePoolManagementRequest, + com.google.container.v1beta1.Operation> + getSetNodePoolManagementMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNodePoolManagementRequest, + com.google.container.v1beta1.Operation> + getSetNodePoolManagementMethod; + if ((getSetNodePoolManagementMethod = ClusterManagerGrpc.getSetNodePoolManagementMethod) + == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolManagementMethod = ClusterManagerGrpc.getSetNodePoolManagementMethod) + == null) { + ClusterManagerGrpc.getSetNodePoolManagementMethod = + getSetNodePoolManagementMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SetNodePoolManagement")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetNodePoolManagementRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetNodePoolManagement")) + .build(); + } + } + } + return getSetNodePoolManagementMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLabelsRequest, com.google.container.v1beta1.Operation> + getSetLabelsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetLabels", + requestType = com.google.container.v1beta1.SetLabelsRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLabelsRequest, com.google.container.v1beta1.Operation> + getSetLabelsMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLabelsRequest, com.google.container.v1beta1.Operation> + getSetLabelsMethod; + if ((getSetLabelsMethod = ClusterManagerGrpc.getSetLabelsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLabelsMethod = ClusterManagerGrpc.getSetLabelsMethod) == null) { + ClusterManagerGrpc.getSetLabelsMethod = + getSetLabelsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLabels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetLabelsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLabels")) + .build(); + } + } + } + return getSetLabelsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLegacyAbacRequest, com.google.container.v1beta1.Operation> + getSetLegacyAbacMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetLegacyAbac", + requestType = com.google.container.v1beta1.SetLegacyAbacRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLegacyAbacRequest, com.google.container.v1beta1.Operation> + getSetLegacyAbacMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetLegacyAbacRequest, + com.google.container.v1beta1.Operation> + getSetLegacyAbacMethod; + if ((getSetLegacyAbacMethod = ClusterManagerGrpc.getSetLegacyAbacMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLegacyAbacMethod = ClusterManagerGrpc.getSetLegacyAbacMethod) == null) { + ClusterManagerGrpc.getSetLegacyAbacMethod = + getSetLegacyAbacMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLegacyAbac")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetLegacyAbacRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetLegacyAbac")) + .build(); + } + } + } + return getSetLegacyAbacMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.StartIPRotationRequest, + com.google.container.v1beta1.Operation> + getStartIPRotationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartIPRotation", + requestType = com.google.container.v1beta1.StartIPRotationRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.StartIPRotationRequest, + com.google.container.v1beta1.Operation> + getStartIPRotationMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.StartIPRotationRequest, + com.google.container.v1beta1.Operation> + getStartIPRotationMethod; + if ((getStartIPRotationMethod = ClusterManagerGrpc.getStartIPRotationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getStartIPRotationMethod = ClusterManagerGrpc.getStartIPRotationMethod) == null) { + ClusterManagerGrpc.getStartIPRotationMethod = + getStartIPRotationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartIPRotation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.StartIPRotationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("StartIPRotation")) + .build(); + } + } + } + return getStartIPRotationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.CompleteIPRotationRequest, + com.google.container.v1beta1.Operation> + getCompleteIPRotationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CompleteIPRotation", + requestType = com.google.container.v1beta1.CompleteIPRotationRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.CompleteIPRotationRequest, + com.google.container.v1beta1.Operation> + getCompleteIPRotationMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.CompleteIPRotationRequest, + com.google.container.v1beta1.Operation> + getCompleteIPRotationMethod; + if ((getCompleteIPRotationMethod = ClusterManagerGrpc.getCompleteIPRotationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCompleteIPRotationMethod = ClusterManagerGrpc.getCompleteIPRotationMethod) + == null) { + ClusterManagerGrpc.getCompleteIPRotationMethod = + getCompleteIPRotationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteIPRotation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CompleteIPRotationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("CompleteIPRotation")) + .build(); + } + } + } + return getCompleteIPRotationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNodePoolSizeRequest, + com.google.container.v1beta1.Operation> + getSetNodePoolSizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetNodePoolSize", + requestType = com.google.container.v1beta1.SetNodePoolSizeRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNodePoolSizeRequest, + com.google.container.v1beta1.Operation> + getSetNodePoolSizeMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNodePoolSizeRequest, + com.google.container.v1beta1.Operation> + getSetNodePoolSizeMethod; + if ((getSetNodePoolSizeMethod = ClusterManagerGrpc.getSetNodePoolSizeMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolSizeMethod = ClusterManagerGrpc.getSetNodePoolSizeMethod) == null) { + ClusterManagerGrpc.getSetNodePoolSizeMethod = + getSetNodePoolSizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetNodePoolSize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetNodePoolSizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetNodePoolSize")) + .build(); + } + } + } + return getSetNodePoolSizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNetworkPolicyRequest, + com.google.container.v1beta1.Operation> + getSetNetworkPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetNetworkPolicy", + requestType = com.google.container.v1beta1.SetNetworkPolicyRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNetworkPolicyRequest, + com.google.container.v1beta1.Operation> + getSetNetworkPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetNetworkPolicyRequest, + com.google.container.v1beta1.Operation> + getSetNetworkPolicyMethod; + if ((getSetNetworkPolicyMethod = ClusterManagerGrpc.getSetNetworkPolicyMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNetworkPolicyMethod = ClusterManagerGrpc.getSetNetworkPolicyMethod) == null) { + ClusterManagerGrpc.getSetNetworkPolicyMethod = + getSetNetworkPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetNetworkPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetNetworkPolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetNetworkPolicy")) + .build(); + } + } + } + return getSetNetworkPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMaintenancePolicyRequest, + com.google.container.v1beta1.Operation> + getSetMaintenancePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetMaintenancePolicy", + requestType = com.google.container.v1beta1.SetMaintenancePolicyRequest.class, + responseType = com.google.container.v1beta1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMaintenancePolicyRequest, + com.google.container.v1beta1.Operation> + getSetMaintenancePolicyMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.SetMaintenancePolicyRequest, + com.google.container.v1beta1.Operation> + getSetMaintenancePolicyMethod; + if ((getSetMaintenancePolicyMethod = ClusterManagerGrpc.getSetMaintenancePolicyMethod) + == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMaintenancePolicyMethod = ClusterManagerGrpc.getSetMaintenancePolicyMethod) + == null) { + ClusterManagerGrpc.getSetMaintenancePolicyMethod = + getSetMaintenancePolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SetMaintenancePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.SetMaintenancePolicyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("SetMaintenancePolicy")) + .build(); + } + } + } + return getSetMaintenancePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListUsableSubnetworksRequest, + com.google.container.v1beta1.ListUsableSubnetworksResponse> + getListUsableSubnetworksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableSubnetworks", + requestType = com.google.container.v1beta1.ListUsableSubnetworksRequest.class, + responseType = com.google.container.v1beta1.ListUsableSubnetworksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListUsableSubnetworksRequest, + com.google.container.v1beta1.ListUsableSubnetworksResponse> + getListUsableSubnetworksMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListUsableSubnetworksRequest, + com.google.container.v1beta1.ListUsableSubnetworksResponse> + getListUsableSubnetworksMethod; + if ((getListUsableSubnetworksMethod = ClusterManagerGrpc.getListUsableSubnetworksMethod) + == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListUsableSubnetworksMethod = ClusterManagerGrpc.getListUsableSubnetworksMethod) + == null) { + ClusterManagerGrpc.getListUsableSubnetworksMethod = + getListUsableSubnetworksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListUsableSubnetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListUsableSubnetworksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListUsableSubnetworksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("ListUsableSubnetworks")) + .build(); + } + } + } + return getListUsableSubnetworksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListLocationsRequest, + com.google.container.v1beta1.ListLocationsResponse> + getListLocationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLocations", + requestType = com.google.container.v1beta1.ListLocationsRequest.class, + responseType = com.google.container.v1beta1.ListLocationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListLocationsRequest, + com.google.container.v1beta1.ListLocationsResponse> + getListLocationsMethod() { + io.grpc.MethodDescriptor< + com.google.container.v1beta1.ListLocationsRequest, + com.google.container.v1beta1.ListLocationsResponse> + getListLocationsMethod; + if ((getListLocationsMethod = ClusterManagerGrpc.getListLocationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListLocationsMethod = ClusterManagerGrpc.getListLocationsMethod) == null) { + ClusterManagerGrpc.getListLocationsMethod = + getListLocationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListLocationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.ListLocationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ClusterManagerMethodDescriptorSupplier("ListLocations")) + .build(); + } + } + } + return getListLocationsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ClusterManagerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ClusterManagerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterManagerStub(channel, callOptions); + } + }; + return ClusterManagerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ClusterManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ClusterManagerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterManagerBlockingStub(channel, callOptions); + } + }; + return ClusterManagerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ClusterManagerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ClusterManagerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterManagerFutureStub(channel, callOptions); + } + }; + return ClusterManagerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public abstract static class ClusterManagerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public void listClusters( + com.google.container.v1beta1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListClustersMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public void getCluster( + com.google.container.v1beta1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default
+     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the Kubelet creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range the cluster is using.
+     * 
+ */ + public void createCluster( + com.google.container.v1beta1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public void updateCluster( + com.google.container.v1beta1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the version and/or image type of a specific node pool.
+     * 
+ */ + public void updateNodePool( + com.google.container.v1beta1.UpdateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNodePoolMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public void setNodePoolAutoscaling( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetNodePoolAutoscalingMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public void setLoggingService( + com.google.container.v1beta1.SetLoggingServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetLoggingServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public void setMonitoringService( + com.google.container.v1beta1.SetMonitoringServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetMonitoringServiceMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public void setAddonsConfig( + com.google.container.v1beta1.SetAddonsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetAddonsConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the locations for a specific cluster.
+     * Deprecated. Use
+     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
+     * instead.
+     * 
+ */ + @java.lang.Deprecated + public void setLocations( + com.google.container.v1beta1.SetLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetLocationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public void updateMaster( + com.google.container.v1beta1.UpdateMasterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMasterMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets master auth materials. Currently supports changing the admin password
+     * or a specific cluster, either via password generation or explicitly setting
+     * the password.
+     * 
+ */ + public void setMasterAuth( + com.google.container.v1beta1.SetMasterAuthRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetMasterAuthMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster,
+     * such as load balancer resources, are not deleted if they weren't present
+     * when the cluster was initially created.
+     * 
+ */ + public void deleteCluster( + com.google.container.v1beta1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all operations in a project in the specified zone or all zones.
+     * 
+ */ + public void listOperations( + com.google.container.v1beta1.ListOperationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOperationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the specified operation.
+     * 
+ */ + public void getOperation( + com.google.container.v1beta1.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOperationMethod(), responseObserver); + } + + /** + * + * + *
+     * Cancels the specified operation.
+     * 
+ */ + public void cancelOperation( + com.google.container.v1beta1.CancelOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelOperationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns configuration info about the Google Kubernetes Engine service.
+     * 
+ */ + public void getServerConfig( + com.google.container.v1beta1.GetServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetServerConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public void listNodePools( + com.google.container.v1beta1.ListNodePoolsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNodePoolsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public void getJSONWebKeys( + com.google.container.v1beta1.GetJSONWebKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetJSONWebKeysMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves the requested node pool.
+     * 
+ */ + public void getNodePool( + com.google.container.v1beta1.GetNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNodePoolMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public void createNodePool( + com.google.container.v1beta1.CreateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateNodePoolMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public void deleteNodePool( + com.google.container.v1beta1.DeleteNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteNodePoolMethod(), responseObserver); + } + + /** + * + * + *
+     * Rolls back a previously Aborted or Failed NodePool upgrade.
+     * This makes no changes if the last upgrade successfully completed.
+     * 
+ */ + public void rollbackNodePoolUpgrade( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRollbackNodePoolUpgradeMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public void setNodePoolManagement( + com.google.container.v1beta1.SetNodePoolManagementRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetNodePoolManagementMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets labels on a cluster.
+     * 
+ */ + public void setLabels( + com.google.container.v1beta1.SetLabelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLabelsMethod(), responseObserver); + } + + /** + * + * + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public void setLegacyAbac( + com.google.container.v1beta1.SetLegacyAbacRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetLegacyAbacMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts master IP rotation.
+     * 
+ */ + public void startIPRotation( + com.google.container.v1beta1.StartIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartIPRotationMethod(), responseObserver); + } + + /** + * + * + *
+     * Completes master IP rotation.
+     * 
+ */ + public void completeIPRotation( + com.google.container.v1beta1.CompleteIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCompleteIPRotationMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the size for a specific node pool.
+     * 
+ */ + public void setNodePoolSize( + com.google.container.v1beta1.SetNodePoolSizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetNodePoolSizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Enables or disables Network Policy for a cluster.
+     * 
+ */ + public void setNetworkPolicy( + com.google.container.v1beta1.SetNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetNetworkPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public void setMaintenancePolicy( + com.google.container.v1beta1.SetMaintenancePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetMaintenancePolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists subnetworks that can be used for creating clusters in a project.
+     * 
+ */ + public void listUsableSubnetworks( + com.google.container.v1beta1.ListUsableSubnetworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUsableSubnetworksMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches locations that offer Google Kubernetes Engine.
+     * 
+ */ + public void listLocations( + com.google.container.v1beta1.ListLocationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLocationsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListClustersRequest, + com.google.container.v1beta1.ListClustersResponse>( + this, METHODID_LIST_CLUSTERS))) + .addMethod( + getGetClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetClusterRequest, + com.google.container.v1beta1.Cluster>(this, METHODID_GET_CLUSTER))) + .addMethod( + getCreateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CreateClusterRequest, + com.google.container.v1beta1.Operation>(this, METHODID_CREATE_CLUSTER))) + .addMethod( + getUpdateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.UpdateClusterRequest, + com.google.container.v1beta1.Operation>(this, METHODID_UPDATE_CLUSTER))) + .addMethod( + getUpdateNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.UpdateNodePoolRequest, + com.google.container.v1beta1.Operation>(this, METHODID_UPDATE_NODE_POOL))) + .addMethod( + getSetNodePoolAutoscalingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNodePoolAutoscalingRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_NODE_POOL_AUTOSCALING))) + .addMethod( + getSetLoggingServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLoggingServiceRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_LOGGING_SERVICE))) + .addMethod( + getSetMonitoringServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetMonitoringServiceRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_MONITORING_SERVICE))) + .addMethod( + getSetAddonsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetAddonsConfigRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_ADDONS_CONFIG))) + .addMethod( + getSetLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLocationsRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_LOCATIONS))) + .addMethod( + getUpdateMasterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.UpdateMasterRequest, + com.google.container.v1beta1.Operation>(this, METHODID_UPDATE_MASTER))) + .addMethod( + getSetMasterAuthMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetMasterAuthRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_MASTER_AUTH))) + .addMethod( + getDeleteClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.DeleteClusterRequest, + com.google.container.v1beta1.Operation>(this, METHODID_DELETE_CLUSTER))) + .addMethod( + getListOperationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListOperationsRequest, + com.google.container.v1beta1.ListOperationsResponse>( + this, METHODID_LIST_OPERATIONS))) + .addMethod( + getGetOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetOperationRequest, + com.google.container.v1beta1.Operation>(this, METHODID_GET_OPERATION))) + .addMethod( + getCancelOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CancelOperationRequest, + com.google.protobuf.Empty>(this, METHODID_CANCEL_OPERATION))) + .addMethod( + getGetServerConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetServerConfigRequest, + com.google.container.v1beta1.ServerConfig>(this, METHODID_GET_SERVER_CONFIG))) + .addMethod( + getListNodePoolsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListNodePoolsRequest, + com.google.container.v1beta1.ListNodePoolsResponse>( + this, METHODID_LIST_NODE_POOLS))) + .addMethod( + getGetJSONWebKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetJSONWebKeysRequest, + com.google.container.v1beta1.GetJSONWebKeysResponse>( + this, METHODID_GET_JSONWEB_KEYS))) + .addMethod( + getGetNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetNodePoolRequest, + com.google.container.v1beta1.NodePool>(this, METHODID_GET_NODE_POOL))) + .addMethod( + getCreateNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CreateNodePoolRequest, + com.google.container.v1beta1.Operation>(this, METHODID_CREATE_NODE_POOL))) + .addMethod( + getDeleteNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.DeleteNodePoolRequest, + com.google.container.v1beta1.Operation>(this, METHODID_DELETE_NODE_POOL))) + .addMethod( + getRollbackNodePoolUpgradeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_ROLLBACK_NODE_POOL_UPGRADE))) + .addMethod( + getSetNodePoolManagementMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNodePoolManagementRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_NODE_POOL_MANAGEMENT))) + .addMethod( + getSetLabelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLabelsRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_LABELS))) + .addMethod( + getSetLegacyAbacMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLegacyAbacRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_LEGACY_ABAC))) + .addMethod( + getStartIPRotationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.StartIPRotationRequest, + com.google.container.v1beta1.Operation>(this, METHODID_START_IPROTATION))) + .addMethod( + getCompleteIPRotationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CompleteIPRotationRequest, + com.google.container.v1beta1.Operation>(this, METHODID_COMPLETE_IPROTATION))) + .addMethod( + getSetNodePoolSizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNodePoolSizeRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_NODE_POOL_SIZE))) + .addMethod( + getSetNetworkPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNetworkPolicyRequest, + com.google.container.v1beta1.Operation>(this, METHODID_SET_NETWORK_POLICY))) + .addMethod( + getSetMaintenancePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetMaintenancePolicyRequest, + com.google.container.v1beta1.Operation>( + this, METHODID_SET_MAINTENANCE_POLICY))) + .addMethod( + getListUsableSubnetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListUsableSubnetworksRequest, + com.google.container.v1beta1.ListUsableSubnetworksResponse>( + this, METHODID_LIST_USABLE_SUBNETWORKS))) + .addMethod( + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListLocationsRequest, + com.google.container.v1beta1.ListLocationsResponse>( + this, METHODID_LIST_LOCATIONS))) + .build(); + } + } + + /** + * + * + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public static final class ClusterManagerStub + extends io.grpc.stub.AbstractAsyncStub { + private ClusterManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterManagerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterManagerStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public void listClusters( + com.google.container.v1beta1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public void getCluster( + com.google.container.v1beta1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default
+     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the Kubelet creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range the cluster is using.
+     * 
+ */ + public void createCluster( + com.google.container.v1beta1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public void updateCluster( + com.google.container.v1beta1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the version and/or image type of a specific node pool.
+     * 
+ */ + public void updateNodePool( + com.google.container.v1beta1.UpdateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNodePoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public void setNodePoolAutoscaling( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetNodePoolAutoscalingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public void setLoggingService( + com.google.container.v1beta1.SetLoggingServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetLoggingServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public void setMonitoringService( + com.google.container.v1beta1.SetMonitoringServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetMonitoringServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public void setAddonsConfig( + com.google.container.v1beta1.SetAddonsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetAddonsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the locations for a specific cluster.
+     * Deprecated. Use
+     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
+     * instead.
+     * 
+ */ + @java.lang.Deprecated + public void setLocations( + com.google.container.v1beta1.SetLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetLocationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public void updateMaster( + com.google.container.v1beta1.UpdateMasterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMasterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets master auth materials. Currently supports changing the admin password
+     * or a specific cluster, either via password generation or explicitly setting
+     * the password.
+     * 
+ */ + public void setMasterAuth( + com.google.container.v1beta1.SetMasterAuthRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetMasterAuthMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster,
+     * such as load balancer resources, are not deleted if they weren't present
+     * when the cluster was initially created.
+     * 
+ */ + public void deleteCluster( + com.google.container.v1beta1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all operations in a project in the specified zone or all zones.
+     * 
+ */ + public void listOperations( + com.google.container.v1beta1.ListOperationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOperationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the specified operation.
+     * 
+ */ + public void getOperation( + com.google.container.v1beta1.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOperationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Cancels the specified operation.
+     * 
+ */ + public void cancelOperation( + com.google.container.v1beta1.CancelOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelOperationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns configuration info about the Google Kubernetes Engine service.
+     * 
+ */ + public void getServerConfig( + com.google.container.v1beta1.GetServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public void listNodePools( + com.google.container.v1beta1.ListNodePoolsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNodePoolsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public void getJSONWebKeys( + com.google.container.v1beta1.GetJSONWebKeysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves the requested node pool.
+     * 
+ */ + public void getNodePool( + com.google.container.v1beta1.GetNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNodePoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public void createNodePool( + com.google.container.v1beta1.CreateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNodePoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public void deleteNodePool( + com.google.container.v1beta1.DeleteNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNodePoolMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Rolls back a previously Aborted or Failed NodePool upgrade.
+     * This makes no changes if the last upgrade successfully completed.
+     * 
+ */ + public void rollbackNodePoolUpgrade( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRollbackNodePoolUpgradeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public void setNodePoolManagement( + com.google.container.v1beta1.SetNodePoolManagementRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetNodePoolManagementMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets labels on a cluster.
+     * 
+ */ + public void setLabels( + com.google.container.v1beta1.SetLabelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetLabelsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public void setLegacyAbac( + com.google.container.v1beta1.SetLegacyAbacRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetLegacyAbacMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts master IP rotation.
+     * 
+ */ + public void startIPRotation( + com.google.container.v1beta1.StartIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartIPRotationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Completes master IP rotation.
+     * 
+ */ + public void completeIPRotation( + com.google.container.v1beta1.CompleteIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCompleteIPRotationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the size for a specific node pool.
+     * 
+ */ + public void setNodePoolSize( + com.google.container.v1beta1.SetNodePoolSizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetNodePoolSizeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Enables or disables Network Policy for a cluster.
+     * 
+ */ + public void setNetworkPolicy( + com.google.container.v1beta1.SetNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetNetworkPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public void setMaintenancePolicy( + com.google.container.v1beta1.SetMaintenancePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetMaintenancePolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists subnetworks that can be used for creating clusters in a project.
+     * 
+ */ + public void listUsableSubnetworks( + com.google.container.v1beta1.ListUsableSubnetworksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableSubnetworksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches locations that offer Google Kubernetes Engine.
+     * 
+ */ + public void listLocations( + com.google.container.v1beta1.ListLocationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLocationsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public static final class ClusterManagerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ClusterManagerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterManagerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterManagerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public com.google.container.v1beta1.ListClustersResponse listClusters( + com.google.container.v1beta1.ListClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListClustersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Cluster getCluster( + com.google.container.v1beta1.GetClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default
+     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the Kubelet creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range the cluster is using.
+     * 
+ */ + public com.google.container.v1beta1.Operation createCluster( + com.google.container.v1beta1.CreateClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation updateCluster( + com.google.container.v1beta1.UpdateClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the version and/or image type of a specific node pool.
+     * 
+ */ + public com.google.container.v1beta1.Operation updateNodePool( + com.google.container.v1beta1.UpdateNodePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNodePoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public com.google.container.v1beta1.Operation setNodePoolAutoscaling( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetNodePoolAutoscalingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setLoggingService( + com.google.container.v1beta1.SetLoggingServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetLoggingServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setMonitoringService( + com.google.container.v1beta1.SetMonitoringServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetMonitoringServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setAddonsConfig( + com.google.container.v1beta1.SetAddonsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetAddonsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the locations for a specific cluster.
+     * Deprecated. Use
+     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
+     * instead.
+     * 
+ */ + @java.lang.Deprecated + public com.google.container.v1beta1.Operation setLocations( + com.google.container.v1beta1.SetLocationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetLocationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation updateMaster( + com.google.container.v1beta1.UpdateMasterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMasterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets master auth materials. Currently supports changing the admin password
+     * or a specific cluster, either via password generation or explicitly setting
+     * the password.
+     * 
+ */ + public com.google.container.v1beta1.Operation setMasterAuth( + com.google.container.v1beta1.SetMasterAuthRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetMasterAuthMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster,
+     * such as load balancer resources, are not deleted if they weren't present
+     * when the cluster was initially created.
+     * 
+ */ + public com.google.container.v1beta1.Operation deleteCluster( + com.google.container.v1beta1.DeleteClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all operations in a project in the specified zone or all zones.
+     * 
+ */ + public com.google.container.v1beta1.ListOperationsResponse listOperations( + com.google.container.v1beta1.ListOperationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOperationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the specified operation.
+     * 
+ */ + public com.google.container.v1beta1.Operation getOperation( + com.google.container.v1beta1.GetOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Cancels the specified operation.
+     * 
+ */ + public com.google.protobuf.Empty cancelOperation( + com.google.container.v1beta1.CancelOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns configuration info about the Google Kubernetes Engine service.
+     * 
+ */ + public com.google.container.v1beta1.ServerConfig getServerConfig( + com.google.container.v1beta1.GetServerConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServerConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public com.google.container.v1beta1.ListNodePoolsResponse listNodePools( + com.google.container.v1beta1.ListNodePoolsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNodePoolsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public com.google.container.v1beta1.GetJSONWebKeysResponse getJSONWebKeys( + com.google.container.v1beta1.GetJSONWebKeysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetJSONWebKeysMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves the requested node pool.
+     * 
+ */ + public com.google.container.v1beta1.NodePool getNodePool( + com.google.container.v1beta1.GetNodePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNodePoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation createNodePool( + com.google.container.v1beta1.CreateNodePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNodePoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation deleteNodePool( + com.google.container.v1beta1.DeleteNodePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNodePoolMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Rolls back a previously Aborted or Failed NodePool upgrade.
+     * This makes no changes if the last upgrade successfully completed.
+     * 
+ */ + public com.google.container.v1beta1.Operation rollbackNodePoolUpgrade( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRollbackNodePoolUpgradeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public com.google.container.v1beta1.Operation setNodePoolManagement( + com.google.container.v1beta1.SetNodePoolManagementRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetNodePoolManagementMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets labels on a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setLabels( + com.google.container.v1beta1.SetLabelsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetLabelsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setLegacyAbac( + com.google.container.v1beta1.SetLegacyAbacRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetLegacyAbacMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts master IP rotation.
+     * 
+ */ + public com.google.container.v1beta1.Operation startIPRotation( + com.google.container.v1beta1.StartIPRotationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartIPRotationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Completes master IP rotation.
+     * 
+ */ + public com.google.container.v1beta1.Operation completeIPRotation( + com.google.container.v1beta1.CompleteIPRotationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCompleteIPRotationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the size for a specific node pool.
+     * 
+ */ + public com.google.container.v1beta1.Operation setNodePoolSize( + com.google.container.v1beta1.SetNodePoolSizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetNodePoolSizeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Enables or disables Network Policy for a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setNetworkPolicy( + com.google.container.v1beta1.SetNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetNetworkPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public com.google.container.v1beta1.Operation setMaintenancePolicy( + com.google.container.v1beta1.SetMaintenancePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetMaintenancePolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists subnetworks that can be used for creating clusters in a project.
+     * 
+ */ + public com.google.container.v1beta1.ListUsableSubnetworksResponse listUsableSubnetworks( + com.google.container.v1beta1.ListUsableSubnetworksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableSubnetworksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches locations that offer Google Kubernetes Engine.
+     * 
+ */ + public com.google.container.v1beta1.ListLocationsResponse listLocations( + com.google.container.v1beta1.ListLocationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLocationsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public static final class ClusterManagerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ClusterManagerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ClusterManagerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ClusterManagerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.ListClustersResponse> + listClusters(com.google.container.v1beta1.ListClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getCluster(com.google.container.v1beta1.GetClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a cluster, consisting of the specified number and type of Google
+     * Compute Engine instances.
+     * By default, the cluster is created in the project's
+     * [default
+     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
+     * One firewall is added for the cluster. After cluster creation,
+     * the Kubelet creates routes for each node to allow the containers
+     * on that node to communicate with all other instances in the
+     * cluster.
+     * Finally, an entry is added to the project's global metadata indicating
+     * which CIDR range the cluster is using.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + createCluster(com.google.container.v1beta1.CreateClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the settings for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + updateCluster(com.google.container.v1beta1.UpdateClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the version and/or image type of a specific node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + updateNodePool(com.google.container.v1beta1.UpdateNodePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNodePoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the autoscaling settings of a specific node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setNodePoolAutoscaling(com.google.container.v1beta1.SetNodePoolAutoscalingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetNodePoolAutoscalingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setLoggingService(com.google.container.v1beta1.SetLoggingServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetLoggingServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setMonitoringService(com.google.container.v1beta1.SetMonitoringServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetMonitoringServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setAddonsConfig(com.google.container.v1beta1.SetAddonsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetAddonsConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the locations for a specific cluster.
+     * Deprecated. Use
+     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
+     * instead.
+     * 
+ */ + @java.lang.Deprecated + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setLocations(com.google.container.v1beta1.SetLocationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetLocationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + updateMaster(com.google.container.v1beta1.UpdateMasterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMasterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets master auth materials. Currently supports changing the admin password
+     * or a specific cluster, either via password generation or explicitly setting
+     * the password.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setMasterAuth(com.google.container.v1beta1.SetMasterAuthRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetMasterAuthMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the cluster, including the Kubernetes endpoint and all worker
+     * nodes.
+     * Firewalls and routes that were configured during cluster creation
+     * are also deleted.
+     * Other Google Compute Engine resources that might be in use by the cluster,
+     * such as load balancer resources, are not deleted if they weren't present
+     * when the cluster was initially created.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + deleteCluster(com.google.container.v1beta1.DeleteClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all operations in a project in the specified zone or all zones.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.ListOperationsResponse> + listOperations(com.google.container.v1beta1.ListOperationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOperationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the specified operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + getOperation(com.google.container.v1beta1.GetOperationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOperationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Cancels the specified operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + cancelOperation(com.google.container.v1beta1.CancelOperationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelOperationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns configuration info about the Google Kubernetes Engine service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.ServerConfig> + getServerConfig(com.google.container.v1beta1.GetServerConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.ListNodePoolsResponse> + listNodePools(com.google.container.v1beta1.ListNodePoolsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNodePoolsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * This API is not yet intended for general use, and is not available for all
+     * clusters.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.GetJSONWebKeysResponse> + getJSONWebKeys(com.google.container.v1beta1.GetJSONWebKeysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves the requested node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getNodePool(com.google.container.v1beta1.GetNodePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNodePoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + createNodePool(com.google.container.v1beta1.CreateNodePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNodePoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + deleteNodePool(com.google.container.v1beta1.DeleteNodePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNodePoolMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Rolls back a previously Aborted or Failed NodePool upgrade.
+     * This makes no changes if the last upgrade successfully completed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + rollbackNodePoolUpgrade( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRollbackNodePoolUpgradeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setNodePoolManagement(com.google.container.v1beta1.SetNodePoolManagementRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetNodePoolManagementMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets labels on a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setLabels(com.google.container.v1beta1.SetLabelsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetLabelsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setLegacyAbac(com.google.container.v1beta1.SetLegacyAbacRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetLegacyAbacMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts master IP rotation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + startIPRotation(com.google.container.v1beta1.StartIPRotationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartIPRotationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Completes master IP rotation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + completeIPRotation(com.google.container.v1beta1.CompleteIPRotationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCompleteIPRotationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the size for a specific node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setNodePoolSize(com.google.container.v1beta1.SetNodePoolSizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetNodePoolSizeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Enables or disables Network Policy for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setNetworkPolicy(com.google.container.v1beta1.SetNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetNetworkPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.Operation> + setMaintenancePolicy(com.google.container.v1beta1.SetMaintenancePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetMaintenancePolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists subnetworks that can be used for creating clusters in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.ListUsableSubnetworksResponse> + listUsableSubnetworks(com.google.container.v1beta1.ListUsableSubnetworksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableSubnetworksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Fetches locations that offer Google Kubernetes Engine.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.container.v1beta1.ListLocationsResponse> + listLocations(com.google.container.v1beta1.ListLocationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CLUSTERS = 0; + private static final int METHODID_GET_CLUSTER = 1; + private static final int METHODID_CREATE_CLUSTER = 2; + private static final int METHODID_UPDATE_CLUSTER = 3; + private static final int METHODID_UPDATE_NODE_POOL = 4; + private static final int METHODID_SET_NODE_POOL_AUTOSCALING = 5; + private static final int METHODID_SET_LOGGING_SERVICE = 6; + private static final int METHODID_SET_MONITORING_SERVICE = 7; + private static final int METHODID_SET_ADDONS_CONFIG = 8; + private static final int METHODID_SET_LOCATIONS = 9; + private static final int METHODID_UPDATE_MASTER = 10; + private static final int METHODID_SET_MASTER_AUTH = 11; + private static final int METHODID_DELETE_CLUSTER = 12; + private static final int METHODID_LIST_OPERATIONS = 13; + private static final int METHODID_GET_OPERATION = 14; + private static final int METHODID_CANCEL_OPERATION = 15; + private static final int METHODID_GET_SERVER_CONFIG = 16; + private static final int METHODID_LIST_NODE_POOLS = 17; + private static final int METHODID_GET_JSONWEB_KEYS = 18; + private static final int METHODID_GET_NODE_POOL = 19; + private static final int METHODID_CREATE_NODE_POOL = 20; + private static final int METHODID_DELETE_NODE_POOL = 21; + private static final int METHODID_ROLLBACK_NODE_POOL_UPGRADE = 22; + private static final int METHODID_SET_NODE_POOL_MANAGEMENT = 23; + private static final int METHODID_SET_LABELS = 24; + private static final int METHODID_SET_LEGACY_ABAC = 25; + private static final int METHODID_START_IPROTATION = 26; + private static final int METHODID_COMPLETE_IPROTATION = 27; + private static final int METHODID_SET_NODE_POOL_SIZE = 28; + private static final int METHODID_SET_NETWORK_POLICY = 29; + private static final int METHODID_SET_MAINTENANCE_POLICY = 30; + private static final int METHODID_LIST_USABLE_SUBNETWORKS = 31; + private static final int METHODID_LIST_LOCATIONS = 32; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ClusterManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ClusterManagerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_CLUSTERS: + serviceImpl.listClusters( + (com.google.container.v1beta1.ListClustersRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CLUSTER: + serviceImpl.getCluster( + (com.google.container.v1beta1.GetClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CLUSTER: + serviceImpl.createCluster( + (com.google.container.v1beta1.CreateClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CLUSTER: + serviceImpl.updateCluster( + (com.google.container.v1beta1.UpdateClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_NODE_POOL: + serviceImpl.updateNodePool( + (com.google.container.v1beta1.UpdateNodePoolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_NODE_POOL_AUTOSCALING: + serviceImpl.setNodePoolAutoscaling( + (com.google.container.v1beta1.SetNodePoolAutoscalingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_LOGGING_SERVICE: + serviceImpl.setLoggingService( + (com.google.container.v1beta1.SetLoggingServiceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_MONITORING_SERVICE: + serviceImpl.setMonitoringService( + (com.google.container.v1beta1.SetMonitoringServiceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_ADDONS_CONFIG: + serviceImpl.setAddonsConfig( + (com.google.container.v1beta1.SetAddonsConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_LOCATIONS: + serviceImpl.setLocations( + (com.google.container.v1beta1.SetLocationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_MASTER: + serviceImpl.updateMaster( + (com.google.container.v1beta1.UpdateMasterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_MASTER_AUTH: + serviceImpl.setMasterAuth( + (com.google.container.v1beta1.SetMasterAuthRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CLUSTER: + serviceImpl.deleteCluster( + (com.google.container.v1beta1.DeleteClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_OPERATIONS: + serviceImpl.listOperations( + (com.google.container.v1beta1.ListOperationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_OPERATION: + serviceImpl.getOperation( + (com.google.container.v1beta1.GetOperationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CANCEL_OPERATION: + serviceImpl.cancelOperation( + (com.google.container.v1beta1.CancelOperationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SERVER_CONFIG: + serviceImpl.getServerConfig( + (com.google.container.v1beta1.GetServerConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_NODE_POOLS: + serviceImpl.listNodePools( + (com.google.container.v1beta1.ListNodePoolsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_JSONWEB_KEYS: + serviceImpl.getJSONWebKeys( + (com.google.container.v1beta1.GetJSONWebKeysRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_NODE_POOL: + serviceImpl.getNodePool( + (com.google.container.v1beta1.GetNodePoolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_NODE_POOL: + serviceImpl.createNodePool( + (com.google.container.v1beta1.CreateNodePoolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_NODE_POOL: + serviceImpl.deleteNodePool( + (com.google.container.v1beta1.DeleteNodePoolRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ROLLBACK_NODE_POOL_UPGRADE: + serviceImpl.rollbackNodePoolUpgrade( + (com.google.container.v1beta1.RollbackNodePoolUpgradeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_NODE_POOL_MANAGEMENT: + serviceImpl.setNodePoolManagement( + (com.google.container.v1beta1.SetNodePoolManagementRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_LABELS: + serviceImpl.setLabels( + (com.google.container.v1beta1.SetLabelsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_LEGACY_ABAC: + serviceImpl.setLegacyAbac( + (com.google.container.v1beta1.SetLegacyAbacRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_START_IPROTATION: + serviceImpl.startIPRotation( + (com.google.container.v1beta1.StartIPRotationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_COMPLETE_IPROTATION: + serviceImpl.completeIPRotation( + (com.google.container.v1beta1.CompleteIPRotationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_NODE_POOL_SIZE: + serviceImpl.setNodePoolSize( + (com.google.container.v1beta1.SetNodePoolSizeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_NETWORK_POLICY: + serviceImpl.setNetworkPolicy( + (com.google.container.v1beta1.SetNetworkPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SET_MAINTENANCE_POLICY: + serviceImpl.setMaintenancePolicy( + (com.google.container.v1beta1.SetMaintenancePolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_USABLE_SUBNETWORKS: + serviceImpl.listUsableSubnetworks( + (com.google.container.v1beta1.ListUsableSubnetworksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.container.v1beta1.ListUsableSubnetworksResponse>) + responseObserver); + break; + case METHODID_LIST_LOCATIONS: + serviceImpl.listLocations( + (com.google.container.v1beta1.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class ClusterManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ClusterManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ClusterManager"); + } + } + + private static final class ClusterManagerFileDescriptorSupplier + extends ClusterManagerBaseDescriptorSupplier { + ClusterManagerFileDescriptorSupplier() {} + } + + private static final class ClusterManagerMethodDescriptorSupplier + extends ClusterManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ClusterManagerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ClusterManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ClusterManagerFileDescriptorSupplier()) + .addMethod(getListClustersMethod()) + .addMethod(getGetClusterMethod()) + .addMethod(getCreateClusterMethod()) + .addMethod(getUpdateClusterMethod()) + .addMethod(getUpdateNodePoolMethod()) + .addMethod(getSetNodePoolAutoscalingMethod()) + .addMethod(getSetLoggingServiceMethod()) + .addMethod(getSetMonitoringServiceMethod()) + .addMethod(getSetAddonsConfigMethod()) + .addMethod(getSetLocationsMethod()) + .addMethod(getUpdateMasterMethod()) + .addMethod(getSetMasterAuthMethod()) + .addMethod(getDeleteClusterMethod()) + .addMethod(getListOperationsMethod()) + .addMethod(getGetOperationMethod()) + .addMethod(getCancelOperationMethod()) + .addMethod(getGetServerConfigMethod()) + .addMethod(getListNodePoolsMethod()) + .addMethod(getGetJSONWebKeysMethod()) + .addMethod(getGetNodePoolMethod()) + .addMethod(getCreateNodePoolMethod()) + .addMethod(getDeleteNodePoolMethod()) + .addMethod(getRollbackNodePoolUpgradeMethod()) + .addMethod(getSetNodePoolManagementMethod()) + .addMethod(getSetLabelsMethod()) + .addMethod(getSetLegacyAbacMethod()) + .addMethod(getStartIPRotationMethod()) + .addMethod(getCompleteIPRotationMethod()) + .addMethod(getSetNodePoolSizeMethod()) + .addMethod(getSetNetworkPolicyMethod()) + .addMethod(getSetMaintenancePolicyMethod()) + .addMethod(getListUsableSubnetworksMethod()) + .addMethod(getListLocationsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/pom.xml b/pom.xml index 8f5151d5..c5ea546f 100644 --- a/pom.xml +++ b/pom.xml @@ -72,6 +72,16 @@ proto-google-cloud-container-v1 1.4.1-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-container-v1beta1 + 1.4.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-container-v1beta1 + 1.4.1-SNAPSHOT + com.google.api.grpc grpc-google-cloud-container-v1 @@ -120,7 +130,9 @@ google-cloud-container grpc-google-cloud-container-v1 + grpc-google-cloud-container-v1beta1 proto-google-cloud-container-v1 + proto-google-cloud-container-v1beta1 google-cloud-container-bom diff --git a/proto-google-cloud-container-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-container-v1beta1/clirr-ignored-differences.xml new file mode 100644 index 00000000..9fd32800 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/container/v1beta1/*OrBuilder + * get*(*) + + + 7012 + com/google/container/v1beta1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/container/v1beta1/*OrBuilder + boolean has*(*) + + diff --git a/proto-google-cloud-container-v1beta1/pom.xml b/proto-google-cloud-container-v1beta1/pom.xml new file mode 100644 index 00000000..c19494be --- /dev/null +++ b/proto-google-cloud-container-v1beta1/pom.xml @@ -0,0 +1,42 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-container-v1beta1 + 1.4.1-SNAPSHOT + proto-google-cloud-container-v1beta1 + Proto library for google-cloud-container + + com.google.cloud + google-cloud-container-parent + 1.4.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api + api-common + + + com.google.guava + guava + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java new file mode 100644 index 00000000..8c0d4434 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * AcceleratorConfig represents a Hardware Accelerator request.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AcceleratorConfig} + */ +public final class AcceleratorConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AcceleratorConfig) + AcceleratorConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AcceleratorConfig.newBuilder() to construct. + private AcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AcceleratorConfig() { + acceleratorType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AcceleratorConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AcceleratorConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + acceleratorCount_ = input.readInt64(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + acceleratorType_ = s; + break; + } + default: + { + if (!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_AcceleratorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AcceleratorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AcceleratorConfig.class, + com.google.container.v1beta1.AcceleratorConfig.Builder.class); + } + + public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 1; + private long acceleratorCount_; + /** + * + * + *
+   * The number of the accelerator cards exposed to an instance.
+   * 
+ * + * int64 accelerator_count = 1; + * + * @return The acceleratorCount. + */ + @java.lang.Override + public long getAcceleratorCount() { + return acceleratorCount_; + } + + public static final int ACCELERATOR_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object acceleratorType_; + /** + * + * + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](https://cloud.google.com/compute/docs/gpus)
+   * 
+ * + * string accelerator_type = 2; + * + * @return The acceleratorType. + */ + @java.lang.Override + public java.lang.String getAcceleratorType() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceleratorType_ = s; + return s; + } + } + /** + * + * + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](https://cloud.google.com/compute/docs/gpus)
+   * 
+ * + * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acceleratorType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (acceleratorCount_ != 0L) { + output.writeInt64(1, acceleratorCount_); + } + if (!getAcceleratorTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acceleratorType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (acceleratorCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, acceleratorCount_); + } + if (!getAcceleratorTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.AcceleratorConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.AcceleratorConfig other = + (com.google.container.v1beta1.AcceleratorConfig) obj; + + if (getAcceleratorCount() != other.getAcceleratorCount()) return false; + if (!getAcceleratorType().equals(other.getAcceleratorType())) 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) + ACCELERATOR_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAcceleratorCount()); + hash = (37 * hash) + ACCELERATOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAcceleratorType().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AcceleratorConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AcceleratorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AcceleratorConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.AcceleratorConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AcceleratorConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AcceleratorConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.AcceleratorConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * AcceleratorConfig represents a Hardware Accelerator request.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AcceleratorConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AcceleratorConfig) + com.google.container.v1beta1.AcceleratorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AcceleratorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AcceleratorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AcceleratorConfig.class, + com.google.container.v1beta1.AcceleratorConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.AcceleratorConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + acceleratorCount_ = 0L; + + acceleratorType_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AcceleratorConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AcceleratorConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AcceleratorConfig build() { + com.google.container.v1beta1.AcceleratorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AcceleratorConfig buildPartial() { + com.google.container.v1beta1.AcceleratorConfig result = + new com.google.container.v1beta1.AcceleratorConfig(this); + result.acceleratorCount_ = acceleratorCount_; + result.acceleratorType_ = acceleratorType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.AcceleratorConfig) { + return mergeFrom((com.google.container.v1beta1.AcceleratorConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AcceleratorConfig other) { + if (other == com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()) return this; + if (other.getAcceleratorCount() != 0L) { + setAcceleratorCount(other.getAcceleratorCount()); + } + if (!other.getAcceleratorType().isEmpty()) { + acceleratorType_ = other.acceleratorType_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.AcceleratorConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.AcceleratorConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long acceleratorCount_; + /** + * + * + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + * + * @return The acceleratorCount. + */ + @java.lang.Override + public long getAcceleratorCount() { + return acceleratorCount_; + } + /** + * + * + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + * + * @param value The acceleratorCount to set. + * @return This builder for chaining. + */ + public Builder setAcceleratorCount(long value) { + + acceleratorCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of the accelerator cards exposed to an instance.
+     * 
+ * + * int64 accelerator_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearAcceleratorCount() { + + acceleratorCount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object acceleratorType_ = ""; + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @return The acceleratorType. + */ + public java.lang.String getAcceleratorType() { + java.lang.Object ref = acceleratorType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acceleratorType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. + */ + public com.google.protobuf.ByteString getAcceleratorTypeBytes() { + java.lang.Object ref = acceleratorType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acceleratorType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @param value The acceleratorType to set. + * @return This builder for chaining. + */ + public Builder setAcceleratorType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + acceleratorType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearAcceleratorType() { + + acceleratorType_ = getDefaultInstance().getAcceleratorType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The accelerator type resource name. List of supported accelerators
+     * [here](https://cloud.google.com/compute/docs/gpus)
+     * 
+ * + * string accelerator_type = 2; + * + * @param value The bytes for acceleratorType to set. + * @return This builder for chaining. + */ + public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + acceleratorType_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.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.AcceleratorConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AcceleratorConfig) + private static final com.google.container.v1beta1.AcceleratorConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AcceleratorConfig(); + } + + public static com.google.container.v1beta1.AcceleratorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceleratorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AcceleratorConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.AcceleratorConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java new file mode 100644 index 00000000..b8f826b0 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java @@ -0,0 +1,65 @@ +/* + * 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 AcceleratorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AcceleratorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The number of the accelerator cards exposed to an instance.
+   * 
+ * + * int64 accelerator_count = 1; + * + * @return The acceleratorCount. + */ + long getAcceleratorCount(); + + /** + * + * + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](https://cloud.google.com/compute/docs/gpus)
+   * 
+ * + * string accelerator_type = 2; + * + * @return The acceleratorType. + */ + java.lang.String getAcceleratorType(); + /** + * + * + *
+   * The accelerator type resource name. List of supported accelerators
+   * [here](https://cloud.google.com/compute/docs/gpus)
+   * 
+ * + * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. + */ + com.google.protobuf.ByteString getAcceleratorTypeBytes(); +} 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 new file mode 100644 index 00000000..54dad11d --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java @@ -0,0 +1,3512 @@ +/* + * 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 addons that can be automatically spun up in the
+ * cluster, enabling additional functionality.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AddonsConfig} + */ +public final class AddonsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AddonsConfig) + AddonsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AddonsConfig.newBuilder() to construct. + private AddonsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AddonsConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AddonsConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AddonsConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.container.v1beta1.HttpLoadBalancing.Builder subBuilder = null; + if (httpLoadBalancing_ != null) { + subBuilder = httpLoadBalancing_.toBuilder(); + } + httpLoadBalancing_ = + input.readMessage( + com.google.container.v1beta1.HttpLoadBalancing.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(httpLoadBalancing_); + httpLoadBalancing_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder subBuilder = null; + if (horizontalPodAutoscaling_ != null) { + subBuilder = horizontalPodAutoscaling_.toBuilder(); + } + horizontalPodAutoscaling_ = + input.readMessage( + com.google.container.v1beta1.HorizontalPodAutoscaling.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(horizontalPodAutoscaling_); + horizontalPodAutoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.container.v1beta1.KubernetesDashboard.Builder subBuilder = null; + if (kubernetesDashboard_ != null) { + subBuilder = kubernetesDashboard_.toBuilder(); + } + kubernetesDashboard_ = + input.readMessage( + com.google.container.v1beta1.KubernetesDashboard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kubernetesDashboard_); + kubernetesDashboard_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.container.v1beta1.NetworkPolicyConfig.Builder subBuilder = null; + if (networkPolicyConfig_ != null) { + subBuilder = networkPolicyConfig_.toBuilder(); + } + networkPolicyConfig_ = + input.readMessage( + com.google.container.v1beta1.NetworkPolicyConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkPolicyConfig_); + networkPolicyConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.container.v1beta1.IstioConfig.Builder subBuilder = null; + if (istioConfig_ != null) { + subBuilder = istioConfig_.toBuilder(); + } + istioConfig_ = + input.readMessage( + com.google.container.v1beta1.IstioConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(istioConfig_); + istioConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.container.v1beta1.CloudRunConfig.Builder subBuilder = null; + if (cloudRunConfig_ != null) { + subBuilder = cloudRunConfig_.toBuilder(); + } + cloudRunConfig_ = + input.readMessage( + com.google.container.v1beta1.CloudRunConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cloudRunConfig_); + cloudRunConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + com.google.container.v1beta1.DnsCacheConfig.Builder subBuilder = null; + if (dnsCacheConfig_ != null) { + subBuilder = dnsCacheConfig_.toBuilder(); + } + dnsCacheConfig_ = + input.readMessage( + com.google.container.v1beta1.DnsCacheConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dnsCacheConfig_); + dnsCacheConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + com.google.container.v1beta1.ConfigConnectorConfig.Builder subBuilder = null; + if (configConnectorConfig_ != null) { + subBuilder = configConnectorConfig_.toBuilder(); + } + configConnectorConfig_ = + input.readMessage( + com.google.container.v1beta1.ConfigConnectorConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configConnectorConfig_); + configConnectorConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 90: + { + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder subBuilder = + null; + if (gcePersistentDiskCsiDriverConfig_ != null) { + subBuilder = gcePersistentDiskCsiDriverConfig_.toBuilder(); + } + gcePersistentDiskCsiDriverConfig_ = + input.readMessage( + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcePersistentDiskCsiDriverConfig_); + gcePersistentDiskCsiDriverConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 98: + { + com.google.container.v1beta1.KalmConfig.Builder subBuilder = null; + if (kalmConfig_ != null) { + subBuilder = kalmConfig_.toBuilder(); + } + kalmConfig_ = + input.readMessage( + com.google.container.v1beta1.KalmConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kalmConfig_); + kalmConfig_ = 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_AddonsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AddonsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AddonsConfig.class, + com.google.container.v1beta1.AddonsConfig.Builder.class); + } + + public static final int HTTP_LOAD_BALANCING_FIELD_NUMBER = 1; + private com.google.container.v1beta1.HttpLoadBalancing httpLoadBalancing_; + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + * + * @return Whether the httpLoadBalancing field is set. + */ + @java.lang.Override + public boolean hasHttpLoadBalancing() { + return httpLoadBalancing_ != null; + } + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + * + * @return The httpLoadBalancing. + */ + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing getHttpLoadBalancing() { + return httpLoadBalancing_ == null + ? com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() + : httpLoadBalancing_; + } + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { + return getHttpLoadBalancing(); + } + + public static final int HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER = 2; + private com.google.container.v1beta1.HorizontalPodAutoscaling horizontalPodAutoscaling_; + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return Whether the horizontalPodAutoscaling field is set. + */ + @java.lang.Override + public boolean hasHorizontalPodAutoscaling() { + return horizontalPodAutoscaling_ != null; + } + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return The horizontalPodAutoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { + return horizontalPodAutoscaling_ == null + ? com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() + : horizontalPodAutoscaling_; + } + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder + getHorizontalPodAutoscalingOrBuilder() { + return getHorizontalPodAutoscaling(); + } + + public static final int KUBERNETES_DASHBOARD_FIELD_NUMBER = 3; + private com.google.container.v1beta1.KubernetesDashboard kubernetesDashboard_; + /** + * + * + *
+   * Configuration for the Kubernetes Dashboard.
+   * This addon is deprecated, and will be disabled in 1.15. It is recommended
+   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+   * workloads and applications. For more information, see:
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+   * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @return Whether the kubernetesDashboard field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasKubernetesDashboard() { + return kubernetesDashboard_ != null; + } + /** + * + * + *
+   * Configuration for the Kubernetes Dashboard.
+   * This addon is deprecated, and will be disabled in 1.15. It is recommended
+   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+   * workloads and applications. For more information, see:
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+   * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @return The kubernetesDashboard. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.KubernetesDashboard getKubernetesDashboard() { + return kubernetesDashboard_ == null + ? com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() + : kubernetesDashboard_; + } + /** + * + * + *
+   * Configuration for the Kubernetes Dashboard.
+   * This addon is deprecated, and will be disabled in 1.15. It is recommended
+   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+   * workloads and applications. For more information, see:
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+   * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.KubernetesDashboardOrBuilder + getKubernetesDashboardOrBuilder() { + return getKubernetesDashboard(); + } + + public static final int NETWORK_POLICY_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NetworkPolicyConfig networkPolicyConfig_; + /** + * + * + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + * + * @return Whether the networkPolicyConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkPolicyConfig() { + return networkPolicyConfig_ != null; + } + /** + * + * + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + * + * @return The networkPolicyConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig() { + return networkPolicyConfig_ == null + ? com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() + : networkPolicyConfig_; + } + /** + * + * + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfigOrBuilder + getNetworkPolicyConfigOrBuilder() { + return getNetworkPolicyConfig(); + } + + public static final int ISTIO_CONFIG_FIELD_NUMBER = 5; + private com.google.container.v1beta1.IstioConfig istioConfig_; + /** + * + * + *
+   * Configuration for Istio, an open platform to connect, manage, and secure
+   * microservices.
+   * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + * + * @return Whether the istioConfig field is set. + */ + @java.lang.Override + public boolean hasIstioConfig() { + return istioConfig_ != null; + } + /** + * + * + *
+   * Configuration for Istio, an open platform to connect, manage, and secure
+   * microservices.
+   * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + * + * @return The istioConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.IstioConfig getIstioConfig() { + return istioConfig_ == null + ? com.google.container.v1beta1.IstioConfig.getDefaultInstance() + : istioConfig_; + } + /** + * + * + *
+   * Configuration for Istio, an open platform to connect, manage, and secure
+   * microservices.
+   * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + */ + @java.lang.Override + public com.google.container.v1beta1.IstioConfigOrBuilder getIstioConfigOrBuilder() { + return getIstioConfig(); + } + + public static final int CLOUD_RUN_CONFIG_FIELD_NUMBER = 7; + private com.google.container.v1beta1.CloudRunConfig cloudRunConfig_; + /** + * + * + *
+   * 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
+   * at cluster creation time.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + * + * @return Whether the cloudRunConfig field is set. + */ + @java.lang.Override + public boolean hasCloudRunConfig() { + return cloudRunConfig_ != null; + } + /** + * + * + *
+   * 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
+   * at cluster creation time.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + * + * @return The cloudRunConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfig getCloudRunConfig() { + return cloudRunConfig_ == null + ? com.google.container.v1beta1.CloudRunConfig.getDefaultInstance() + : cloudRunConfig_; + } + /** + * + * + *
+   * 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
+   * at cluster creation time.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { + return getCloudRunConfig(); + } + + public static final int DNS_CACHE_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1beta1.DnsCacheConfig dnsCacheConfig_; + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + * + * @return Whether the dnsCacheConfig field is set. + */ + @java.lang.Override + public boolean hasDnsCacheConfig() { + return dnsCacheConfig_ != null; + } + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + * + * @return The dnsCacheConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.DnsCacheConfig getDnsCacheConfig() { + return dnsCacheConfig_ == null + ? com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance() + : dnsCacheConfig_; + } + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + @java.lang.Override + public com.google.container.v1beta1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { + return getDnsCacheConfig(); + } + + public static final int CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER = 10; + private com.google.container.v1beta1.ConfigConnectorConfig configConnectorConfig_; + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + * + * @return Whether the configConnectorConfig field is set. + */ + @java.lang.Override + public boolean hasConfigConnectorConfig() { + return configConnectorConfig_ != null; + } + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + * + * @return The configConnectorConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ConfigConnectorConfig getConfigConnectorConfig() { + return configConnectorConfig_ == null + ? com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance() + : configConnectorConfig_; + } + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + @java.lang.Override + public com.google.container.v1beta1.ConfigConnectorConfigOrBuilder + getConfigConnectorConfigOrBuilder() { + return getConfigConnectorConfig(); + } + + public static final int GCE_PERSISTENT_DISK_CSI_DRIVER_CONFIG_FIELD_NUMBER = 11; + private com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + gcePersistentDiskCsiDriverConfig_; + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return The gcePersistentDiskCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + getGcePersistentDiskCsiDriverConfig() { + return gcePersistentDiskCsiDriverConfig_ == null + ? com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() + : gcePersistentDiskCsiDriverConfig_; + } + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + @java.lang.Override + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder + getGcePersistentDiskCsiDriverConfigOrBuilder() { + return getGcePersistentDiskCsiDriverConfig(); + } + + public static final int KALM_CONFIG_FIELD_NUMBER = 12; + private com.google.container.v1beta1.KalmConfig kalmConfig_; + /** + * + * + *
+   * Configuration for the KALM addon, which manages the lifecycle of k8s
+   * applications.
+   * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + * + * @return Whether the kalmConfig field is set. + */ + @java.lang.Override + public boolean hasKalmConfig() { + return kalmConfig_ != null; + } + /** + * + * + *
+   * Configuration for the KALM addon, which manages the lifecycle of k8s
+   * applications.
+   * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + * + * @return The kalmConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.KalmConfig getKalmConfig() { + return kalmConfig_ == null + ? com.google.container.v1beta1.KalmConfig.getDefaultInstance() + : kalmConfig_; + } + /** + * + * + *
+   * Configuration for the KALM addon, which manages the lifecycle of k8s
+   * applications.
+   * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + */ + @java.lang.Override + public com.google.container.v1beta1.KalmConfigOrBuilder getKalmConfigOrBuilder() { + return getKalmConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (httpLoadBalancing_ != null) { + output.writeMessage(1, getHttpLoadBalancing()); + } + if (horizontalPodAutoscaling_ != null) { + output.writeMessage(2, getHorizontalPodAutoscaling()); + } + if (kubernetesDashboard_ != null) { + output.writeMessage(3, getKubernetesDashboard()); + } + if (networkPolicyConfig_ != null) { + output.writeMessage(4, getNetworkPolicyConfig()); + } + if (istioConfig_ != null) { + output.writeMessage(5, getIstioConfig()); + } + if (cloudRunConfig_ != null) { + output.writeMessage(7, getCloudRunConfig()); + } + if (dnsCacheConfig_ != null) { + output.writeMessage(8, getDnsCacheConfig()); + } + if (configConnectorConfig_ != null) { + output.writeMessage(10, getConfigConnectorConfig()); + } + if (gcePersistentDiskCsiDriverConfig_ != null) { + output.writeMessage(11, getGcePersistentDiskCsiDriverConfig()); + } + if (kalmConfig_ != null) { + output.writeMessage(12, getKalmConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (httpLoadBalancing_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHttpLoadBalancing()); + } + if (horizontalPodAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getHorizontalPodAutoscaling()); + } + if (kubernetesDashboard_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKubernetesDashboard()); + } + if (networkPolicyConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNetworkPolicyConfig()); + } + if (istioConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getIstioConfig()); + } + if (cloudRunConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCloudRunConfig()); + } + if (dnsCacheConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDnsCacheConfig()); + } + if (configConnectorConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getConfigConnectorConfig()); + } + if (gcePersistentDiskCsiDriverConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, getGcePersistentDiskCsiDriverConfig()); + } + if (kalmConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getKalmConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.AddonsConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.AddonsConfig other = + (com.google.container.v1beta1.AddonsConfig) obj; + + if (hasHttpLoadBalancing() != other.hasHttpLoadBalancing()) return false; + if (hasHttpLoadBalancing()) { + if (!getHttpLoadBalancing().equals(other.getHttpLoadBalancing())) return false; + } + if (hasHorizontalPodAutoscaling() != other.hasHorizontalPodAutoscaling()) return false; + if (hasHorizontalPodAutoscaling()) { + if (!getHorizontalPodAutoscaling().equals(other.getHorizontalPodAutoscaling())) return false; + } + if (hasKubernetesDashboard() != other.hasKubernetesDashboard()) return false; + if (hasKubernetesDashboard()) { + if (!getKubernetesDashboard().equals(other.getKubernetesDashboard())) return false; + } + if (hasNetworkPolicyConfig() != other.hasNetworkPolicyConfig()) return false; + if (hasNetworkPolicyConfig()) { + if (!getNetworkPolicyConfig().equals(other.getNetworkPolicyConfig())) return false; + } + if (hasIstioConfig() != other.hasIstioConfig()) return false; + if (hasIstioConfig()) { + if (!getIstioConfig().equals(other.getIstioConfig())) return false; + } + if (hasCloudRunConfig() != other.hasCloudRunConfig()) return false; + if (hasCloudRunConfig()) { + if (!getCloudRunConfig().equals(other.getCloudRunConfig())) return false; + } + if (hasDnsCacheConfig() != other.hasDnsCacheConfig()) return false; + if (hasDnsCacheConfig()) { + if (!getDnsCacheConfig().equals(other.getDnsCacheConfig())) return false; + } + if (hasConfigConnectorConfig() != other.hasConfigConnectorConfig()) return false; + if (hasConfigConnectorConfig()) { + if (!getConfigConnectorConfig().equals(other.getConfigConnectorConfig())) return false; + } + if (hasGcePersistentDiskCsiDriverConfig() != other.hasGcePersistentDiskCsiDriverConfig()) + return false; + if (hasGcePersistentDiskCsiDriverConfig()) { + if (!getGcePersistentDiskCsiDriverConfig() + .equals(other.getGcePersistentDiskCsiDriverConfig())) return false; + } + if (hasKalmConfig() != other.hasKalmConfig()) return false; + if (hasKalmConfig()) { + if (!getKalmConfig().equals(other.getKalmConfig())) 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 (hasHttpLoadBalancing()) { + hash = (37 * hash) + HTTP_LOAD_BALANCING_FIELD_NUMBER; + hash = (53 * hash) + getHttpLoadBalancing().hashCode(); + } + if (hasHorizontalPodAutoscaling()) { + hash = (37 * hash) + HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getHorizontalPodAutoscaling().hashCode(); + } + if (hasKubernetesDashboard()) { + hash = (37 * hash) + KUBERNETES_DASHBOARD_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesDashboard().hashCode(); + } + if (hasNetworkPolicyConfig()) { + hash = (37 * hash) + NETWORK_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicyConfig().hashCode(); + } + if (hasIstioConfig()) { + hash = (37 * hash) + ISTIO_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIstioConfig().hashCode(); + } + if (hasCloudRunConfig()) { + hash = (37 * hash) + CLOUD_RUN_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCloudRunConfig().hashCode(); + } + if (hasDnsCacheConfig()) { + hash = (37 * hash) + DNS_CACHE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDnsCacheConfig().hashCode(); + } + if (hasConfigConnectorConfig()) { + hash = (37 * hash) + CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfigConnectorConfig().hashCode(); + } + if (hasGcePersistentDiskCsiDriverConfig()) { + hash = (37 * hash) + GCE_PERSISTENT_DISK_CSI_DRIVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcePersistentDiskCsiDriverConfig().hashCode(); + } + if (hasKalmConfig()) { + hash = (37 * hash) + KALM_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getKalmConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AddonsConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AddonsConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AddonsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AddonsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AddonsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AddonsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AddonsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AddonsConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.AddonsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AddonsConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.AddonsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AddonsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.AddonsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for the addons that can be automatically spun up in the
+   * cluster, enabling additional functionality.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AddonsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AddonsConfig) + com.google.container.v1beta1.AddonsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AddonsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AddonsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AddonsConfig.class, + com.google.container.v1beta1.AddonsConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.AddonsConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = null; + } else { + httpLoadBalancing_ = null; + httpLoadBalancingBuilder_ = null; + } + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = null; + } else { + horizontalPodAutoscaling_ = null; + horizontalPodAutoscalingBuilder_ = null; + } + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = null; + } else { + kubernetesDashboard_ = null; + kubernetesDashboardBuilder_ = null; + } + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = null; + } else { + networkPolicyConfig_ = null; + networkPolicyConfigBuilder_ = null; + } + if (istioConfigBuilder_ == null) { + istioConfig_ = null; + } else { + istioConfig_ = null; + istioConfigBuilder_ = null; + } + if (cloudRunConfigBuilder_ == null) { + cloudRunConfig_ = null; + } else { + cloudRunConfig_ = null; + cloudRunConfigBuilder_ = null; + } + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = null; + } else { + dnsCacheConfig_ = null; + dnsCacheConfigBuilder_ = null; + } + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = null; + } else { + configConnectorConfig_ = null; + configConnectorConfigBuilder_ = null; + } + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfig_ = null; + } else { + gcePersistentDiskCsiDriverConfig_ = null; + gcePersistentDiskCsiDriverConfigBuilder_ = null; + } + if (kalmConfigBuilder_ == null) { + kalmConfig_ = null; + } else { + kalmConfig_ = null; + kalmConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AddonsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.AddonsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig build() { + com.google.container.v1beta1.AddonsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig buildPartial() { + com.google.container.v1beta1.AddonsConfig result = + new com.google.container.v1beta1.AddonsConfig(this); + if (httpLoadBalancingBuilder_ == null) { + result.httpLoadBalancing_ = httpLoadBalancing_; + } else { + result.httpLoadBalancing_ = httpLoadBalancingBuilder_.build(); + } + if (horizontalPodAutoscalingBuilder_ == null) { + result.horizontalPodAutoscaling_ = horizontalPodAutoscaling_; + } else { + result.horizontalPodAutoscaling_ = horizontalPodAutoscalingBuilder_.build(); + } + if (kubernetesDashboardBuilder_ == null) { + result.kubernetesDashboard_ = kubernetesDashboard_; + } else { + result.kubernetesDashboard_ = kubernetesDashboardBuilder_.build(); + } + if (networkPolicyConfigBuilder_ == null) { + result.networkPolicyConfig_ = networkPolicyConfig_; + } else { + result.networkPolicyConfig_ = networkPolicyConfigBuilder_.build(); + } + if (istioConfigBuilder_ == null) { + result.istioConfig_ = istioConfig_; + } else { + result.istioConfig_ = istioConfigBuilder_.build(); + } + if (cloudRunConfigBuilder_ == null) { + result.cloudRunConfig_ = cloudRunConfig_; + } else { + result.cloudRunConfig_ = cloudRunConfigBuilder_.build(); + } + if (dnsCacheConfigBuilder_ == null) { + result.dnsCacheConfig_ = dnsCacheConfig_; + } else { + result.dnsCacheConfig_ = dnsCacheConfigBuilder_.build(); + } + if (configConnectorConfigBuilder_ == null) { + result.configConnectorConfig_ = configConnectorConfig_; + } else { + result.configConnectorConfig_ = configConnectorConfigBuilder_.build(); + } + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfig_; + } else { + result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfigBuilder_.build(); + } + if (kalmConfigBuilder_ == null) { + result.kalmConfig_ = kalmConfig_; + } else { + result.kalmConfig_ = kalmConfigBuilder_.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.AddonsConfig) { + return mergeFrom((com.google.container.v1beta1.AddonsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AddonsConfig other) { + if (other == com.google.container.v1beta1.AddonsConfig.getDefaultInstance()) return this; + if (other.hasHttpLoadBalancing()) { + mergeHttpLoadBalancing(other.getHttpLoadBalancing()); + } + if (other.hasHorizontalPodAutoscaling()) { + mergeHorizontalPodAutoscaling(other.getHorizontalPodAutoscaling()); + } + if (other.hasKubernetesDashboard()) { + mergeKubernetesDashboard(other.getKubernetesDashboard()); + } + if (other.hasNetworkPolicyConfig()) { + mergeNetworkPolicyConfig(other.getNetworkPolicyConfig()); + } + if (other.hasIstioConfig()) { + mergeIstioConfig(other.getIstioConfig()); + } + if (other.hasCloudRunConfig()) { + mergeCloudRunConfig(other.getCloudRunConfig()); + } + if (other.hasDnsCacheConfig()) { + mergeDnsCacheConfig(other.getDnsCacheConfig()); + } + if (other.hasConfigConnectorConfig()) { + mergeConfigConnectorConfig(other.getConfigConnectorConfig()); + } + if (other.hasGcePersistentDiskCsiDriverConfig()) { + mergeGcePersistentDiskCsiDriverConfig(other.getGcePersistentDiskCsiDriverConfig()); + } + if (other.hasKalmConfig()) { + mergeKalmConfig(other.getKalmConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.AddonsConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.AddonsConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1beta1.HttpLoadBalancing httpLoadBalancing_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HttpLoadBalancing, + com.google.container.v1beta1.HttpLoadBalancing.Builder, + com.google.container.v1beta1.HttpLoadBalancingOrBuilder> + httpLoadBalancingBuilder_; + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + * + * @return Whether the httpLoadBalancing field is set. + */ + public boolean hasHttpLoadBalancing() { + return httpLoadBalancingBuilder_ != null || httpLoadBalancing_ != null; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + * + * @return The httpLoadBalancing. + */ + public com.google.container.v1beta1.HttpLoadBalancing getHttpLoadBalancing() { + if (httpLoadBalancingBuilder_ == null) { + return httpLoadBalancing_ == null + ? com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() + : httpLoadBalancing_; + } else { + return httpLoadBalancingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder setHttpLoadBalancing(com.google.container.v1beta1.HttpLoadBalancing value) { + if (httpLoadBalancingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + httpLoadBalancing_ = value; + onChanged(); + } else { + httpLoadBalancingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder setHttpLoadBalancing( + com.google.container.v1beta1.HttpLoadBalancing.Builder builderForValue) { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = builderForValue.build(); + onChanged(); + } else { + httpLoadBalancingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder mergeHttpLoadBalancing(com.google.container.v1beta1.HttpLoadBalancing value) { + if (httpLoadBalancingBuilder_ == null) { + if (httpLoadBalancing_ != null) { + httpLoadBalancing_ = + com.google.container.v1beta1.HttpLoadBalancing.newBuilder(httpLoadBalancing_) + .mergeFrom(value) + .buildPartial(); + } else { + httpLoadBalancing_ = value; + } + onChanged(); + } else { + httpLoadBalancingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder clearHttpLoadBalancing() { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = null; + onChanged(); + } else { + httpLoadBalancing_ = null; + httpLoadBalancingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1beta1.HttpLoadBalancing.Builder getHttpLoadBalancingBuilder() { + + onChanged(); + return getHttpLoadBalancingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1beta1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { + if (httpLoadBalancingBuilder_ != null) { + return httpLoadBalancingBuilder_.getMessageOrBuilder(); + } else { + return httpLoadBalancing_ == null + ? com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() + : httpLoadBalancing_; + } + } + /** + * + * + *
+     * Configuration for the HTTP (L7) load balancing controller addon, which
+     * makes it easy to set up HTTP load balancers for services in a cluster.
+     * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HttpLoadBalancing, + com.google.container.v1beta1.HttpLoadBalancing.Builder, + com.google.container.v1beta1.HttpLoadBalancingOrBuilder> + getHttpLoadBalancingFieldBuilder() { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HttpLoadBalancing, + com.google.container.v1beta1.HttpLoadBalancing.Builder, + com.google.container.v1beta1.HttpLoadBalancingOrBuilder>( + getHttpLoadBalancing(), getParentForChildren(), isClean()); + httpLoadBalancing_ = null; + } + return httpLoadBalancingBuilder_; + } + + private com.google.container.v1beta1.HorizontalPodAutoscaling horizontalPodAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HorizontalPodAutoscaling, + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder, + com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder> + horizontalPodAutoscalingBuilder_; + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * + * @return Whether the horizontalPodAutoscaling field is set. + */ + public boolean hasHorizontalPodAutoscaling() { + return horizontalPodAutoscalingBuilder_ != null || horizontalPodAutoscaling_ != null; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * + * @return The horizontalPodAutoscaling. + */ + public com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { + if (horizontalPodAutoscalingBuilder_ == null) { + return horizontalPodAutoscaling_ == null + ? com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() + : horizontalPodAutoscaling_; + } else { + return horizontalPodAutoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + public Builder setHorizontalPodAutoscaling( + com.google.container.v1beta1.HorizontalPodAutoscaling value) { + if (horizontalPodAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + horizontalPodAutoscaling_ = value; + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + public Builder setHorizontalPodAutoscaling( + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder builderForValue) { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + public Builder mergeHorizontalPodAutoscaling( + com.google.container.v1beta1.HorizontalPodAutoscaling value) { + if (horizontalPodAutoscalingBuilder_ == null) { + if (horizontalPodAutoscaling_ != null) { + horizontalPodAutoscaling_ = + com.google.container.v1beta1.HorizontalPodAutoscaling.newBuilder( + horizontalPodAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + horizontalPodAutoscaling_ = value; + } + onChanged(); + } else { + horizontalPodAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + public Builder clearHorizontalPodAutoscaling() { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = null; + onChanged(); + } else { + horizontalPodAutoscaling_ = null; + horizontalPodAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + public com.google.container.v1beta1.HorizontalPodAutoscaling.Builder + getHorizontalPodAutoscalingBuilder() { + + onChanged(); + return getHorizontalPodAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + public com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder + getHorizontalPodAutoscalingOrBuilder() { + if (horizontalPodAutoscalingBuilder_ != null) { + return horizontalPodAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return horizontalPodAutoscaling_ == null + ? com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() + : horizontalPodAutoscaling_; + } + } + /** + * + * + *
+     * Configuration for the horizontal pod autoscaling feature, which
+     * increases or decreases the number of replica pods a replication controller
+     * has based on the resource usage of the existing pods.
+     * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HorizontalPodAutoscaling, + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder, + com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder> + getHorizontalPodAutoscalingFieldBuilder() { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HorizontalPodAutoscaling, + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder, + com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder>( + getHorizontalPodAutoscaling(), getParentForChildren(), isClean()); + horizontalPodAutoscaling_ = null; + } + return horizontalPodAutoscalingBuilder_; + } + + private com.google.container.v1beta1.KubernetesDashboard kubernetesDashboard_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KubernetesDashboard, + com.google.container.v1beta1.KubernetesDashboard.Builder, + com.google.container.v1beta1.KubernetesDashboardOrBuilder> + kubernetesDashboardBuilder_; + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @return Whether the kubernetesDashboard field is set. + */ + @java.lang.Deprecated + public boolean hasKubernetesDashboard() { + return kubernetesDashboardBuilder_ != null || kubernetesDashboard_ != null; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @return The kubernetesDashboard. + */ + @java.lang.Deprecated + public com.google.container.v1beta1.KubernetesDashboard getKubernetesDashboard() { + if (kubernetesDashboardBuilder_ == null) { + return kubernetesDashboard_ == null + ? com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() + : kubernetesDashboard_; + } else { + return kubernetesDashboardBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setKubernetesDashboard(com.google.container.v1beta1.KubernetesDashboard value) { + if (kubernetesDashboardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubernetesDashboard_ = value; + onChanged(); + } else { + kubernetesDashboardBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setKubernetesDashboard( + com.google.container.v1beta1.KubernetesDashboard.Builder builderForValue) { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = builderForValue.build(); + onChanged(); + } else { + kubernetesDashboardBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergeKubernetesDashboard( + com.google.container.v1beta1.KubernetesDashboard value) { + if (kubernetesDashboardBuilder_ == null) { + if (kubernetesDashboard_ != null) { + kubernetesDashboard_ = + com.google.container.v1beta1.KubernetesDashboard.newBuilder(kubernetesDashboard_) + .mergeFrom(value) + .buildPartial(); + } else { + kubernetesDashboard_ = value; + } + onChanged(); + } else { + kubernetesDashboardBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearKubernetesDashboard() { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = null; + onChanged(); + } else { + kubernetesDashboard_ = null; + kubernetesDashboardBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.KubernetesDashboard.Builder + getKubernetesDashboardBuilder() { + + onChanged(); + return getKubernetesDashboardFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.KubernetesDashboardOrBuilder + getKubernetesDashboardOrBuilder() { + if (kubernetesDashboardBuilder_ != null) { + return kubernetesDashboardBuilder_.getMessageOrBuilder(); + } else { + return kubernetesDashboard_ == null + ? com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() + : kubernetesDashboard_; + } + } + /** + * + * + *
+     * Configuration for the Kubernetes Dashboard.
+     * This addon is deprecated, and will be disabled in 1.15. It is recommended
+     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+     * workloads and applications. For more information, see:
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+     * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KubernetesDashboard, + com.google.container.v1beta1.KubernetesDashboard.Builder, + com.google.container.v1beta1.KubernetesDashboardOrBuilder> + getKubernetesDashboardFieldBuilder() { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboardBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KubernetesDashboard, + com.google.container.v1beta1.KubernetesDashboard.Builder, + com.google.container.v1beta1.KubernetesDashboardOrBuilder>( + getKubernetesDashboard(), getParentForChildren(), isClean()); + kubernetesDashboard_ = null; + } + return kubernetesDashboardBuilder_; + } + + private com.google.container.v1beta1.NetworkPolicyConfig networkPolicyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicyConfig, + com.google.container.v1beta1.NetworkPolicyConfig.Builder, + com.google.container.v1beta1.NetworkPolicyConfigOrBuilder> + networkPolicyConfigBuilder_; + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + * + * @return Whether the networkPolicyConfig field is set. + */ + public boolean hasNetworkPolicyConfig() { + return networkPolicyConfigBuilder_ != null || networkPolicyConfig_ != null; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + * + * @return The networkPolicyConfig. + */ + public com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig() { + if (networkPolicyConfigBuilder_ == null) { + return networkPolicyConfig_ == null + ? com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() + : networkPolicyConfig_; + } else { + return networkPolicyConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder setNetworkPolicyConfig(com.google.container.v1beta1.NetworkPolicyConfig value) { + if (networkPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicyConfig_ = value; + onChanged(); + } else { + networkPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder setNetworkPolicyConfig( + com.google.container.v1beta1.NetworkPolicyConfig.Builder builderForValue) { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder mergeNetworkPolicyConfig( + com.google.container.v1beta1.NetworkPolicyConfig value) { + if (networkPolicyConfigBuilder_ == null) { + if (networkPolicyConfig_ != null) { + networkPolicyConfig_ = + com.google.container.v1beta1.NetworkPolicyConfig.newBuilder(networkPolicyConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPolicyConfig_ = value; + } + onChanged(); + } else { + networkPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder clearNetworkPolicyConfig() { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = null; + onChanged(); + } else { + networkPolicyConfig_ = null; + networkPolicyConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1beta1.NetworkPolicyConfig.Builder + getNetworkPolicyConfigBuilder() { + + onChanged(); + return getNetworkPolicyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1beta1.NetworkPolicyConfigOrBuilder + getNetworkPolicyConfigOrBuilder() { + if (networkPolicyConfigBuilder_ != null) { + return networkPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return networkPolicyConfig_ == null + ? com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() + : networkPolicyConfig_; + } + } + /** + * + * + *
+     * Configuration for NetworkPolicy. This only tracks whether the addon
+     * is enabled or not on the Master, it does not track whether network policy
+     * is enabled for the nodes.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicyConfig, + com.google.container.v1beta1.NetworkPolicyConfig.Builder, + com.google.container.v1beta1.NetworkPolicyConfigOrBuilder> + getNetworkPolicyConfigFieldBuilder() { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicyConfig, + com.google.container.v1beta1.NetworkPolicyConfig.Builder, + com.google.container.v1beta1.NetworkPolicyConfigOrBuilder>( + getNetworkPolicyConfig(), getParentForChildren(), isClean()); + networkPolicyConfig_ = null; + } + return networkPolicyConfigBuilder_; + } + + private com.google.container.v1beta1.IstioConfig istioConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IstioConfig, + com.google.container.v1beta1.IstioConfig.Builder, + com.google.container.v1beta1.IstioConfigOrBuilder> + istioConfigBuilder_; + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + * + * @return Whether the istioConfig field is set. + */ + public boolean hasIstioConfig() { + return istioConfigBuilder_ != null || istioConfig_ != null; + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + * + * @return The istioConfig. + */ + public com.google.container.v1beta1.IstioConfig getIstioConfig() { + if (istioConfigBuilder_ == null) { + return istioConfig_ == null + ? com.google.container.v1beta1.IstioConfig.getDefaultInstance() + : istioConfig_; + } else { + return istioConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + */ + public Builder setIstioConfig(com.google.container.v1beta1.IstioConfig value) { + if (istioConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + istioConfig_ = value; + onChanged(); + } else { + istioConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + */ + public Builder setIstioConfig( + com.google.container.v1beta1.IstioConfig.Builder builderForValue) { + if (istioConfigBuilder_ == null) { + istioConfig_ = builderForValue.build(); + onChanged(); + } else { + istioConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + */ + public Builder mergeIstioConfig(com.google.container.v1beta1.IstioConfig value) { + if (istioConfigBuilder_ == null) { + if (istioConfig_ != null) { + istioConfig_ = + com.google.container.v1beta1.IstioConfig.newBuilder(istioConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + istioConfig_ = value; + } + onChanged(); + } else { + istioConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + */ + public Builder clearIstioConfig() { + if (istioConfigBuilder_ == null) { + istioConfig_ = null; + onChanged(); + } else { + istioConfig_ = null; + istioConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + */ + public com.google.container.v1beta1.IstioConfig.Builder getIstioConfigBuilder() { + + onChanged(); + return getIstioConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + */ + public com.google.container.v1beta1.IstioConfigOrBuilder getIstioConfigOrBuilder() { + if (istioConfigBuilder_ != null) { + return istioConfigBuilder_.getMessageOrBuilder(); + } else { + return istioConfig_ == null + ? com.google.container.v1beta1.IstioConfig.getDefaultInstance() + : istioConfig_; + } + } + /** + * + * + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IstioConfig, + com.google.container.v1beta1.IstioConfig.Builder, + com.google.container.v1beta1.IstioConfigOrBuilder> + getIstioConfigFieldBuilder() { + if (istioConfigBuilder_ == null) { + istioConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IstioConfig, + com.google.container.v1beta1.IstioConfig.Builder, + com.google.container.v1beta1.IstioConfigOrBuilder>( + getIstioConfig(), getParentForChildren(), isClean()); + istioConfig_ = null; + } + return istioConfigBuilder_; + } + + private com.google.container.v1beta1.CloudRunConfig cloudRunConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.CloudRunConfig, + com.google.container.v1beta1.CloudRunConfig.Builder, + com.google.container.v1beta1.CloudRunConfigOrBuilder> + cloudRunConfigBuilder_; + /** + * + * + *
+     * 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
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + * + * @return Whether the cloudRunConfig field is set. + */ + public boolean hasCloudRunConfig() { + return cloudRunConfigBuilder_ != null || cloudRunConfig_ != null; + } + /** + * + * + *
+     * 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
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + * + * @return The cloudRunConfig. + */ + public com.google.container.v1beta1.CloudRunConfig getCloudRunConfig() { + if (cloudRunConfigBuilder_ == null) { + return cloudRunConfig_ == null + ? com.google.container.v1beta1.CloudRunConfig.getDefaultInstance() + : cloudRunConfig_; + } else { + return cloudRunConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * 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
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + public Builder setCloudRunConfig(com.google.container.v1beta1.CloudRunConfig value) { + if (cloudRunConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloudRunConfig_ = value; + onChanged(); + } else { + cloudRunConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * 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
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + public Builder setCloudRunConfig( + com.google.container.v1beta1.CloudRunConfig.Builder builderForValue) { + if (cloudRunConfigBuilder_ == null) { + cloudRunConfig_ = builderForValue.build(); + onChanged(); + } else { + cloudRunConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * 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
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + public Builder mergeCloudRunConfig(com.google.container.v1beta1.CloudRunConfig value) { + if (cloudRunConfigBuilder_ == null) { + if (cloudRunConfig_ != null) { + cloudRunConfig_ = + com.google.container.v1beta1.CloudRunConfig.newBuilder(cloudRunConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + cloudRunConfig_ = value; + } + onChanged(); + } else { + cloudRunConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * 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
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + public Builder clearCloudRunConfig() { + if (cloudRunConfigBuilder_ == null) { + cloudRunConfig_ = null; + onChanged(); + } else { + cloudRunConfig_ = null; + cloudRunConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * 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
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + public com.google.container.v1beta1.CloudRunConfig.Builder getCloudRunConfigBuilder() { + + onChanged(); + return getCloudRunConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + public com.google.container.v1beta1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { + if (cloudRunConfigBuilder_ != null) { + return cloudRunConfigBuilder_.getMessageOrBuilder(); + } else { + return cloudRunConfig_ == null + ? com.google.container.v1beta1.CloudRunConfig.getDefaultInstance() + : cloudRunConfig_; + } + } + /** + * + * + *
+     * 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
+     * at cluster creation time.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.CloudRunConfig, + com.google.container.v1beta1.CloudRunConfig.Builder, + com.google.container.v1beta1.CloudRunConfigOrBuilder> + getCloudRunConfigFieldBuilder() { + if (cloudRunConfigBuilder_ == null) { + cloudRunConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.CloudRunConfig, + com.google.container.v1beta1.CloudRunConfig.Builder, + com.google.container.v1beta1.CloudRunConfigOrBuilder>( + getCloudRunConfig(), getParentForChildren(), isClean()); + cloudRunConfig_ = null; + } + return cloudRunConfigBuilder_; + } + + private com.google.container.v1beta1.DnsCacheConfig dnsCacheConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DnsCacheConfig, + com.google.container.v1beta1.DnsCacheConfig.Builder, + com.google.container.v1beta1.DnsCacheConfigOrBuilder> + dnsCacheConfigBuilder_; + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + * + * @return Whether the dnsCacheConfig field is set. + */ + public boolean hasDnsCacheConfig() { + return dnsCacheConfigBuilder_ != null || dnsCacheConfig_ != null; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + * + * @return The dnsCacheConfig. + */ + public com.google.container.v1beta1.DnsCacheConfig getDnsCacheConfig() { + if (dnsCacheConfigBuilder_ == null) { + return dnsCacheConfig_ == null + ? com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance() + : dnsCacheConfig_; + } else { + return dnsCacheConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder setDnsCacheConfig(com.google.container.v1beta1.DnsCacheConfig value) { + if (dnsCacheConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsCacheConfig_ = value; + onChanged(); + } else { + dnsCacheConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder setDnsCacheConfig( + com.google.container.v1beta1.DnsCacheConfig.Builder builderForValue) { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = builderForValue.build(); + onChanged(); + } else { + dnsCacheConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder mergeDnsCacheConfig(com.google.container.v1beta1.DnsCacheConfig value) { + if (dnsCacheConfigBuilder_ == null) { + if (dnsCacheConfig_ != null) { + dnsCacheConfig_ = + com.google.container.v1beta1.DnsCacheConfig.newBuilder(dnsCacheConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dnsCacheConfig_ = value; + } + onChanged(); + } else { + dnsCacheConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder clearDnsCacheConfig() { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = null; + onChanged(); + } else { + dnsCacheConfig_ = null; + dnsCacheConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public com.google.container.v1beta1.DnsCacheConfig.Builder getDnsCacheConfigBuilder() { + + onChanged(); + return getDnsCacheConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public com.google.container.v1beta1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { + if (dnsCacheConfigBuilder_ != null) { + return dnsCacheConfigBuilder_.getMessageOrBuilder(); + } else { + return dnsCacheConfig_ == null + ? com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance() + : dnsCacheConfig_; + } + } + /** + * + * + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DnsCacheConfig, + com.google.container.v1beta1.DnsCacheConfig.Builder, + com.google.container.v1beta1.DnsCacheConfigOrBuilder> + getDnsCacheConfigFieldBuilder() { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DnsCacheConfig, + com.google.container.v1beta1.DnsCacheConfig.Builder, + com.google.container.v1beta1.DnsCacheConfigOrBuilder>( + getDnsCacheConfig(), getParentForChildren(), isClean()); + dnsCacheConfig_ = null; + } + return dnsCacheConfigBuilder_; + } + + private com.google.container.v1beta1.ConfigConnectorConfig configConnectorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ConfigConnectorConfig, + com.google.container.v1beta1.ConfigConnectorConfig.Builder, + com.google.container.v1beta1.ConfigConnectorConfigOrBuilder> + configConnectorConfigBuilder_; + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + * + * @return Whether the configConnectorConfig field is set. + */ + public boolean hasConfigConnectorConfig() { + return configConnectorConfigBuilder_ != null || configConnectorConfig_ != null; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + * + * @return The configConnectorConfig. + */ + public com.google.container.v1beta1.ConfigConnectorConfig getConfigConnectorConfig() { + if (configConnectorConfigBuilder_ == null) { + return configConnectorConfig_ == null + ? com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance() + : configConnectorConfig_; + } else { + return configConnectorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder setConfigConnectorConfig( + com.google.container.v1beta1.ConfigConnectorConfig value) { + if (configConnectorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configConnectorConfig_ = value; + onChanged(); + } else { + configConnectorConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder setConfigConnectorConfig( + com.google.container.v1beta1.ConfigConnectorConfig.Builder builderForValue) { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = builderForValue.build(); + onChanged(); + } else { + configConnectorConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder mergeConfigConnectorConfig( + com.google.container.v1beta1.ConfigConnectorConfig value) { + if (configConnectorConfigBuilder_ == null) { + if (configConnectorConfig_ != null) { + configConnectorConfig_ = + com.google.container.v1beta1.ConfigConnectorConfig.newBuilder(configConnectorConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + configConnectorConfig_ = value; + } + onChanged(); + } else { + configConnectorConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder clearConfigConnectorConfig() { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = null; + onChanged(); + } else { + configConnectorConfig_ = null; + configConnectorConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + public com.google.container.v1beta1.ConfigConnectorConfig.Builder + getConfigConnectorConfigBuilder() { + + onChanged(); + return getConfigConnectorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + public com.google.container.v1beta1.ConfigConnectorConfigOrBuilder + getConfigConnectorConfigOrBuilder() { + if (configConnectorConfigBuilder_ != null) { + return configConnectorConfigBuilder_.getMessageOrBuilder(); + } else { + return configConnectorConfig_ == null + ? com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance() + : configConnectorConfig_; + } + } + /** + * + * + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ConfigConnectorConfig, + com.google.container.v1beta1.ConfigConnectorConfig.Builder, + com.google.container.v1beta1.ConfigConnectorConfigOrBuilder> + getConfigConnectorConfigFieldBuilder() { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ConfigConnectorConfig, + com.google.container.v1beta1.ConfigConnectorConfig.Builder, + com.google.container.v1beta1.ConfigConnectorConfigOrBuilder>( + getConfigConnectorConfig(), getParentForChildren(), isClean()); + configConnectorConfig_ = null; + } + return configConnectorConfigBuilder_; + } + + private com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + gcePersistentDiskCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder> + gcePersistentDiskCsiDriverConfigBuilder_; + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return The gcePersistentDiskCsiDriverConfig. + */ + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + getGcePersistentDiskCsiDriverConfig() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + return gcePersistentDiskCsiDriverConfig_ == null + ? com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() + : gcePersistentDiskCsiDriverConfig_; + } else { + return gcePersistentDiskCsiDriverConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder setGcePersistentDiskCsiDriverConfig( + com.google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder setGcePersistentDiskCsiDriverConfig( + com.google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public Builder mergeGcePersistentDiskCsiDriverConfig( + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig value) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + if (gcePersistentDiskCsiDriverConfig_ != null) { + gcePersistentDiskCsiDriverConfig_ = + com.google.container.v1beta1.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.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder + getGcePersistentDiskCsiDriverConfigBuilder() { + + onChanged(); + return getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder + getGcePersistentDiskCsiDriverConfigOrBuilder() { + if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { + return gcePersistentDiskCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcePersistentDiskCsiDriverConfig_ == null + ? com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() + : gcePersistentDiskCsiDriverConfig_; + } + } + /** + * + * + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder> + getGcePersistentDiskCsiDriverConfigFieldBuilder() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder>( + getGcePersistentDiskCsiDriverConfig(), getParentForChildren(), isClean()); + gcePersistentDiskCsiDriverConfig_ = null; + } + return gcePersistentDiskCsiDriverConfigBuilder_; + } + + private com.google.container.v1beta1.KalmConfig kalmConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KalmConfig, + com.google.container.v1beta1.KalmConfig.Builder, + com.google.container.v1beta1.KalmConfigOrBuilder> + kalmConfigBuilder_; + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + * + * @return Whether the kalmConfig field is set. + */ + public boolean hasKalmConfig() { + return kalmConfigBuilder_ != null || kalmConfig_ != null; + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + * + * @return The kalmConfig. + */ + public com.google.container.v1beta1.KalmConfig getKalmConfig() { + if (kalmConfigBuilder_ == null) { + return kalmConfig_ == null + ? com.google.container.v1beta1.KalmConfig.getDefaultInstance() + : kalmConfig_; + } else { + return kalmConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + */ + public Builder setKalmConfig(com.google.container.v1beta1.KalmConfig value) { + if (kalmConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kalmConfig_ = value; + onChanged(); + } else { + kalmConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + */ + public Builder setKalmConfig(com.google.container.v1beta1.KalmConfig.Builder builderForValue) { + if (kalmConfigBuilder_ == null) { + kalmConfig_ = builderForValue.build(); + onChanged(); + } else { + kalmConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + */ + public Builder mergeKalmConfig(com.google.container.v1beta1.KalmConfig value) { + if (kalmConfigBuilder_ == null) { + if (kalmConfig_ != null) { + kalmConfig_ = + com.google.container.v1beta1.KalmConfig.newBuilder(kalmConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + kalmConfig_ = value; + } + onChanged(); + } else { + kalmConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + */ + public Builder clearKalmConfig() { + if (kalmConfigBuilder_ == null) { + kalmConfig_ = null; + onChanged(); + } else { + kalmConfig_ = null; + kalmConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + */ + public com.google.container.v1beta1.KalmConfig.Builder getKalmConfigBuilder() { + + onChanged(); + return getKalmConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + */ + public com.google.container.v1beta1.KalmConfigOrBuilder getKalmConfigOrBuilder() { + if (kalmConfigBuilder_ != null) { + return kalmConfigBuilder_.getMessageOrBuilder(); + } else { + return kalmConfig_ == null + ? com.google.container.v1beta1.KalmConfig.getDefaultInstance() + : kalmConfig_; + } + } + /** + * + * + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KalmConfig, + com.google.container.v1beta1.KalmConfig.Builder, + com.google.container.v1beta1.KalmConfigOrBuilder> + getKalmConfigFieldBuilder() { + if (kalmConfigBuilder_ == null) { + kalmConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.KalmConfig, + com.google.container.v1beta1.KalmConfig.Builder, + com.google.container.v1beta1.KalmConfigOrBuilder>( + getKalmConfig(), getParentForChildren(), isClean()); + kalmConfig_ = null; + } + return kalmConfigBuilder_; + } + + @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.AddonsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AddonsConfig) + private static final com.google.container.v1beta1.AddonsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AddonsConfig(); + } + + public static com.google.container.v1beta1.AddonsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddonsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddonsConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/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 new file mode 100644 index 00000000..2c74b9e9 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java @@ -0,0 +1,435 @@ +/* + * 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 AddonsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AddonsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + * + * @return Whether the httpLoadBalancing field is set. + */ + boolean hasHttpLoadBalancing(); + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + * + * @return The httpLoadBalancing. + */ + com.google.container.v1beta1.HttpLoadBalancing getHttpLoadBalancing(); + /** + * + * + *
+   * Configuration for the HTTP (L7) load balancing controller addon, which
+   * makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * .google.container.v1beta1.HttpLoadBalancing http_load_balancing = 1; + */ + com.google.container.v1beta1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder(); + + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return Whether the horizontalPodAutoscaling field is set. + */ + boolean hasHorizontalPodAutoscaling(); + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return The horizontalPodAutoscaling. + */ + com.google.container.v1beta1.HorizontalPodAutoscaling getHorizontalPodAutoscaling(); + /** + * + * + *
+   * Configuration for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * .google.container.v1beta1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder + getHorizontalPodAutoscalingOrBuilder(); + + /** + * + * + *
+   * Configuration for the Kubernetes Dashboard.
+   * This addon is deprecated, and will be disabled in 1.15. It is recommended
+   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+   * workloads and applications. For more information, see:
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+   * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @return Whether the kubernetesDashboard field is set. + */ + @java.lang.Deprecated + boolean hasKubernetesDashboard(); + /** + * + * + *
+   * Configuration for the Kubernetes Dashboard.
+   * This addon is deprecated, and will be disabled in 1.15. It is recommended
+   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+   * workloads and applications. For more information, see:
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+   * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @return The kubernetesDashboard. + */ + @java.lang.Deprecated + com.google.container.v1beta1.KubernetesDashboard getKubernetesDashboard(); + /** + * + * + *
+   * Configuration for the Kubernetes Dashboard.
+   * This addon is deprecated, and will be disabled in 1.15. It is recommended
+   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+   * workloads and applications. For more information, see:
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
+   * 
+ * + * + * .google.container.v1beta1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.container.v1beta1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder(); + + /** + * + * + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + * + * @return Whether the networkPolicyConfig field is set. + */ + boolean hasNetworkPolicyConfig(); + /** + * + * + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + * + * @return The networkPolicyConfig. + */ + com.google.container.v1beta1.NetworkPolicyConfig getNetworkPolicyConfig(); + /** + * + * + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicyConfig network_policy_config = 4; + */ + com.google.container.v1beta1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for Istio, an open platform to connect, manage, and secure
+   * microservices.
+   * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + * + * @return Whether the istioConfig field is set. + */ + boolean hasIstioConfig(); + /** + * + * + *
+   * Configuration for Istio, an open platform to connect, manage, and secure
+   * microservices.
+   * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + * + * @return The istioConfig. + */ + com.google.container.v1beta1.IstioConfig getIstioConfig(); + /** + * + * + *
+   * Configuration for Istio, an open platform to connect, manage, and secure
+   * microservices.
+   * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5; + */ + com.google.container.v1beta1.IstioConfigOrBuilder getIstioConfigOrBuilder(); + + /** + * + * + *
+   * 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
+   * at cluster creation time.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + * + * @return Whether the cloudRunConfig field is set. + */ + boolean hasCloudRunConfig(); + /** + * + * + *
+   * 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
+   * at cluster creation time.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + * + * @return The cloudRunConfig. + */ + com.google.container.v1beta1.CloudRunConfig getCloudRunConfig(); + /** + * + * + *
+   * 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
+   * at cluster creation time.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig cloud_run_config = 7; + */ + com.google.container.v1beta1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + * + * @return Whether the dnsCacheConfig field is set. + */ + boolean hasDnsCacheConfig(); + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + * + * @return The dnsCacheConfig. + */ + com.google.container.v1beta1.DnsCacheConfig getDnsCacheConfig(); + /** + * + * + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + com.google.container.v1beta1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + * + * @return Whether the configConnectorConfig field is set. + */ + boolean hasConfigConnectorConfig(); + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + * + * @return The configConnectorConfig. + */ + com.google.container.v1beta1.ConfigConnectorConfig getConfigConnectorConfig(); + /** + * + * + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1beta1.ConfigConnectorConfig config_connector_config = 10; + */ + com.google.container.v1beta1.ConfigConnectorConfigOrBuilder getConfigConnectorConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + * + * @return The gcePersistentDiskCsiDriverConfig. + */ + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + getGcePersistentDiskCsiDriverConfig(); + /** + * + * + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * + * .google.container.v1beta1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * + */ + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder + getGcePersistentDiskCsiDriverConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for the KALM addon, which manages the lifecycle of k8s
+   * applications.
+   * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + * + * @return Whether the kalmConfig field is set. + */ + boolean hasKalmConfig(); + /** + * + * + *
+   * Configuration for the KALM addon, which manages the lifecycle of k8s
+   * applications.
+   * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + * + * @return The kalmConfig. + */ + com.google.container.v1beta1.KalmConfig getKalmConfig(); + /** + * + * + *
+   * Configuration for the KALM addon, which manages the lifecycle of k8s
+   * applications.
+   * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12; + */ + com.google.container.v1beta1.KalmConfigOrBuilder getKalmConfigOrBuilder(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfig.java new file mode 100644 index 00000000..01c6d480 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfig.java @@ -0,0 +1,738 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for returning group information from authenticators.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AuthenticatorGroupsConfig} + */ +public final class AuthenticatorGroupsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AuthenticatorGroupsConfig) + AuthenticatorGroupsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuthenticatorGroupsConfig.newBuilder() to construct. + private AuthenticatorGroupsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AuthenticatorGroupsConfig() { + securityGroup_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AuthenticatorGroupsConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AuthenticatorGroupsConfig( + 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(); + + securityGroup_ = 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AuthenticatorGroupsConfig.class, + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether this cluster should return group membership lookups
+   * during authentication using a group of security groups.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int SECURITY_GROUP_FIELD_NUMBER = 2; + private volatile java.lang.Object securityGroup_; + /** + * + * + *
+   * The name of the security group-of-groups to be used. Only relevant
+   * if enabled = true.
+   * 
+ * + * string security_group = 2; + * + * @return The securityGroup. + */ + @java.lang.Override + public java.lang.String getSecurityGroup() { + java.lang.Object ref = securityGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + securityGroup_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the security group-of-groups to be used. Only relevant
+   * if enabled = true.
+   * 
+ * + * string security_group = 2; + * + * @return The bytes for securityGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecurityGroupBytes() { + java.lang.Object ref = securityGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityGroup_ = 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 (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!getSecurityGroupBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, securityGroup_); + } + 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 (!getSecurityGroupBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, securityGroup_); + } + 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.AuthenticatorGroupsConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.AuthenticatorGroupsConfig other = + (com.google.container.v1beta1.AuthenticatorGroupsConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getSecurityGroup().equals(other.getSecurityGroup())) 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) + SECURITY_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSecurityGroup().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AuthenticatorGroupsConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AuthenticatorGroupsConfig 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.AuthenticatorGroupsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AuthenticatorGroupsConfig 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.AuthenticatorGroupsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AuthenticatorGroupsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AuthenticatorGroupsConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AuthenticatorGroupsConfig 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.AuthenticatorGroupsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AuthenticatorGroupsConfig 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.AuthenticatorGroupsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AuthenticatorGroupsConfig 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.AuthenticatorGroupsConfig 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 returning group information from authenticators.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AuthenticatorGroupsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AuthenticatorGroupsConfig) + com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AuthenticatorGroupsConfig.class, + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.AuthenticatorGroupsConfig.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; + + securityGroup_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AuthenticatorGroupsConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AuthenticatorGroupsConfig build() { + com.google.container.v1beta1.AuthenticatorGroupsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AuthenticatorGroupsConfig buildPartial() { + com.google.container.v1beta1.AuthenticatorGroupsConfig result = + new com.google.container.v1beta1.AuthenticatorGroupsConfig(this); + result.enabled_ = enabled_; + result.securityGroup_ = securityGroup_; + 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.AuthenticatorGroupsConfig) { + return mergeFrom((com.google.container.v1beta1.AuthenticatorGroupsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AuthenticatorGroupsConfig other) { + if (other == com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getSecurityGroup().isEmpty()) { + securityGroup_ = other.securityGroup_; + 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.AuthenticatorGroupsConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.AuthenticatorGroupsConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether this cluster should return group membership lookups
+     * during authentication using a group of security groups.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether this cluster should return group membership lookups
+     * during authentication using a group of security groups.
+     * 
+ * + * 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 this cluster should return group membership lookups
+     * during authentication using a group of security groups.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object securityGroup_ = ""; + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @return The securityGroup. + */ + public java.lang.String getSecurityGroup() { + java.lang.Object ref = securityGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + securityGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @return The bytes for securityGroup. + */ + public com.google.protobuf.ByteString getSecurityGroupBytes() { + java.lang.Object ref = securityGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @param value The securityGroup to set. + * @return This builder for chaining. + */ + public Builder setSecurityGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + securityGroup_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @return This builder for chaining. + */ + public Builder clearSecurityGroup() { + + securityGroup_ = getDefaultInstance().getSecurityGroup(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the security group-of-groups to be used. Only relevant
+     * if enabled = true.
+     * 
+ * + * string security_group = 2; + * + * @param value The bytes for securityGroup to set. + * @return This builder for chaining. + */ + public Builder setSecurityGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + securityGroup_ = 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.AuthenticatorGroupsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AuthenticatorGroupsConfig) + private static final com.google.container.v1beta1.AuthenticatorGroupsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AuthenticatorGroupsConfig(); + } + + public static com.google.container.v1beta1.AuthenticatorGroupsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthenticatorGroupsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthenticatorGroupsConfig(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.AuthenticatorGroupsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfigOrBuilder.java new file mode 100644 index 00000000..99a8d7b9 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfigOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface AuthenticatorGroupsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AuthenticatorGroupsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether this cluster should return group membership lookups
+   * during authentication using a group of security groups.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+   * The name of the security group-of-groups to be used. Only relevant
+   * if enabled = true.
+   * 
+ * + * string security_group = 2; + * + * @return The securityGroup. + */ + java.lang.String getSecurityGroup(); + /** + * + * + *
+   * The name of the security group-of-groups to be used. Only relevant
+   * if enabled = true.
+   * 
+ * + * string security_group = 2; + * + * @return The bytes for securityGroup. + */ + com.google.protobuf.ByteString getSecurityGroupBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java new file mode 100644 index 00000000..a777330f --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java @@ -0,0 +1,837 @@ +/* + * 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; + +/** + * + * + *
+ * AutoUpgradeOptions defines the set of options for the user to control how
+ * the Auto Upgrades will proceed.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AutoUpgradeOptions} + */ +public final class AutoUpgradeOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AutoUpgradeOptions) + AutoUpgradeOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutoUpgradeOptions.newBuilder() to construct. + private AutoUpgradeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutoUpgradeOptions() { + autoUpgradeStartTime_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoUpgradeOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AutoUpgradeOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + autoUpgradeStartTime_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: + { + if (!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_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoUpgradeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AutoUpgradeOptions.class, + com.google.container.v1beta1.AutoUpgradeOptions.Builder.class); + } + + public static final int AUTO_UPGRADE_START_TIME_FIELD_NUMBER = 1; + private volatile java.lang.Object autoUpgradeStartTime_; + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The autoUpgradeStartTime. + */ + @java.lang.Override + public java.lang.String getAutoUpgradeStartTime() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoUpgradeStartTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The bytes for autoUpgradeStartTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoUpgradeStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getAutoUpgradeStartTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoUpgradeStartTime_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAutoUpgradeStartTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoUpgradeStartTime_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.AutoUpgradeOptions)) { + return super.equals(obj); + } + com.google.container.v1beta1.AutoUpgradeOptions other = + (com.google.container.v1beta1.AutoUpgradeOptions) obj; + + if (!getAutoUpgradeStartTime().equals(other.getAutoUpgradeStartTime())) return false; + if (!getDescription().equals(other.getDescription())) 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) + AUTO_UPGRADE_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getAutoUpgradeStartTime().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.AutoUpgradeOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * AutoUpgradeOptions defines the set of options for the user to control how
+   * the Auto Upgrades will proceed.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AutoUpgradeOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AutoUpgradeOptions) + com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoUpgradeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AutoUpgradeOptions.class, + com.google.container.v1beta1.AutoUpgradeOptions.Builder.class); + } + + // Construct using com.google.container.v1beta1.AutoUpgradeOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + autoUpgradeStartTime_ = ""; + + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions getDefaultInstanceForType() { + return com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions build() { + com.google.container.v1beta1.AutoUpgradeOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions buildPartial() { + com.google.container.v1beta1.AutoUpgradeOptions result = + new com.google.container.v1beta1.AutoUpgradeOptions(this); + result.autoUpgradeStartTime_ = autoUpgradeStartTime_; + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.AutoUpgradeOptions) { + return mergeFrom((com.google.container.v1beta1.AutoUpgradeOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AutoUpgradeOptions other) { + if (other == com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance()) + return this; + if (!other.getAutoUpgradeStartTime().isEmpty()) { + autoUpgradeStartTime_ = other.autoUpgradeStartTime_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.AutoUpgradeOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.AutoUpgradeOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object autoUpgradeStartTime_ = ""; + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The autoUpgradeStartTime. + */ + public java.lang.String getAutoUpgradeStartTime() { + java.lang.Object ref = autoUpgradeStartTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoUpgradeStartTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The bytes for autoUpgradeStartTime. + */ + public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { + java.lang.Object ref = autoUpgradeStartTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoUpgradeStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @param value The autoUpgradeStartTime to set. + * @return This builder for chaining. + */ + public Builder setAutoUpgradeStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + autoUpgradeStartTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return This builder for chaining. + */ + public Builder clearAutoUpgradeStartTime() { + + autoUpgradeStartTime_ = getDefaultInstance().getAutoUpgradeStartTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the approximate start time for the upgrades, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string auto_upgrade_start_time = 1; + * + * @param value The bytes for autoUpgradeStartTime to set. + * @return This builder for chaining. + */ + public Builder setAutoUpgradeStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + autoUpgradeStartTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] This field is set when upgrades are about to commence
+     * with the description of the upgrade.
+     * 
+ * + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + @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.AutoUpgradeOptions) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AutoUpgradeOptions) + private static final com.google.container.v1beta1.AutoUpgradeOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AutoUpgradeOptions(); + } + + public static com.google.container.v1beta1.AutoUpgradeOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoUpgradeOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AutoUpgradeOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java new file mode 100644 index 00000000..45248671 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface AutoUpgradeOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AutoUpgradeOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The autoUpgradeStartTime. + */ + java.lang.String getAutoUpgradeStartTime(); + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the approximate start time for the upgrades, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string auto_upgrade_start_time = 1; + * + * @return The bytes for autoUpgradeStartTime. + */ + com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes(); + + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * [Output only] This field is set when upgrades are about to commence
+   * with the description of the upgrade.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java new file mode 100644 index 00000000..ea4458ac --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java @@ -0,0 +1,2847 @@ +/* + * 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; + +/** + * + * + *
+ * AutoprovisioningNodePoolDefaults contains defaults for a node pool created
+ * by NAP.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AutoprovisioningNodePoolDefaults} + */ +public final class AutoprovisioningNodePoolDefaults extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AutoprovisioningNodePoolDefaults) + AutoprovisioningNodePoolDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutoprovisioningNodePoolDefaults.newBuilder() to construct. + private AutoprovisioningNodePoolDefaults( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutoprovisioningNodePoolDefaults() { + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + serviceAccount_ = ""; + minCpuPlatform_ = ""; + diskType_ = ""; + bootDiskKmsKey_ = ""; + imageType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoprovisioningNodePoolDefaults(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AutoprovisioningNodePoolDefaults( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + oauthScopes_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccount_ = s; + break; + } + case 26: + { + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder subBuilder = null; + if (upgradeSettings_ != null) { + subBuilder = upgradeSettings_.toBuilder(); + } + upgradeSettings_ = + input.readMessage( + com.google.container.v1beta1.NodePool.UpgradeSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(upgradeSettings_); + upgradeSettings_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.container.v1beta1.NodeManagement.Builder subBuilder = null; + if (management_ != null) { + subBuilder = management_.toBuilder(); + } + management_ = + input.readMessage( + com.google.container.v1beta1.NodeManagement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(management_); + management_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + minCpuPlatform_ = s; + break; + } + case 48: + { + diskSizeGb_ = input.readInt32(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + diskType_ = s; + break; + } + case 66: + { + com.google.container.v1beta1.ShieldedInstanceConfig.Builder subBuilder = null; + if (shieldedInstanceConfig_ != null) { + subBuilder = shieldedInstanceConfig_.toBuilder(); + } + shieldedInstanceConfig_ = + input.readMessage( + com.google.container.v1beta1.ShieldedInstanceConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(shieldedInstanceConfig_); + shieldedInstanceConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + bootDiskKmsKey_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + imageType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = oauthScopes_.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_AutoprovisioningNodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.class, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder.class); + } + + public static final int OAUTH_SCOPES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList oauthScopes_; + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @return A list containing the oauthScopes. + */ + public com.google.protobuf.ProtocolStringList getOauthScopesList() { + return oauthScopes_; + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @return The count of oauthScopes. + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + public com.google.protobuf.ByteString getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; + private volatile java.lang.Object serviceAccount_; + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 2; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 2; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 3; + private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return upgradeSettings_ != null; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder + getUpgradeSettingsOrBuilder() { + return getUpgradeSettings(); + } + + public static final int MANAGEMENT_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NodeManagement management_; + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + * + * @return Whether the management field is set. + */ + @java.lang.Override + public boolean hasManagement() { + return management_ != null; + } + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + * + * @return The management. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeManagement getManagement() { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + return getManagement(); + } + + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 5; + private volatile java.lang.Object minCpuPlatform_; + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5; + * + * @return The minCpuPlatform. + */ + @java.lang.Override + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } + } + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5; + * + * @return The bytes for minCpuPlatform. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_SIZE_GB_FIELD_NUMBER = 6; + private int diskSizeGb_; + /** + * + * + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 6; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int DISK_TYPE_FIELD_NUMBER = 7; + private volatile java.lang.Object diskType_; + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * + * @return The diskType. + */ + @java.lang.Override + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } + } + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * + * @return The bytes for diskType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1beta1.ShieldedInstanceConfig shieldedInstanceConfig_; + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfig_ != null; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return The shieldedInstanceConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null + ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return getShieldedInstanceConfig(); + } + + public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 9; + private volatile java.lang.Object bootDiskKmsKey_; + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bootDiskKmsKey. + */ + @java.lang.Override + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } + } + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bytes for bootDiskKmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_TYPE_FIELD_NUMBER = 10; + private volatile java.lang.Object imageType_; + /** + * + * + *
+   * The image type to use for node created by NodeAutoprovisioning.
+   * 
+ * + * string image_type = 10; + * + * @return The imageType. + */ + @java.lang.Override + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } + } + /** + * + * + *
+   * The image type to use for node created by NodeAutoprovisioning.
+   * 
+ * + * string image_type = 10; + * + * @return The bytes for imageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < oauthScopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oauthScopes_.getRaw(i)); + } + if (!getServiceAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); + } + if (upgradeSettings_ != null) { + output.writeMessage(3, getUpgradeSettings()); + } + if (management_ != null) { + output.writeMessage(4, getManagement()); + } + if (!getMinCpuPlatformBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, minCpuPlatform_); + } + if (diskSizeGb_ != 0) { + output.writeInt32(6, diskSizeGb_); + } + if (!getDiskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, diskType_); + } + if (shieldedInstanceConfig_ != null) { + output.writeMessage(8, getShieldedInstanceConfig()); + } + if (!getBootDiskKmsKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, bootDiskKmsKey_); + } + if (!getImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, imageType_); + } + 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 < oauthScopes_.size(); i++) { + dataSize += computeStringSizeNoTag(oauthScopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getOauthScopesList().size(); + } + if (!getServiceAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); + } + if (upgradeSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpgradeSettings()); + } + if (management_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getManagement()); + } + if (!getMinCpuPlatformBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, minCpuPlatform_); + } + if (diskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, diskSizeGb_); + } + if (!getDiskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, diskType_); + } + if (shieldedInstanceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getShieldedInstanceConfig()); + } + if (!getBootDiskKmsKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, bootDiskKmsKey_); + } + if (!getImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, imageType_); + } + 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.AutoprovisioningNodePoolDefaults)) { + return super.equals(obj); + } + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults other = + (com.google.container.v1beta1.AutoprovisioningNodePoolDefaults) obj; + + if (!getOauthScopesList().equals(other.getOauthScopesList())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; + if (hasUpgradeSettings()) { + if (!getUpgradeSettings().equals(other.getUpgradeSettings())) return false; + } + if (hasManagement() != other.hasManagement()) return false; + if (hasManagement()) { + if (!getManagement().equals(other.getManagement())) return false; + } + if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; + if (getDiskSizeGb() != other.getDiskSizeGb()) return false; + if (!getDiskType().equals(other.getDiskType())) return false; + if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; + if (hasShieldedInstanceConfig()) { + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; + } + if (!getBootDiskKmsKey().equals(other.getBootDiskKmsKey())) return false; + if (!getImageType().equals(other.getImageType())) 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 (getOauthScopesCount() > 0) { + hash = (37 * hash) + OAUTH_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getOauthScopesList().hashCode(); + } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + if (hasUpgradeSettings()) { + hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeSettings().hashCode(); + } + if (hasManagement()) { + hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getManagement().hashCode(); + } + hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getMinCpuPlatform().hashCode(); + hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDiskSizeGb(); + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDiskType().hashCode(); + if (hasShieldedInstanceConfig()) { + hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); + } + hash = (37 * hash) + BOOT_DISK_KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getBootDiskKmsKey().hashCode(); + hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getImageType().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AutoprovisioningNodePoolDefaults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AutoprovisioningNodePoolDefaults 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.AutoprovisioningNodePoolDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AutoprovisioningNodePoolDefaults 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.AutoprovisioningNodePoolDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.AutoprovisioningNodePoolDefaults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.AutoprovisioningNodePoolDefaults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AutoprovisioningNodePoolDefaults 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.AutoprovisioningNodePoolDefaults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AutoprovisioningNodePoolDefaults 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.AutoprovisioningNodePoolDefaults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AutoprovisioningNodePoolDefaults 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.AutoprovisioningNodePoolDefaults 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; + } + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool created
+   * by NAP.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AutoprovisioningNodePoolDefaults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AutoprovisioningNodePoolDefaults) + com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.class, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder.class); + } + + // Construct using com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.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(); + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + serviceAccount_ = ""; + + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + minCpuPlatform_ = ""; + + diskSizeGb_ = 0; + + diskType_ = ""; + + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + bootDiskKmsKey_ = ""; + + imageType_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + getDefaultInstanceForType() { + return com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults build() { + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults buildPartial() { + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults result = + new com.google.container.v1beta1.AutoprovisioningNodePoolDefaults(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = oauthScopes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.oauthScopes_ = oauthScopes_; + result.serviceAccount_ = serviceAccount_; + if (upgradeSettingsBuilder_ == null) { + result.upgradeSettings_ = upgradeSettings_; + } else { + result.upgradeSettings_ = upgradeSettingsBuilder_.build(); + } + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + result.minCpuPlatform_ = minCpuPlatform_; + result.diskSizeGb_ = diskSizeGb_; + result.diskType_ = diskType_; + if (shieldedInstanceConfigBuilder_ == null) { + result.shieldedInstanceConfig_ = shieldedInstanceConfig_; + } else { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); + } + result.bootDiskKmsKey_ = bootDiskKmsKey_; + result.imageType_ = imageType_; + 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.AutoprovisioningNodePoolDefaults) { + return mergeFrom((com.google.container.v1beta1.AutoprovisioningNodePoolDefaults) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AutoprovisioningNodePoolDefaults other) { + if (other + == com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance()) + return this; + if (!other.oauthScopes_.isEmpty()) { + if (oauthScopes_.isEmpty()) { + oauthScopes_ = other.oauthScopes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOauthScopesIsMutable(); + oauthScopes_.addAll(other.oauthScopes_); + } + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + onChanged(); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } + if (!other.getBootDiskKmsKey().isEmpty()) { + bootDiskKmsKey_ = other.bootDiskKmsKey_; + onChanged(); + } + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + 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.AutoprovisioningNodePoolDefaults parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.AutoprovisioningNodePoolDefaults) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureOauthScopesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @return A list containing the oauthScopes. + */ + public com.google.protobuf.ProtocolStringList getOauthScopesList() { + return oauthScopes_.getUnmodifiableView(); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @return The count of oauthScopes. + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + public com.google.protobuf.ByteString getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index to set the value at. + * @param value The oauthScopes to set. + * @return This builder for chaining. + */ + public Builder setOauthScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @param value The oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addOauthScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @param values The oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addAllOauthScopes(java.lang.Iterable values) { + ensureOauthScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oauthScopes_); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @return This builder for chaining. + */ + public Builder clearOauthScopes() { + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 1; + * + * @param value The bytes of the oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 2; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 2; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 2; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 2; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 2; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> + upgradeSettingsBuilder_; + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return The upgradeSettings. + */ + public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder setUpgradeSettings(com.google.container.v1beta1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder setUpgradeSettings( + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder mergeUpgradeSettings( + com.google.container.v1beta1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (upgradeSettings_ != null) { + upgradeSettings_ = + com.google.container.v1beta1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeSettings_ = value; + } + onChanged(); + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder clearUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + onChanged(); + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public com.google.container.v1beta1.NodePool.UpgradeSettings.Builder + getUpgradeSettingsBuilder() { + + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder + getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), getParentForChildren(), isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + private com.google.container.v1beta1.NodeManagement management_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder> + managementBuilder_; + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + * + * @return Whether the management field is set. + */ + public boolean hasManagement() { + return managementBuilder_ != null || management_ != null; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + * + * @return The management. + */ + public com.google.container.v1beta1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public Builder setManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public Builder setManagement( + com.google.container.v1beta1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public Builder mergeManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (management_ != null) { + management_ = + com.google.container.v1beta1.NodeManagement.newBuilder(management_) + .mergeFrom(value) + .buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { + + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder>( + getManagement(), getParentForChildren(), isClean()); + management_ = null; + } + return managementBuilder_; + } + + private java.lang.Object minCpuPlatform_ = ""; + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5; + * + * @return The minCpuPlatform. + */ + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5; + * + * @return The bytes for minCpuPlatform. + */ + public com.google.protobuf.ByteString getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5; + * + * @param value The minCpuPlatform to set. + * @return This builder for chaining. + */ + public Builder setMinCpuPlatform(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + minCpuPlatform_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5; + * + * @return This builder for chaining. + */ + public Builder clearMinCpuPlatform() { + + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5; + * + * @param value The bytes for minCpuPlatform to set. + * @return This builder for chaining. + */ + public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + minCpuPlatform_ = value; + onChanged(); + return this; + } + + private int diskSizeGb_; + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 6; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 6; + * + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(int value) { + + diskSizeGb_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 6; + * + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private java.lang.Object diskType_ = ""; + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @return The diskType. + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @return The bytes for diskType. + */ + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + diskType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + + diskType_ = getDefaultInstance().getDiskType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 7; + * + * @param value The bytes for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + diskType_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedInstanceConfig, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder, + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return The shieldedInstanceConfig. + */ + public com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null + ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1beta1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1beta1.ShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder mergeShieldedInstanceConfig( + com.google.container.v1beta1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (shieldedInstanceConfig_ != null) { + shieldedInstanceConfig_ = + com.google.container.v1beta1.ShieldedInstanceConfig.newBuilder( + shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedInstanceConfig_ = value; + } + onChanged(); + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder clearShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + onChanged(); + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.container.v1beta1.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null + ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedInstanceConfig, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder, + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedInstanceConfig, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder, + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + + private java.lang.Object bootDiskKmsKey_ = ""; + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bootDiskKmsKey. + */ + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bytes for bootDiskKmsKey. + */ + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @param value The bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @return This builder for chaining. + */ + public Builder clearBootDiskKmsKey() { + + bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * + * @param value The bytes for bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + * + * + *
+     * The image type to use for node created by NodeAutoprovisioning.
+     * 
+ * + * string image_type = 10; + * + * @return The imageType. + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The image type to use for node created by NodeAutoprovisioning.
+     * 
+ * + * string image_type = 10; + * + * @return The bytes for imageType. + */ + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The image type to use for node created by NodeAutoprovisioning.
+     * 
+ * + * string image_type = 10; + * + * @param value The imageType to set. + * @return This builder for chaining. + */ + public Builder setImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The image type to use for node created by NodeAutoprovisioning.
+     * 
+ * + * string image_type = 10; + * + * @return This builder for chaining. + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The image type to use for node created by NodeAutoprovisioning.
+     * 
+ * + * string image_type = 10; + * + * @param value The bytes for imageType to set. + * @return This builder for chaining. + */ + public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = 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.AutoprovisioningNodePoolDefaults) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AutoprovisioningNodePoolDefaults) + private static final com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AutoprovisioningNodePoolDefaults(); + } + + public static com.google.container.v1beta1.AutoprovisioningNodePoolDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoprovisioningNodePoolDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AutoprovisioningNodePoolDefaults(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.AutoprovisioningNodePoolDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java new file mode 100644 index 00000000..2e03e48c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -0,0 +1,399 @@ +/* + * 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 AutoprovisioningNodePoolDefaultsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AutoprovisioningNodePoolDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @return A list containing the oauthScopes. + */ + java.util.List getOauthScopesList(); + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @return The count of oauthScopes. + */ + int getOauthScopesCount(); + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + java.lang.String getOauthScopes(int index); + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + com.google.protobuf.ByteString getOauthScopesBytes(int index); + + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 2; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 2; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return Whether the upgradeSettings field is set. + */ + boolean hasUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + * + * @return The upgradeSettings. + */ + com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); + + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + * + * @return Whether the management field is set. + */ + boolean hasManagement(); + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + * + * @return The management. + */ + com.google.container.v1beta1.NodeManagement getManagement(); + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5; + * + * @return The minCpuPlatform. + */ + java.lang.String getMinCpuPlatform(); + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5; + * + * @return The bytes for minCpuPlatform. + */ + com.google.protobuf.ByteString getMinCpuPlatformBytes(); + + /** + * + * + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 6; + * + * @return The diskSizeGb. + */ + int getDiskSizeGb(); + + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * + * @return The diskType. + */ + java.lang.String getDiskType(); + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * + * @return The bytes for diskType. + */ + com.google.protobuf.ByteString getDiskTypeBytes(); + + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + boolean hasShieldedInstanceConfig(); + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + * + * @return The shieldedInstanceConfig. + */ + com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig(); + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bootDiskKmsKey. + */ + java.lang.String getBootDiskKmsKey(); + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * + * @return The bytes for bootDiskKmsKey. + */ + com.google.protobuf.ByteString getBootDiskKmsKeyBytes(); + + /** + * + * + *
+   * The image type to use for node created by NodeAutoprovisioning.
+   * 
+ * + * string image_type = 10; + * + * @return The imageType. + */ + java.lang.String getImageType(); + /** + * + * + *
+   * The image type to use for node created by NodeAutoprovisioning.
+   * 
+ * + * string image_type = 10; + * + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString getImageTypeBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java new file mode 100644 index 00000000..266836a1 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java @@ -0,0 +1,549 @@ +/* + * 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 Binary Authorization.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.BinaryAuthorization} + */ +public final class BinaryAuthorization extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.BinaryAuthorization) + BinaryAuthorizationOrBuilder { + private static final long serialVersionUID = 0L; + // Use BinaryAuthorization.newBuilder() to construct. + private BinaryAuthorization(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BinaryAuthorization() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BinaryAuthorization(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BinaryAuthorization( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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_BinaryAuthorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_BinaryAuthorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BinaryAuthorization.class, + com.google.container.v1beta1.BinaryAuthorization.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enable Binary Authorization for this cluster. If enabled, all container
+   * images will be validated by Google Binauthz.
+   * 
+ * + * bool enabled = 1; + * + * @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.BinaryAuthorization)) { + return super.equals(obj); + } + com.google.container.v1beta1.BinaryAuthorization other = + (com.google.container.v1beta1.BinaryAuthorization) 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.BinaryAuthorization parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.BinaryAuthorization parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.BinaryAuthorization parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.BinaryAuthorization parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.BinaryAuthorization parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.BinaryAuthorization prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.BinaryAuthorization} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.BinaryAuthorization) + com.google.container.v1beta1.BinaryAuthorizationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_BinaryAuthorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_BinaryAuthorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BinaryAuthorization.class, + com.google.container.v1beta1.BinaryAuthorization.Builder.class); + } + + // Construct using com.google.container.v1beta1.BinaryAuthorization.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_BinaryAuthorization_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization getDefaultInstanceForType() { + return com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization build() { + com.google.container.v1beta1.BinaryAuthorization result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization buildPartial() { + com.google.container.v1beta1.BinaryAuthorization result = + new com.google.container.v1beta1.BinaryAuthorization(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.BinaryAuthorization) { + return mergeFrom((com.google.container.v1beta1.BinaryAuthorization) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.BinaryAuthorization other) { + if (other == com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.BinaryAuthorization parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.BinaryAuthorization) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Enable Binary Authorization for this cluster. If enabled, all container
+     * images will be validated by Google Binauthz.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enable Binary Authorization for this cluster. If enabled, all container
+     * images will be validated by Google Binauthz.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable Binary Authorization for this cluster. If enabled, all container
+     * images will be validated by Google Binauthz.
+     * 
+ * + * bool enabled = 1; + * + * @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.BinaryAuthorization) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.BinaryAuthorization) + private static final com.google.container.v1beta1.BinaryAuthorization DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.BinaryAuthorization(); + } + + public static com.google.container.v1beta1.BinaryAuthorization getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinaryAuthorization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinaryAuthorization(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java new file mode 100644 index 00000000..f67c9767 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface BinaryAuthorizationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BinaryAuthorization) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enable Binary Authorization for this cluster. If enabled, all container
+   * images will be validated by Google Binauthz.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java new file mode 100644 index 00000000..5d5e04b3 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java @@ -0,0 +1,1257 @@ +/* + * 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; + +/** + * + * + *
+ * CancelOperationRequest cancels a single operation.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CancelOperationRequest} + */ +public final class CancelOperationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CancelOperationRequest) + CancelOperationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CancelOperationRequest.newBuilder() to construct. + private CancelOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CancelOperationRequest() { + projectId_ = ""; + zone_ = ""; + operationId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CancelOperationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CancelOperationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + operationId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_CancelOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CancelOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CancelOperationRequest.class, + com.google.container.v1beta1.CancelOperationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object operationId_; + /** + * + * + *
+   * 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]; + * + * + * @return The operationId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for operationId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 4; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getOperationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getOperationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.CancelOperationRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.CancelOperationRequest other = + (com.google.container.v1beta1.CancelOperationRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getOperationId().equals(other.getOperationId())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CancelOperationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.CancelOperationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CancelOperationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CancelOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.CancelOperationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * CancelOperationRequest cancels a single operation.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CancelOperationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CancelOperationRequest) + com.google.container.v1beta1.CancelOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CancelOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CancelOperationRequest.class, + com.google.container.v1beta1.CancelOperationRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.CancelOperationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + operationId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CancelOperationRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CancelOperationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CancelOperationRequest build() { + com.google.container.v1beta1.CancelOperationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CancelOperationRequest buildPartial() { + com.google.container.v1beta1.CancelOperationRequest result = + new com.google.container.v1beta1.CancelOperationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.operationId_ = operationId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.CancelOperationRequest) { + return mergeFrom((com.google.container.v1beta1.CancelOperationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CancelOperationRequest other) { + if (other == com.google.container.v1beta1.CancelOperationRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.CancelOperationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.CancelOperationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The operationId. + */ + @java.lang.Deprecated + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for operationId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The operationId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to cancel.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 4; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CancelOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CancelOperationRequest) + private static final com.google.container.v1beta1.CancelOperationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CancelOperationRequest(); + } + + public static com.google.container.v1beta1.CancelOperationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CancelOperationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.CancelOperationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java new file mode 100644 index 00000000..9a251289 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * 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 CancelOperationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CancelOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The operationId. + */ + @java.lang.Deprecated + java.lang.String getOperationId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for operationId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getOperationIdBytes(); + + /** + * + * + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 4; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, operation id) of the operation to cancel.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java new file mode 100644 index 00000000..1d4f2c77 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.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 client certificates on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ClientCertificateConfig} + */ +public final class ClientCertificateConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClientCertificateConfig) + ClientCertificateConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClientCertificateConfig.newBuilder() to construct. + private ClientCertificateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClientCertificateConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClientCertificateConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ClientCertificateConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + issueClientCertificate_ = input.readBool(); + break; + } + default: + { + if (!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_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClientCertificateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClientCertificateConfig.class, + com.google.container.v1beta1.ClientCertificateConfig.Builder.class); + } + + public static final int ISSUE_CLIENT_CERTIFICATE_FIELD_NUMBER = 1; + private boolean issueClientCertificate_; + /** + * + * + *
+   * Issue a client certificate.
+   * 
+ * + * bool issue_client_certificate = 1; + * + * @return The issueClientCertificate. + */ + @java.lang.Override + public boolean getIssueClientCertificate() { + return issueClientCertificate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (issueClientCertificate_ != false) { + output.writeBool(1, issueClientCertificate_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (issueClientCertificate_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, issueClientCertificate_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ClientCertificateConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ClientCertificateConfig other = + (com.google.container.v1beta1.ClientCertificateConfig) obj; + + if (getIssueClientCertificate() != other.getIssueClientCertificate()) 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) + ISSUE_CLIENT_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIssueClientCertificate()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ClientCertificateConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ClientCertificateConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for client certificates on the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ClientCertificateConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ClientCertificateConfig) + com.google.container.v1beta1.ClientCertificateConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClientCertificateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClientCertificateConfig.class, + com.google.container.v1beta1.ClientCertificateConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ClientCertificateConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + issueClientCertificate_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig build() { + com.google.container.v1beta1.ClientCertificateConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig buildPartial() { + com.google.container.v1beta1.ClientCertificateConfig result = + new com.google.container.v1beta1.ClientCertificateConfig(this); + result.issueClientCertificate_ = issueClientCertificate_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.ClientCertificateConfig) { + return mergeFrom((com.google.container.v1beta1.ClientCertificateConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ClientCertificateConfig other) { + if (other == com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance()) + return this; + if (other.getIssueClientCertificate() != false) { + setIssueClientCertificate(other.getIssueClientCertificate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ClientCertificateConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ClientCertificateConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean issueClientCertificate_; + /** + * + * + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + * + * @return The issueClientCertificate. + */ + @java.lang.Override + public boolean getIssueClientCertificate() { + return issueClientCertificate_; + } + /** + * + * + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + * + * @param value The issueClientCertificate to set. + * @return This builder for chaining. + */ + public Builder setIssueClientCertificate(boolean value) { + + issueClientCertificate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + * + * @return This builder for chaining. + */ + public Builder clearIssueClientCertificate() { + + issueClientCertificate_ = 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.ClientCertificateConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClientCertificateConfig) + private static final com.google.container.v1beta1.ClientCertificateConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ClientCertificateConfig(); + } + + public static com.google.container.v1beta1.ClientCertificateConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientCertificateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClientCertificateConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java new file mode 100644 index 00000000..140c54b4 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.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 ClientCertificateConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClientCertificateConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Issue a client certificate.
+   * 
+ * + * bool issue_client_certificate = 1; + * + * @return The issueClientCertificate. + */ + boolean getIssueClientCertificate(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfig.java new file mode 100644 index 00000000..a39ecef1 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfig.java @@ -0,0 +1,870 @@ +/* + * 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 options for the Cloud Run feature.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CloudRunConfig} + */ +public final class CloudRunConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CloudRunConfig) + CloudRunConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudRunConfig.newBuilder() to construct. + private CloudRunConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudRunConfig() { + loadBalancerType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudRunConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CloudRunConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disabled_ = input.readBool(); + break; + } + case 24: + { + int rawValue = input.readEnum(); + + loadBalancerType_ = 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_CloudRunConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CloudRunConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CloudRunConfig.class, + com.google.container.v1beta1.CloudRunConfig.Builder.class); + } + + /** + * + * + *
+   * Load balancer type of ingress service of Cloud Run.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.CloudRunConfig.LoadBalancerType} + */ + public enum LoadBalancerType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Load balancer type for Cloud Run is unspecified.
+     * 
+ * + * LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + */ + LOAD_BALANCER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Install external load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_EXTERNAL = 1; + */ + LOAD_BALANCER_TYPE_EXTERNAL(1), + /** + * + * + *
+     * Install internal load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_INTERNAL = 2; + */ + LOAD_BALANCER_TYPE_INTERNAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Load balancer type for Cloud Run is unspecified.
+     * 
+ * + * LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + */ + public static final int LOAD_BALANCER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Install external load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_EXTERNAL = 1; + */ + public static final int LOAD_BALANCER_TYPE_EXTERNAL_VALUE = 1; + /** + * + * + *
+     * Install internal load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_INTERNAL = 2; + */ + public static final int LOAD_BALANCER_TYPE_INTERNAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LoadBalancerType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LoadBalancerType forNumber(int value) { + switch (value) { + case 0: + return LOAD_BALANCER_TYPE_UNSPECIFIED; + case 1: + return LOAD_BALANCER_TYPE_EXTERNAL; + case 2: + return LOAD_BALANCER_TYPE_INTERNAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LoadBalancerType findValueByNumber(int number) { + return LoadBalancerType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.CloudRunConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final LoadBalancerType[] VALUES = values(); + + public static LoadBalancerType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LoadBalancerType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.CloudRunConfig.LoadBalancerType) + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Whether Cloud Run addon is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + public static final int LOAD_BALANCER_TYPE_FIELD_NUMBER = 3; + private int loadBalancerType_; + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The enum numeric value on the wire for loadBalancerType. + */ + @java.lang.Override + public int getLoadBalancerTypeValue() { + return loadBalancerType_; + } + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The loadBalancerType. + */ + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType result = + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); + return result == null + ? com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.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 (disabled_ != false) { + output.writeBool(1, disabled_); + } + if (loadBalancerType_ + != com.google.container.v1beta1.CloudRunConfig.LoadBalancerType + .LOAD_BALANCER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, loadBalancerType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); + } + if (loadBalancerType_ + != com.google.container.v1beta1.CloudRunConfig.LoadBalancerType + .LOAD_BALANCER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, loadBalancerType_); + } + 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.CloudRunConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.CloudRunConfig other = + (com.google.container.v1beta1.CloudRunConfig) obj; + + if (getDisabled() != other.getDisabled()) return false; + if (loadBalancerType_ != other.loadBalancerType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (37 * hash) + LOAD_BALANCER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + loadBalancerType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.CloudRunConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CloudRunConfig 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.CloudRunConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CloudRunConfig 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.CloudRunConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CloudRunConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CloudRunConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CloudRunConfig 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.CloudRunConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CloudRunConfig 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.CloudRunConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CloudRunConfig 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.CloudRunConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration options for the Cloud Run feature.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CloudRunConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CloudRunConfig) + com.google.container.v1beta1.CloudRunConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CloudRunConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CloudRunConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CloudRunConfig.class, + com.google.container.v1beta1.CloudRunConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.CloudRunConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + loadBalancerType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CloudRunConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.CloudRunConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfig build() { + com.google.container.v1beta1.CloudRunConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfig buildPartial() { + com.google.container.v1beta1.CloudRunConfig result = + new com.google.container.v1beta1.CloudRunConfig(this); + result.disabled_ = disabled_; + result.loadBalancerType_ = loadBalancerType_; + 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.CloudRunConfig) { + return mergeFrom((com.google.container.v1beta1.CloudRunConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CloudRunConfig other) { + if (other == com.google.container.v1beta1.CloudRunConfig.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + if (other.loadBalancerType_ != 0) { + setLoadBalancerTypeValue(other.getLoadBalancerTypeValue()); + } + 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.CloudRunConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.CloudRunConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_; + /** + * + * + *
+     * Whether Cloud Run addon is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether Cloud Run addon is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Cloud Run addon is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + private int loadBalancerType_ = 0; + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * + * @return The enum numeric value on the wire for loadBalancerType. + */ + @java.lang.Override + public int getLoadBalancerTypeValue() { + return loadBalancerType_; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * + * @param value The enum numeric value on the wire for loadBalancerType to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerTypeValue(int value) { + + loadBalancerType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * + * @return The loadBalancerType. + */ + @java.lang.Override + public com.google.container.v1beta1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType result = + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); + return result == null + ? com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * + * @param value The loadBalancerType to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerType( + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType value) { + if (value == null) { + throw new NullPointerException(); + } + + loadBalancerType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearLoadBalancerType() { + + loadBalancerType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.CloudRunConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CloudRunConfig) + private static final com.google.container.v1beta1.CloudRunConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CloudRunConfig(); + } + + public static com.google.container.v1beta1.CloudRunConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudRunConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudRunConfig(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.CloudRunConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfigOrBuilder.java new file mode 100644 index 00000000..bff94563 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfigOrBuilder.java @@ -0,0 +1,63 @@ +/* + * 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 CloudRunConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CloudRunConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Cloud Run addon is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); + + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The enum numeric value on the wire for loadBalancerType. + */ + int getLoadBalancerTypeValue(); + /** + * + * + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1beta1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * + * @return The loadBalancerType. + */ + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType getLoadBalancerType(); +} 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 new file mode 100644 index 00000000..6c988ba2 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java @@ -0,0 +1,15376 @@ +/* + * 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; + +/** + * + * + *
+ * A Google Kubernetes Engine cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Cluster} + */ +public final class Cluster extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Cluster) + ClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Cluster.newBuilder() to construct. + private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Cluster() { + name_ = ""; + description_ = ""; + loggingService_ = ""; + monitoringService_ = ""; + network_ = ""; + clusterIpv4Cidr_ = ""; + subnetwork_ = ""; + nodePools_ = java.util.Collections.emptyList(); + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + labelFingerprint_ = ""; + masterIpv4CidrBlock_ = ""; + selfLink_ = ""; + zone_ = ""; + endpoint_ = ""; + initialClusterVersion_ = ""; + currentMasterVersion_ = ""; + currentNodeVersion_ = ""; + createTime_ = ""; + status_ = 0; + statusMessage_ = ""; + servicesIpv4Cidr_ = ""; + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + expireTime_ = ""; + location_ = ""; + tpuIpv4CidrBlock_ = ""; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Cluster(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Cluster( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 24: + { + initialNodeCount_ = input.readInt32(); + break; + } + case 34: + { + com.google.container.v1beta1.NodeConfig.Builder subBuilder = null; + if (nodeConfig_ != null) { + subBuilder = nodeConfig_.toBuilder(); + } + nodeConfig_ = + input.readMessage( + com.google.container.v1beta1.NodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeConfig_); + nodeConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.container.v1beta1.MasterAuth.Builder subBuilder = null; + if (masterAuth_ != null) { + subBuilder = masterAuth_.toBuilder(); + } + masterAuth_ = + input.readMessage( + com.google.container.v1beta1.MasterAuth.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(masterAuth_); + masterAuth_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + loggingService_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + monitoringService_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterIpv4Cidr_ = s; + break; + } + case 82: + { + com.google.container.v1beta1.AddonsConfig.Builder subBuilder = null; + if (addonsConfig_ != null) { + subBuilder = addonsConfig_.toBuilder(); + } + addonsConfig_ = + input.readMessage( + com.google.container.v1beta1.AddonsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(addonsConfig_); + addonsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + subnetwork_ = s; + break; + } + case 98: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nodePools_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodePools_.add( + input.readMessage( + com.google.container.v1beta1.NodePool.parser(), extensionRegistry)); + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + locations_.add(s); + break; + } + case 112: + { + enableKubernetesAlpha_ = input.readBool(); + break; + } + case 122: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + resourceLabels_ = + com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry resourceLabels__ = + input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + resourceLabels_ + .getMutableMap() + .put(resourceLabels__.getKey(), resourceLabels__.getValue()); + break; + } + case 130: + { + java.lang.String s = input.readStringRequireUtf8(); + + labelFingerprint_ = s; + break; + } + case 146: + { + com.google.container.v1beta1.LegacyAbac.Builder subBuilder = null; + if (legacyAbac_ != null) { + subBuilder = legacyAbac_.toBuilder(); + } + legacyAbac_ = + input.readMessage( + com.google.container.v1beta1.LegacyAbac.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(legacyAbac_); + legacyAbac_ = subBuilder.buildPartial(); + } + + break; + } + case 154: + { + com.google.container.v1beta1.NetworkPolicy.Builder subBuilder = null; + if (networkPolicy_ != null) { + subBuilder = networkPolicy_.toBuilder(); + } + networkPolicy_ = + input.readMessage( + com.google.container.v1beta1.NetworkPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkPolicy_); + networkPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 162: + { + com.google.container.v1beta1.IPAllocationPolicy.Builder subBuilder = null; + if (ipAllocationPolicy_ != null) { + subBuilder = ipAllocationPolicy_.toBuilder(); + } + ipAllocationPolicy_ = + input.readMessage( + com.google.container.v1beta1.IPAllocationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ipAllocationPolicy_); + ipAllocationPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 178: + { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder subBuilder = null; + if (masterAuthorizedNetworksConfig_ != null) { + subBuilder = masterAuthorizedNetworksConfig_.toBuilder(); + } + masterAuthorizedNetworksConfig_ = + input.readMessage( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(masterAuthorizedNetworksConfig_); + masterAuthorizedNetworksConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 186: + { + com.google.container.v1beta1.MaintenancePolicy.Builder subBuilder = null; + if (maintenancePolicy_ != null) { + subBuilder = maintenancePolicy_.toBuilder(); + } + maintenancePolicy_ = + input.readMessage( + com.google.container.v1beta1.MaintenancePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenancePolicy_); + maintenancePolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 194: + { + com.google.container.v1beta1.BinaryAuthorization.Builder subBuilder = null; + if (binaryAuthorization_ != null) { + subBuilder = binaryAuthorization_.toBuilder(); + } + binaryAuthorization_ = + input.readMessage( + com.google.container.v1beta1.BinaryAuthorization.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binaryAuthorization_); + binaryAuthorization_ = subBuilder.buildPartial(); + } + + break; + } + case 202: + { + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder subBuilder = null; + if (podSecurityPolicyConfig_ != null) { + subBuilder = podSecurityPolicyConfig_.toBuilder(); + } + podSecurityPolicyConfig_ = + input.readMessage( + com.google.container.v1beta1.PodSecurityPolicyConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(podSecurityPolicyConfig_); + podSecurityPolicyConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 210: + { + com.google.container.v1beta1.ClusterAutoscaling.Builder subBuilder = null; + if (autoscaling_ != null) { + subBuilder = autoscaling_.toBuilder(); + } + autoscaling_ = + input.readMessage( + com.google.container.v1beta1.ClusterAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaling_); + autoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 218: + { + com.google.container.v1beta1.NetworkConfig.Builder subBuilder = null; + if (networkConfig_ != null) { + subBuilder = networkConfig_.toBuilder(); + } + networkConfig_ = + input.readMessage( + com.google.container.v1beta1.NetworkConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkConfig_); + networkConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 224: + { + privateCluster_ = input.readBool(); + break; + } + case 234: + { + java.lang.String s = input.readStringRequireUtf8(); + + masterIpv4CidrBlock_ = s; + break; + } + case 242: + { + com.google.container.v1beta1.MaxPodsConstraint.Builder subBuilder = null; + if (defaultMaxPodsConstraint_ != null) { + subBuilder = defaultMaxPodsConstraint_.toBuilder(); + } + defaultMaxPodsConstraint_ = + input.readMessage( + com.google.container.v1beta1.MaxPodsConstraint.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultMaxPodsConstraint_); + defaultMaxPodsConstraint_ = subBuilder.buildPartial(); + } + + break; + } + case 266: + { + com.google.container.v1beta1.ResourceUsageExportConfig.Builder subBuilder = null; + if (resourceUsageExportConfig_ != null) { + subBuilder = resourceUsageExportConfig_.toBuilder(); + } + resourceUsageExportConfig_ = + input.readMessage( + com.google.container.v1beta1.ResourceUsageExportConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceUsageExportConfig_); + resourceUsageExportConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 274: + { + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder subBuilder = null; + if (authenticatorGroupsConfig_ != null) { + subBuilder = authenticatorGroupsConfig_.toBuilder(); + } + authenticatorGroupsConfig_ = + input.readMessage( + com.google.container.v1beta1.AuthenticatorGroupsConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authenticatorGroupsConfig_); + authenticatorGroupsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 298: + { + com.google.container.v1beta1.PrivateClusterConfig.Builder subBuilder = null; + if (privateClusterConfig_ != null) { + subBuilder = privateClusterConfig_.toBuilder(); + } + privateClusterConfig_ = + input.readMessage( + com.google.container.v1beta1.PrivateClusterConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(privateClusterConfig_); + privateClusterConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 306: + { + com.google.container.v1beta1.DatabaseEncryption.Builder subBuilder = null; + if (databaseEncryption_ != null) { + subBuilder = databaseEncryption_.toBuilder(); + } + databaseEncryption_ = + input.readMessage( + com.google.container.v1beta1.DatabaseEncryption.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(databaseEncryption_); + databaseEncryption_ = subBuilder.buildPartial(); + } + + break; + } + case 314: + { + com.google.container.v1beta1.VerticalPodAutoscaling.Builder subBuilder = null; + if (verticalPodAutoscaling_ != null) { + subBuilder = verticalPodAutoscaling_.toBuilder(); + } + verticalPodAutoscaling_ = + input.readMessage( + com.google.container.v1beta1.VerticalPodAutoscaling.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(verticalPodAutoscaling_); + verticalPodAutoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 322: + { + com.google.container.v1beta1.ShieldedNodes.Builder subBuilder = null; + if (shieldedNodes_ != null) { + subBuilder = shieldedNodes_.toBuilder(); + } + shieldedNodes_ = + input.readMessage( + com.google.container.v1beta1.ShieldedNodes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(shieldedNodes_); + shieldedNodes_ = subBuilder.buildPartial(); + } + + break; + } + case 330: + { + com.google.container.v1beta1.ReleaseChannel.Builder subBuilder = null; + if (releaseChannel_ != null) { + subBuilder = releaseChannel_.toBuilder(); + } + releaseChannel_ = + input.readMessage( + com.google.container.v1beta1.ReleaseChannel.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(releaseChannel_); + releaseChannel_ = subBuilder.buildPartial(); + } + + break; + } + case 346: + { + com.google.container.v1beta1.WorkloadIdentityConfig.Builder subBuilder = null; + if (workloadIdentityConfig_ != null) { + subBuilder = workloadIdentityConfig_.toBuilder(); + } + workloadIdentityConfig_ = + input.readMessage( + com.google.container.v1beta1.WorkloadIdentityConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workloadIdentityConfig_); + workloadIdentityConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 370: + { + com.google.container.v1beta1.ClusterTelemetry.Builder subBuilder = null; + if (clusterTelemetry_ != null) { + subBuilder = clusterTelemetry_.toBuilder(); + } + clusterTelemetry_ = + input.readMessage( + com.google.container.v1beta1.ClusterTelemetry.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clusterTelemetry_); + clusterTelemetry_ = subBuilder.buildPartial(); + } + + break; + } + case 378: + { + com.google.container.v1beta1.TpuConfig.Builder subBuilder = null; + if (tpuConfig_ != null) { + subBuilder = tpuConfig_.toBuilder(); + } + tpuConfig_ = + input.readMessage( + com.google.container.v1beta1.TpuConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tpuConfig_); + tpuConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 394: + { + com.google.container.v1beta1.NotificationConfig.Builder subBuilder = null; + if (notificationConfig_ != null) { + subBuilder = notificationConfig_.toBuilder(); + } + notificationConfig_ = + input.readMessage( + com.google.container.v1beta1.NotificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(notificationConfig_); + notificationConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 402: + { + com.google.container.v1beta1.ConfidentialNodes.Builder subBuilder = null; + if (confidentialNodes_ != null) { + subBuilder = confidentialNodes_.toBuilder(); + } + confidentialNodes_ = + input.readMessage( + com.google.container.v1beta1.ConfidentialNodes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(confidentialNodes_); + confidentialNodes_ = subBuilder.buildPartial(); + } + + break; + } + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + + selfLink_ = s; + break; + } + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 818: + { + java.lang.String s = input.readStringRequireUtf8(); + + endpoint_ = s; + break; + } + case 826: + { + java.lang.String s = input.readStringRequireUtf8(); + + initialClusterVersion_ = s; + break; + } + case 834: + { + java.lang.String s = input.readStringRequireUtf8(); + + currentMasterVersion_ = s; + break; + } + case 842: + { + java.lang.String s = input.readStringRequireUtf8(); + + currentNodeVersion_ = s; + break; + } + case 850: + { + java.lang.String s = input.readStringRequireUtf8(); + + createTime_ = s; + break; + } + case 856: + { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 866: + { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 872: + { + nodeIpv4CidrSize_ = input.readInt32(); + break; + } + case 882: + { + java.lang.String s = input.readStringRequireUtf8(); + + servicesIpv4Cidr_ = s; + break; + } + case 890: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + instanceGroupUrls_.add(s); + break; + } + case 896: + { + currentNodeCount_ = input.readInt32(); + break; + } + case 906: + { + java.lang.String s = input.readStringRequireUtf8(); + + expireTime_ = s; + break; + } + case 914: + { + java.lang.String s = input.readStringRequireUtf8(); + + location_ = s; + break; + } + case 920: + { + enableTpu_ = input.readBool(); + break; + } + case 930: + { + java.lang.String s = input.readStringRequireUtf8(); + + tpuIpv4CidrBlock_ = s; + break; + } + case 946: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + conditions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + conditions_.add( + input.readMessage( + com.google.container.v1beta1.StatusCondition.parser(), extensionRegistry)); + break; + } + case 994: + { + com.google.container.v1beta1.Master.Builder subBuilder = null; + if (master_ != null) { + subBuilder = master_.toBuilder(); + } + master_ = + input.readMessage( + com.google.container.v1beta1.Master.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(master_); + master_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + locations_ = locations_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Cluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 15: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Cluster.class, + com.google.container.v1beta1.Cluster.Builder.class); + } + + /** + * + * + *
+   * The current status of the cluster.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Cluster.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * The PROVISIONING state indicates the cluster is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
+     * The RUNNING state indicates the cluster has been created and is fully
+     * usable.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the cluster, such as upgrading the master or node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 3; + */ + RECONCILING(3), + /** + * + * + *
+     * The STOPPING state indicates the cluster is being deleted.
+     * 
+ * + * STOPPING = 4; + */ + STOPPING(4), + /** + * + * + *
+     * The ERROR state indicates the cluster may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 5; + */ + ERROR(5), + /** + * + * + *
+     * The DEGRADED state indicates the cluster requires user action to restore
+     * full functionality. Details can be found in the `statusMessage` field.
+     * 
+ * + * DEGRADED = 6; + */ + DEGRADED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The PROVISIONING state indicates the cluster is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + * + * + *
+     * The RUNNING state indicates the cluster has been created and is fully
+     * usable.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * + * + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the cluster, such as upgrading the master or node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 3; + */ + public static final int RECONCILING_VALUE = 3; + /** + * + * + *
+     * The STOPPING state indicates the cluster is being deleted.
+     * 
+ * + * STOPPING = 4; + */ + public static final int STOPPING_VALUE = 4; + /** + * + * + *
+     * The ERROR state indicates the cluster may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 5; + */ + public static final int ERROR_VALUE = 5; + /** + * + * + *
+     * The DEGRADED state indicates the cluster requires user action to restore
+     * full functionality. Details can be found in the `statusMessage` field.
+     * 
+ * + * DEGRADED = 6; + */ + public static final int DEGRADED_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return RUNNING; + case 3: + return RECONCILING; + case 4: + return STOPPING; + case 5: + return ERROR; + case 6: + return DEGRADED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.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.Cluster.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.Cluster.Status) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of this cluster. The name must be unique within this project
+   * and location (e.g. zone or region), and can be up to 40 characters with
+   * the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of this cluster. The name must be unique within this project
+   * and location (e.g. zone or region), and can be up to 40 characters with
+   * the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * + * + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; + private int initialNodeCount_; + /** + * + * + *
+   * The number of nodes to create in this cluster. You must ensure that your
+   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "node_config") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * This field is deprecated, use node_pool.initial_node_count instead.
+   * 
+ * + * int32 initial_node_count = 3 [deprecated = true]; + * + * @return The initialNodeCount. + */ + @java.lang.Override + @java.lang.Deprecated + public int getInitialNodeCount() { + return initialNodeCount_; + } + + public static final int NODE_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NodeConfig nodeConfig_; + /** + * + * + *
+   * Parameters used in creating the cluster's nodes.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool. (For configuration of each node pool, see
+   * `node_pool.config`)
+   * If unspecified, the defaults are used.
+   * This field is deprecated, use node_pool.config instead.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + * + * @return Whether the nodeConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasNodeConfig() { + return nodeConfig_ != null; + } + /** + * + * + *
+   * Parameters used in creating the cluster's nodes.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool. (For configuration of each node pool, see
+   * `node_pool.config`)
+   * If unspecified, the defaults are used.
+   * This field is deprecated, use node_pool.config instead.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + * + * @return The nodeConfig. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.NodeConfig getNodeConfig() { + return nodeConfig_ == null + ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() + : nodeConfig_; + } + /** + * + * + *
+   * Parameters used in creating the cluster's nodes.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool. (For configuration of each node pool, see
+   * `node_pool.config`)
+   * If unspecified, the defaults are used.
+   * This field is deprecated, use node_pool.config instead.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder() { + return getNodeConfig(); + } + + public static final int MASTER_AUTH_FIELD_NUMBER = 5; + private com.google.container.v1beta1.MasterAuth masterAuth_; + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + * + * @return Whether the masterAuth field is set. + */ + @java.lang.Override + public boolean hasMasterAuth() { + return masterAuth_ != null; + } + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + * + * @return The masterAuth. + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuth getMasterAuth() { + return masterAuth_ == null + ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() + : masterAuth_; + } + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthOrBuilder getMasterAuthOrBuilder() { + return getMasterAuth(); + } + + public static final int LOGGING_SERVICE_FIELD_NUMBER = 6; + private volatile java.lang.Object loggingService_; + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 6; + * + * @return The loggingService. + */ + @java.lang.Override + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } + } + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 6; + * + * @return The bytes for loggingService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONITORING_SERVICE_FIELD_NUMBER = 7; + private volatile java.lang.Object monitoringService_; + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 7; + * + * @return The monitoringService. + */ + @java.lang.Override + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } + } + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 7; + * + * @return The bytes for monitoringService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 8; + private volatile java.lang.Object network_; + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used. On output this shows the network ID instead of the
+   * name.
+   * 
+ * + * string network = 8; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used. On output this shows the network ID instead of the
+   * name.
+   * 
+ * + * string network = 8; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 9; + private volatile java.lang.Object clusterIpv4Cidr_; + /** + * + * + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The clusterIpv4Cidr. + */ + @java.lang.Override + public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The bytes for clusterIpv4Cidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDONS_CONFIG_FIELD_NUMBER = 10; + private com.google.container.v1beta1.AddonsConfig addonsConfig_; + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + * + * @return Whether the addonsConfig field is set. + */ + @java.lang.Override + public boolean hasAddonsConfig() { + return addonsConfig_ != null; + } + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + * + * @return The addonsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { + return addonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : addonsConfig_; + } + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + @java.lang.Override + public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + return getAddonsConfig(); + } + + public static final int SUBNETWORK_FIELD_NUMBER = 11; + private volatile java.lang.Object subnetwork_; + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + * + * @return The subnetwork. + */ + @java.lang.Override + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + * + * @return The bytes for subnetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOLS_FIELD_NUMBER = 12; + private java.util.List nodePools_; + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + @java.lang.Override + public java.util.List getNodePoolsList() { + return nodePools_; + } + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + @java.lang.Override + public java.util.List + getNodePoolsOrBuilderList() { + return nodePools_; + } + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + @java.lang.Override + public int getNodePoolsCount() { + return nodePools_.size(); + } + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool getNodePools(int index) { + return nodePools_.get(index); + } + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { + return nodePools_.get(index); + } + + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER = 14; + private boolean enableKubernetesAlpha_; + /** + * + * + *
+   * Kubernetes alpha features are enabled on this cluster. This includes alpha
+   * API groups (e.g. v1beta1) and features that may not be production ready in
+   * the kubernetes version of the master and nodes.
+   * The cluster has no SLA for uptime and master/node upgrades are disabled.
+   * Alpha enabled clusters are automatically deleted thirty days after
+   * creation.
+   * 
+ * + * bool enable_kubernetes_alpha = 14; + * + * @return The enableKubernetesAlpha. + */ + @java.lang.Override + public boolean getEnableKubernetesAlpha() { + return enableKubernetesAlpha_; + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 15; + + private static final class ResourceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public boolean containsResourceLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetResourceLabels().getMap().containsKey(key); + } + /** Use {@link #getResourceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceLabels() { + return getResourceLabelsMap(); + } + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABEL_FINGERPRINT_FIELD_NUMBER = 16; + private volatile java.lang.Object labelFingerprint_; + /** + * + * + *
+   * The fingerprint of the set of labels for this cluster.
+   * 
+ * + * string label_fingerprint = 16; + * + * @return The labelFingerprint. + */ + @java.lang.Override + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } + } + /** + * + * + *
+   * The fingerprint of the set of labels for this cluster.
+   * 
+ * + * string label_fingerprint = 16; + * + * @return The bytes for labelFingerprint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LEGACY_ABAC_FIELD_NUMBER = 18; + private com.google.container.v1beta1.LegacyAbac legacyAbac_; + /** + * + * + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + * + * @return Whether the legacyAbac field is set. + */ + @java.lang.Override + public boolean hasLegacyAbac() { + return legacyAbac_ != null; + } + /** + * + * + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + * + * @return The legacyAbac. + */ + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac getLegacyAbac() { + return legacyAbac_ == null + ? com.google.container.v1beta1.LegacyAbac.getDefaultInstance() + : legacyAbac_; + } + /** + * + * + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + @java.lang.Override + public com.google.container.v1beta1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { + return getLegacyAbac(); + } + + public static final int NETWORK_POLICY_FIELD_NUMBER = 19; + private com.google.container.v1beta1.NetworkPolicy networkPolicy_; + /** + * + * + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + * + * @return Whether the networkPolicy field is set. + */ + @java.lang.Override + public boolean hasNetworkPolicy() { + return networkPolicy_ != null; + } + /** + * + * + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + * + * @return The networkPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { + return networkPolicy_ == null + ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } + /** + * + * + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + return getNetworkPolicy(); + } + + public static final int IP_ALLOCATION_POLICY_FIELD_NUMBER = 20; + private com.google.container.v1beta1.IPAllocationPolicy ipAllocationPolicy_; + /** + * + * + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return Whether the ipAllocationPolicy field is set. + */ + @java.lang.Override + public boolean hasIpAllocationPolicy() { + return ipAllocationPolicy_ != null; + } + /** + * + * + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return The ipAllocationPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy getIpAllocationPolicy() { + return ipAllocationPolicy_ == null + ? com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() + : ipAllocationPolicy_; + } + /** + * + * + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { + return getIpAllocationPolicy(); + } + + public static final int MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1beta1.MasterAuthorizedNetworksConfig + masterAuthorizedNetworksConfig_; + /** + * + * + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + @java.lang.Override + public boolean hasMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ == null + ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + /** + * + * + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder() { + return getMasterAuthorizedNetworksConfig(); + } + + public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 23; + private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; + /** + * + * + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + * + * @return Whether the maintenancePolicy field is set. + */ + @java.lang.Override + public boolean hasMaintenancePolicy() { + return maintenancePolicy_ != null; + } + /** + * + * + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + * + * @return The maintenancePolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { + return maintenancePolicy_ == null + ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } + /** + * + * + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + return getMaintenancePolicy(); + } + + public static final int BINARY_AUTHORIZATION_FIELD_NUMBER = 24; + private com.google.container.v1beta1.BinaryAuthorization binaryAuthorization_; + /** + * + * + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + * + * @return Whether the binaryAuthorization field is set. + */ + @java.lang.Override + public boolean hasBinaryAuthorization() { + return binaryAuthorization_ != null; + } + /** + * + * + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + * + * @return The binaryAuthorization. + */ + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization getBinaryAuthorization() { + return binaryAuthorization_ == null + ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() + : binaryAuthorization_; + } + /** + * + * + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorizationOrBuilder + getBinaryAuthorizationOrBuilder() { + return getBinaryAuthorization(); + } + + public static final int POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1beta1.PodSecurityPolicyConfig podSecurityPolicyConfig_; + /** + * + * + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + * @return Whether the podSecurityPolicyConfig field is set. + */ + @java.lang.Override + public boolean hasPodSecurityPolicyConfig() { + return podSecurityPolicyConfig_ != null; + } + /** + * + * + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + * @return The podSecurityPolicyConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig getPodSecurityPolicyConfig() { + return podSecurityPolicyConfig_ == null + ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() + : podSecurityPolicyConfig_; + } + /** + * + * + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder + getPodSecurityPolicyConfigOrBuilder() { + return getPodSecurityPolicyConfig(); + } + + public static final int AUTOSCALING_FIELD_NUMBER = 26; + private com.google.container.v1beta1.ClusterAutoscaling autoscaling_; + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + * + * @return Whether the autoscaling field is set. + */ + @java.lang.Override + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + * + * @return The autoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling getAutoscaling() { + return autoscaling_ == null + ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() + : autoscaling_; + } + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + public static final int NETWORK_CONFIG_FIELD_NUMBER = 27; + private com.google.container.v1beta1.NetworkConfig networkConfig_; + /** + * + * + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + * + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return networkConfig_ != null; + } + /** + * + * + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + * + * @return The networkConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig getNetworkConfig() { + return networkConfig_ == null + ? com.google.container.v1beta1.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + /** + * + * + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + return getNetworkConfig(); + } + + public static final int PRIVATE_CLUSTER_FIELD_NUMBER = 28; + private boolean privateCluster_; + /** + * + * + *
+   * If this is a private cluster setup. Private clusters are clusters that, by
+   * default have no external IP addresses on the nodes and where nodes and the
+   * master communicate over private IP addresses.
+   * This field is deprecated, use private_cluster_config.enable_private_nodes
+   * instead.
+   * 
+ * + * bool private_cluster = 28 [deprecated = true]; + * + * @return The privateCluster. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getPrivateCluster() { + return privateCluster_; + } + + public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 29; + private volatile java.lang.Object masterIpv4CidrBlock_; + /** + * + * + *
+   * The IP prefix in CIDR notation to use for the hosted master network.
+   * This prefix will be used for assigning private IP addresses to the
+   * master or set of masters, as well as the ILB VIP.
+   * This field is deprecated, use
+   * private_cluster_config.master_ipv4_cidr_block instead.
+   * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @return The masterIpv4CidrBlock. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP prefix in CIDR notation to use for the hosted master network.
+   * This prefix will be used for assigning private IP addresses to the
+   * master or set of masters, as well as the ILB VIP.
+   * This field is deprecated, use
+   * private_cluster_config.master_ipv4_cidr_block instead.
+   * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER = 30; + private com.google.container.v1beta1.MaxPodsConstraint defaultMaxPodsConstraint_; + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return Whether the defaultMaxPodsConstraint field is set. + */ + @java.lang.Override + public boolean hasDefaultMaxPodsConstraint() { + return defaultMaxPodsConstraint_ != null; + } + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return The defaultMaxPodsConstraint. + */ + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint getDefaultMaxPodsConstraint() { + return defaultMaxPodsConstraint_ == null + ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() + : defaultMaxPodsConstraint_; + } + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder + getDefaultMaxPodsConstraintOrBuilder() { + return getDefaultMaxPodsConstraint(); + } + + public static final int RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 33; + private com.google.container.v1beta1.ResourceUsageExportConfig resourceUsageExportConfig_; + /** + * + * + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config unspecified.
+   * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * + * @return Whether the resourceUsageExportConfig field is set. + */ + @java.lang.Override + public boolean hasResourceUsageExportConfig() { + return resourceUsageExportConfig_ != null; + } + /** + * + * + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config unspecified.
+   * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * + * @return The resourceUsageExportConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig getResourceUsageExportConfig() { + return resourceUsageExportConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() + : resourceUsageExportConfig_; + } + /** + * + * + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config unspecified.
+   * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder + getResourceUsageExportConfigOrBuilder() { + return getResourceUsageExportConfig(); + } + + public static final int AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 34; + private com.google.container.v1beta1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; + /** + * + * + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * + * @return Whether the authenticatorGroupsConfig field is set. + */ + @java.lang.Override + public boolean hasAuthenticatorGroupsConfig() { + return authenticatorGroupsConfig_ != null; + } + /** + * + * + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * + * @return The authenticatorGroupsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig() { + return authenticatorGroupsConfig_ == null + ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() + : authenticatorGroupsConfig_; + } + /** + * + * + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + @java.lang.Override + public com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder + getAuthenticatorGroupsConfigOrBuilder() { + return getAuthenticatorGroupsConfig(); + } + + public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 37; + private com.google.container.v1beta1.PrivateClusterConfig privateClusterConfig_; + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + * + * @return Whether the privateClusterConfig field is set. + */ + @java.lang.Override + public boolean hasPrivateClusterConfig() { + return privateClusterConfig_ != null; + } + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + * + * @return The privateClusterConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig() { + return privateClusterConfig_ == null + ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() + : privateClusterConfig_; + } + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder() { + return getPrivateClusterConfig(); + } + + public static final int VERTICAL_POD_AUTOSCALING_FIELD_NUMBER = 39; + private com.google.container.v1beta1.VerticalPodAutoscaling verticalPodAutoscaling_; + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * + * @return Whether the verticalPodAutoscaling field is set. + */ + @java.lang.Override + public boolean hasVerticalPodAutoscaling() { + return verticalPodAutoscaling_ != null; + } + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * + * @return The verticalPodAutoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscaling getVerticalPodAutoscaling() { + return verticalPodAutoscaling_ == null + ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() + : verticalPodAutoscaling_; + } + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder + getVerticalPodAutoscalingOrBuilder() { + return getVerticalPodAutoscaling(); + } + + public static final int SHIELDED_NODES_FIELD_NUMBER = 40; + private com.google.container.v1beta1.ShieldedNodes shieldedNodes_; + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + * + * @return Whether the shieldedNodes field is set. + */ + @java.lang.Override + public boolean hasShieldedNodes() { + return shieldedNodes_ != null; + } + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + * + * @return The shieldedNodes. + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodes getShieldedNodes() { + return shieldedNodes_ == null + ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() + : shieldedNodes_; + } + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { + return getShieldedNodes(); + } + + public static final int RELEASE_CHANNEL_FIELD_NUMBER = 41; + private com.google.container.v1beta1.ReleaseChannel releaseChannel_; + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * + * @return Whether the releaseChannel field is set. + */ + @java.lang.Override + public boolean hasReleaseChannel() { + return releaseChannel_ != null; + } + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * + * @return The releaseChannel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel getReleaseChannel() { + return releaseChannel_ == null + ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + return getReleaseChannel(); + } + + public static final int WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 43; + private com.google.container.v1beta1.WorkloadIdentityConfig workloadIdentityConfig_; + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return Whether the workloadIdentityConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadIdentityConfig() { + return workloadIdentityConfig_ != null; + } + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return The workloadIdentityConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfig getWorkloadIdentityConfig() { + return workloadIdentityConfig_ == null + ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder + getWorkloadIdentityConfigOrBuilder() { + return getWorkloadIdentityConfig(); + } + + public static final int CLUSTER_TELEMETRY_FIELD_NUMBER = 46; + private com.google.container.v1beta1.ClusterTelemetry clusterTelemetry_; + /** + * + * + *
+   * Telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + * + * @return Whether the clusterTelemetry field is set. + */ + @java.lang.Override + public boolean hasClusterTelemetry() { + return clusterTelemetry_ != null; + } + /** + * + * + *
+   * Telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + * + * @return The clusterTelemetry. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry getClusterTelemetry() { + return clusterTelemetry_ == null + ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() + : clusterTelemetry_; + } + /** + * + * + *
+   * Telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetryOrBuilder getClusterTelemetryOrBuilder() { + return getClusterTelemetry(); + } + + public static final int TPU_CONFIG_FIELD_NUMBER = 47; + private com.google.container.v1beta1.TpuConfig tpuConfig_; + /** + * + * + *
+   * Configuration for Cloud TPU support;
+   * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + * + * @return Whether the tpuConfig field is set. + */ + @java.lang.Override + public boolean hasTpuConfig() { + return tpuConfig_ != null; + } + /** + * + * + *
+   * Configuration for Cloud TPU support;
+   * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + * + * @return The tpuConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.TpuConfig getTpuConfig() { + return tpuConfig_ == null + ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() + : tpuConfig_; + } + /** + * + * + *
+   * Configuration for Cloud TPU support;
+   * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + @java.lang.Override + public com.google.container.v1beta1.TpuConfigOrBuilder getTpuConfigOrBuilder() { + return getTpuConfig(); + } + + public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 49; + private com.google.container.v1beta1.NotificationConfig notificationConfig_; + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.NotificationConfig notification_config = 49; + * + * @return The notificationConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig getNotificationConfig() { + return notificationConfig_ == null + ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() + : notificationConfig_; + } + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + return getNotificationConfig(); + } + + public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 50; + private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; + /** + * + * + *
+   * Configuration of Confidential Nodes
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.ConfidentialNodes confidential_nodes = 50; + * + * @return The confidentialNodes. + */ + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes() { + return confidentialNodes_ == null + ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() + : confidentialNodes_; + } + /** + * + * + *
+   * Configuration of Confidential Nodes
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + return getConfidentialNodes(); + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + private volatile java.lang.Object selfLink_; + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 101; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENDPOINT_FIELD_NUMBER = 102; + private volatile java.lang.Object endpoint_; + /** + * + * + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + * + * @return The endpoint. + */ + @java.lang.Override + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + * + * @return The bytes for endpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INITIAL_CLUSTER_VERSION_FIELD_NUMBER = 103; + private volatile java.lang.Object initialClusterVersion_; + /** + * + * + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + * + * @return The initialClusterVersion. + */ + @java.lang.Override + public java.lang.String getInitialClusterVersion() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialClusterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + * + * @return The bytes for initialClusterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInitialClusterVersionBytes() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + initialClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_MASTER_VERSION_FIELD_NUMBER = 104; + private volatile java.lang.Object currentMasterVersion_; + /** + * + * + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + * + * @return The currentMasterVersion. + */ + @java.lang.Override + public java.lang.String getCurrentMasterVersion() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentMasterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + * + * @return The bytes for currentMasterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_NODE_VERSION_FIELD_NUMBER = 105; + private volatile java.lang.Object currentNodeVersion_; + /** + * + * + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/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 current_node_version = 105 [deprecated = true]; + * + * @return The currentNodeVersion. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getCurrentNodeVersion() { + java.lang.Object ref = currentNodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentNodeVersion_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/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 current_node_version = 105 [deprecated = true]; + * + * @return The bytes for currentNodeVersion. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { + java.lang.Object ref = currentNodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 106; + private volatile java.lang.Object createTime_; + /** + * + * + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + * + * @return The createTime. + */ + @java.lang.Override + public java.lang.String getCreateTime() { + java.lang.Object ref = createTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + createTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + * + * @return The bytes for createTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreateTimeBytes() { + java.lang.Object ref = createTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + createTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 107; + private int status_; + /** + * + * + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @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.v1beta1.Cluster.Status status = 107; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.Cluster.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Cluster.Status result = + com.google.container.v1beta1.Cluster.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Cluster.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 108; + private volatile java.lang.Object statusMessage_; + /** + * + * + *
+   * [Output only] 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.Override + @java.lang.Deprecated + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] 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.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_SIZE_FIELD_NUMBER = 109; + private int nodeIpv4CidrSize_; + /** + * + * + *
+   * [Output only] The size of the address space on each node for hosting
+   * containers. This is provisioned from within the `container_ipv4_cidr`
+   * range. 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_; + } + + public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 110; + private volatile java.lang.Object servicesIpv4Cidr_; + /** + * + * + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The servicesIpv4Cidr. + */ + @java.lang.Override + public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The bytes for servicesIpv4Cidr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 111; + private com.google.protobuf.LazyStringList instanceGroupUrls_; + /** + * + * + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return A list containing the instanceGroupUrls. + */ + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { + return instanceGroupUrls_; + } + /** + * + * + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @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); + } + + public static final int CURRENT_NODE_COUNT_FIELD_NUMBER = 112; + 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_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 113; + private volatile java.lang.Object expireTime_; + /** + * + * + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + * + * @return The expireTime. + */ + @java.lang.Override + public java.lang.String getExpireTime() { + java.lang.Object ref = expireTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expireTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + * + * @return The bytes for expireTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpireTimeBytes() { + java.lang.Object ref = expireTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expireTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 114; + private volatile java.lang.Object location_; + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](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. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](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. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_TPU_FIELD_NUMBER = 115; + private boolean enableTpu_; + /** + * + * + *
+   * Enable the ability to use Cloud TPUs in this cluster.
+   * This field is deprecated, use tpu_config.enabled instead.
+   * 
+ * + * bool enable_tpu = 115; + * + * @return The enableTpu. + */ + @java.lang.Override + public boolean getEnableTpu() { + return enableTpu_; + } + + public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 116; + private volatile java.lang.Object tpuIpv4CidrBlock_; + /** + * + * + *
+   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`).
+   * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The tpuIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`).
+   * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The bytes for tpuIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tpuIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_ENCRYPTION_FIELD_NUMBER = 38; + private com.google.container.v1beta1.DatabaseEncryption databaseEncryption_; + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + * + * @return Whether the databaseEncryption field is set. + */ + @java.lang.Override + public boolean hasDatabaseEncryption() { + return databaseEncryption_ != null; + } + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + * + * @return The databaseEncryption. + */ + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption getDatabaseEncryption() { + return databaseEncryption_ == null + ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() + : databaseEncryption_; + } + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder() { + return getDatabaseEncryption(); + } + + public static final int CONDITIONS_FIELD_NUMBER = 118; + private java.util.List conditions_; + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + @java.lang.Override + public java.util.List getConditionsList() { + return conditions_; + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + @java.lang.Override + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + @java.lang.Override + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + return conditions_.get(index); + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + @java.lang.Override + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { + return conditions_.get(index); + } + + public static final int MASTER_FIELD_NUMBER = 124; + private com.google.container.v1beta1.Master master_; + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master master = 124; + * + * @return Whether the master field is set. + */ + @java.lang.Override + public boolean hasMaster() { + return master_ != null; + } + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master master = 124; + * + * @return The master. + */ + @java.lang.Override + public com.google.container.v1beta1.Master getMaster() { + return master_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : master_; + } + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + @java.lang.Override + public com.google.container.v1beta1.MasterOrBuilder getMasterOrBuilder() { + return getMaster(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (nodeConfig_ != null) { + output.writeMessage(4, getNodeConfig()); + } + if (masterAuth_ != null) { + output.writeMessage(5, getMasterAuth()); + } + if (!getLoggingServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); + } + if (!getMonitoringServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); + } + if (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); + } + if (!getClusterIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); + } + if (addonsConfig_ != null) { + output.writeMessage(10, getAddonsConfig()); + } + if (!getSubnetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); + } + for (int i = 0; i < nodePools_.size(); i++) { + output.writeMessage(12, nodePools_.get(i)); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (enableKubernetesAlpha_ != false) { + output.writeBool(14, enableKubernetesAlpha_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 15); + if (!getLabelFingerprintBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, labelFingerprint_); + } + if (legacyAbac_ != null) { + output.writeMessage(18, getLegacyAbac()); + } + if (networkPolicy_ != null) { + output.writeMessage(19, getNetworkPolicy()); + } + if (ipAllocationPolicy_ != null) { + output.writeMessage(20, getIpAllocationPolicy()); + } + if (masterAuthorizedNetworksConfig_ != null) { + output.writeMessage(22, getMasterAuthorizedNetworksConfig()); + } + if (maintenancePolicy_ != null) { + output.writeMessage(23, getMaintenancePolicy()); + } + if (binaryAuthorization_ != null) { + output.writeMessage(24, getBinaryAuthorization()); + } + if (podSecurityPolicyConfig_ != null) { + output.writeMessage(25, getPodSecurityPolicyConfig()); + } + if (autoscaling_ != null) { + output.writeMessage(26, getAutoscaling()); + } + if (networkConfig_ != null) { + output.writeMessage(27, getNetworkConfig()); + } + if (privateCluster_ != false) { + output.writeBool(28, privateCluster_); + } + if (!getMasterIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29, masterIpv4CidrBlock_); + } + if (defaultMaxPodsConstraint_ != null) { + output.writeMessage(30, getDefaultMaxPodsConstraint()); + } + if (resourceUsageExportConfig_ != null) { + output.writeMessage(33, getResourceUsageExportConfig()); + } + if (authenticatorGroupsConfig_ != null) { + output.writeMessage(34, getAuthenticatorGroupsConfig()); + } + if (privateClusterConfig_ != null) { + output.writeMessage(37, getPrivateClusterConfig()); + } + if (databaseEncryption_ != null) { + output.writeMessage(38, getDatabaseEncryption()); + } + if (verticalPodAutoscaling_ != null) { + output.writeMessage(39, getVerticalPodAutoscaling()); + } + if (shieldedNodes_ != null) { + output.writeMessage(40, getShieldedNodes()); + } + if (releaseChannel_ != null) { + output.writeMessage(41, getReleaseChannel()); + } + if (workloadIdentityConfig_ != null) { + output.writeMessage(43, getWorkloadIdentityConfig()); + } + if (clusterTelemetry_ != null) { + output.writeMessage(46, getClusterTelemetry()); + } + if (tpuConfig_ != null) { + output.writeMessage(47, getTpuConfig()); + } + if (notificationConfig_ != null) { + output.writeMessage(49, getNotificationConfig()); + } + if (confidentialNodes_ != null) { + output.writeMessage(50, getConfidentialNodes()); + } + if (!getSelfLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, zone_); + } + if (!getEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, endpoint_); + } + if (!getInitialClusterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 103, initialClusterVersion_); + } + if (!getCurrentMasterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 104, currentMasterVersion_); + } + if (!getCurrentNodeVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 105, currentNodeVersion_); + } + if (!getCreateTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 106, createTime_); + } + if (status_ != com.google.container.v1beta1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(107, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 108, statusMessage_); + } + if (nodeIpv4CidrSize_ != 0) { + output.writeInt32(109, nodeIpv4CidrSize_); + } + if (!getServicesIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 110, servicesIpv4Cidr_); + } + for (int i = 0; i < instanceGroupUrls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 111, instanceGroupUrls_.getRaw(i)); + } + if (currentNodeCount_ != 0) { + output.writeInt32(112, currentNodeCount_); + } + if (!getExpireTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 113, expireTime_); + } + if (!getLocationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 114, location_); + } + if (enableTpu_ != false) { + output.writeBool(115, enableTpu_); + } + if (!getTpuIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 116, tpuIpv4CidrBlock_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(118, conditions_.get(i)); + } + if (master_ != null) { + output.writeMessage(124, getMaster()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (initialNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, initialNodeCount_); + } + if (nodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNodeConfig()); + } + if (masterAuth_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMasterAuth()); + } + if (!getLoggingServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, loggingService_); + } + if (!getMonitoringServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, monitoringService_); + } + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, network_); + } + if (!getClusterIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4Cidr_); + } + if (addonsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getAddonsConfig()); + } + if (!getSubnetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, subnetwork_); + } + for (int i = 0; i < nodePools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, nodePools_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + if (enableKubernetesAlpha_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, enableKubernetesAlpha_); + } + for (java.util.Map.Entry entry : + internalGetResourceLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry resourceLabels__ = + ResourceLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, resourceLabels__); + } + if (!getLabelFingerprintBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, labelFingerprint_); + } + if (legacyAbac_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLegacyAbac()); + } + if (networkPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getNetworkPolicy()); + } + if (ipAllocationPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getIpAllocationPolicy()); + } + if (masterAuthorizedNetworksConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getMasterAuthorizedNetworksConfig()); + } + if (maintenancePolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getMaintenancePolicy()); + } + if (binaryAuthorization_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(24, getBinaryAuthorization()); + } + if (podSecurityPolicyConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, getPodSecurityPolicyConfig()); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getAutoscaling()); + } + if (networkConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getNetworkConfig()); + } + if (privateCluster_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(28, privateCluster_); + } + if (!getMasterIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, masterIpv4CidrBlock_); + } + if (defaultMaxPodsConstraint_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, getDefaultMaxPodsConstraint()); + } + if (resourceUsageExportConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, getResourceUsageExportConfig()); + } + if (authenticatorGroupsConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, getAuthenticatorGroupsConfig()); + } + if (privateClusterConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(37, getPrivateClusterConfig()); + } + if (databaseEncryption_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getDatabaseEncryption()); + } + if (verticalPodAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(39, getVerticalPodAutoscaling()); + } + if (shieldedNodes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getShieldedNodes()); + } + if (releaseChannel_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, getReleaseChannel()); + } + if (workloadIdentityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(43, getWorkloadIdentityConfig()); + } + if (clusterTelemetry_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getClusterTelemetry()); + } + if (tpuConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, getTpuConfig()); + } + if (notificationConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(49, getNotificationConfig()); + } + if (confidentialNodes_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, getConfidentialNodes()); + } + if (!getSelfLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, zone_); + } + if (!getEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, endpoint_); + } + if (!getInitialClusterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, initialClusterVersion_); + } + if (!getCurrentMasterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, currentMasterVersion_); + } + if (!getCurrentNodeVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(105, currentNodeVersion_); + } + if (!getCreateTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(106, createTime_); + } + if (status_ != com.google.container.v1beta1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(107, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(108, statusMessage_); + } + if (nodeIpv4CidrSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(109, nodeIpv4CidrSize_); + } + if (!getServicesIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(110, servicesIpv4Cidr_); + } + { + int dataSize = 0; + for (int i = 0; i < instanceGroupUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(instanceGroupUrls_.getRaw(i)); + } + size += dataSize; + size += 2 * getInstanceGroupUrlsList().size(); + } + if (currentNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(112, currentNodeCount_); + } + if (!getExpireTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(113, expireTime_); + } + if (!getLocationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(114, location_); + } + if (enableTpu_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(115, enableTpu_); + } + if (!getTpuIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(116, tpuIpv4CidrBlock_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(118, conditions_.get(i)); + } + if (master_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(124, getMaster()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.Cluster)) { + return super.equals(obj); + } + com.google.container.v1beta1.Cluster other = (com.google.container.v1beta1.Cluster) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getInitialNodeCount() != other.getInitialNodeCount()) return false; + if (hasNodeConfig() != other.hasNodeConfig()) return false; + if (hasNodeConfig()) { + if (!getNodeConfig().equals(other.getNodeConfig())) return false; + } + if (hasMasterAuth() != other.hasMasterAuth()) return false; + if (hasMasterAuth()) { + if (!getMasterAuth().equals(other.getMasterAuth())) return false; + } + if (!getLoggingService().equals(other.getLoggingService())) return false; + if (!getMonitoringService().equals(other.getMonitoringService())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getClusterIpv4Cidr().equals(other.getClusterIpv4Cidr())) return false; + if (hasAddonsConfig() != other.hasAddonsConfig()) return false; + if (hasAddonsConfig()) { + if (!getAddonsConfig().equals(other.getAddonsConfig())) return false; + } + if (!getSubnetwork().equals(other.getSubnetwork())) return false; + if (!getNodePoolsList().equals(other.getNodePoolsList())) return false; + if (!getLocationsList().equals(other.getLocationsList())) return false; + if (getEnableKubernetesAlpha() != other.getEnableKubernetesAlpha()) return false; + if (!internalGetResourceLabels().equals(other.internalGetResourceLabels())) return false; + if (!getLabelFingerprint().equals(other.getLabelFingerprint())) return false; + if (hasLegacyAbac() != other.hasLegacyAbac()) return false; + if (hasLegacyAbac()) { + if (!getLegacyAbac().equals(other.getLegacyAbac())) return false; + } + if (hasNetworkPolicy() != other.hasNetworkPolicy()) return false; + if (hasNetworkPolicy()) { + if (!getNetworkPolicy().equals(other.getNetworkPolicy())) return false; + } + if (hasIpAllocationPolicy() != other.hasIpAllocationPolicy()) return false; + if (hasIpAllocationPolicy()) { + if (!getIpAllocationPolicy().equals(other.getIpAllocationPolicy())) return false; + } + if (hasMasterAuthorizedNetworksConfig() != other.hasMasterAuthorizedNetworksConfig()) + return false; + if (hasMasterAuthorizedNetworksConfig()) { + if (!getMasterAuthorizedNetworksConfig().equals(other.getMasterAuthorizedNetworksConfig())) + return false; + } + if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false; + if (hasMaintenancePolicy()) { + if (!getMaintenancePolicy().equals(other.getMaintenancePolicy())) return false; + } + if (hasBinaryAuthorization() != other.hasBinaryAuthorization()) return false; + if (hasBinaryAuthorization()) { + if (!getBinaryAuthorization().equals(other.getBinaryAuthorization())) return false; + } + if (hasPodSecurityPolicyConfig() != other.hasPodSecurityPolicyConfig()) return false; + if (hasPodSecurityPolicyConfig()) { + if (!getPodSecurityPolicyConfig().equals(other.getPodSecurityPolicyConfig())) return false; + } + if (hasAutoscaling() != other.hasAutoscaling()) return false; + if (hasAutoscaling()) { + if (!getAutoscaling().equals(other.getAutoscaling())) return false; + } + if (hasNetworkConfig() != other.hasNetworkConfig()) return false; + if (hasNetworkConfig()) { + if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; + } + if (getPrivateCluster() != other.getPrivateCluster()) return false; + if (!getMasterIpv4CidrBlock().equals(other.getMasterIpv4CidrBlock())) return false; + if (hasDefaultMaxPodsConstraint() != other.hasDefaultMaxPodsConstraint()) return false; + if (hasDefaultMaxPodsConstraint()) { + if (!getDefaultMaxPodsConstraint().equals(other.getDefaultMaxPodsConstraint())) return false; + } + if (hasResourceUsageExportConfig() != other.hasResourceUsageExportConfig()) return false; + if (hasResourceUsageExportConfig()) { + if (!getResourceUsageExportConfig().equals(other.getResourceUsageExportConfig())) + return false; + } + if (hasAuthenticatorGroupsConfig() != other.hasAuthenticatorGroupsConfig()) return false; + if (hasAuthenticatorGroupsConfig()) { + if (!getAuthenticatorGroupsConfig().equals(other.getAuthenticatorGroupsConfig())) + return false; + } + if (hasPrivateClusterConfig() != other.hasPrivateClusterConfig()) return false; + if (hasPrivateClusterConfig()) { + if (!getPrivateClusterConfig().equals(other.getPrivateClusterConfig())) return false; + } + if (hasVerticalPodAutoscaling() != other.hasVerticalPodAutoscaling()) return false; + if (hasVerticalPodAutoscaling()) { + if (!getVerticalPodAutoscaling().equals(other.getVerticalPodAutoscaling())) return false; + } + if (hasShieldedNodes() != other.hasShieldedNodes()) return false; + if (hasShieldedNodes()) { + if (!getShieldedNodes().equals(other.getShieldedNodes())) return false; + } + if (hasReleaseChannel() != other.hasReleaseChannel()) return false; + if (hasReleaseChannel()) { + if (!getReleaseChannel().equals(other.getReleaseChannel())) return false; + } + if (hasWorkloadIdentityConfig() != other.hasWorkloadIdentityConfig()) return false; + if (hasWorkloadIdentityConfig()) { + if (!getWorkloadIdentityConfig().equals(other.getWorkloadIdentityConfig())) return false; + } + if (hasClusterTelemetry() != other.hasClusterTelemetry()) return false; + if (hasClusterTelemetry()) { + if (!getClusterTelemetry().equals(other.getClusterTelemetry())) return false; + } + if (hasTpuConfig() != other.hasTpuConfig()) return false; + if (hasTpuConfig()) { + if (!getTpuConfig().equals(other.getTpuConfig())) 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; + if (!getInitialClusterVersion().equals(other.getInitialClusterVersion())) return false; + if (!getCurrentMasterVersion().equals(other.getCurrentMasterVersion())) return false; + if (!getCurrentNodeVersion().equals(other.getCurrentNodeVersion())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; + if (status_ != other.status_) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getNodeIpv4CidrSize() != other.getNodeIpv4CidrSize()) return false; + if (!getServicesIpv4Cidr().equals(other.getServicesIpv4Cidr())) return false; + if (!getInstanceGroupUrlsList().equals(other.getInstanceGroupUrlsList())) return false; + if (getCurrentNodeCount() != other.getCurrentNodeCount()) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (getEnableTpu() != other.getEnableTpu()) return false; + if (!getTpuIpv4CidrBlock().equals(other.getTpuIpv4CidrBlock())) return false; + if (hasDatabaseEncryption() != other.hasDatabaseEncryption()) return false; + if (hasDatabaseEncryption()) { + if (!getDatabaseEncryption().equals(other.getDatabaseEncryption())) return false; + } + if (!getConditionsList().equals(other.getConditionsList())) return false; + if (hasMaster() != other.hasMaster()) return false; + if (hasMaster()) { + if (!getMaster().equals(other.getMaster())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + INITIAL_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getInitialNodeCount(); + if (hasNodeConfig()) { + hash = (37 * hash) + NODE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNodeConfig().hashCode(); + } + if (hasMasterAuth()) { + hash = (37 * hash) + MASTER_AUTH_FIELD_NUMBER; + hash = (53 * hash) + getMasterAuth().hashCode(); + } + hash = (37 * hash) + LOGGING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getLoggingService().hashCode(); + hash = (37 * hash) + MONITORING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringService().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + CLUSTER_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getClusterIpv4Cidr().hashCode(); + if (hasAddonsConfig()) { + hash = (37 * hash) + ADDONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAddonsConfig().hashCode(); + } + hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetwork().hashCode(); + if (getNodePoolsCount() > 0) { + hash = (37 * hash) + NODE_POOLS_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolsList().hashCode(); + } + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (37 * hash) + ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableKubernetesAlpha()); + if (!internalGetResourceLabels().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceLabels().hashCode(); + } + hash = (37 * hash) + LABEL_FINGERPRINT_FIELD_NUMBER; + hash = (53 * hash) + getLabelFingerprint().hashCode(); + if (hasLegacyAbac()) { + hash = (37 * hash) + LEGACY_ABAC_FIELD_NUMBER; + hash = (53 * hash) + getLegacyAbac().hashCode(); + } + if (hasNetworkPolicy()) { + hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicy().hashCode(); + } + if (hasIpAllocationPolicy()) { + hash = (37 * hash) + IP_ALLOCATION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getIpAllocationPolicy().hashCode(); + } + if (hasMasterAuthorizedNetworksConfig()) { + hash = (37 * hash) + MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMasterAuthorizedNetworksConfig().hashCode(); + } + if (hasMaintenancePolicy()) { + hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getMaintenancePolicy().hashCode(); + } + if (hasBinaryAuthorization()) { + hash = (37 * hash) + BINARY_AUTHORIZATION_FIELD_NUMBER; + hash = (53 * hash) + getBinaryAuthorization().hashCode(); + } + if (hasPodSecurityPolicyConfig()) { + hash = (37 * hash) + POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPodSecurityPolicyConfig().hashCode(); + } + if (hasAutoscaling()) { + hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaling().hashCode(); + } + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } + hash = (37 * hash) + PRIVATE_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrivateCluster()); + hash = (37 * hash) + MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getMasterIpv4CidrBlock().hashCode(); + if (hasDefaultMaxPodsConstraint()) { + hash = (37 * hash) + DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getDefaultMaxPodsConstraint().hashCode(); + } + if (hasResourceUsageExportConfig()) { + hash = (37 * hash) + RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getResourceUsageExportConfig().hashCode(); + } + if (hasAuthenticatorGroupsConfig()) { + hash = (37 * hash) + AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAuthenticatorGroupsConfig().hashCode(); + } + if (hasPrivateClusterConfig()) { + hash = (37 * hash) + PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrivateClusterConfig().hashCode(); + } + if (hasVerticalPodAutoscaling()) { + hash = (37 * hash) + VERTICAL_POD_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getVerticalPodAutoscaling().hashCode(); + } + if (hasShieldedNodes()) { + hash = (37 * hash) + SHIELDED_NODES_FIELD_NUMBER; + hash = (53 * hash) + getShieldedNodes().hashCode(); + } + if (hasReleaseChannel()) { + hash = (37 * hash) + RELEASE_CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getReleaseChannel().hashCode(); + } + if (hasWorkloadIdentityConfig()) { + hash = (37 * hash) + WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadIdentityConfig().hashCode(); + } + if (hasClusterTelemetry()) { + hash = (37 * hash) + CLUSTER_TELEMETRY_FIELD_NUMBER; + hash = (53 * hash) + getClusterTelemetry().hashCode(); + } + if (hasTpuConfig()) { + hash = (37 * hash) + TPU_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTpuConfig().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; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + hash = (37 * hash) + INITIAL_CLUSTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getInitialClusterVersion().hashCode(); + hash = (37 * hash) + CURRENT_MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getCurrentMasterVersion().hashCode(); + hash = (37 * hash) + CURRENT_NODE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getCurrentNodeVersion().hashCode(); + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + NODE_IPV4_CIDR_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getNodeIpv4CidrSize(); + hash = (37 * hash) + SERVICES_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getServicesIpv4Cidr().hashCode(); + if (getInstanceGroupUrlsCount() > 0) { + hash = (37 * hash) + INSTANCE_GROUP_URLS_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupUrlsList().hashCode(); + } + hash = (37 * hash) + CURRENT_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCurrentNodeCount(); + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + ENABLE_TPU_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableTpu()); + hash = (37 * hash) + TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getTpuIpv4CidrBlock().hashCode(); + if (hasDatabaseEncryption()) { + hash = (37 * hash) + DATABASE_ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseEncryption().hashCode(); + } + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + if (hasMaster()) { + hash = (37 * hash) + MASTER_FIELD_NUMBER; + hash = (53 * hash) + getMaster().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.Cluster parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Cluster parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Cluster parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Cluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Cluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Cluster parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Cluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Cluster parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.Cluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Cluster parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.Cluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A Google Kubernetes Engine cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.Cluster} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.Cluster) + com.google.container.v1beta1.ClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Cluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 15: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 15: + return internalGetMutableResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Cluster.class, + com.google.container.v1beta1.Cluster.Builder.class); + } + + // Construct using com.google.container.v1beta1.Cluster.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNodePoolsFieldBuilder(); + getConditionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + description_ = ""; + + initialNodeCount_ = 0; + + if (nodeConfigBuilder_ == null) { + nodeConfig_ = null; + } else { + nodeConfig_ = null; + nodeConfigBuilder_ = null; + } + if (masterAuthBuilder_ == null) { + masterAuth_ = null; + } else { + masterAuth_ = null; + masterAuthBuilder_ = null; + } + loggingService_ = ""; + + monitoringService_ = ""; + + network_ = ""; + + clusterIpv4Cidr_ = ""; + + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + subnetwork_ = ""; + + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodePoolsBuilder_.clear(); + } + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + enableKubernetesAlpha_ = false; + + internalGetMutableResourceLabels().clear(); + labelFingerprint_ = ""; + + if (legacyAbacBuilder_ == null) { + legacyAbac_ = null; + } else { + legacyAbac_ = null; + legacyAbacBuilder_ = null; + } + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = null; + } else { + ipAllocationPolicy_ = null; + ipAllocationPolicyBuilder_ = null; + } + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = null; + } else { + masterAuthorizedNetworksConfig_ = null; + masterAuthorizedNetworksConfigBuilder_ = null; + } + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; + } else { + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; + } + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfig_ = null; + } else { + podSecurityPolicyConfig_ = null; + podSecurityPolicyConfigBuilder_ = null; + } + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + privateCluster_ = false; + + masterIpv4CidrBlock_ = ""; + + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = null; + } else { + defaultMaxPodsConstraint_ = null; + defaultMaxPodsConstraintBuilder_ = null; + } + if (resourceUsageExportConfigBuilder_ == null) { + resourceUsageExportConfig_ = null; + } else { + resourceUsageExportConfig_ = null; + resourceUsageExportConfigBuilder_ = null; + } + if (authenticatorGroupsConfigBuilder_ == null) { + authenticatorGroupsConfig_ = null; + } else { + authenticatorGroupsConfig_ = null; + authenticatorGroupsConfigBuilder_ = null; + } + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = null; + } else { + privateClusterConfig_ = null; + privateClusterConfigBuilder_ = null; + } + if (verticalPodAutoscalingBuilder_ == null) { + verticalPodAutoscaling_ = null; + } else { + verticalPodAutoscaling_ = null; + verticalPodAutoscalingBuilder_ = null; + } + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = null; + } else { + shieldedNodes_ = null; + shieldedNodesBuilder_ = null; + } + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = null; + } else { + workloadIdentityConfig_ = null; + workloadIdentityConfigBuilder_ = null; + } + if (clusterTelemetryBuilder_ == null) { + clusterTelemetry_ = null; + } else { + clusterTelemetry_ = null; + clusterTelemetryBuilder_ = null; + } + if (tpuConfigBuilder_ == null) { + tpuConfig_ = null; + } else { + tpuConfig_ = null; + tpuConfigBuilder_ = null; + } + if (notificationConfigBuilder_ == null) { + notificationConfig_ = null; + } else { + notificationConfig_ = null; + notificationConfigBuilder_ = null; + } + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + selfLink_ = ""; + + zone_ = ""; + + endpoint_ = ""; + + initialClusterVersion_ = ""; + + currentMasterVersion_ = ""; + + currentNodeVersion_ = ""; + + createTime_ = ""; + + status_ = 0; + + statusMessage_ = ""; + + nodeIpv4CidrSize_ = 0; + + servicesIpv4Cidr_ = ""; + + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + currentNodeCount_ = 0; + + expireTime_ = ""; + + location_ = ""; + + enableTpu_ = false; + + tpuIpv4CidrBlock_ = ""; + + if (databaseEncryptionBuilder_ == null) { + databaseEncryption_ = null; + } else { + databaseEncryption_ = null; + databaseEncryptionBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + conditionsBuilder_.clear(); + } + if (masterBuilder_ == null) { + master_ = null; + } else { + master_ = null; + masterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Cluster_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Cluster getDefaultInstanceForType() { + return com.google.container.v1beta1.Cluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Cluster build() { + com.google.container.v1beta1.Cluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Cluster buildPartial() { + com.google.container.v1beta1.Cluster result = new com.google.container.v1beta1.Cluster(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.description_ = description_; + result.initialNodeCount_ = initialNodeCount_; + if (nodeConfigBuilder_ == null) { + result.nodeConfig_ = nodeConfig_; + } else { + result.nodeConfig_ = nodeConfigBuilder_.build(); + } + if (masterAuthBuilder_ == null) { + result.masterAuth_ = masterAuth_; + } else { + result.masterAuth_ = masterAuthBuilder_.build(); + } + result.loggingService_ = loggingService_; + result.monitoringService_ = monitoringService_; + result.network_ = network_; + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + if (addonsConfigBuilder_ == null) { + result.addonsConfig_ = addonsConfig_; + } else { + result.addonsConfig_ = addonsConfigBuilder_.build(); + } + result.subnetwork_ = subnetwork_; + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.locations_ = locations_; + result.enableKubernetesAlpha_ = enableKubernetesAlpha_; + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + result.labelFingerprint_ = labelFingerprint_; + if (legacyAbacBuilder_ == null) { + result.legacyAbac_ = legacyAbac_; + } else { + result.legacyAbac_ = legacyAbacBuilder_.build(); + } + if (networkPolicyBuilder_ == null) { + result.networkPolicy_ = networkPolicy_; + } else { + result.networkPolicy_ = networkPolicyBuilder_.build(); + } + if (ipAllocationPolicyBuilder_ == null) { + result.ipAllocationPolicy_ = ipAllocationPolicy_; + } else { + result.ipAllocationPolicy_ = ipAllocationPolicyBuilder_.build(); + } + if (masterAuthorizedNetworksConfigBuilder_ == null) { + result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfig_; + } else { + result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfigBuilder_.build(); + } + if (maintenancePolicyBuilder_ == null) { + result.maintenancePolicy_ = maintenancePolicy_; + } else { + result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); + } + if (binaryAuthorizationBuilder_ == null) { + result.binaryAuthorization_ = binaryAuthorization_; + } else { + result.binaryAuthorization_ = binaryAuthorizationBuilder_.build(); + } + if (podSecurityPolicyConfigBuilder_ == null) { + result.podSecurityPolicyConfig_ = podSecurityPolicyConfig_; + } else { + result.podSecurityPolicyConfig_ = podSecurityPolicyConfigBuilder_.build(); + } + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + if (networkConfigBuilder_ == null) { + result.networkConfig_ = networkConfig_; + } else { + result.networkConfig_ = networkConfigBuilder_.build(); + } + result.privateCluster_ = privateCluster_; + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + if (defaultMaxPodsConstraintBuilder_ == null) { + result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraint_; + } else { + result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraintBuilder_.build(); + } + if (resourceUsageExportConfigBuilder_ == null) { + result.resourceUsageExportConfig_ = resourceUsageExportConfig_; + } else { + result.resourceUsageExportConfig_ = resourceUsageExportConfigBuilder_.build(); + } + if (authenticatorGroupsConfigBuilder_ == null) { + result.authenticatorGroupsConfig_ = authenticatorGroupsConfig_; + } else { + result.authenticatorGroupsConfig_ = authenticatorGroupsConfigBuilder_.build(); + } + if (privateClusterConfigBuilder_ == null) { + result.privateClusterConfig_ = privateClusterConfig_; + } else { + result.privateClusterConfig_ = privateClusterConfigBuilder_.build(); + } + if (verticalPodAutoscalingBuilder_ == null) { + result.verticalPodAutoscaling_ = verticalPodAutoscaling_; + } else { + result.verticalPodAutoscaling_ = verticalPodAutoscalingBuilder_.build(); + } + if (shieldedNodesBuilder_ == null) { + result.shieldedNodes_ = shieldedNodes_; + } else { + result.shieldedNodes_ = shieldedNodesBuilder_.build(); + } + if (releaseChannelBuilder_ == null) { + result.releaseChannel_ = releaseChannel_; + } else { + result.releaseChannel_ = releaseChannelBuilder_.build(); + } + if (workloadIdentityConfigBuilder_ == null) { + result.workloadIdentityConfig_ = workloadIdentityConfig_; + } else { + result.workloadIdentityConfig_ = workloadIdentityConfigBuilder_.build(); + } + if (clusterTelemetryBuilder_ == null) { + result.clusterTelemetry_ = clusterTelemetry_; + } else { + result.clusterTelemetry_ = clusterTelemetryBuilder_.build(); + } + if (tpuConfigBuilder_ == null) { + result.tpuConfig_ = tpuConfig_; + } else { + result.tpuConfig_ = tpuConfigBuilder_.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_; + result.initialClusterVersion_ = initialClusterVersion_; + result.currentMasterVersion_ = currentMasterVersion_; + result.currentNodeVersion_ = currentNodeVersion_; + result.createTime_ = createTime_; + result.status_ = status_; + result.statusMessage_ = statusMessage_; + result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + if (((bitField0_ & 0x00000008) != 0)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.instanceGroupUrls_ = instanceGroupUrls_; + result.currentNodeCount_ = currentNodeCount_; + result.expireTime_ = expireTime_; + result.location_ = location_; + result.enableTpu_ = enableTpu_; + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + if (databaseEncryptionBuilder_ == null) { + result.databaseEncryption_ = databaseEncryption_; + } else { + result.databaseEncryption_ = databaseEncryptionBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + if (masterBuilder_ == null) { + result.master_ = master_; + } else { + result.master_ = masterBuilder_.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.Cluster) { + return mergeFrom((com.google.container.v1beta1.Cluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Cluster other) { + if (other == com.google.container.v1beta1.Cluster.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getInitialNodeCount() != 0) { + setInitialNodeCount(other.getInitialNodeCount()); + } + if (other.hasNodeConfig()) { + mergeNodeConfig(other.getNodeConfig()); + } + if (other.hasMasterAuth()) { + mergeMasterAuth(other.getMasterAuth()); + } + if (!other.getLoggingService().isEmpty()) { + loggingService_ = other.loggingService_; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + if (nodePoolsBuilder_ == null) { + if (!other.nodePools_.isEmpty()) { + if (nodePools_.isEmpty()) { + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodePoolsIsMutable(); + nodePools_.addAll(other.nodePools_); + } + onChanged(); + } + } else { + if (!other.nodePools_.isEmpty()) { + if (nodePoolsBuilder_.isEmpty()) { + nodePoolsBuilder_.dispose(); + nodePoolsBuilder_ = null; + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + nodePoolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodePoolsFieldBuilder() + : null; + } else { + nodePoolsBuilder_.addAllMessages(other.nodePools_); + } + } + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.getEnableKubernetesAlpha() != false) { + setEnableKubernetesAlpha(other.getEnableKubernetesAlpha()); + } + internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + onChanged(); + } + if (other.hasLegacyAbac()) { + mergeLegacyAbac(other.getLegacyAbac()); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (other.hasIpAllocationPolicy()) { + mergeIpAllocationPolicy(other.getIpAllocationPolicy()); + } + if (other.hasMasterAuthorizedNetworksConfig()) { + mergeMasterAuthorizedNetworksConfig(other.getMasterAuthorizedNetworksConfig()); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (other.hasBinaryAuthorization()) { + mergeBinaryAuthorization(other.getBinaryAuthorization()); + } + if (other.hasPodSecurityPolicyConfig()) { + mergePodSecurityPolicyConfig(other.getPodSecurityPolicyConfig()); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (other.getPrivateCluster() != false) { + setPrivateCluster(other.getPrivateCluster()); + } + if (!other.getMasterIpv4CidrBlock().isEmpty()) { + masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; + onChanged(); + } + if (other.hasDefaultMaxPodsConstraint()) { + mergeDefaultMaxPodsConstraint(other.getDefaultMaxPodsConstraint()); + } + if (other.hasResourceUsageExportConfig()) { + mergeResourceUsageExportConfig(other.getResourceUsageExportConfig()); + } + if (other.hasAuthenticatorGroupsConfig()) { + mergeAuthenticatorGroupsConfig(other.getAuthenticatorGroupsConfig()); + } + if (other.hasPrivateClusterConfig()) { + mergePrivateClusterConfig(other.getPrivateClusterConfig()); + } + if (other.hasVerticalPodAutoscaling()) { + mergeVerticalPodAutoscaling(other.getVerticalPodAutoscaling()); + } + if (other.hasShieldedNodes()) { + mergeShieldedNodes(other.getShieldedNodes()); + } + if (other.hasReleaseChannel()) { + mergeReleaseChannel(other.getReleaseChannel()); + } + if (other.hasWorkloadIdentityConfig()) { + mergeWorkloadIdentityConfig(other.getWorkloadIdentityConfig()); + } + if (other.hasClusterTelemetry()) { + mergeClusterTelemetry(other.getClusterTelemetry()); + } + if (other.hasTpuConfig()) { + mergeTpuConfig(other.getTpuConfig()); + } + if (other.hasNotificationConfig()) { + mergeNotificationConfig(other.getNotificationConfig()); + } + if (other.hasConfidentialNodes()) { + mergeConfidentialNodes(other.getConfidentialNodes()); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + onChanged(); + } + if (!other.getInitialClusterVersion().isEmpty()) { + initialClusterVersion_ = other.initialClusterVersion_; + onChanged(); + } + if (!other.getCurrentMasterVersion().isEmpty()) { + currentMasterVersion_ = other.currentMasterVersion_; + onChanged(); + } + if (!other.getCurrentNodeVersion().isEmpty()) { + currentNodeVersion_ = other.currentNodeVersion_; + onChanged(); + } + if (!other.getCreateTime().isEmpty()) { + createTime_ = other.createTime_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (other.getNodeIpv4CidrSize() != 0) { + setNodeIpv4CidrSize(other.getNodeIpv4CidrSize()); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.getCurrentNodeCount() != 0) { + setCurrentNodeCount(other.getCurrentNodeCount()); + } + if (!other.getExpireTime().isEmpty()) { + expireTime_ = other.expireTime_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (other.getEnableTpu() != false) { + setEnableTpu(other.getEnableTpu()); + } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + onChanged(); + } + if (other.hasDatabaseEncryption()) { + mergeDatabaseEncryption(other.getDatabaseEncryption()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000010); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConditionsFieldBuilder() + : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.hasMaster()) { + mergeMaster(other.getMaster()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.Cluster parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.Cluster) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of this cluster. The name must be unique within this project
+     * and location (e.g. zone or region), and can be up to 40 characters with
+     * the following restrictions:
+     * * Lowercase letters, numbers, and hyphens only.
+     * * Must start with a letter.
+     * * Must end with a number or a letter.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int initialNodeCount_; + /** + * + * + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * This field is deprecated, use node_pool.initial_node_count instead.
+     * 
+ * + * int32 initial_node_count = 3 [deprecated = true]; + * + * @return The initialNodeCount. + */ + @java.lang.Override + @java.lang.Deprecated + public int getInitialNodeCount() { + return initialNodeCount_; + } + /** + * + * + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * This field is deprecated, use node_pool.initial_node_count instead.
+     * 
+ * + * int32 initial_node_count = 3 [deprecated = true]; + * + * @param value The initialNodeCount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setInitialNodeCount(int value) { + + initialNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of nodes to create in this cluster. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "node_config") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * This field is deprecated, use node_pool.initial_node_count instead.
+     * 
+ * + * int32 initial_node_count = 3 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearInitialNodeCount() { + + initialNodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodeConfig nodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, + com.google.container.v1beta1.NodeConfig.Builder, + com.google.container.v1beta1.NodeConfigOrBuilder> + nodeConfigBuilder_; + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + * + * @return Whether the nodeConfig field is set. + */ + @java.lang.Deprecated + public boolean hasNodeConfig() { + return nodeConfigBuilder_ != null || nodeConfig_ != null; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + * + * @return The nodeConfig. + */ + @java.lang.Deprecated + public com.google.container.v1beta1.NodeConfig getNodeConfig() { + if (nodeConfigBuilder_ == null) { + return nodeConfig_ == null + ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() + : nodeConfig_; + } else { + return nodeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder setNodeConfig(com.google.container.v1beta1.NodeConfig value) { + if (nodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeConfig_ = value; + onChanged(); + } else { + nodeConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder setNodeConfig(com.google.container.v1beta1.NodeConfig.Builder builderForValue) { + if (nodeConfigBuilder_ == null) { + nodeConfig_ = builderForValue.build(); + onChanged(); + } else { + nodeConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder mergeNodeConfig(com.google.container.v1beta1.NodeConfig value) { + if (nodeConfigBuilder_ == null) { + if (nodeConfig_ != null) { + nodeConfig_ = + com.google.container.v1beta1.NodeConfig.newBuilder(nodeConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + nodeConfig_ = value; + } + onChanged(); + } else { + nodeConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public Builder clearNodeConfig() { + if (nodeConfigBuilder_ == null) { + nodeConfig_ = null; + onChanged(); + } else { + nodeConfig_ = null; + nodeConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.container.v1beta1.NodeConfig.Builder getNodeConfigBuilder() { + + onChanged(); + return getNodeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + public com.google.container.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder() { + if (nodeConfigBuilder_ != null) { + return nodeConfigBuilder_.getMessageOrBuilder(); + } else { + return nodeConfig_ == null + ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() + : nodeConfig_; + } + } + /** + * + * + *
+     * Parameters used in creating the cluster's nodes.
+     * For requests, this field should only be used in lieu of a
+     * "node_pool" object, since this configuration (along with the
+     * "initial_node_count") will be used to create a "NodePool" object with an
+     * auto-generated name. Do not use this and a node_pool at the same time.
+     * For responses, this field will be populated with the node configuration of
+     * the first node pool. (For configuration of each node pool, see
+     * `node_pool.config`)
+     * If unspecified, the defaults are used.
+     * This field is deprecated, use node_pool.config instead.
+     * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, + com.google.container.v1beta1.NodeConfig.Builder, + com.google.container.v1beta1.NodeConfigOrBuilder> + getNodeConfigFieldBuilder() { + if (nodeConfigBuilder_ == null) { + nodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, + com.google.container.v1beta1.NodeConfig.Builder, + com.google.container.v1beta1.NodeConfigOrBuilder>( + getNodeConfig(), getParentForChildren(), isClean()); + nodeConfig_ = null; + } + return nodeConfigBuilder_; + } + + private com.google.container.v1beta1.MasterAuth masterAuth_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, + com.google.container.v1beta1.MasterAuth.Builder, + com.google.container.v1beta1.MasterAuthOrBuilder> + masterAuthBuilder_; + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + * + * @return Whether the masterAuth field is set. + */ + public boolean hasMasterAuth() { + return masterAuthBuilder_ != null || masterAuth_ != null; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + * + * @return The masterAuth. + */ + public com.google.container.v1beta1.MasterAuth getMasterAuth() { + if (masterAuthBuilder_ == null) { + return masterAuth_ == null + ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() + : masterAuth_; + } else { + return masterAuthBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public Builder setMasterAuth(com.google.container.v1beta1.MasterAuth value) { + if (masterAuthBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuth_ = value; + onChanged(); + } else { + masterAuthBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public Builder setMasterAuth(com.google.container.v1beta1.MasterAuth.Builder builderForValue) { + if (masterAuthBuilder_ == null) { + masterAuth_ = builderForValue.build(); + onChanged(); + } else { + masterAuthBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public Builder mergeMasterAuth(com.google.container.v1beta1.MasterAuth value) { + if (masterAuthBuilder_ == null) { + if (masterAuth_ != null) { + masterAuth_ = + com.google.container.v1beta1.MasterAuth.newBuilder(masterAuth_) + .mergeFrom(value) + .buildPartial(); + } else { + masterAuth_ = value; + } + onChanged(); + } else { + masterAuthBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public Builder clearMasterAuth() { + if (masterAuthBuilder_ == null) { + masterAuth_ = null; + onChanged(); + } else { + masterAuth_ = null; + masterAuthBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public com.google.container.v1beta1.MasterAuth.Builder getMasterAuthBuilder() { + + onChanged(); + return getMasterAuthFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + public com.google.container.v1beta1.MasterAuthOrBuilder getMasterAuthOrBuilder() { + if (masterAuthBuilder_ != null) { + return masterAuthBuilder_.getMessageOrBuilder(); + } else { + return masterAuth_ == null + ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() + : masterAuth_; + } + } + /** + * + * + *
+     * The authentication information for accessing the master endpoint.
+     * If unspecified, the defaults are used:
+     * For clusters before v1.12, if master_auth is unspecified, `username` will
+     * be set to "admin", a random password will be generated, and a client
+     * certificate will be issued.
+     * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, + com.google.container.v1beta1.MasterAuth.Builder, + com.google.container.v1beta1.MasterAuthOrBuilder> + getMasterAuthFieldBuilder() { + if (masterAuthBuilder_ == null) { + masterAuthBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, + com.google.container.v1beta1.MasterAuth.Builder, + com.google.container.v1beta1.MasterAuthOrBuilder>( + getMasterAuth(), getParentForChildren(), isClean()); + masterAuth_ = null; + } + return masterAuthBuilder_; + } + + private java.lang.Object loggingService_ = ""; + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 6; + * + * @return The loggingService. + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 6; + * + * @return The bytes for loggingService. + */ + public com.google.protobuf.ByteString getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 6; + * + * @param value The loggingService to set. + * @return This builder for chaining. + */ + public Builder setLoggingService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + loggingService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 6; + * + * @return This builder for chaining. + */ + public Builder clearLoggingService() { + + loggingService_ = getDefaultInstance().getLoggingService(); + onChanged(); + return this; + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 6; + * + * @param value The bytes for loggingService to set. + * @return This builder for chaining. + */ + public Builder setLoggingServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + loggingService_ = value; + onChanged(); + return this; + } + + private java.lang.Object monitoringService_ = ""; + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @return The monitoringService. + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @return The bytes for monitoringService. + */ + public com.google.protobuf.ByteString getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @param value The monitoringService to set. + * @return This builder for chaining. + */ + public Builder setMonitoringService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + monitoringService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @return This builder for chaining. + */ + public Builder clearMonitoringService() { + + monitoringService_ = getDefaultInstance().getMonitoringService(); + onChanged(); + return this; + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 7; + * + * @param value The bytes for monitoringService to set. + * @return This builder for chaining. + */ + public Builder setMonitoringServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + monitoringService_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used. On output this shows the network ID instead of the
+     * name.
+     * 
+ * + * string network = 8; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used. On output this shows the network ID instead of the
+     * name.
+     * 
+ * + * string network = 8; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used. On output this shows the network ID instead of the
+     * name.
+     * 
+ * + * string network = 8; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used. On output this shows the network ID instead of the
+     * name.
+     * 
+ * + * string network = 8; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. If left unspecified, the `default`
+     * network will be used. On output this shows the network ID instead of the
+     * name.
+     * 
+ * + * string network = 8; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4Cidr_ = ""; + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The clusterIpv4Cidr. + */ + public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The bytes for clusterIpv4Cidr. + */ + public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @param value The clusterIpv4Cidr to set. + * @return This builder for chaining. + */ + public Builder setClusterIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return This builder for chaining. + */ + public Builder clearClusterIpv4Cidr() { + + clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the container pods in this cluster, in
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`). Leave blank to have
+     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+     * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @param value The bytes for clusterIpv4Cidr to set. + * @return This builder for chaining. + */ + public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AddonsConfig addonsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder> + addonsConfigBuilder_; + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + * + * @return Whether the addonsConfig field is set. + */ + public boolean hasAddonsConfig() { + return addonsConfigBuilder_ != null || addonsConfig_ != null; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + * + * @return The addonsConfig. + */ + public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { + if (addonsConfigBuilder_ == null) { + return addonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : addonsConfig_; + } else { + return addonsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder setAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + addonsConfig_ = value; + onChanged(); + } else { + addonsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder setAddonsConfig( + com.google.container.v1beta1.AddonsConfig.Builder builderForValue) { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = builderForValue.build(); + onChanged(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder mergeAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (addonsConfig_ != null) { + addonsConfig_ = + com.google.container.v1beta1.AddonsConfig.newBuilder(addonsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + addonsConfig_ = value; + } + onChanged(); + } else { + addonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder clearAddonsConfig() { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + onChanged(); + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1beta1.AddonsConfig.Builder getAddonsConfigBuilder() { + + onChanged(); + return getAddonsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + if (addonsConfigBuilder_ != null) { + return addonsConfigBuilder_.getMessageOrBuilder(); + } else { + return addonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : addonsConfig_; + } + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder> + getAddonsConfigFieldBuilder() { + if (addonsConfigBuilder_ == null) { + addonsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder>( + getAddonsConfig(), getParentForChildren(), isClean()); + addonsConfig_ = null; + } + return addonsConfigBuilder_; + } + + private java.lang.Object subnetwork_ = ""; + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + * + * @return The subnetwork. + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + * + * @return The bytes for subnetwork. + */ + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + * + * @param value The subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + * + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected. On output this shows the subnetwork ID instead of
+     * the name.
+     * 
+ * + * string subnetwork = 11; + * + * @param value The bytes for subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private java.util.List nodePools_ = + java.util.Collections.emptyList(); + + private void ensureNodePoolsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodePools_ = new java.util.ArrayList(nodePools_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder> + nodePoolsBuilder_; + + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List getNodePoolsList() { + if (nodePoolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodePools_); + } else { + return nodePoolsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public int getNodePoolsCount() { + if (nodePoolsBuilder_ == null) { + return nodePools_.size(); + } else { + return nodePoolsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool getNodePools(int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); + } else { + return nodePoolsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder setNodePools(int index, com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.set(index, value); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder setNodePools( + int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.set(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools(com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools(int index, com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(index, value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools(com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools( + int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addAllNodePools( + java.lang.Iterable values) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodePools_); + onChanged(); + } else { + nodePoolsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder clearNodePools() { + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder removeNodePools(int index) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.remove(index); + onChanged(); + } else { + nodePoolsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool.Builder getNodePoolsBuilder(int index) { + return getNodePoolsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); + } else { + return nodePoolsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List + getNodePoolsOrBuilderList() { + if (nodePoolsBuilder_ != null) { + return nodePoolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodePools_); + } + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder() { + return getNodePoolsFieldBuilder() + .addBuilder(com.google.container.v1beta1.NodePool.getDefaultInstance()); + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder(int index) { + return getNodePoolsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.NodePool.getDefaultInstance()); + } + /** + * + * + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List getNodePoolsBuilderList() { + return getNodePoolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder> + getNodePoolsFieldBuilder() { + if (nodePoolsBuilder_ == null) { + nodePoolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder>( + nodePools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nodePools_ = null; + } + return nodePoolsBuilder_; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This field provides a default value if
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * are not specified during node pool creation.
+     * Warning: changing cluster locations will update the
+     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+     * of all node pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private boolean enableKubernetesAlpha_; + /** + * + * + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1beta1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + * + * @return The enableKubernetesAlpha. + */ + @java.lang.Override + public boolean getEnableKubernetesAlpha() { + return enableKubernetesAlpha_; + } + /** + * + * + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1beta1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + * + * @param value The enableKubernetesAlpha to set. + * @return This builder for chaining. + */ + public Builder setEnableKubernetesAlpha(boolean value) { + + enableKubernetesAlpha_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1beta1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + * + * @return This builder for chaining. + */ + public Builder clearEnableKubernetesAlpha() { + + enableKubernetesAlpha_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + onChanged(); + ; + if (resourceLabels_ == null) { + resourceLabels_ = + com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public boolean containsResourceLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetResourceLabels().getMap().containsKey(key); + } + /** Use {@link #getResourceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceLabels() { + return getResourceLabelsMap(); + } + /** + * + * + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + * + * + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearResourceLabels() { + internalGetMutableResourceLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + public Builder removeResourceLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableResourceLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableResourceLabels() { + return internalGetMutableResourceLabels().getMutableMap(); + } + /** + * + * + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + public Builder putResourceLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableResourceLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The resource labels for the cluster to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 15; + */ + public Builder putAllResourceLabels(java.util.Map values) { + internalGetMutableResourceLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object labelFingerprint_ = ""; + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @return The labelFingerprint. + */ + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @return The bytes for labelFingerprint. + */ + public com.google.protobuf.ByteString getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @param value The labelFingerprint to set. + * @return This builder for chaining. + */ + public Builder setLabelFingerprint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + labelFingerprint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @return This builder for chaining. + */ + public Builder clearLabelFingerprint() { + + labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); + onChanged(); + return this; + } + /** + * + * + *
+     * The fingerprint of the set of labels for this cluster.
+     * 
+ * + * string label_fingerprint = 16; + * + * @param value The bytes for labelFingerprint to set. + * @return This builder for chaining. + */ + public Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + labelFingerprint_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.LegacyAbac legacyAbac_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LegacyAbac, + com.google.container.v1beta1.LegacyAbac.Builder, + com.google.container.v1beta1.LegacyAbacOrBuilder> + legacyAbacBuilder_; + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + * + * @return Whether the legacyAbac field is set. + */ + public boolean hasLegacyAbac() { + return legacyAbacBuilder_ != null || legacyAbac_ != null; + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + * + * @return The legacyAbac. + */ + public com.google.container.v1beta1.LegacyAbac getLegacyAbac() { + if (legacyAbacBuilder_ == null) { + return legacyAbac_ == null + ? com.google.container.v1beta1.LegacyAbac.getDefaultInstance() + : legacyAbac_; + } else { + return legacyAbacBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder setLegacyAbac(com.google.container.v1beta1.LegacyAbac value) { + if (legacyAbacBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + legacyAbac_ = value; + onChanged(); + } else { + legacyAbacBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder setLegacyAbac(com.google.container.v1beta1.LegacyAbac.Builder builderForValue) { + if (legacyAbacBuilder_ == null) { + legacyAbac_ = builderForValue.build(); + onChanged(); + } else { + legacyAbacBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder mergeLegacyAbac(com.google.container.v1beta1.LegacyAbac value) { + if (legacyAbacBuilder_ == null) { + if (legacyAbac_ != null) { + legacyAbac_ = + com.google.container.v1beta1.LegacyAbac.newBuilder(legacyAbac_) + .mergeFrom(value) + .buildPartial(); + } else { + legacyAbac_ = value; + } + onChanged(); + } else { + legacyAbacBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder clearLegacyAbac() { + if (legacyAbacBuilder_ == null) { + legacyAbac_ = null; + onChanged(); + } else { + legacyAbac_ = null; + legacyAbacBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1beta1.LegacyAbac.Builder getLegacyAbacBuilder() { + + onChanged(); + return getLegacyAbacFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1beta1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { + if (legacyAbacBuilder_ != null) { + return legacyAbacBuilder_.getMessageOrBuilder(); + } else { + return legacyAbac_ == null + ? com.google.container.v1beta1.LegacyAbac.getDefaultInstance() + : legacyAbac_; + } + } + /** + * + * + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LegacyAbac, + com.google.container.v1beta1.LegacyAbac.Builder, + com.google.container.v1beta1.LegacyAbacOrBuilder> + getLegacyAbacFieldBuilder() { + if (legacyAbacBuilder_ == null) { + legacyAbacBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LegacyAbac, + com.google.container.v1beta1.LegacyAbac.Builder, + com.google.container.v1beta1.LegacyAbacOrBuilder>( + getLegacyAbac(), getParentForChildren(), isClean()); + legacyAbac_ = null; + } + return legacyAbacBuilder_; + } + + private com.google.container.v1beta1.NetworkPolicy networkPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, + com.google.container.v1beta1.NetworkPolicy.Builder, + com.google.container.v1beta1.NetworkPolicyOrBuilder> + networkPolicyBuilder_; + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + * + * @return Whether the networkPolicy field is set. + */ + public boolean hasNetworkPolicy() { + return networkPolicyBuilder_ != null || networkPolicy_ != null; + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + * + * @return The networkPolicy. + */ + public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + return networkPolicy_ == null + ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } else { + return networkPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder setNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + onChanged(); + } else { + networkPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder setNetworkPolicy( + com.google.container.v1beta1.NetworkPolicy.Builder builderForValue) { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder mergeNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (networkPolicy_ != null) { + networkPolicy_ = + com.google.container.v1beta1.NetworkPolicy.newBuilder(networkPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPolicy_ = value; + } + onChanged(); + } else { + networkPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder clearNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + onChanged(); + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1beta1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + + onChanged(); + return getNetworkPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + if (networkPolicyBuilder_ != null) { + return networkPolicyBuilder_.getMessageOrBuilder(); + } else { + return networkPolicy_ == null + ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } + } + /** + * + * + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, + com.google.container.v1beta1.NetworkPolicy.Builder, + com.google.container.v1beta1.NetworkPolicyOrBuilder> + getNetworkPolicyFieldBuilder() { + if (networkPolicyBuilder_ == null) { + networkPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, + com.google.container.v1beta1.NetworkPolicy.Builder, + com.google.container.v1beta1.NetworkPolicyOrBuilder>( + getNetworkPolicy(), getParentForChildren(), isClean()); + networkPolicy_ = null; + } + return networkPolicyBuilder_; + } + + private com.google.container.v1beta1.IPAllocationPolicy ipAllocationPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IPAllocationPolicy, + com.google.container.v1beta1.IPAllocationPolicy.Builder, + com.google.container.v1beta1.IPAllocationPolicyOrBuilder> + ipAllocationPolicyBuilder_; + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return Whether the ipAllocationPolicy field is set. + */ + public boolean hasIpAllocationPolicy() { + return ipAllocationPolicyBuilder_ != null || ipAllocationPolicy_ != null; + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return The ipAllocationPolicy. + */ + public com.google.container.v1beta1.IPAllocationPolicy getIpAllocationPolicy() { + if (ipAllocationPolicyBuilder_ == null) { + return ipAllocationPolicy_ == null + ? com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() + : ipAllocationPolicy_; + } else { + return ipAllocationPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder setIpAllocationPolicy(com.google.container.v1beta1.IPAllocationPolicy value) { + if (ipAllocationPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ipAllocationPolicy_ = value; + onChanged(); + } else { + ipAllocationPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder setIpAllocationPolicy( + com.google.container.v1beta1.IPAllocationPolicy.Builder builderForValue) { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = builderForValue.build(); + onChanged(); + } else { + ipAllocationPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder mergeIpAllocationPolicy(com.google.container.v1beta1.IPAllocationPolicy value) { + if (ipAllocationPolicyBuilder_ == null) { + if (ipAllocationPolicy_ != null) { + ipAllocationPolicy_ = + com.google.container.v1beta1.IPAllocationPolicy.newBuilder(ipAllocationPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + ipAllocationPolicy_ = value; + } + onChanged(); + } else { + ipAllocationPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder clearIpAllocationPolicy() { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = null; + onChanged(); + } else { + ipAllocationPolicy_ = null; + ipAllocationPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1beta1.IPAllocationPolicy.Builder getIpAllocationPolicyBuilder() { + + onChanged(); + return getIpAllocationPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1beta1.IPAllocationPolicyOrBuilder + getIpAllocationPolicyOrBuilder() { + if (ipAllocationPolicyBuilder_ != null) { + return ipAllocationPolicyBuilder_.getMessageOrBuilder(); + } else { + return ipAllocationPolicy_ == null + ? com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() + : ipAllocationPolicy_; + } + } + /** + * + * + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IPAllocationPolicy, + com.google.container.v1beta1.IPAllocationPolicy.Builder, + com.google.container.v1beta1.IPAllocationPolicyOrBuilder> + getIpAllocationPolicyFieldBuilder() { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IPAllocationPolicy, + com.google.container.v1beta1.IPAllocationPolicy.Builder, + com.google.container.v1beta1.IPAllocationPolicyOrBuilder>( + getIpAllocationPolicy(), getParentForChildren(), isClean()); + ipAllocationPolicy_ = null; + } + return ipAllocationPolicyBuilder_; + } + + private com.google.container.v1beta1.MasterAuthorizedNetworksConfig + masterAuthorizedNetworksConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> + masterAuthorizedNetworksConfigBuilder_; + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + public boolean hasMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfigBuilder_ != null + || masterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig + getMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + return masterAuthorizedNetworksConfig_ == null + ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } else { + return masterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuthorizedNetworksConfig_ = value; + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder builderForValue) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = builderForValue.build(); + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public Builder mergeMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (masterAuthorizedNetworksConfig_ != null) { + masterAuthorizedNetworksConfig_ = + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.newBuilder( + masterAuthorizedNetworksConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + masterAuthorizedNetworksConfig_ = value; + } + onChanged(); + } else { + masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public Builder clearMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = null; + onChanged(); + } else { + masterAuthorizedNetworksConfig_ = null; + masterAuthorizedNetworksConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder + getMasterAuthorizedNetworksConfigBuilder() { + + onChanged(); + return getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ != null) { + return masterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return masterAuthorizedNetworksConfig_ == null + ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : masterAuthorizedNetworksConfig_; + } + } + /** + * + * + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> + getMasterAuthorizedNetworksConfigFieldBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder>( + getMasterAuthorizedNetworksConfig(), getParentForChildren(), isClean()); + masterAuthorizedNetworksConfig_ = null; + } + return masterAuthorizedNetworksConfigBuilder_; + } + + private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, + com.google.container.v1beta1.MaintenancePolicy.Builder, + com.google.container.v1beta1.MaintenancePolicyOrBuilder> + maintenancePolicyBuilder_; + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + * + * @return Whether the maintenancePolicy field is set. + */ + public boolean hasMaintenancePolicy() { + return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + * + * @return The maintenancePolicy. + */ + public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + return maintenancePolicy_ == null + ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } else { + return maintenancePolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder setMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenancePolicy_ = value; + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder setMaintenancePolicy( + com.google.container.v1beta1.MaintenancePolicy.Builder builderForValue) { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = builderForValue.build(); + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder mergeMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (maintenancePolicy_ != null) { + maintenancePolicy_ = + com.google.container.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + maintenancePolicy_ = value; + } + onChanged(); + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder clearMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + onChanged(); + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + if (maintenancePolicyBuilder_ != null) { + return maintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return maintenancePolicy_ == null + ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } + } + /** + * + * + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, + com.google.container.v1beta1.MaintenancePolicy.Builder, + com.google.container.v1beta1.MaintenancePolicyOrBuilder> + getMaintenancePolicyFieldBuilder() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, + com.google.container.v1beta1.MaintenancePolicy.Builder, + com.google.container.v1beta1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), getParentForChildren(), isClean()); + maintenancePolicy_ = null; + } + return maintenancePolicyBuilder_; + } + + private com.google.container.v1beta1.BinaryAuthorization binaryAuthorization_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, + com.google.container.v1beta1.BinaryAuthorization.Builder, + com.google.container.v1beta1.BinaryAuthorizationOrBuilder> + binaryAuthorizationBuilder_; + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + * + * @return Whether the binaryAuthorization field is set. + */ + public boolean hasBinaryAuthorization() { + return binaryAuthorizationBuilder_ != null || binaryAuthorization_ != null; + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + * + * @return The binaryAuthorization. + */ + public com.google.container.v1beta1.BinaryAuthorization getBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + return binaryAuthorization_ == null + ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() + : binaryAuthorization_; + } else { + return binaryAuthorizationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder setBinaryAuthorization(com.google.container.v1beta1.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binaryAuthorization_ = value; + onChanged(); + } else { + binaryAuthorizationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder setBinaryAuthorization( + com.google.container.v1beta1.BinaryAuthorization.Builder builderForValue) { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = builderForValue.build(); + onChanged(); + } else { + binaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder mergeBinaryAuthorization( + com.google.container.v1beta1.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { + if (binaryAuthorization_ != null) { + binaryAuthorization_ = + com.google.container.v1beta1.BinaryAuthorization.newBuilder(binaryAuthorization_) + .mergeFrom(value) + .buildPartial(); + } else { + binaryAuthorization_ = value; + } + onChanged(); + } else { + binaryAuthorizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder clearBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; + onChanged(); + } else { + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1beta1.BinaryAuthorization.Builder + getBinaryAuthorizationBuilder() { + + onChanged(); + return getBinaryAuthorizationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1beta1.BinaryAuthorizationOrBuilder + getBinaryAuthorizationOrBuilder() { + if (binaryAuthorizationBuilder_ != null) { + return binaryAuthorizationBuilder_.getMessageOrBuilder(); + } else { + return binaryAuthorization_ == null + ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() + : binaryAuthorization_; + } + } + /** + * + * + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, + com.google.container.v1beta1.BinaryAuthorization.Builder, + com.google.container.v1beta1.BinaryAuthorizationOrBuilder> + getBinaryAuthorizationFieldBuilder() { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorizationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, + com.google.container.v1beta1.BinaryAuthorization.Builder, + com.google.container.v1beta1.BinaryAuthorizationOrBuilder>( + getBinaryAuthorization(), getParentForChildren(), isClean()); + binaryAuthorization_ = null; + } + return binaryAuthorizationBuilder_; + } + + private com.google.container.v1beta1.PodSecurityPolicyConfig podSecurityPolicyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> + podSecurityPolicyConfigBuilder_; + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + * + * @return Whether the podSecurityPolicyConfig field is set. + */ + public boolean hasPodSecurityPolicyConfig() { + return podSecurityPolicyConfigBuilder_ != null || podSecurityPolicyConfig_ != null; + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + * + * @return The podSecurityPolicyConfig. + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig getPodSecurityPolicyConfig() { + if (podSecurityPolicyConfigBuilder_ == null) { + return podSecurityPolicyConfig_ == null + ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() + : podSecurityPolicyConfig_; + } else { + return podSecurityPolicyConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + public Builder setPodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig value) { + if (podSecurityPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podSecurityPolicyConfig_ = value; + onChanged(); + } else { + podSecurityPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + public Builder setPodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder builderForValue) { + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + podSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + public Builder mergePodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig value) { + if (podSecurityPolicyConfigBuilder_ == null) { + if (podSecurityPolicyConfig_ != null) { + podSecurityPolicyConfig_ = + com.google.container.v1beta1.PodSecurityPolicyConfig.newBuilder( + podSecurityPolicyConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + podSecurityPolicyConfig_ = value; + } + onChanged(); + } else { + podSecurityPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + public Builder clearPodSecurityPolicyConfig() { + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfig_ = null; + onChanged(); + } else { + podSecurityPolicyConfig_ = null; + podSecurityPolicyConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig.Builder + getPodSecurityPolicyConfigBuilder() { + + onChanged(); + return getPodSecurityPolicyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder + getPodSecurityPolicyConfigOrBuilder() { + if (podSecurityPolicyConfigBuilder_ != null) { + return podSecurityPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return podSecurityPolicyConfig_ == null + ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() + : podSecurityPolicyConfig_; + } + } + /** + * + * + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> + getPodSecurityPolicyConfigFieldBuilder() { + if (podSecurityPolicyConfigBuilder_ == null) { + podSecurityPolicyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder>( + getPodSecurityPolicyConfig(), getParentForChildren(), isClean()); + podSecurityPolicyConfig_ = null; + } + return podSecurityPolicyConfigBuilder_; + } + + private com.google.container.v1beta1.ClusterAutoscaling autoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, + com.google.container.v1beta1.ClusterAutoscaling.Builder, + com.google.container.v1beta1.ClusterAutoscalingOrBuilder> + autoscalingBuilder_; + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + * + * @return Whether the autoscaling field is set. + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + * + * @return The autoscaling. + */ + public com.google.container.v1beta1.ClusterAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null + ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() + : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder setAutoscaling(com.google.container.v1beta1.ClusterAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder setAutoscaling( + com.google.container.v1beta1.ClusterAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder mergeAutoscaling(com.google.container.v1beta1.ClusterAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1beta1.ClusterAutoscaling.newBuilder(autoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1beta1.ClusterAutoscaling.Builder getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1beta1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null + ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() + : autoscaling_; + } + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, + com.google.container.v1beta1.ClusterAutoscaling.Builder, + com.google.container.v1beta1.ClusterAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, + com.google.container.v1beta1.ClusterAutoscaling.Builder, + com.google.container.v1beta1.ClusterAutoscalingOrBuilder>( + getAutoscaling(), getParentForChildren(), isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private com.google.container.v1beta1.NetworkConfig networkConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig, + com.google.container.v1beta1.NetworkConfig.Builder, + com.google.container.v1beta1.NetworkConfigOrBuilder> + networkConfigBuilder_; + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + * + * @return Whether the networkConfig field is set. + */ + public boolean hasNetworkConfig() { + return networkConfigBuilder_ != null || networkConfig_ != null; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + * + * @return The networkConfig. + */ + public com.google.container.v1beta1.NetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null + ? com.google.container.v1beta1.NetworkConfig.getDefaultInstance() + : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder setNetworkConfig(com.google.container.v1beta1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + onChanged(); + } else { + networkConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder setNetworkConfig( + com.google.container.v1beta1.NetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + onChanged(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder mergeNetworkConfig(com.google.container.v1beta1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (networkConfig_ != null) { + networkConfig_ = + com.google.container.v1beta1.NetworkConfig.newBuilder(networkConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + networkConfig_ = value; + } + onChanged(); + } else { + networkConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder clearNetworkConfig() { + if (networkConfigBuilder_ == null) { + networkConfig_ = null; + onChanged(); + } else { + networkConfig_ = null; + networkConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public com.google.container.v1beta1.NetworkConfig.Builder getNetworkConfigBuilder() { + + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null + ? com.google.container.v1beta1.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + } + /** + * + * + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig, + com.google.container.v1beta1.NetworkConfig.Builder, + com.google.container.v1beta1.NetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig, + com.google.container.v1beta1.NetworkConfig.Builder, + com.google.container.v1beta1.NetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + + private boolean privateCluster_; + /** + * + * + *
+     * If this is a private cluster setup. Private clusters are clusters that, by
+     * default have no external IP addresses on the nodes and where nodes and the
+     * master communicate over private IP addresses.
+     * This field is deprecated, use private_cluster_config.enable_private_nodes
+     * instead.
+     * 
+ * + * bool private_cluster = 28 [deprecated = true]; + * + * @return The privateCluster. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean getPrivateCluster() { + return privateCluster_; + } + /** + * + * + *
+     * If this is a private cluster setup. Private clusters are clusters that, by
+     * default have no external IP addresses on the nodes and where nodes and the
+     * master communicate over private IP addresses.
+     * This field is deprecated, use private_cluster_config.enable_private_nodes
+     * instead.
+     * 
+ * + * bool private_cluster = 28 [deprecated = true]; + * + * @param value The privateCluster to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPrivateCluster(boolean value) { + + privateCluster_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If this is a private cluster setup. Private clusters are clusters that, by
+     * default have no external IP addresses on the nodes and where nodes and the
+     * master communicate over private IP addresses.
+     * This field is deprecated, use private_cluster_config.enable_private_nodes
+     * instead.
+     * 
+ * + * bool private_cluster = 28 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearPrivateCluster() { + + privateCluster_ = false; + onChanged(); + return this; + } + + private java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @return The masterIpv4CidrBlock. + */ + @java.lang.Deprecated + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @param value The masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setMasterIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearMasterIpv4CidrBlock() { + + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP prefix in CIDR notation to use for the hosted master network.
+     * This prefix will be used for assigning private IP addresses to the
+     * master or set of masters, as well as the ILB VIP.
+     * This field is deprecated, use
+     * private_cluster_config.master_ipv4_cidr_block instead.
+     * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @param value The bytes for masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.MaxPodsConstraint defaultMaxPodsConstraint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, + com.google.container.v1beta1.MaxPodsConstraint.Builder, + com.google.container.v1beta1.MaxPodsConstraintOrBuilder> + defaultMaxPodsConstraintBuilder_; + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return Whether the defaultMaxPodsConstraint field is set. + */ + public boolean hasDefaultMaxPodsConstraint() { + return defaultMaxPodsConstraintBuilder_ != null || defaultMaxPodsConstraint_ != null; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return The defaultMaxPodsConstraint. + */ + public com.google.container.v1beta1.MaxPodsConstraint getDefaultMaxPodsConstraint() { + if (defaultMaxPodsConstraintBuilder_ == null) { + return defaultMaxPodsConstraint_ == null + ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() + : defaultMaxPodsConstraint_; + } else { + return defaultMaxPodsConstraintBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder setDefaultMaxPodsConstraint( + com.google.container.v1beta1.MaxPodsConstraint value) { + if (defaultMaxPodsConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultMaxPodsConstraint_ = value; + onChanged(); + } else { + defaultMaxPodsConstraintBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder setDefaultMaxPodsConstraint( + com.google.container.v1beta1.MaxPodsConstraint.Builder builderForValue) { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = builderForValue.build(); + onChanged(); + } else { + defaultMaxPodsConstraintBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder mergeDefaultMaxPodsConstraint( + com.google.container.v1beta1.MaxPodsConstraint value) { + if (defaultMaxPodsConstraintBuilder_ == null) { + if (defaultMaxPodsConstraint_ != null) { + defaultMaxPodsConstraint_ = + com.google.container.v1beta1.MaxPodsConstraint.newBuilder(defaultMaxPodsConstraint_) + .mergeFrom(value) + .buildPartial(); + } else { + defaultMaxPodsConstraint_ = value; + } + onChanged(); + } else { + defaultMaxPodsConstraintBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder clearDefaultMaxPodsConstraint() { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = null; + onChanged(); + } else { + defaultMaxPodsConstraint_ = null; + defaultMaxPodsConstraintBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public com.google.container.v1beta1.MaxPodsConstraint.Builder + getDefaultMaxPodsConstraintBuilder() { + + onChanged(); + return getDefaultMaxPodsConstraintFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder + getDefaultMaxPodsConstraintOrBuilder() { + if (defaultMaxPodsConstraintBuilder_ != null) { + return defaultMaxPodsConstraintBuilder_.getMessageOrBuilder(); + } else { + return defaultMaxPodsConstraint_ == null + ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() + : defaultMaxPodsConstraint_; + } + } + /** + * + * + *
+     * The default constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool of this cluster. Only honored
+     * if cluster created with IP Alias support.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, + com.google.container.v1beta1.MaxPodsConstraint.Builder, + com.google.container.v1beta1.MaxPodsConstraintOrBuilder> + getDefaultMaxPodsConstraintFieldBuilder() { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, + com.google.container.v1beta1.MaxPodsConstraint.Builder, + com.google.container.v1beta1.MaxPodsConstraintOrBuilder>( + getDefaultMaxPodsConstraint(), getParentForChildren(), isClean()); + defaultMaxPodsConstraint_ = null; + } + return defaultMaxPodsConstraintBuilder_; + } + + private com.google.container.v1beta1.ResourceUsageExportConfig resourceUsageExportConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder, + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder> + resourceUsageExportConfigBuilder_; + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * + * @return Whether the resourceUsageExportConfig field is set. + */ + public boolean hasResourceUsageExportConfig() { + return resourceUsageExportConfigBuilder_ != null || resourceUsageExportConfig_ != null; + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * + * @return The resourceUsageExportConfig. + */ + public com.google.container.v1beta1.ResourceUsageExportConfig getResourceUsageExportConfig() { + if (resourceUsageExportConfigBuilder_ == null) { + return resourceUsageExportConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() + : resourceUsageExportConfig_; + } else { + return resourceUsageExportConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public Builder setResourceUsageExportConfig( + com.google.container.v1beta1.ResourceUsageExportConfig value) { + if (resourceUsageExportConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceUsageExportConfig_ = value; + onChanged(); + } else { + resourceUsageExportConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public Builder setResourceUsageExportConfig( + com.google.container.v1beta1.ResourceUsageExportConfig.Builder builderForValue) { + if (resourceUsageExportConfigBuilder_ == null) { + resourceUsageExportConfig_ = builderForValue.build(); + onChanged(); + } else { + resourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public Builder mergeResourceUsageExportConfig( + com.google.container.v1beta1.ResourceUsageExportConfig value) { + if (resourceUsageExportConfigBuilder_ == null) { + if (resourceUsageExportConfig_ != null) { + resourceUsageExportConfig_ = + com.google.container.v1beta1.ResourceUsageExportConfig.newBuilder( + resourceUsageExportConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceUsageExportConfig_ = value; + } + onChanged(); + } else { + resourceUsageExportConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public Builder clearResourceUsageExportConfig() { + if (resourceUsageExportConfigBuilder_ == null) { + resourceUsageExportConfig_ = null; + onChanged(); + } else { + resourceUsageExportConfig_ = null; + resourceUsageExportConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.Builder + getResourceUsageExportConfigBuilder() { + + onChanged(); + return getResourceUsageExportConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder + getResourceUsageExportConfigOrBuilder() { + if (resourceUsageExportConfigBuilder_ != null) { + return resourceUsageExportConfigBuilder_.getMessageOrBuilder(); + } else { + return resourceUsageExportConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() + : resourceUsageExportConfig_; + } + } + /** + * + * + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config unspecified.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder, + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder> + getResourceUsageExportConfigFieldBuilder() { + if (resourceUsageExportConfigBuilder_ == null) { + resourceUsageExportConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder, + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder>( + getResourceUsageExportConfig(), getParentForChildren(), isClean()); + resourceUsageExportConfig_ = null; + } + return resourceUsageExportConfigBuilder_; + } + + private com.google.container.v1beta1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AuthenticatorGroupsConfig, + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, + com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder> + authenticatorGroupsConfigBuilder_; + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * + * @return Whether the authenticatorGroupsConfig field is set. + */ + public boolean hasAuthenticatorGroupsConfig() { + return authenticatorGroupsConfigBuilder_ != null || authenticatorGroupsConfig_ != null; + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * + * @return The authenticatorGroupsConfig. + */ + public com.google.container.v1beta1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig() { + if (authenticatorGroupsConfigBuilder_ == null) { + return authenticatorGroupsConfig_ == null + ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() + : authenticatorGroupsConfig_; + } else { + return authenticatorGroupsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + public Builder setAuthenticatorGroupsConfig( + com.google.container.v1beta1.AuthenticatorGroupsConfig value) { + if (authenticatorGroupsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authenticatorGroupsConfig_ = value; + onChanged(); + } else { + authenticatorGroupsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + public Builder setAuthenticatorGroupsConfig( + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder builderForValue) { + if (authenticatorGroupsConfigBuilder_ == null) { + authenticatorGroupsConfig_ = builderForValue.build(); + onChanged(); + } else { + authenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + public Builder mergeAuthenticatorGroupsConfig( + com.google.container.v1beta1.AuthenticatorGroupsConfig value) { + if (authenticatorGroupsConfigBuilder_ == null) { + if (authenticatorGroupsConfig_ != null) { + authenticatorGroupsConfig_ = + com.google.container.v1beta1.AuthenticatorGroupsConfig.newBuilder( + authenticatorGroupsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + authenticatorGroupsConfig_ = value; + } + onChanged(); + } else { + authenticatorGroupsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + public Builder clearAuthenticatorGroupsConfig() { + if (authenticatorGroupsConfigBuilder_ == null) { + authenticatorGroupsConfig_ = null; + onChanged(); + } else { + authenticatorGroupsConfig_ = null; + authenticatorGroupsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + public com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder + getAuthenticatorGroupsConfigBuilder() { + + onChanged(); + return getAuthenticatorGroupsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + public com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder + getAuthenticatorGroupsConfigOrBuilder() { + if (authenticatorGroupsConfigBuilder_ != null) { + return authenticatorGroupsConfigBuilder_.getMessageOrBuilder(); + } else { + return authenticatorGroupsConfig_ == null + ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() + : authenticatorGroupsConfig_; + } + } + /** + * + * + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AuthenticatorGroupsConfig, + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, + com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder> + getAuthenticatorGroupsConfigFieldBuilder() { + if (authenticatorGroupsConfigBuilder_ == null) { + authenticatorGroupsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AuthenticatorGroupsConfig, + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, + com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder>( + getAuthenticatorGroupsConfig(), getParentForChildren(), isClean()); + authenticatorGroupsConfig_ = null; + } + return authenticatorGroupsConfigBuilder_; + } + + private com.google.container.v1beta1.PrivateClusterConfig privateClusterConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, + com.google.container.v1beta1.PrivateClusterConfig.Builder, + com.google.container.v1beta1.PrivateClusterConfigOrBuilder> + privateClusterConfigBuilder_; + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + * + * @return Whether the privateClusterConfig field is set. + */ + public boolean hasPrivateClusterConfig() { + return privateClusterConfigBuilder_ != null || privateClusterConfig_ != null; + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + * + * @return The privateClusterConfig. + */ + public com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig() { + if (privateClusterConfigBuilder_ == null) { + return privateClusterConfig_ == null + ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() + : privateClusterConfig_; + } else { + return privateClusterConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder setPrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig value) { + if (privateClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateClusterConfig_ = value; + onChanged(); + } else { + privateClusterConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder setPrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig.Builder builderForValue) { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = builderForValue.build(); + onChanged(); + } else { + privateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder mergePrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig value) { + if (privateClusterConfigBuilder_ == null) { + if (privateClusterConfig_ != null) { + privateClusterConfig_ = + com.google.container.v1beta1.PrivateClusterConfig.newBuilder(privateClusterConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + privateClusterConfig_ = value; + } + onChanged(); + } else { + privateClusterConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder clearPrivateClusterConfig() { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = null; + onChanged(); + } else { + privateClusterConfig_ = null; + privateClusterConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1beta1.PrivateClusterConfig.Builder + getPrivateClusterConfigBuilder() { + + onChanged(); + return getPrivateClusterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1beta1.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder() { + if (privateClusterConfigBuilder_ != null) { + return privateClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return privateClusterConfig_ == null + ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() + : privateClusterConfig_; + } + } + /** + * + * + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, + com.google.container.v1beta1.PrivateClusterConfig.Builder, + com.google.container.v1beta1.PrivateClusterConfigOrBuilder> + getPrivateClusterConfigFieldBuilder() { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, + com.google.container.v1beta1.PrivateClusterConfig.Builder, + com.google.container.v1beta1.PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), getParentForChildren(), isClean()); + privateClusterConfig_ = null; + } + return privateClusterConfigBuilder_; + } + + private com.google.container.v1beta1.VerticalPodAutoscaling verticalPodAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VerticalPodAutoscaling, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder, + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder> + verticalPodAutoscalingBuilder_; + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * + * @return Whether the verticalPodAutoscaling field is set. + */ + public boolean hasVerticalPodAutoscaling() { + return verticalPodAutoscalingBuilder_ != null || verticalPodAutoscaling_ != null; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * + * @return The verticalPodAutoscaling. + */ + public com.google.container.v1beta1.VerticalPodAutoscaling getVerticalPodAutoscaling() { + if (verticalPodAutoscalingBuilder_ == null) { + return verticalPodAutoscaling_ == null + ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() + : verticalPodAutoscaling_; + } else { + return verticalPodAutoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder setVerticalPodAutoscaling( + com.google.container.v1beta1.VerticalPodAutoscaling value) { + if (verticalPodAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + verticalPodAutoscaling_ = value; + onChanged(); + } else { + verticalPodAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder setVerticalPodAutoscaling( + com.google.container.v1beta1.VerticalPodAutoscaling.Builder builderForValue) { + if (verticalPodAutoscalingBuilder_ == null) { + verticalPodAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + verticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder mergeVerticalPodAutoscaling( + com.google.container.v1beta1.VerticalPodAutoscaling value) { + if (verticalPodAutoscalingBuilder_ == null) { + if (verticalPodAutoscaling_ != null) { + verticalPodAutoscaling_ = + com.google.container.v1beta1.VerticalPodAutoscaling.newBuilder( + verticalPodAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + verticalPodAutoscaling_ = value; + } + onChanged(); + } else { + verticalPodAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder clearVerticalPodAutoscaling() { + if (verticalPodAutoscalingBuilder_ == null) { + verticalPodAutoscaling_ = null; + onChanged(); + } else { + verticalPodAutoscaling_ = null; + verticalPodAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public com.google.container.v1beta1.VerticalPodAutoscaling.Builder + getVerticalPodAutoscalingBuilder() { + + onChanged(); + return getVerticalPodAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder + getVerticalPodAutoscalingOrBuilder() { + if (verticalPodAutoscalingBuilder_ != null) { + return verticalPodAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return verticalPodAutoscaling_ == null + ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() + : verticalPodAutoscaling_; + } + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VerticalPodAutoscaling, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder, + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder> + getVerticalPodAutoscalingFieldBuilder() { + if (verticalPodAutoscalingBuilder_ == null) { + verticalPodAutoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VerticalPodAutoscaling, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder, + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder>( + getVerticalPodAutoscaling(), getParentForChildren(), isClean()); + verticalPodAutoscaling_ = null; + } + return verticalPodAutoscalingBuilder_; + } + + private com.google.container.v1beta1.ShieldedNodes shieldedNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedNodes, + com.google.container.v1beta1.ShieldedNodes.Builder, + com.google.container.v1beta1.ShieldedNodesOrBuilder> + shieldedNodesBuilder_; + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + * + * @return Whether the shieldedNodes field is set. + */ + public boolean hasShieldedNodes() { + return shieldedNodesBuilder_ != null || shieldedNodes_ != null; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + * + * @return The shieldedNodes. + */ + public com.google.container.v1beta1.ShieldedNodes getShieldedNodes() { + if (shieldedNodesBuilder_ == null) { + return shieldedNodes_ == null + ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() + : shieldedNodes_; + } else { + return shieldedNodesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public Builder setShieldedNodes(com.google.container.v1beta1.ShieldedNodes value) { + if (shieldedNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedNodes_ = value; + onChanged(); + } else { + shieldedNodesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public Builder setShieldedNodes( + com.google.container.v1beta1.ShieldedNodes.Builder builderForValue) { + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = builderForValue.build(); + onChanged(); + } else { + shieldedNodesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public Builder mergeShieldedNodes(com.google.container.v1beta1.ShieldedNodes value) { + if (shieldedNodesBuilder_ == null) { + if (shieldedNodes_ != null) { + shieldedNodes_ = + com.google.container.v1beta1.ShieldedNodes.newBuilder(shieldedNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedNodes_ = value; + } + onChanged(); + } else { + shieldedNodesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public Builder clearShieldedNodes() { + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = null; + onChanged(); + } else { + shieldedNodes_ = null; + shieldedNodesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public com.google.container.v1beta1.ShieldedNodes.Builder getShieldedNodesBuilder() { + + onChanged(); + return getShieldedNodesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public com.google.container.v1beta1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { + if (shieldedNodesBuilder_ != null) { + return shieldedNodesBuilder_.getMessageOrBuilder(); + } else { + return shieldedNodes_ == null + ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() + : shieldedNodes_; + } + } + /** + * + * + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedNodes, + com.google.container.v1beta1.ShieldedNodes.Builder, + com.google.container.v1beta1.ShieldedNodesOrBuilder> + getShieldedNodesFieldBuilder() { + if (shieldedNodesBuilder_ == null) { + shieldedNodesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedNodes, + com.google.container.v1beta1.ShieldedNodes.Builder, + com.google.container.v1beta1.ShieldedNodesOrBuilder>( + getShieldedNodes(), getParentForChildren(), isClean()); + shieldedNodes_ = null; + } + return shieldedNodesBuilder_; + } + + private com.google.container.v1beta1.ReleaseChannel releaseChannel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReleaseChannel, + com.google.container.v1beta1.ReleaseChannel.Builder, + com.google.container.v1beta1.ReleaseChannelOrBuilder> + releaseChannelBuilder_; + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * + * @return Whether the releaseChannel field is set. + */ + public boolean hasReleaseChannel() { + return releaseChannelBuilder_ != null || releaseChannel_ != null; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * + * @return The releaseChannel. + */ + public com.google.container.v1beta1.ReleaseChannel getReleaseChannel() { + if (releaseChannelBuilder_ == null) { + return releaseChannel_ == null + ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } else { + return releaseChannelBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public Builder setReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseChannel_ = value; + onChanged(); + } else { + releaseChannelBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public Builder setReleaseChannel( + com.google.container.v1beta1.ReleaseChannel.Builder builderForValue) { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = builderForValue.build(); + onChanged(); + } else { + releaseChannelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public Builder mergeReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (releaseChannel_ != null) { + releaseChannel_ = + com.google.container.v1beta1.ReleaseChannel.newBuilder(releaseChannel_) + .mergeFrom(value) + .buildPartial(); + } else { + releaseChannel_ = value; + } + onChanged(); + } else { + releaseChannelBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public Builder clearReleaseChannel() { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = null; + onChanged(); + } else { + releaseChannel_ = null; + releaseChannelBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public com.google.container.v1beta1.ReleaseChannel.Builder getReleaseChannelBuilder() { + + onChanged(); + return getReleaseChannelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + if (releaseChannelBuilder_ != null) { + return releaseChannelBuilder_.getMessageOrBuilder(); + } else { + return releaseChannel_ == null + ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() + : releaseChannel_; + } + } + /** + * + * + *
+     * Release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReleaseChannel, + com.google.container.v1beta1.ReleaseChannel.Builder, + com.google.container.v1beta1.ReleaseChannelOrBuilder> + getReleaseChannelFieldBuilder() { + if (releaseChannelBuilder_ == null) { + releaseChannelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReleaseChannel, + com.google.container.v1beta1.ReleaseChannel.Builder, + com.google.container.v1beta1.ReleaseChannelOrBuilder>( + getReleaseChannel(), getParentForChildren(), isClean()); + releaseChannel_ = null; + } + return releaseChannelBuilder_; + } + + private com.google.container.v1beta1.WorkloadIdentityConfig workloadIdentityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadIdentityConfig, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder, + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder> + workloadIdentityConfigBuilder_; + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return Whether the workloadIdentityConfig field is set. + */ + public boolean hasWorkloadIdentityConfig() { + return workloadIdentityConfigBuilder_ != null || workloadIdentityConfig_ != null; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return The workloadIdentityConfig. + */ + public com.google.container.v1beta1.WorkloadIdentityConfig getWorkloadIdentityConfig() { + if (workloadIdentityConfigBuilder_ == null) { + return workloadIdentityConfig_ == null + ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } else { + return workloadIdentityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder setWorkloadIdentityConfig( + com.google.container.v1beta1.WorkloadIdentityConfig value) { + if (workloadIdentityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadIdentityConfig_ = value; + onChanged(); + } else { + workloadIdentityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder setWorkloadIdentityConfig( + com.google.container.v1beta1.WorkloadIdentityConfig.Builder builderForValue) { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder mergeWorkloadIdentityConfig( + com.google.container.v1beta1.WorkloadIdentityConfig value) { + if (workloadIdentityConfigBuilder_ == null) { + if (workloadIdentityConfig_ != null) { + workloadIdentityConfig_ = + com.google.container.v1beta1.WorkloadIdentityConfig.newBuilder( + workloadIdentityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadIdentityConfig_ = value; + } + onChanged(); + } else { + workloadIdentityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder clearWorkloadIdentityConfig() { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = null; + onChanged(); + } else { + workloadIdentityConfig_ = null; + workloadIdentityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public com.google.container.v1beta1.WorkloadIdentityConfig.Builder + getWorkloadIdentityConfigBuilder() { + + onChanged(); + return getWorkloadIdentityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder + getWorkloadIdentityConfigOrBuilder() { + if (workloadIdentityConfigBuilder_ != null) { + return workloadIdentityConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadIdentityConfig_ == null + ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() + : workloadIdentityConfig_; + } + } + /** + * + * + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadIdentityConfig, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder, + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder> + getWorkloadIdentityConfigFieldBuilder() { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadIdentityConfig, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder, + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder>( + getWorkloadIdentityConfig(), getParentForChildren(), isClean()); + workloadIdentityConfig_ = null; + } + return workloadIdentityConfigBuilder_; + } + + private com.google.container.v1beta1.ClusterTelemetry clusterTelemetry_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterTelemetry, + com.google.container.v1beta1.ClusterTelemetry.Builder, + com.google.container.v1beta1.ClusterTelemetryOrBuilder> + clusterTelemetryBuilder_; + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + * + * @return Whether the clusterTelemetry field is set. + */ + public boolean hasClusterTelemetry() { + return clusterTelemetryBuilder_ != null || clusterTelemetry_ != null; + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + * + * @return The clusterTelemetry. + */ + public com.google.container.v1beta1.ClusterTelemetry getClusterTelemetry() { + if (clusterTelemetryBuilder_ == null) { + return clusterTelemetry_ == null + ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() + : clusterTelemetry_; + } else { + return clusterTelemetryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public Builder setClusterTelemetry(com.google.container.v1beta1.ClusterTelemetry value) { + if (clusterTelemetryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clusterTelemetry_ = value; + onChanged(); + } else { + clusterTelemetryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public Builder setClusterTelemetry( + com.google.container.v1beta1.ClusterTelemetry.Builder builderForValue) { + if (clusterTelemetryBuilder_ == null) { + clusterTelemetry_ = builderForValue.build(); + onChanged(); + } else { + clusterTelemetryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public Builder mergeClusterTelemetry(com.google.container.v1beta1.ClusterTelemetry value) { + if (clusterTelemetryBuilder_ == null) { + if (clusterTelemetry_ != null) { + clusterTelemetry_ = + com.google.container.v1beta1.ClusterTelemetry.newBuilder(clusterTelemetry_) + .mergeFrom(value) + .buildPartial(); + } else { + clusterTelemetry_ = value; + } + onChanged(); + } else { + clusterTelemetryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public Builder clearClusterTelemetry() { + if (clusterTelemetryBuilder_ == null) { + clusterTelemetry_ = null; + onChanged(); + } else { + clusterTelemetry_ = null; + clusterTelemetryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public com.google.container.v1beta1.ClusterTelemetry.Builder getClusterTelemetryBuilder() { + + onChanged(); + return getClusterTelemetryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public com.google.container.v1beta1.ClusterTelemetryOrBuilder getClusterTelemetryOrBuilder() { + if (clusterTelemetryBuilder_ != null) { + return clusterTelemetryBuilder_.getMessageOrBuilder(); + } else { + return clusterTelemetry_ == null + ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() + : clusterTelemetry_; + } + } + /** + * + * + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterTelemetry, + com.google.container.v1beta1.ClusterTelemetry.Builder, + com.google.container.v1beta1.ClusterTelemetryOrBuilder> + getClusterTelemetryFieldBuilder() { + if (clusterTelemetryBuilder_ == null) { + clusterTelemetryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterTelemetry, + com.google.container.v1beta1.ClusterTelemetry.Builder, + com.google.container.v1beta1.ClusterTelemetryOrBuilder>( + getClusterTelemetry(), getParentForChildren(), isClean()); + clusterTelemetry_ = null; + } + return clusterTelemetryBuilder_; + } + + private com.google.container.v1beta1.TpuConfig tpuConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TpuConfig, + com.google.container.v1beta1.TpuConfig.Builder, + com.google.container.v1beta1.TpuConfigOrBuilder> + tpuConfigBuilder_; + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + * + * @return Whether the tpuConfig field is set. + */ + public boolean hasTpuConfig() { + return tpuConfigBuilder_ != null || tpuConfig_ != null; + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + * + * @return The tpuConfig. + */ + public com.google.container.v1beta1.TpuConfig getTpuConfig() { + if (tpuConfigBuilder_ == null) { + return tpuConfig_ == null + ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() + : tpuConfig_; + } else { + return tpuConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public Builder setTpuConfig(com.google.container.v1beta1.TpuConfig value) { + if (tpuConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tpuConfig_ = value; + onChanged(); + } else { + tpuConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public Builder setTpuConfig(com.google.container.v1beta1.TpuConfig.Builder builderForValue) { + if (tpuConfigBuilder_ == null) { + tpuConfig_ = builderForValue.build(); + onChanged(); + } else { + tpuConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public Builder mergeTpuConfig(com.google.container.v1beta1.TpuConfig value) { + if (tpuConfigBuilder_ == null) { + if (tpuConfig_ != null) { + tpuConfig_ = + com.google.container.v1beta1.TpuConfig.newBuilder(tpuConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + tpuConfig_ = value; + } + onChanged(); + } else { + tpuConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public Builder clearTpuConfig() { + if (tpuConfigBuilder_ == null) { + tpuConfig_ = null; + onChanged(); + } else { + tpuConfig_ = null; + tpuConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public com.google.container.v1beta1.TpuConfig.Builder getTpuConfigBuilder() { + + onChanged(); + return getTpuConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public com.google.container.v1beta1.TpuConfigOrBuilder getTpuConfigOrBuilder() { + if (tpuConfigBuilder_ != null) { + return tpuConfigBuilder_.getMessageOrBuilder(); + } else { + return tpuConfig_ == null + ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() + : tpuConfig_; + } + } + /** + * + * + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TpuConfig, + com.google.container.v1beta1.TpuConfig.Builder, + com.google.container.v1beta1.TpuConfigOrBuilder> + getTpuConfigFieldBuilder() { + if (tpuConfigBuilder_ == null) { + tpuConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TpuConfig, + com.google.container.v1beta1.TpuConfig.Builder, + com.google.container.v1beta1.TpuConfigOrBuilder>( + getTpuConfig(), getParentForChildren(), isClean()); + tpuConfig_ = null; + } + return tpuConfigBuilder_; + } + + private com.google.container.v1beta1.NotificationConfig notificationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig, + com.google.container.v1beta1.NotificationConfig.Builder, + com.google.container.v1beta1.NotificationConfigOrBuilder> + notificationConfigBuilder_; + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + * + * @return Whether the notificationConfig field is set. + */ + public boolean hasNotificationConfig() { + return notificationConfigBuilder_ != null || notificationConfig_ != null; + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + * + * @return The notificationConfig. + */ + public com.google.container.v1beta1.NotificationConfig getNotificationConfig() { + if (notificationConfigBuilder_ == null) { + return notificationConfig_ == null + ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() + : notificationConfig_; + } else { + return notificationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public Builder setNotificationConfig(com.google.container.v1beta1.NotificationConfig value) { + if (notificationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notificationConfig_ = value; + onChanged(); + } else { + notificationConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public Builder setNotificationConfig( + com.google.container.v1beta1.NotificationConfig.Builder builderForValue) { + if (notificationConfigBuilder_ == null) { + notificationConfig_ = builderForValue.build(); + onChanged(); + } else { + notificationConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public Builder mergeNotificationConfig(com.google.container.v1beta1.NotificationConfig value) { + if (notificationConfigBuilder_ == null) { + if (notificationConfig_ != null) { + notificationConfig_ = + com.google.container.v1beta1.NotificationConfig.newBuilder(notificationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + notificationConfig_ = value; + } + onChanged(); + } else { + notificationConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public Builder clearNotificationConfig() { + if (notificationConfigBuilder_ == null) { + notificationConfig_ = null; + onChanged(); + } else { + notificationConfig_ = null; + notificationConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public com.google.container.v1beta1.NotificationConfig.Builder getNotificationConfigBuilder() { + + onChanged(); + return getNotificationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public com.google.container.v1beta1.NotificationConfigOrBuilder + getNotificationConfigOrBuilder() { + if (notificationConfigBuilder_ != null) { + return notificationConfigBuilder_.getMessageOrBuilder(); + } else { + return notificationConfig_ == null + ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() + : notificationConfig_; + } + } + /** + * + * + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig, + com.google.container.v1beta1.NotificationConfig.Builder, + com.google.container.v1beta1.NotificationConfigOrBuilder> + getNotificationConfigFieldBuilder() { + if (notificationConfigBuilder_ == null) { + notificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig, + com.google.container.v1beta1.NotificationConfig.Builder, + com.google.container.v1beta1.NotificationConfigOrBuilder>( + getNotificationConfig(), getParentForChildren(), isClean()); + notificationConfig_ = null; + } + return notificationConfigBuilder_; + } + + private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ConfidentialNodes, + com.google.container.v1beta1.ConfidentialNodes.Builder, + com.google.container.v1beta1.ConfidentialNodesOrBuilder> + confidentialNodesBuilder_; + /** + * + * + *
+     * Configuration of Confidential Nodes
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + * + * @return Whether the confidentialNodes field is set. + */ + public boolean hasConfidentialNodes() { + return confidentialNodesBuilder_ != null || confidentialNodes_ != null; + } + /** + * + * + *
+     * Configuration of Confidential Nodes
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + * + * @return The confidentialNodes. + */ + public com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes() { + if (confidentialNodesBuilder_ == null) { + return confidentialNodes_ == null + ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() + : confidentialNodes_; + } else { + return confidentialNodesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration of Confidential Nodes
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + public Builder setConfidentialNodes(com.google.container.v1beta1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confidentialNodes_ = value; + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of Confidential Nodes
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + public Builder setConfidentialNodes( + com.google.container.v1beta1.ConfidentialNodes.Builder builderForValue) { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = builderForValue.build(); + onChanged(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration of Confidential Nodes
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + public Builder mergeConfidentialNodes(com.google.container.v1beta1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (confidentialNodes_ != null) { + confidentialNodes_ = + com.google.container.v1beta1.ConfidentialNodes.newBuilder(confidentialNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + confidentialNodes_ = value; + } + onChanged(); + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of Confidential Nodes
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + public Builder clearConfidentialNodes() { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = null; + onChanged(); + } else { + confidentialNodes_ = null; + confidentialNodesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration of Confidential Nodes
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + public com.google.container.v1beta1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { + + onChanged(); + return getConfidentialNodesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration of Confidential Nodes
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + public com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + if (confidentialNodesBuilder_ != null) { + return confidentialNodesBuilder_.getMessageOrBuilder(); + } else { + return confidentialNodes_ == null + ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() + : confidentialNodes_; + } + } + /** + * + * + *
+     * Configuration of Confidential Nodes
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ConfidentialNodes, + com.google.container.v1beta1.ConfidentialNodes.Builder, + com.google.container.v1beta1.ConfidentialNodesOrBuilder> + getConfidentialNodesFieldBuilder() { + if (confidentialNodesBuilder_ == null) { + confidentialNodesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ConfidentialNodes, + com.google.container.v1beta1.ConfidentialNodes.Builder, + com.google.container.v1beta1.ConfidentialNodesOrBuilder>( + getConfidentialNodes(), getParentForChildren(), isClean()); + confidentialNodes_ = null; + } + return confidentialNodesBuilder_; + } + + private java.lang.Object selfLink_ = ""; + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + selfLink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + 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.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object endpoint_ = ""; + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + + endpoint_ = getDefaultInstance().getEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object initialClusterVersion_ = ""; + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @return The initialClusterVersion. + */ + public java.lang.String getInitialClusterVersion() { + java.lang.Object ref = initialClusterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialClusterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @return The bytes for initialClusterVersion. + */ + public com.google.protobuf.ByteString getInitialClusterVersionBytes() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + initialClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @param value The initialClusterVersion to set. + * @return This builder for chaining. + */ + public Builder setInitialClusterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + initialClusterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @return This builder for chaining. + */ + public Builder clearInitialClusterVersion() { + + initialClusterVersion_ = getDefaultInstance().getInitialClusterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @param value The bytes for initialClusterVersion to set. + * @return This builder for chaining. + */ + public Builder setInitialClusterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initialClusterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentMasterVersion_ = ""; + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @return The currentMasterVersion. + */ + public java.lang.String getCurrentMasterVersion() { + java.lang.Object ref = currentMasterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentMasterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @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 setCurrentMasterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentMasterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @return This builder for chaining. + */ + public Builder clearCurrentMasterVersion() { + + 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 currentNodeVersion_ = ""; + /** + * + * + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/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 current_node_version = 105 [deprecated = true]; + * + * @return The currentNodeVersion. + */ + @java.lang.Deprecated + public java.lang.String getCurrentNodeVersion() { + java.lang.Object ref = currentNodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentNodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/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 current_node_version = 105 [deprecated = true]; + * + * @return The bytes for currentNodeVersion. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { + java.lang.Object ref = currentNodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/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 current_node_version = 105 [deprecated = true]; + * + * @param value The currentNodeVersion to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCurrentNodeVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentNodeVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/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 current_node_version = 105 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearCurrentNodeVersion() { + + currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated, use
+     * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/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 current_node_version = 105 [deprecated = true]; + * + * @param value The bytes for currentNodeVersion to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setCurrentNodeVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentNodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object createTime_ = ""; + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @return The createTime. + */ + public java.lang.String getCreateTime() { + java.lang.Object ref = createTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + createTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @return The bytes for createTime. + */ + public com.google.protobuf.ByteString getCreateTimeBytes() { + java.lang.Object ref = createTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + createTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @param value The createTime to set. + * @return This builder for chaining. + */ + public Builder setCreateTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + createTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @return This builder for chaining. + */ + public Builder clearCreateTime() { + + createTime_ = getDefaultInstance().getCreateTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string create_time = 106; + * + * @param value The bytes for createTime to set. + * @return This builder for chaining. + */ + public Builder setCreateTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + createTime_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @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.v1beta1.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; + } + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.Cluster.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Cluster.Status result = + com.google.container.v1beta1.Cluster.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Cluster.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1beta1.Cluster.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @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 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; + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * cluster, if available.
+     * 
+ * + * string status_message = 108 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * [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 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(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private int nodeIpv4CidrSize_; + /** + * + * + *
+     * [Output only] The size of the address space on each node for hosting
+     * containers. This is provisioned from within the `container_ipv4_cidr`
+     * range. 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.
+     * This field is deprecated, use tpu_config.enabled instead.
+     * 
+ * + * 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.
+     * This field is deprecated, use tpu_config.enabled instead.
+     * 
+ * + * 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.
+     * This field is deprecated, use tpu_config.enabled instead.
+     * 
+ * + * 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 com.google.container.v1beta1.DatabaseEncryption databaseEncryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, + com.google.container.v1beta1.DatabaseEncryption.Builder, + com.google.container.v1beta1.DatabaseEncryptionOrBuilder> + databaseEncryptionBuilder_; + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + * + * @return Whether the databaseEncryption field is set. + */ + public boolean hasDatabaseEncryption() { + return databaseEncryptionBuilder_ != null || databaseEncryption_ != null; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + * + * @return The databaseEncryption. + */ + public com.google.container.v1beta1.DatabaseEncryption getDatabaseEncryption() { + if (databaseEncryptionBuilder_ == null) { + return databaseEncryption_ == null + ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() + : databaseEncryption_; + } else { + return databaseEncryptionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public Builder setDatabaseEncryption(com.google.container.v1beta1.DatabaseEncryption value) { + if (databaseEncryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + databaseEncryption_ = value; + onChanged(); + } else { + databaseEncryptionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public Builder setDatabaseEncryption( + com.google.container.v1beta1.DatabaseEncryption.Builder builderForValue) { + if (databaseEncryptionBuilder_ == null) { + databaseEncryption_ = builderForValue.build(); + onChanged(); + } else { + databaseEncryptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public Builder mergeDatabaseEncryption(com.google.container.v1beta1.DatabaseEncryption value) { + if (databaseEncryptionBuilder_ == null) { + if (databaseEncryption_ != null) { + databaseEncryption_ = + com.google.container.v1beta1.DatabaseEncryption.newBuilder(databaseEncryption_) + .mergeFrom(value) + .buildPartial(); + } else { + databaseEncryption_ = value; + } + onChanged(); + } else { + databaseEncryptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public Builder clearDatabaseEncryption() { + if (databaseEncryptionBuilder_ == null) { + databaseEncryption_ = null; + onChanged(); + } else { + databaseEncryption_ = null; + databaseEncryptionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public com.google.container.v1beta1.DatabaseEncryption.Builder getDatabaseEncryptionBuilder() { + + onChanged(); + return getDatabaseEncryptionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public com.google.container.v1beta1.DatabaseEncryptionOrBuilder + getDatabaseEncryptionOrBuilder() { + if (databaseEncryptionBuilder_ != null) { + return databaseEncryptionBuilder_.getMessageOrBuilder(); + } else { + return databaseEncryption_ == null + ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() + : databaseEncryption_; + } + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, + com.google.container.v1beta1.DatabaseEncryption.Builder, + com.google.container.v1beta1.DatabaseEncryptionOrBuilder> + getDatabaseEncryptionFieldBuilder() { + if (databaseEncryptionBuilder_ == null) { + databaseEncryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, + com.google.container.v1beta1.DatabaseEncryption.Builder, + com.google.container.v1beta1.DatabaseEncryptionOrBuilder>( + getDatabaseEncryption(), getParentForChildren(), isClean()); + databaseEncryption_ = null; + } + return databaseEncryptionBuilder_; + } + + 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.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + conditionsBuilder_; + + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder setConditions(int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder setConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions(com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions(int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition.Builder getConditionsBuilder(int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder() + .addBuilder(com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder>( + conditions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private com.google.container.v1beta1.Master master_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Master, + com.google.container.v1beta1.Master.Builder, + com.google.container.v1beta1.MasterOrBuilder> + masterBuilder_; + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + * + * @return Whether the master field is set. + */ + public boolean hasMaster() { + return masterBuilder_ != null || master_ != null; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + * + * @return The master. + */ + public com.google.container.v1beta1.Master getMaster() { + if (masterBuilder_ == null) { + return master_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : master_; + } else { + return masterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public Builder setMaster(com.google.container.v1beta1.Master value) { + if (masterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + master_ = value; + onChanged(); + } else { + masterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public Builder setMaster(com.google.container.v1beta1.Master.Builder builderForValue) { + if (masterBuilder_ == null) { + master_ = builderForValue.build(); + onChanged(); + } else { + masterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public Builder mergeMaster(com.google.container.v1beta1.Master value) { + if (masterBuilder_ == null) { + if (master_ != null) { + master_ = + com.google.container.v1beta1.Master.newBuilder(master_) + .mergeFrom(value) + .buildPartial(); + } else { + master_ = value; + } + onChanged(); + } else { + masterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public Builder clearMaster() { + if (masterBuilder_ == null) { + master_ = null; + onChanged(); + } else { + master_ = null; + masterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public com.google.container.v1beta1.Master.Builder getMasterBuilder() { + + onChanged(); + return getMasterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public com.google.container.v1beta1.MasterOrBuilder getMasterOrBuilder() { + if (masterBuilder_ != null) { + return masterBuilder_.getMessageOrBuilder(); + } else { + return master_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : master_; + } + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Master, + com.google.container.v1beta1.Master.Builder, + com.google.container.v1beta1.MasterOrBuilder> + getMasterFieldBuilder() { + if (masterBuilder_ == null) { + masterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Master, + com.google.container.v1beta1.Master.Builder, + com.google.container.v1beta1.MasterOrBuilder>( + getMaster(), getParentForChildren(), isClean()); + master_ = null; + } + return masterBuilder_; + } + + @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.Cluster) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Cluster) + private static final com.google.container.v1beta1.Cluster DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Cluster(); + } + + public static com.google.container.v1beta1.Cluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Cluster(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.Cluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java new file mode 100644 index 00000000..c74a2f4b --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java @@ -0,0 +1,2045 @@ +/* + * 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; + +/** + * + * + *
+ * ClusterAutoscaling contains global, per-cluster information
+ * required by Cluster Autoscaler to automatically adjust
+ * the size of the cluster and create/delete
+ * node pools based on the current needs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ClusterAutoscaling} + */ +public final class ClusterAutoscaling extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClusterAutoscaling) + ClusterAutoscalingOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterAutoscaling.newBuilder() to construct. + private ClusterAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterAutoscaling() { + resourceLimits_ = java.util.Collections.emptyList(); + autoscalingProfile_ = 0; + autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterAutoscaling(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ClusterAutoscaling( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableNodeAutoprovisioning_ = input.readBool(); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceLimits_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resourceLimits_.add( + input.readMessage( + com.google.container.v1beta1.ResourceLimit.parser(), extensionRegistry)); + break; + } + case 24: + { + int rawValue = input.readEnum(); + + autoscalingProfile_ = rawValue; + break; + } + case 34: + { + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder subBuilder = + null; + if (autoprovisioningNodePoolDefaults_ != null) { + subBuilder = autoprovisioningNodePoolDefaults_.toBuilder(); + } + autoprovisioningNodePoolDefaults_ = + input.readMessage( + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoprovisioningNodePoolDefaults_); + autoprovisioningNodePoolDefaults_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + autoprovisioningLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + autoprovisioningLocations_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + autoprovisioningLocations_ = autoprovisioningLocations_.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_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterAutoscaling.class, + com.google.container.v1beta1.ClusterAutoscaling.Builder.class); + } + + /** + * + * + *
+   * Defines possible options for autoscaling_profile field.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.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.v1beta1.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.v1beta1.ClusterAutoscaling.AutoscalingProfile) + } + + public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; + private boolean enableNodeAutoprovisioning_; + /** + * + * + *
+   * Enables automatic node pool creation and deletion.
+   * 
+ * + * bool enable_node_autoprovisioning = 1; + * + * @return The enableNodeAutoprovisioning. + */ + @java.lang.Override + public boolean getEnableNodeAutoprovisioning() { + return enableNodeAutoprovisioning_; + } + + public static final int RESOURCE_LIMITS_FIELD_NUMBER = 2; + private java.util.List resourceLimits_; + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + @java.lang.Override + public java.util.List getResourceLimitsList() { + return resourceLimits_; + } + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + @java.lang.Override + public java.util.List + getResourceLimitsOrBuilderList() { + return resourceLimits_; + } + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + @java.lang.Override + public int getResourceLimitsCount() { + return resourceLimits_.size(); + } + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit getResourceLimits(int index) { + return resourceLimits_.get(index); + } + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index) { + return resourceLimits_.get(index); + } + + public static final int AUTOSCALING_PROFILE_FIELD_NUMBER = 3; + private int autoscalingProfile_; + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The autoscalingProfile. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile + getAutoscalingProfile() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile result = + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.valueOf( + autoscalingProfile_); + return result == null + ? com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED + : result; + } + + public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER = 4; + private com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + autoprovisioningNodePoolDefaults_; + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + * + * @return Whether the autoprovisioningNodePoolDefaults field is set. + */ + @java.lang.Override + public boolean hasAutoprovisioningNodePoolDefaults() { + return autoprovisioningNodePoolDefaults_ != null; + } + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + * + * @return The autoprovisioningNodePoolDefaults. + */ + @java.lang.Override + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + getAutoprovisioningNodePoolDefaults() { + return autoprovisioningNodePoolDefaults_ == null + ? com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance() + : autoprovisioningNodePoolDefaults_; + } + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + @java.lang.Override + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder + getAutoprovisioningNodePoolDefaultsOrBuilder() { + return getAutoprovisioningNodePoolDefaults(); + } + + public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList autoprovisioningLocations_; + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return A list containing the autoprovisioningLocations. + */ + public com.google.protobuf.ProtocolStringList getAutoprovisioningLocationsList() { + return autoprovisioningLocations_; + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return The count of autoprovisioningLocations. + */ + public int getAutoprovisioningLocationsCount() { + return autoprovisioningLocations_.size(); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the element to return. + * @return The autoprovisioningLocations at the given index. + */ + public java.lang.String getAutoprovisioningLocations(int index) { + return autoprovisioningLocations_.get(index); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the value to return. + * @return The bytes of the autoprovisioningLocations at the given index. + */ + public com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index) { + return autoprovisioningLocations_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableNodeAutoprovisioning_ != false) { + output.writeBool(1, enableNodeAutoprovisioning_); + } + for (int i = 0; i < resourceLimits_.size(); i++) { + output.writeMessage(2, resourceLimits_.get(i)); + } + if (autoscalingProfile_ + != com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.PROFILE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, autoscalingProfile_); + } + if (autoprovisioningNodePoolDefaults_ != null) { + output.writeMessage(4, getAutoprovisioningNodePoolDefaults()); + } + for (int i = 0; i < autoprovisioningLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, autoprovisioningLocations_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableNodeAutoprovisioning_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableNodeAutoprovisioning_); + } + for (int i = 0; i < resourceLimits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, resourceLimits_.get(i)); + } + if (autoscalingProfile_ + != com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.PROFILE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, autoscalingProfile_); + } + if (autoprovisioningNodePoolDefaults_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getAutoprovisioningNodePoolDefaults()); + } + { + int dataSize = 0; + for (int i = 0; i < autoprovisioningLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(autoprovisioningLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getAutoprovisioningLocationsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ClusterAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1beta1.ClusterAutoscaling other = + (com.google.container.v1beta1.ClusterAutoscaling) 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()) { + if (!getAutoprovisioningNodePoolDefaults() + .equals(other.getAutoprovisioningNodePoolDefaults())) return false; + } + if (!getAutoprovisioningLocationsList().equals(other.getAutoprovisioningLocationsList())) + 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) + ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNodeAutoprovisioning()); + if (getResourceLimitsCount() > 0) { + hash = (37 * hash) + RESOURCE_LIMITS_FIELD_NUMBER; + hash = (53 * hash) + getResourceLimitsList().hashCode(); + } + hash = (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(); + } + if (getAutoprovisioningLocationsCount() > 0) { + hash = (37 * hash) + AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAutoprovisioningLocationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ClusterAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ClusterAutoscaling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ClusterAutoscaling contains global, per-cluster information
+   * required by Cluster Autoscaler to automatically adjust
+   * the size of the cluster and create/delete
+   * node pools based on the current needs.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ClusterAutoscaling} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ClusterAutoscaling) + com.google.container.v1beta1.ClusterAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterAutoscaling.class, + com.google.container.v1beta1.ClusterAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1beta1.ClusterAutoscaling.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getResourceLimitsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enableNodeAutoprovisioning_ = false; + + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + resourceLimitsBuilder_.clear(); + } + autoscalingProfile_ = 0; + + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + autoprovisioningNodePoolDefaults_ = null; + } else { + autoprovisioningNodePoolDefaults_ = null; + autoprovisioningNodePoolDefaultsBuilder_ = null; + } + autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling getDefaultInstanceForType() { + return com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling build() { + com.google.container.v1beta1.ClusterAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling buildPartial() { + com.google.container.v1beta1.ClusterAutoscaling result = + new com.google.container.v1beta1.ClusterAutoscaling(this); + int from_bitField0_ = bitField0_; + result.enableNodeAutoprovisioning_ = enableNodeAutoprovisioning_; + if (resourceLimitsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resourceLimits_ = resourceLimits_; + } else { + result.resourceLimits_ = resourceLimitsBuilder_.build(); + } + result.autoscalingProfile_ = autoscalingProfile_; + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaults_; + } else { + result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaultsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + autoprovisioningLocations_ = autoprovisioningLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.autoprovisioningLocations_ = autoprovisioningLocations_; + 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.ClusterAutoscaling) { + return mergeFrom((com.google.container.v1beta1.ClusterAutoscaling) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ClusterAutoscaling other) { + if (other == com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance()) + return this; + if (other.getEnableNodeAutoprovisioning() != false) { + setEnableNodeAutoprovisioning(other.getEnableNodeAutoprovisioning()); + } + if (resourceLimitsBuilder_ == null) { + if (!other.resourceLimits_.isEmpty()) { + if (resourceLimits_.isEmpty()) { + resourceLimits_ = other.resourceLimits_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResourceLimitsIsMutable(); + resourceLimits_.addAll(other.resourceLimits_); + } + onChanged(); + } + } else { + if (!other.resourceLimits_.isEmpty()) { + if (resourceLimitsBuilder_.isEmpty()) { + resourceLimitsBuilder_.dispose(); + resourceLimitsBuilder_ = null; + resourceLimits_ = other.resourceLimits_; + bitField0_ = (bitField0_ & ~0x00000001); + resourceLimitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourceLimitsFieldBuilder() + : null; + } else { + resourceLimitsBuilder_.addAllMessages(other.resourceLimits_); + } + } + } + if (other.autoscalingProfile_ != 0) { + setAutoscalingProfileValue(other.getAutoscalingProfileValue()); + } + if (other.hasAutoprovisioningNodePoolDefaults()) { + mergeAutoprovisioningNodePoolDefaults(other.getAutoprovisioningNodePoolDefaults()); + } + if (!other.autoprovisioningLocations_.isEmpty()) { + if (autoprovisioningLocations_.isEmpty()) { + autoprovisioningLocations_ = other.autoprovisioningLocations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.addAll(other.autoprovisioningLocations_); + } + 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.ClusterAutoscaling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ClusterAutoscaling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private boolean enableNodeAutoprovisioning_; + /** + * + * + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + * + * @return The enableNodeAutoprovisioning. + */ + @java.lang.Override + public boolean getEnableNodeAutoprovisioning() { + return enableNodeAutoprovisioning_; + } + /** + * + * + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + * + * @param value The enableNodeAutoprovisioning to set. + * @return This builder for chaining. + */ + public Builder setEnableNodeAutoprovisioning(boolean value) { + + enableNodeAutoprovisioning_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableNodeAutoprovisioning() { + + enableNodeAutoprovisioning_ = false; + onChanged(); + return this; + } + + private java.util.List resourceLimits_ = + java.util.Collections.emptyList(); + + private void ensureResourceLimitsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resourceLimits_ = + new java.util.ArrayList(resourceLimits_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ResourceLimit, + com.google.container.v1beta1.ResourceLimit.Builder, + com.google.container.v1beta1.ResourceLimitOrBuilder> + resourceLimitsBuilder_; + + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List getResourceLimitsList() { + if (resourceLimitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceLimits_); + } else { + return resourceLimitsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public int getResourceLimitsCount() { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.size(); + } else { + return resourceLimitsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit getResourceLimits(int index) { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.get(index); + } else { + return resourceLimitsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder setResourceLimits(int index, com.google.container.v1beta1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.set(index, value); + onChanged(); + } else { + resourceLimitsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder setResourceLimits( + int index, com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits(com.google.container.v1beta1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.add(value); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits(int index, com.google.container.v1beta1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.add(index, value); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.add(builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + int index, com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addAllResourceLimits( + java.lang.Iterable values) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceLimits_); + onChanged(); + } else { + resourceLimitsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder clearResourceLimits() { + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resourceLimitsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder removeResourceLimits(int index) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.remove(index); + onChanged(); + } else { + resourceLimitsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit.Builder getResourceLimitsBuilder(int index) { + return getResourceLimitsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( + int index) { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.get(index); + } else { + return resourceLimitsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsOrBuilderList() { + if (resourceLimitsBuilder_ != null) { + return resourceLimitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceLimits_); + } + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit.Builder addResourceLimitsBuilder() { + return getResourceLimitsFieldBuilder() + .addBuilder(com.google.container.v1beta1.ResourceLimit.getDefaultInstance()); + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit.Builder addResourceLimitsBuilder(int index) { + return getResourceLimitsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.ResourceLimit.getDefaultInstance()); + } + /** + * + * + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsBuilderList() { + return getResourceLimitsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ResourceLimit, + com.google.container.v1beta1.ResourceLimit.Builder, + com.google.container.v1beta1.ResourceLimitOrBuilder> + getResourceLimitsFieldBuilder() { + if (resourceLimitsBuilder_ == null) { + resourceLimitsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ResourceLimit, + com.google.container.v1beta1.ResourceLimit.Builder, + com.google.container.v1beta1.ResourceLimitOrBuilder>( + resourceLimits_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + resourceLimits_ = null; + } + return resourceLimitsBuilder_; + } + + private int autoscalingProfile_ = 0; + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * + * .google.container.v1beta1.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.v1beta1.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.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The autoscalingProfile. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile + getAutoscalingProfile() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile result = + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.valueOf( + autoscalingProfile_); + return result == null + ? com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @param value The autoscalingProfile to set. + * @return This builder for chaining. + */ + public Builder setAutoscalingProfile( + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile value) { + if (value == null) { + throw new NullPointerException(); + } + + autoscalingProfile_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoscalingProfile() { + + autoscalingProfile_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + autoprovisioningNodePoolDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder> + autoprovisioningNodePoolDefaultsBuilder_; + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + * + * @return Whether the autoprovisioningNodePoolDefaults field is set. + */ + public boolean hasAutoprovisioningNodePoolDefaults() { + return autoprovisioningNodePoolDefaultsBuilder_ != null + || autoprovisioningNodePoolDefaults_ != null; + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + * + * @return The autoprovisioningNodePoolDefaults. + */ + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + getAutoprovisioningNodePoolDefaults() { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + return autoprovisioningNodePoolDefaults_ == null + ? com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance() + : autoprovisioningNodePoolDefaults_; + } else { + return autoprovisioningNodePoolDefaultsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public Builder setAutoprovisioningNodePoolDefaults( + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults value) { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoprovisioningNodePoolDefaults_ = value; + onChanged(); + } else { + autoprovisioningNodePoolDefaultsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public Builder setAutoprovisioningNodePoolDefaults( + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder builderForValue) { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + autoprovisioningNodePoolDefaults_ = builderForValue.build(); + onChanged(); + } else { + autoprovisioningNodePoolDefaultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public Builder mergeAutoprovisioningNodePoolDefaults( + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults value) { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + if (autoprovisioningNodePoolDefaults_ != null) { + autoprovisioningNodePoolDefaults_ = + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.newBuilder( + autoprovisioningNodePoolDefaults_) + .mergeFrom(value) + .buildPartial(); + } else { + autoprovisioningNodePoolDefaults_ = value; + } + onChanged(); + } else { + autoprovisioningNodePoolDefaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public Builder clearAutoprovisioningNodePoolDefaults() { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + autoprovisioningNodePoolDefaults_ = null; + onChanged(); + } else { + autoprovisioningNodePoolDefaults_ = null; + autoprovisioningNodePoolDefaultsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder + getAutoprovisioningNodePoolDefaultsBuilder() { + + onChanged(); + return getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + public com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder + getAutoprovisioningNodePoolDefaultsOrBuilder() { + if (autoprovisioningNodePoolDefaultsBuilder_ != null) { + return autoprovisioningNodePoolDefaultsBuilder_.getMessageOrBuilder(); + } else { + return autoprovisioningNodePoolDefaults_ == null + ? com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance() + : autoprovisioningNodePoolDefaults_; + } + } + /** + * + * + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder> + getAutoprovisioningNodePoolDefaultsFieldBuilder() { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + autoprovisioningNodePoolDefaultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.Builder, + com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder>( + getAutoprovisioningNodePoolDefaults(), getParentForChildren(), isClean()); + autoprovisioningNodePoolDefaults_ = null; + } + return autoprovisioningNodePoolDefaultsBuilder_; + } + + private com.google.protobuf.LazyStringList autoprovisioningLocations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAutoprovisioningLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + autoprovisioningLocations_ = + new com.google.protobuf.LazyStringArrayList(autoprovisioningLocations_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return A list containing the autoprovisioningLocations. + */ + public com.google.protobuf.ProtocolStringList getAutoprovisioningLocationsList() { + return autoprovisioningLocations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return The count of autoprovisioningLocations. + */ + public int getAutoprovisioningLocationsCount() { + return autoprovisioningLocations_.size(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the element to return. + * @return The autoprovisioningLocations at the given index. + */ + public java.lang.String getAutoprovisioningLocations(int index) { + return autoprovisioningLocations_.get(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the value to return. + * @return The bytes of the autoprovisioningLocations at the given index. + */ + public com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index) { + return autoprovisioningLocations_.getByteString(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index to set the value at. + * @param value The autoprovisioningLocations to set. + * @return This builder for chaining. + */ + public Builder setAutoprovisioningLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param value The autoprovisioningLocations to add. + * @return This builder for chaining. + */ + public Builder addAutoprovisioningLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param values The autoprovisioningLocations to add. + * @return This builder for chaining. + */ + public Builder addAllAutoprovisioningLocations(java.lang.Iterable values) { + ensureAutoprovisioningLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autoprovisioningLocations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return This builder for chaining. + */ + public Builder clearAutoprovisioningLocations() { + autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes can be created by NAP.
+     * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param value The bytes of the autoprovisioningLocations to add. + * @return This builder for chaining. + */ + public Builder addAutoprovisioningLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.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.ClusterAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClusterAutoscaling) + private static final com.google.container.v1beta1.ClusterAutoscaling DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ClusterAutoscaling(); + } + + public static com.google.container.v1beta1.ClusterAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterAutoscaling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java new file mode 100644 index 00000000..de9c66f7 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java @@ -0,0 +1,227 @@ +/* + * 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 ClusterAutoscalingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClusterAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enables automatic node pool creation and deletion.
+   * 
+ * + * bool enable_node_autoprovisioning = 1; + * + * @return The enableNodeAutoprovisioning. + */ + boolean getEnableNodeAutoprovisioning(); + + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + java.util.List getResourceLimitsList(); + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + com.google.container.v1beta1.ResourceLimit getResourceLimits(int index); + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + int getResourceLimitsCount(); + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + java.util.List + getResourceLimitsOrBuilderList(); + /** + * + * + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index); + + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The enum numeric value on the wire for autoscalingProfile. + */ + int getAutoscalingProfileValue(); + /** + * + * + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * + * + * @return The autoscalingProfile. + */ + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile(); + + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + * + * @return Whether the autoprovisioningNodePoolDefaults field is set. + */ + boolean hasAutoprovisioningNodePoolDefaults(); + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + * + * @return The autoprovisioningNodePoolDefaults. + */ + com.google.container.v1beta1.AutoprovisioningNodePoolDefaults + getAutoprovisioningNodePoolDefaults(); + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * + */ + com.google.container.v1beta1.AutoprovisioningNodePoolDefaultsOrBuilder + getAutoprovisioningNodePoolDefaultsOrBuilder(); + + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return A list containing the autoprovisioningLocations. + */ + java.util.List getAutoprovisioningLocationsList(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @return The count of autoprovisioningLocations. + */ + int getAutoprovisioningLocationsCount(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the element to return. + * @return The autoprovisioningLocations at the given index. + */ + java.lang.String getAutoprovisioningLocations(int index); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the value to return. + * @return The bytes of the autoprovisioningLocations at the given index. + */ + com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index); +} 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 new file mode 100644 index 00000000..248b1df0 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java @@ -0,0 +1,2115 @@ +/* + * 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 ClusterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Cluster) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of this cluster. The name must be unique within this project
+   * and location (e.g. zone or region), and can be up to 40 characters with
+   * the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of this cluster. The name must be unique within this project
+   * and location (e.g. zone or region), and can be up to 40 characters with
+   * the following restrictions:
+   * * Lowercase letters, numbers, and hyphens only.
+   * * Must start with a letter.
+   * * Must end with a number or a letter.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * An optional description of this cluster.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * The number of nodes to create in this cluster. You must ensure that your
+   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "node_config") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * This field is deprecated, use node_pool.initial_node_count instead.
+   * 
+ * + * int32 initial_node_count = 3 [deprecated = true]; + * + * @return The initialNodeCount. + */ + @java.lang.Deprecated + int getInitialNodeCount(); + + /** + * + * + *
+   * Parameters used in creating the cluster's nodes.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool. (For configuration of each node pool, see
+   * `node_pool.config`)
+   * If unspecified, the defaults are used.
+   * This field is deprecated, use node_pool.config instead.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + * + * @return Whether the nodeConfig field is set. + */ + @java.lang.Deprecated + boolean hasNodeConfig(); + /** + * + * + *
+   * Parameters used in creating the cluster's nodes.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool. (For configuration of each node pool, see
+   * `node_pool.config`)
+   * If unspecified, the defaults are used.
+   * This field is deprecated, use node_pool.config instead.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + * + * @return The nodeConfig. + */ + @java.lang.Deprecated + com.google.container.v1beta1.NodeConfig getNodeConfig(); + /** + * + * + *
+   * Parameters used in creating the cluster's nodes.
+   * For requests, this field should only be used in lieu of a
+   * "node_pool" object, since this configuration (along with the
+   * "initial_node_count") will be used to create a "NodePool" object with an
+   * auto-generated name. Do not use this and a node_pool at the same time.
+   * For responses, this field will be populated with the node configuration of
+   * the first node pool. (For configuration of each node pool, see
+   * `node_pool.config`)
+   * If unspecified, the defaults are used.
+   * This field is deprecated, use node_pool.config instead.
+   * 
+ * + * .google.container.v1beta1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated + com.google.container.v1beta1.NodeConfigOrBuilder getNodeConfigOrBuilder(); + + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + * + * @return Whether the masterAuth field is set. + */ + boolean hasMasterAuth(); + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + * + * @return The masterAuth. + */ + com.google.container.v1beta1.MasterAuth getMasterAuth(); + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * If unspecified, the defaults are used:
+   * For clusters before v1.12, if master_auth is unspecified, `username` will
+   * be set to "admin", a random password will be generated, and a client
+   * certificate will be issued.
+   * 
+ * + * .google.container.v1beta1.MasterAuth master_auth = 5; + */ + com.google.container.v1beta1.MasterAuthOrBuilder getMasterAuthOrBuilder(); + + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 6; + * + * @return The loggingService. + */ + java.lang.String getLoggingService(); + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 6; + * + * @return The bytes for loggingService. + */ + com.google.protobuf.ByteString getLoggingServiceBytes(); + + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 7; + * + * @return The monitoringService. + */ + java.lang.String getMonitoringService(); + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 7; + * + * @return The bytes for monitoringService. + */ + com.google.protobuf.ByteString getMonitoringServiceBytes(); + + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used. On output this shows the network ID instead of the
+   * name.
+   * 
+ * + * string network = 8; + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. If left unspecified, the `default`
+   * network will be used. On output this shows the network ID instead of the
+   * name.
+   * 
+ * + * string network = 8; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The clusterIpv4Cidr. + */ + java.lang.String getClusterIpv4Cidr(); + /** + * + * + *
+   * The IP address range of the container pods in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`). Leave blank to have
+   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
+   * 
+ * + * string cluster_ipv4_cidr = 9; + * + * @return The bytes for clusterIpv4Cidr. + */ + com.google.protobuf.ByteString getClusterIpv4CidrBytes(); + + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + * + * @return Whether the addonsConfig field is set. + */ + boolean hasAddonsConfig(); + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + * + * @return The addonsConfig. + */ + com.google.container.v1beta1.AddonsConfig getAddonsConfig(); + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); + + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + * + * @return The subnetwork. + */ + java.lang.String getSubnetwork(); + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected. On output this shows the subnetwork ID instead of
+   * the name.
+   * 
+ * + * string subnetwork = 11; + * + * @return The bytes for subnetwork. + */ + com.google.protobuf.ByteString getSubnetworkBytes(); + + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + java.util.List getNodePoolsList(); + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + com.google.container.v1beta1.NodePool getNodePools(int index); + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + int getNodePoolsCount(); + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + java.util.List + getNodePoolsOrBuilderList(); + /** + * + * + *
+   * The node pools associated with this cluster.
+   * This field should not be set if "node_config" or "initial_node_count" are
+   * specified.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder(int index); + + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + java.util.List getLocationsList(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + int getLocationsCount(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + java.lang.String getLocations(int index); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This field provides a default value if
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * are not specified during node pool creation.
+   * Warning: changing cluster locations will update the
+   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
+   * of all node pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + com.google.protobuf.ByteString getLocationsBytes(int index); + + /** + * + * + *
+   * Kubernetes alpha features are enabled on this cluster. This includes alpha
+   * API groups (e.g. v1beta1) and features that may not be production ready in
+   * the kubernetes version of the master and nodes.
+   * The cluster has no SLA for uptime and master/node upgrades are disabled.
+   * Alpha enabled clusters are automatically deleted thirty days after
+   * creation.
+   * 
+ * + * bool enable_kubernetes_alpha = 14; + * + * @return The enableKubernetesAlpha. + */ + boolean getEnableKubernetesAlpha(); + + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + int getResourceLabelsCount(); + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + boolean containsResourceLabels(java.lang.String key); + /** Use {@link #getResourceLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getResourceLabels(); + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + java.util.Map getResourceLabelsMap(); + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + java.lang.String getResourceLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + java.lang.String getResourceLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * The fingerprint of the set of labels for this cluster.
+   * 
+ * + * string label_fingerprint = 16; + * + * @return The labelFingerprint. + */ + java.lang.String getLabelFingerprint(); + /** + * + * + *
+   * The fingerprint of the set of labels for this cluster.
+   * 
+ * + * string label_fingerprint = 16; + * + * @return The bytes for labelFingerprint. + */ + com.google.protobuf.ByteString getLabelFingerprintBytes(); + + /** + * + * + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + * + * @return Whether the legacyAbac field is set. + */ + boolean hasLegacyAbac(); + /** + * + * + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + * + * @return The legacyAbac. + */ + com.google.container.v1beta1.LegacyAbac getLegacyAbac(); + /** + * + * + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + com.google.container.v1beta1.LegacyAbacOrBuilder getLegacyAbacOrBuilder(); + + /** + * + * + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + * + * @return Whether the networkPolicy field is set. + */ + boolean hasNetworkPolicy(); + /** + * + * + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + * + * @return The networkPolicy. + */ + com.google.container.v1beta1.NetworkPolicy getNetworkPolicy(); + /** + * + * + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); + + /** + * + * + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return Whether the ipAllocationPolicy field is set. + */ + boolean hasIpAllocationPolicy(); + /** + * + * + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return The ipAllocationPolicy. + */ + com.google.container.v1beta1.IPAllocationPolicy getIpAllocationPolicy(); + /** + * + * + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + com.google.container.v1beta1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder(); + + /** + * + * + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + boolean hasMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + * + * @return The masterAuthorizedNetworksConfig. + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder + getMasterAuthorizedNetworksConfigOrBuilder(); + + /** + * + * + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + * + * @return Whether the maintenancePolicy field is set. + */ + boolean hasMaintenancePolicy(); + /** + * + * + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + * + * @return The maintenancePolicy. + */ + com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy(); + /** + * + * + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); + + /** + * + * + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + * + * @return Whether the binaryAuthorization field is set. + */ + boolean hasBinaryAuthorization(); + /** + * + * + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + * + * @return The binaryAuthorization. + */ + com.google.container.v1beta1.BinaryAuthorization getBinaryAuthorization(); + /** + * + * + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + com.google.container.v1beta1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); + + /** + * + * + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + * @return Whether the podSecurityPolicyConfig field is set. + */ + boolean hasPodSecurityPolicyConfig(); + /** + * + * + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + * + * @return The podSecurityPolicyConfig. + */ + com.google.container.v1beta1.PodSecurityPolicyConfig getPodSecurityPolicyConfig(); + /** + * + * + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder + getPodSecurityPolicyConfigOrBuilder(); + + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + * + * @return Whether the autoscaling field is set. + */ + boolean hasAutoscaling(); + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + * + * @return The autoscaling. + */ + com.google.container.v1beta1.ClusterAutoscaling getAutoscaling(); + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + com.google.container.v1beta1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + * + * + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + * + * @return Whether the networkConfig field is set. + */ + boolean hasNetworkConfig(); + /** + * + * + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + * + * @return The networkConfig. + */ + com.google.container.v1beta1.NetworkConfig getNetworkConfig(); + /** + * + * + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + com.google.container.v1beta1.NetworkConfigOrBuilder getNetworkConfigOrBuilder(); + + /** + * + * + *
+   * If this is a private cluster setup. Private clusters are clusters that, by
+   * default have no external IP addresses on the nodes and where nodes and the
+   * master communicate over private IP addresses.
+   * This field is deprecated, use private_cluster_config.enable_private_nodes
+   * instead.
+   * 
+ * + * bool private_cluster = 28 [deprecated = true]; + * + * @return The privateCluster. + */ + @java.lang.Deprecated + boolean getPrivateCluster(); + + /** + * + * + *
+   * The IP prefix in CIDR notation to use for the hosted master network.
+   * This prefix will be used for assigning private IP addresses to the
+   * master or set of masters, as well as the ILB VIP.
+   * This field is deprecated, use
+   * private_cluster_config.master_ipv4_cidr_block instead.
+   * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @return The masterIpv4CidrBlock. + */ + @java.lang.Deprecated + java.lang.String getMasterIpv4CidrBlock(); + /** + * + * + *
+   * The IP prefix in CIDR notation to use for the hosted master network.
+   * This prefix will be used for assigning private IP addresses to the
+   * master or set of masters, as well as the ILB VIP.
+   * This field is deprecated, use
+   * private_cluster_config.master_ipv4_cidr_block instead.
+   * 
+ * + * string master_ipv4_cidr_block = 29 [deprecated = true]; + * + * @return The bytes for masterIpv4CidrBlock. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes(); + + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return Whether the defaultMaxPodsConstraint field is set. + */ + boolean hasDefaultMaxPodsConstraint(); + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return The defaultMaxPodsConstraint. + */ + com.google.container.v1beta1.MaxPodsConstraint getDefaultMaxPodsConstraint(); + /** + * + * + *
+   * The default constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool of this cluster. Only honored
+   * if cluster created with IP Alias support.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + com.google.container.v1beta1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder(); + + /** + * + * + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config unspecified.
+   * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * + * @return Whether the resourceUsageExportConfig field is set. + */ + boolean hasResourceUsageExportConfig(); + /** + * + * + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config unspecified.
+   * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * + * @return The resourceUsageExportConfig. + */ + com.google.container.v1beta1.ResourceUsageExportConfig getResourceUsageExportConfig(); + /** + * + * + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config unspecified.
+   * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + */ + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder + getResourceUsageExportConfigOrBuilder(); + + /** + * + * + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * + * @return Whether the authenticatorGroupsConfig field is set. + */ + boolean hasAuthenticatorGroupsConfig(); + /** + * + * + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * + * @return The authenticatorGroupsConfig. + */ + com.google.container.v1beta1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig(); + /** + * + * + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + */ + com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder + getAuthenticatorGroupsConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + * + * @return Whether the privateClusterConfig field is set. + */ + boolean hasPrivateClusterConfig(); + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + * + * @return The privateClusterConfig. + */ + com.google.container.v1beta1.PrivateClusterConfig getPrivateClusterConfig(); + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + com.google.container.v1beta1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); + + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * + * @return Whether the verticalPodAutoscaling field is set. + */ + boolean hasVerticalPodAutoscaling(); + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * + * @return The verticalPodAutoscaling. + */ + com.google.container.v1beta1.VerticalPodAutoscaling getVerticalPodAutoscaling(); + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder getVerticalPodAutoscalingOrBuilder(); + + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + * + * @return Whether the shieldedNodes field is set. + */ + boolean hasShieldedNodes(); + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + * + * @return The shieldedNodes. + */ + com.google.container.v1beta1.ShieldedNodes getShieldedNodes(); + /** + * + * + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + com.google.container.v1beta1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder(); + + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * + * @return Whether the releaseChannel field is set. + */ + boolean hasReleaseChannel(); + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * + * @return The releaseChannel. + */ + com.google.container.v1beta1.ReleaseChannel getReleaseChannel(); + /** + * + * + *
+   * Release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); + + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return Whether the workloadIdentityConfig field is set. + */ + boolean hasWorkloadIdentityConfig(); + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + * + * @return The workloadIdentityConfig. + */ + com.google.container.v1beta1.WorkloadIdentityConfig getWorkloadIdentityConfig(); + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig workload_identity_config = 43; + */ + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder(); + + /** + * + * + *
+   * Telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + * + * @return Whether the clusterTelemetry field is set. + */ + boolean hasClusterTelemetry(); + /** + * + * + *
+   * Telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + * + * @return The clusterTelemetry. + */ + com.google.container.v1beta1.ClusterTelemetry getClusterTelemetry(); + /** + * + * + *
+   * Telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + com.google.container.v1beta1.ClusterTelemetryOrBuilder getClusterTelemetryOrBuilder(); + + /** + * + * + *
+   * Configuration for Cloud TPU support;
+   * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + * + * @return Whether the tpuConfig field is set. + */ + boolean hasTpuConfig(); + /** + * + * + *
+   * Configuration for Cloud TPU support;
+   * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + * + * @return The tpuConfig. + */ + com.google.container.v1beta1.TpuConfig getTpuConfig(); + /** + * + * + *
+   * Configuration for Cloud TPU support;
+   * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + com.google.container.v1beta1.TpuConfigOrBuilder getTpuConfigOrBuilder(); + + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + * + * @return Whether the notificationConfig field is set. + */ + boolean hasNotificationConfig(); + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + * + * @return The notificationConfig. + */ + com.google.container.v1beta1.NotificationConfig getNotificationConfig(); + /** + * + * + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + com.google.container.v1beta1.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); + + /** + * + * + *
+   * Configuration of Confidential Nodes
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + * + * @return Whether the confidentialNodes field is set. + */ + boolean hasConfidentialNodes(); + /** + * + * + *
+   * Configuration of Confidential Nodes
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + * + * @return The confidentialNodes. + */ + com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes(); + /** + * + * + *
+   * Configuration of Confidential Nodes
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); + + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + * + * @return The endpoint. + */ + java.lang.String getEndpoint(); + /** + * + * + *
+   * [Output only] The IP address of this cluster's master endpoint.
+   * The endpoint can be accessed from the internet at
+   * `https://username:password@endpoint/`.
+   * See the `masterAuth` property of this resource for username and
+   * password information.
+   * 
+ * + * string endpoint = 102; + * + * @return The bytes for endpoint. + */ + com.google.protobuf.ByteString getEndpointBytes(); + + /** + * + * + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + * + * @return The initialClusterVersion. + */ + java.lang.String getInitialClusterVersion(); + /** + * + * + *
+   * The initial Kubernetes version for this cluster.  Valid versions are those
+   * found in validMasterVersions returned by getServerConfig.  The version can
+   * be upgraded over time; such upgrades are reflected in
+   * currentMasterVersion and currentNodeVersion.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "","-": picks the default Kubernetes version
+   * 
+ * + * string initial_cluster_version = 103; + * + * @return The bytes for initialClusterVersion. + */ + com.google.protobuf.ByteString getInitialClusterVersionBytes(); + + /** + * + * + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + * + * @return The currentMasterVersion. + */ + java.lang.String getCurrentMasterVersion(); + /** + * + * + *
+   * [Output only] The current software version of the master endpoint.
+   * 
+ * + * string current_master_version = 104; + * + * @return The bytes for currentMasterVersion. + */ + com.google.protobuf.ByteString getCurrentMasterVersionBytes(); + + /** + * + * + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/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 current_node_version = 105 [deprecated = true]; + * + * @return The currentNodeVersion. + */ + @java.lang.Deprecated + java.lang.String getCurrentNodeVersion(); + /** + * + * + *
+   * [Output only] Deprecated, use
+   * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/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 current_node_version = 105 [deprecated = true]; + * + * @return The bytes for currentNodeVersion. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getCurrentNodeVersionBytes(); + + /** + * + * + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + * + * @return The createTime. + */ + java.lang.String getCreateTime(); + /** + * + * + *
+   * [Output only] The time the cluster was created, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string create_time = 106; + * + * @return The bytes for createTime. + */ + com.google.protobuf.ByteString getCreateTimeBytes(); + + /** + * + * + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1beta1.Cluster.Status status = 107; + * + * @return The status. + */ + com.google.container.v1beta1.Cluster.Status getStatus(); + + /** + * + * + *
+   * [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 + java.lang.String getStatusMessage(); + /** + * + * + *
+   * [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 + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
+   * [Output only] The size of the address space on each node for hosting
+   * containers. This is provisioned from within the `container_ipv4_cidr`
+   * range. This field will only be set when cluster is in route-based network
+   * mode.
+   * 
+ * + * int32 node_ipv4_cidr_size = 109; + * + * @return The nodeIpv4CidrSize. + */ + int getNodeIpv4CidrSize(); + + /** + * + * + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The servicesIpv4Cidr. + */ + java.lang.String getServicesIpv4Cidr(); + /** + * + * + *
+   * [Output only] The IP address range of the Kubernetes services in
+   * this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`). Service addresses are
+   * typically put in the last `/16` from the container CIDR.
+   * 
+ * + * string services_ipv4_cidr = 110; + * + * @return The bytes for servicesIpv4Cidr. + */ + com.google.protobuf.ByteString getServicesIpv4CidrBytes(); + + /** + * + * + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return A list containing the instanceGroupUrls. + */ + @java.lang.Deprecated + java.util.List getInstanceGroupUrlsList(); + /** + * + * + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return The count of instanceGroupUrls. + */ + @java.lang.Deprecated + int getInstanceGroupUrlsCount(); + /** + * + * + *
+   * 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 + java.lang.String getInstanceGroupUrls(int 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 + com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index); + + /** + * + * + *
+   * [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.Deprecated + int getCurrentNodeCount(); + + /** + * + * + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + * + * @return The expireTime. + */ + java.lang.String getExpireTime(); + /** + * + * + *
+   * [Output only] The time the cluster will be automatically
+   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string expire_time = 113; + * + * @return The bytes for expireTime. + */ + com.google.protobuf.ByteString getExpireTimeBytes(); + + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 114; + * + * @return The location. + */ + 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.
+   * 
+ * + * string location = 114; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+   * Enable the ability to use Cloud TPUs in this cluster.
+   * This field is deprecated, use tpu_config.enabled instead.
+   * 
+ * + * bool enable_tpu = 115; + * + * @return The enableTpu. + */ + boolean getEnableTpu(); + + /** + * + * + *
+   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`).
+   * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The tpuIpv4CidrBlock. + */ + java.lang.String getTpuIpv4CidrBlock(); + /** + * + * + *
+   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `1.2.3.4/29`).
+   * 
+ * + * string tpu_ipv4_cidr_block = 116; + * + * @return The bytes for tpuIpv4CidrBlock. + */ + com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes(); + + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + * + * @return Whether the databaseEncryption field is set. + */ + boolean hasDatabaseEncryption(); + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + * + * @return The databaseEncryption. + */ + com.google.container.v1beta1.DatabaseEncryption getDatabaseEncryption(); + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + com.google.container.v1beta1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder(); + + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + java.util.List getConditionsList(); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + com.google.container.v1beta1.StatusCondition getConditions(int index); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + int getConditionsCount(); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + java.util.List + getConditionsOrBuilderList(); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder(int index); + + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master master = 124; + * + * @return Whether the master field is set. + */ + boolean hasMaster(); + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master master = 124; + * + * @return The master. + */ + com.google.container.v1beta1.Master getMaster(); + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + com.google.container.v1beta1.MasterOrBuilder getMasterOrBuilder(); +} 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 new file mode 100644 index 00000000..9b4aadc0 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java @@ -0,0 +1,2676 @@ +/* + * 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 final class ClusterServiceProto { + private ClusterServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_LinuxNodeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_LinuxNodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_LinuxNodeConfig_SysctlsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_LinuxNodeConfig_SysctlsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeKubeletConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeKubeletConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ShieldedInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SandboxConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SandboxConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_ReservationAffinity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ReservationAffinity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeTaint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeTaint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MasterAuth_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MasterAuth_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ClientCertificateConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ClientCertificateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AddonsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AddonsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_HttpLoadBalancing_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_HorizontalPodAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_KubernetesDashboard_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_KubernetesDashboard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NetworkPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_DnsCacheConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_DnsCacheConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_ConfigConnectorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ConfigConnectorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_PrivateClusterMasterGlobalAccessConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_PrivateClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_IstioConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_IstioConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_CloudRunConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CloudRunConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_LegacyAbac_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_LegacyAbac_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NetworkPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NetworkPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_IPAllocationPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_BinaryAuthorization_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_BinaryAuthorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_PodSecurityPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AuthenticatorGroupsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ClusterTelemetry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ClusterTelemetry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Cluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Cluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ClusterUpdate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ClusterUpdate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Operation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Operation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_OperationProgress_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_OperationProgress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_OperationProgress_Metric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_CreateClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CreateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_UpdateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_UpdateNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetLoggingServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetMonitoringServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetAddonsConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetLocationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetLocationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_UpdateMasterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetMasterAuthRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListClustersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListClustersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetOperationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetOperationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListOperationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListOperationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_CancelOperationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CancelOperationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListOperationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListOperationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetServerConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ServerConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ServerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CreateNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_DeleteNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListNodePoolsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodePool_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodePool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_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_NodeManagement_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeManagement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AutoUpgradeOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AutoUpgradeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MaintenancePolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MaintenancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MaintenanceWindow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MaintenanceWindow_MaintenanceExclusionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MaintenanceWindow_MaintenanceExclusionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_RecurringTimeWindow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_RecurringTimeWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_DailyMaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetNodePoolManagementRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetNodePoolSizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListNodePoolsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ClusterAutoscaling_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ClusterAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AutoprovisioningNodePoolDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ResourceLimit_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ResourceLimit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodePoolAutoscaling_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodePoolAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetLabelsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetLabelsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetLabelsRequest_ResourceLabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetLabelsRequest_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetLegacyAbacRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_StartIPRotationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CompleteIPRotationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AcceleratorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_WorkloadMetadataConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetNetworkPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListLocationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListLocationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListLocationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListLocationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Location_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Location_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_StatusCondition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_StatusCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NetworkConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_UsableSubnetwork_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_UsableSubnetwork_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_VerticalPodAutoscaling_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_VerticalPodAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_DefaultSnatStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_DefaultSnatStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MaxPodsConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_WorkloadIdentityConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_WorkloadIdentityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_DatabaseEncryption_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_DatabaseEncryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ResourceUsageExportConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ResourceUsageExportConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ShieldedNodes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ShieldedNodes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetOpenIDConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetOpenIDConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetOpenIDConfigResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetOpenIDConfigResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetJSONWebKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetJSONWebKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Jwk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Jwk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GetJSONWebKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GetJSONWebKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ReleaseChannel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ReleaseChannel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_TpuConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_TpuConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Master_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Master_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NotificationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_ConfidentialNodes_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ConfidentialNodes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_UpgradeEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_UpgradeEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/container/v1beta1/cluster_servi" + + "ce.proto\022\030google.container.v1beta1\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032\033google/pr" + + "otobuf/empty.proto\032\037google/protobuf/time" + + "stamp.proto\032\036google/protobuf/wrappers.pr" + + "oto\032\025google/rpc/code.proto\032\027google/rpc/s" + + "tatus.proto\"\212\001\n\017LinuxNodeConfig\022G\n\007sysct" + + "ls\030\001 \003(\01326.google.container.v1beta1.Linu" + + "xNodeConfig.SysctlsEntry\032.\n\014SysctlsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\021Nod" + + "eKubeletConfig\022\032\n\022cpu_manager_policy\030\001 \001" + + "(\t\0221\n\rcpu_cfs_quota\030\002 \001(\0132\032.google.proto" + + "buf.BoolValue\022\034\n\024cpu_cfs_quota_period\030\003 " + + "\001(\t\"\210\t\n\nNodeConfig\022\024\n\014machine_type\030\001 \001(\t" + + "\022\024\n\014disk_size_gb\030\002 \001(\005\022\024\n\014oauth_scopes\030\003" + + " \003(\t\022\027\n\017service_account\030\t \001(\t\022D\n\010metadat" + + "a\030\004 \003(\01322.google.container.v1beta1.NodeC" + + "onfig.MetadataEntry\022\022\n\nimage_type\030\005 \001(\t\022" + + "@\n\006labels\030\006 \003(\01320.google.container.v1bet" + + "a1.NodeConfig.LabelsEntry\022\027\n\017local_ssd_c" + + "ount\030\007 \001(\005\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptible\030" + + "\n \001(\010\022A\n\014accelerators\030\013 \003(\0132+.google.con" + + "tainer.v1beta1.AcceleratorConfig\022?\n\016sand" + + "box_config\030\021 \001(\0132\'.google.container.v1be" + + "ta1.SandboxConfig\022\022\n\nnode_group\030\022 \001(\t\022K\n" + + "\024reservation_affinity\030\023 \001(\0132-.google.con" + + "tainer.v1beta1.ReservationAffinity\022\021\n\tdi" + + "sk_type\030\014 \001(\t\022\030\n\020min_cpu_platform\030\r \001(\t\022" + + "R\n\030workload_metadata_config\030\016 \001(\01320.goog" + + "le.container.v1beta1.WorkloadMetadataCon" + + "fig\0223\n\006taints\030\017 \003(\0132#.google.container.v" + + "1beta1.NodeTaint\022\031\n\021boot_disk_kms_key\030\027 " + + "\001(\t\022R\n\030shielded_instance_config\030\024 \001(\01320." + + "google.container.v1beta1.ShieldedInstanc" + + "eConfig\022D\n\021linux_node_config\030\025 \001(\0132).goo" + + "gle.container.v1beta1.LinuxNodeConfig\022C\n" + + "\016kubelet_config\030\026 \001(\0132+.google.container" + + ".v1beta1.NodeKubeletConfig\022R\n\030ephemeral_" + + "storage_config\030\030 \001(\01320.google.container." + + "v1beta1.EphemeralStorageConfig\032/\n\rMetada" + + "taEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"Y\n\026ShieldedInstanceConfig\022\032\n\022enab" + + "le_secure_boot\030\001 \001(\010\022#\n\033enable_integrity" + + "_monitoring\030\002 \001(\010\"\212\001\n\rSandboxConfig\022\030\n\014s" + + "andbox_type\030\001 \001(\tB\002\030\001\022:\n\004type\030\002 \001(\0162,.go" + + "ogle.container.v1beta1.SandboxConfig.Typ" + + "e\"#\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\n\n\006GVISOR\020\001\"1" + + "\n\026EphemeralStorageConfig\022\027\n\017local_ssd_co" + + "unt\030\001 \001(\005\"\344\001\n\023ReservationAffinity\022T\n\030con" + + "sume_reservation_type\030\001 \001(\01622.google.con" + + "tainer.v1beta1.ReservationAffinity.Type\022" + + "\013\n\003key\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"Z\n\004Type\022\017\n\013" + + "UNSPECIFIED\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY" + + "_RESERVATION\020\002\022\030\n\024SPECIFIC_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*.google.container.v1" + + "beta1.NodeTaint.Effect\"Y\n\006Effect\022\026\n\022EFFE" + + "CT_UNSPECIFIED\020\000\022\017\n\013NO_SCHEDULE\020\001\022\026\n\022PRE" + + "FER_NO_SCHEDULE\020\002\022\016\n\nNO_EXECUTE\020\003\"\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\"" + + "\214\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\0229\n\013kalm_config\030\014 \001(\0132$.google.contai" + + "ner.v1beta1.KalmConfig\"%\n\021HttpLoadBalanc" + + "ing\022\020\n\010disabled\030\001 \001(\010\",\n\030HorizontalPodAu" + + "toscaling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Kubernete" + + "sDashboard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023NetworkP" + + "olicyConfig\022\020\n\010disabled\030\001 \001(\010\"!\n\016DnsCach" + + "eConfig\022\017\n\007enabled\030\001 \001(\010\"\035\n\nKalmConfig\022\017" + + "\n\007enabled\030\001 \001(\010\"(\n\025ConfigConnectorConfig" + + "\022\017\n\007enabled\030\001 \001(\010\"3\n GcePersistentDiskCs" + + "iDriverConfig\022\017\n\007enabled\030\001 \001(\010\"9\n&Privat" + + "eClusterMasterGlobalAccessConfig\022\017\n\007enab" + + "led\030\001 \001(\010\"\245\002\n\024PrivateClusterConfig\022\034\n\024en" + + "able_private_nodes\030\001 \001(\010\022\037\n\027enable_priva" + + "te_endpoint\030\002 \001(\010\022\036\n\026master_ipv4_cidr_bl" + + "ock\030\003 \001(\t\022\030\n\020private_endpoint\030\004 \001(\t\022\027\n\017p" + + "ublic_endpoint\030\005 \001(\t\022\024\n\014peering_name\030\007 \001" + + "(\t\022e\n\033master_global_access_config\030\010 \001(\0132" + + "@.google.container.v1beta1.PrivateCluste" + + "rMasterGlobalAccessConfig\"\227\001\n\013IstioConfi" + + "g\022\020\n\010disabled\030\001 \001(\010\022A\n\004auth\030\002 \001(\01623.goog" + + "le.container.v1beta1.IstioConfig.IstioAu" + + "thMode\"3\n\rIstioAuthMode\022\r\n\tAUTH_NONE\020\000\022\023" + + "\n\017AUTH_MUTUAL_TLS\020\001\"\363\001\n\016CloudRunConfig\022\020" + + "\n\010disabled\030\001 \001(\010\022U\n\022load_balancer_type\030\003" + + " \001(\01629.google.container.v1beta1.CloudRun" + + "Config.LoadBalancerType\"x\n\020LoadBalancerT" + + "ype\022\"\n\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022" + + "\037\n\033LOAD_BALANCER_TYPE_EXTERNAL\020\001\022\037\n\033LOAD" + + "_BALANCER_TYPE_INTERNAL\020\002\"\301\001\n\036MasterAuth" + + "orizedNetworksConfig\022\017\n\007enabled\030\001 \001(\010\022W\n" + + "\013cidr_blocks\030\002 \003(\0132B.google.container.v1" + + "beta1.MasterAuthorizedNetworksConfig.Cid" + + "rBlock\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\007e" + + "nabled\030\001 \001(\010\"\226\001\n\rNetworkPolicy\022B\n\010provid" + + "er\030\001 \001(\01620.google.container.v1beta1.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\"\267\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\023allow_route_overlap\030\014 \001(\010\022\033" + + "\n\023tpu_ipv4_cidr_block\030\r \001(\t\022\022\n\nuse_route" + + "s\030\017 \001(\010\"&\n\023BinaryAuthorization\022\017\n\007enable" + + "d\030\001 \001(\010\"*\n\027PodSecurityPolicyConfig\022\017\n\007en" + + "abled\030\001 \001(\010\"D\n\031AuthenticatorGroupsConfig" + + "\022\017\n\007enabled\030\001 \001(\010\022\026\n\016security_group\030\002 \001(" + + "\t\"\226\001\n\020ClusterTelemetry\022=\n\004type\030\001 \001(\0162/.g" + + "oogle.container.v1beta1.ClusterTelemetry" + + ".Type\"C\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\014\n\010DISABL" + + "ED\020\001\022\013\n\007ENABLED\020\002\022\017\n\013SYSTEM_ONLY\020\003\"\212\030\n\007C" + + "luster\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(" + + "\t\022\036\n\022initial_node_count\030\003 \001(\005B\002\030\001\022=\n\013nod" + + "e_config\030\004 \001(\0132$.google.container.v1beta" + + "1.NodeConfigB\002\030\001\0229\n\013master_auth\030\005 \001(\0132$." + + "google.container.v1beta1.MasterAuth\022\027\n\017l" + + "ogging_service\030\006 \001(\t\022\032\n\022monitoring_servi" + + "ce\030\007 \001(\t\022\017\n\007network\030\010 \001(\t\022\031\n\021cluster_ipv" + + "4_cidr\030\t \001(\t\022=\n\raddons_config\030\n \001(\0132&.go" + + "ogle.container.v1beta1.AddonsConfig\022\022\n\ns" + + "ubnetwork\030\013 \001(\t\0226\n\nnode_pools\030\014 \003(\0132\".go" + + "ogle.container.v1beta1.NodePool\022\021\n\tlocat" + + "ions\030\r \003(\t\022\037\n\027enable_kubernetes_alpha\030\016 " + + "\001(\010\022N\n\017resource_labels\030\017 \003(\01325.google.co" + + "ntainer.v1beta1.Cluster.ResourceLabelsEn" + + "try\022\031\n\021label_fingerprint\030\020 \001(\t\0229\n\013legacy" + + "_abac\030\022 \001(\0132$.google.container.v1beta1.L" + + "egacyAbac\022?\n\016network_policy\030\023 \001(\0132\'.goog" + + "le.container.v1beta1.NetworkPolicy\022J\n\024ip" + + "_allocation_policy\030\024 \001(\0132,.google.contai" + + "ner.v1beta1.IPAllocationPolicy\022c\n!master" + + "_authorized_networks_config\030\026 \001(\01328.goog" + + "le.container.v1beta1.MasterAuthorizedNet" + + "worksConfig\022G\n\022maintenance_policy\030\027 \001(\0132" + + "+.google.container.v1beta1.MaintenancePo" + + "licy\022K\n\024binary_authorization\030\030 \001(\0132-.goo" + + "gle.container.v1beta1.BinaryAuthorizatio" + + "n\022U\n\032pod_security_policy_config\030\031 \001(\01321." + + "google.container.v1beta1.PodSecurityPoli" + + "cyConfig\022A\n\013autoscaling\030\032 \001(\0132,.google.c" + + "ontainer.v1beta1.ClusterAutoscaling\022?\n\016n" + + "etwork_config\030\033 \001(\0132\'.google.container.v" + + "1beta1.NetworkConfig\022\033\n\017private_cluster\030" + + "\034 \001(\010B\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.MaxPodsCon" + + "straint\022Y\n\034resource_usage_export_config\030" + + "! \001(\01323.google.container.v1beta1.Resourc" + + "eUsageExportConfig\022X\n\033authenticator_grou" + + "ps_config\030\" \001(\01323.google.container.v1bet" + + "a1.AuthenticatorGroupsConfig\022N\n\026private_" + + "cluster_config\030% \001(\0132..google.container." + + "v1beta1.PrivateClusterConfig\022R\n\030vertical" + + "_pod_autoscaling\030\' \001(\01320.google.containe" + + "r.v1beta1.VerticalPodAutoscaling\022?\n\016shie" + + "lded_nodes\030( \001(\0132\'.google.container.v1be" + + "ta1.ShieldedNodes\022A\n\017release_channel\030) \001" + + "(\0132(.google.container.v1beta1.ReleaseCha" + + "nnel\022R\n\030workload_identity_config\030+ \001(\01320" + + ".google.container.v1beta1.WorkloadIdenti" + + "tyConfig\022E\n\021cluster_telemetry\030. \001(\0132*.go" + + "ogle.container.v1beta1.ClusterTelemetry\022" + + "7\n\ntpu_config\030/ \001(\0132#.google.container.v" + + "1beta1.TpuConfig\022I\n\023notification_config\030" + + "1 \001(\0132,.google.container.v1beta1.Notific" + + "ationConfig\022G\n\022confidential_nodes\0302 \001(\0132" + + "+.google.container.v1beta1.ConfidentialN" + + "odes\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_v" + + "ersion\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(.go" + + "ogle.container.v1beta1.Cluster.Status\022\032\n" + + "\016status_message\030l \001(\tB\002\030\001\022\033\n\023node_ipv4_c" + + "idr_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\022c" + + "urrent_node_count\030p \001(\005B\002\030\001\022\023\n\013expire_ti" + + "me\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\022I\n\023d" + + "atabase_encryption\030& \001(\0132,.google.contai" + + "ner.v1beta1.DatabaseEncryption\022=\n\ncondit" + + "ions\030v \003(\0132).google.container.v1beta1.St" + + "atusCondition\0220\n\006master\030| \001(\0132 .google.c" + + "ontainer.v1beta1.Master\0325\n\023ResourceLabel" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w" + + "\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROV" + + "ISIONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003" + + "\022\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006\"" + + "\363\016\n\rClusterUpdate\022\034\n\024desired_node_versio" + + "n\030\004 \001(\t\022\"\n\032desired_monitoring_service\030\005 " + + "\001(\t\022E\n\025desired_addons_config\030\006 \001(\0132&.goo" + + "gle.container.v1beta1.AddonsConfig\022\034\n\024de" + + "sired_node_pool_id\030\007 \001(\t\022\032\n\022desired_imag" + + "e_type\030\010 \001(\t\022T\n\035desired_node_pool_autosc" + + "aling\030\t \001(\0132-.google.container.v1beta1.N" + + "odePoolAutoscaling\022\031\n\021desired_locations\030" + + "\n \003(\t\022k\n)desired_master_authorized_netwo" + + "rks_config\030\014 \001(\01328.google.container.v1be" + + "ta1.MasterAuthorizedNetworksConfig\022]\n\"de" + + "sired_pod_security_policy_config\030\016 \001(\01321" + + ".google.container.v1beta1.PodSecurityPol" + + "icyConfig\022Q\n\033desired_cluster_autoscaling" + + "\030\017 \001(\0132,.google.container.v1beta1.Cluste" + + "rAutoscaling\022S\n\034desired_binary_authoriza" + + "tion\030\020 \001(\0132-.google.container.v1beta1.Bi" + + "naryAuthorization\022\037\n\027desired_logging_ser" + + "vice\030\023 \001(\t\022a\n$desired_resource_usage_exp" + + "ort_config\030\025 \001(\01323.google.container.v1be" + + "ta1.ResourceUsageExportConfig\022Z\n desired" + + "_vertical_pod_autoscaling\030\026 \001(\01320.google" + + ".container.v1beta1.VerticalPodAutoscalin" + + "g\022V\n\036desired_private_cluster_config\030\031 \001(" + + "\0132..google.container.v1beta1.PrivateClus" + + "terConfig\022a\n$desired_intra_node_visibili" + + "ty_config\030\032 \001(\01323.google.container.v1bet" + + "a1.IntraNodeVisibilityConfig\022P\n\033desired_" + + "default_snat_status\030\034 \001(\0132+.google.conta" + + "iner.v1beta1.DefaultSnatStatus\022M\n\031desire" + + "d_cluster_telemetry\030\036 \001(\0132*.google.conta" + + "iner.v1beta1.ClusterTelemetry\022I\n\027desired" + + "_release_channel\030\037 \001(\0132(.google.containe" + + "r.v1beta1.ReleaseChannel\022?\n\022desired_tpu_" + + "config\030& \001(\0132#.google.container.v1beta1." + + "TpuConfig\022M\n\031desired_datapath_provider\0302" + + " \001(\0162*.google.container.v1beta1.Datapath" + + "Provider\022Q\n\033desired_notification_config\030" + + "7 \001(\0132,.google.container.v1beta1.Notific" + + "ationConfig\022\036\n\026desired_master_version\030d " + + "\001(\t\022Q\n\033desired_database_encryption\030. \001(\013" + + "2,.google.container.v1beta1.DatabaseEncr" + + "yption\022Z\n desired_workload_identity_conf" + + "ig\030/ \001(\01320.google.container.v1beta1.Work" + + "loadIdentityConfig\022G\n\026desired_shielded_n" + + "odes\0300 \001(\0132\'.google.container.v1beta1.Sh" + + "ieldedNodes\0228\n\016desired_master\0304 \001(\0132 .go" + + "ogle.container.v1beta1.Master\"\212\010\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" + + "1beta1.Operation.Type\022:\n\006status\030\004 \001(\0162*." + + "google.container.v1beta1.Operation.Statu" + + "s\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_li" + + "nk\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.OperationP" + + "rogressB\003\340A\003\022I\n\022cluster_conditions\030\r \003(\013" + + "2).google.container.v1beta1.StatusCondit" + + "ionB\002\030\001\022J\n\023nodepool_conditions\030\016 \003(\0132).g" + + "oogle.container.v1beta1.StatusConditionB" + + "\002\030\001\022!\n\005error\030\017 \001(\0132\022.google.rpc.Status\"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\"\312\002\n\021Operation" + + "Progress\022\014\n\004name\030\001 \001(\t\022:\n\006status\030\002 \001(\0162*" + + ".google.container.v1beta1.Operation.Stat" + + "us\022C\n\007metrics\030\003 \003(\01322.google.container.v" + + "1beta1.OperationProgress.Metric\022;\n\006stage" + + "s\030\004 \003(\0132+.google.container.v1beta1.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\"" + + "\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\007clus" + + "ter\030\003 \001(\0132!.google.container.v1beta1.Clu" + + "sterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"l\n\021GetClusterR" + + "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\014\n\004name\030\005 \001(\t\"\255\001\n\024UpdateClusterRequest" + + "\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\006u" + + "pdate\030\004 \001(\0132\'.google.container.v1beta1.C" + + "lusterUpdateB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\201\004\n\025Upda" + + "teNodePoolRequest\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\031\n\014node_version\030\005 \001(\tB\003\340A\002\022\027\n\nimage_ty" + + "pe\030\006 \001(\tB\003\340A\002\022\021\n\tlocations\030\r \003(\t\022R\n\030work" + + "load_metadata_config\030\016 \001(\01320.google.cont" + + "ainer.v1beta1.WorkloadMetadataConfig\022\014\n\004" + + "name\030\010 \001(\t\022L\n\020upgrade_settings\030\017 \001(\01322.g" + + "oogle.container.v1beta1.NodePool.Upgrade" + + "Settings\022D\n\021linux_node_config\030\023 \001(\0132).go" + + "ogle.container.v1beta1.LinuxNodeConfig\022C" + + "\n\016kubelet_config\030\024 \001(\0132+.google.containe" + + "r.v1beta1.NodeKubeletConfig\"\336\001\n\035SetNodeP" + + "oolAutoscalingRequest\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\013autoscaling\030\005 \001(\0132-.google.cont" + + "ainer.v1beta1.NodePoolAutoscalingB\003\340A\002\022\014" + + "\n\004name\030\006 \001(\t\"\221\001\n\030SetLoggingServiceReques" + + "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\034\n\017" + + "logging_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005 \001(\t" + + "\"\227\001\n\033SetMonitoringServiceRequest\022\031\n\nproj" + + "ect_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\022monitorin" + + "g_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\265\001\n\026S" + + "etAddonsConfigRequest\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.container.v1beta1.AddonsConfigB" + + "\003\340A\002\022\014\n\004name\030\006 \001(\t\"\206\001\n\023SetLocationsReque" + + "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\026\n" + + "\tlocations\030\004 \003(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\213\001\n\023" + + "UpdateMasterRequest\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\033\n\016master_version\030\004 \001(\tB\003" + + "\340A\002\022\014\n\004name\030\007 \001(\t\"\310\002\n\024SetMasterAuthReque" + + "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\022J\n" + + "\006action\030\004 \001(\01625.google.container.v1beta1" + + ".SetMasterAuthRequest.ActionB\003\340A\002\0229\n\006upd" + + "ate\030\005 \001(\0132$.google.container.v1beta1.Mas" + + "terAuthB\003\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007" + + "UNKNOWN\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\024DeleteCl" + + "usterRequest\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\014\n\004name\030\004 \001(\t\"U\n\023ListClustersReq" + + "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\016\n\006parent\030\004 \001(\t\"b\n\024ListClus" + + "tersResponse\0223\n\010clusters\030\001 \003(\0132!.google." + + "container.v1beta1.Cluster\022\025\n\rmissing_zon" + + "es\030\002 \003(\t\"p\n\023GetOperationRequest\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" + + "\033\n\014operation_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\005 \001" + + "(\t\"W\n\025ListOperationsRequest\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\016\n\006p" + + "arent\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\014operation_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004na" + + "me\030\004 \001(\t\"h\n\026ListOperationsResponse\0227\n\nop" + + "erations\030\001 \003(\0132#.google.container.v1beta" + + "1.Operation\022\025\n\rmissing_zones\030\002 \003(\t\"V\n\026Ge" + + "tServerConfigRequest\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\014\n\004name\030\004 \001" + + "(\t\"\245\004\n\014ServerConfig\022\037\n\027default_cluster_v" + + "ersion\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_i" + + "mage_types\030\005 \003(\t\022\035\n\025valid_master_version" + + "s\030\006 \003(\t\022M\n\010channels\030\t \003(\0132;.google.conta" + + "iner.v1beta1.ServerConfig.ReleaseChannel" + + "Config\032\261\002\n\024ReleaseChannelConfig\022A\n\007chann" + + "el\030\001 \001(\01620.google.container.v1beta1.Rele" + + "aseChannel.Channel\022\027\n\017default_version\030\002 " + + "\001(\t\022l\n\022available_versions\030\003 \003(\0132L.google" + + ".container.v1beta1.ServerConfig.ReleaseC" + + "hannelConfig.AvailableVersionB\002\030\001\022\026\n\016val" + + "id_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\"\256\001\n\025C" + + "reateNodePoolRequest\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\031\n\ncluster_" + + "id\030\003 \001(\tB\005\030\001\340A\002\022:\n\tnode_pool\030\004 \001(\0132\".goo" + + "gle.container.v1beta1.NodePoolB\003\340A\002\022\016\n\006p" + + "arent\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\024L" + + "istNodePoolsRequest\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\016\n\006parent\030\005 \001(\t\"\212\001\n\022GetNo" + + "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\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\014\n" + + "\004name\030\006 \001(\t\"\315\006\n\010NodePool\022\014\n\004name\030\001 \001(\t\0224" + + "\n\006config\030\002 \001(\0132$.google.container.v1beta" + + "1.NodeConfig\022\032\n\022initial_node_count\030\003 \001(\005" + + "\022\021\n\tlocations\030\r \003(\t\022\021\n\tself_link\030d \001(\t\022\017" + + "\n\007version\030e \001(\t\022\033\n\023instance_group_urls\030f" + + " \003(\t\0229\n\006status\030g \001(\0162).google.container." + + "v1beta1.NodePool.Status\022\032\n\016status_messag" + + "e\030h \001(\tB\002\030\001\022B\n\013autoscaling\030\004 \001(\0132-.googl" + + "e.container.v1beta1.NodePoolAutoscaling\022" + + "<\n\nmanagement\030\005 \001(\0132(.google.container.v" + + "1beta1.NodeManagement\022H\n\023max_pods_constr" + + "aint\030\006 \001(\0132+.google.container.v1beta1.Ma" + + "xPodsConstraint\022=\n\nconditions\030i \003(\0132).go" + + "ogle.container.v1beta1.StatusCondition\022\032" + + "\n\022pod_ipv4_cidr_size\030\007 \001(\005\022L\n\020upgrade_se" + + "ttings\030k \001(\01322.google.container.v1beta1." + + "NodePool.UpgradeSettings\032=\n\017UpgradeSetti" + + "ngs\022\021\n\tmax_surge\030\001 \001(\005\022\027\n\017max_unavailabl" + + "e\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\022RUN" + + "NING_WITH_ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010ST" + + "OPPING\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.cont" + + "ainer.v1beta1.AutoUpgradeOptions\"J\n\022Auto" + + "UpgradeOptions\022\037\n\027auto_upgrade_start_tim" + + "e\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\"j\n\021Maintena" + + "ncePolicy\022;\n\006window\030\001 \001(\0132+.google.conta" + + "iner.v1beta1.MaintenanceWindow\022\030\n\020resour" + + "ce_version\030\003 \001(\t\"\212\003\n\021MaintenanceWindow\022T" + + "\n\030daily_maintenance_window\030\002 \001(\01320.googl" + + "e.container.v1beta1.DailyMaintenanceWind" + + "owH\000\022I\n\020recurring_window\030\003 \001(\0132-.google." + + "container.v1beta1.RecurringTimeWindowH\000\022" + + "f\n\026maintenance_exclusions\030\004 \003(\0132F.google" + + ".container.v1beta1.MaintenanceWindow.Mai" + + "ntenanceExclusionsEntry\032b\n\032MaintenanceEx" + + "clusionsEntry\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\nTimeWindow\022.\n\nstart_tim" + + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010e" + + "nd_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\"_\n\023RecurringTimeWindow\0224\n\006window\030\001 \001(\013" + + "2$.google.container.v1beta1.TimeWindow\022\022" + + "\n\nrecurrence\030\002 \001(\t\">\n\026DailyMaintenanceWi" + + "ndow\022\022\n\nstart_time\030\002 \001(\t\022\020\n\010duration\030\003 \001" + + "(\t\"\327\001\n\034SetNodePoolManagementRequest\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\033\n\014node_p" + + "ool_id\030\004 \001(\tB\005\030\001\340A\002\022A\n\nmanagement\030\005 \001(\0132" + + "(.google.container.v1beta1.NodeManagemen" + + "tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\247\001\n\026SetNodePoolSize" + + "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\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\004name\030\007 \001(\t\"\226\001\n\036Rollb" + + "ackNodePoolUpgradeRequest\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\033\n\014node_pool_id\030\004 \001" + + "(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(\t\"O\n\025ListNodePools" + + "Response\0226\n\nnode_pools\030\001 \003(\0132\".google.co" + + "ntainer.v1beta1.NodePool\"\276\003\n\022ClusterAuto" + + "scaling\022$\n\034enable_node_autoprovisioning\030" + + "\001 \001(\010\022@\n\017resource_limits\030\002 \003(\0132\'.google." + + "container.v1beta1.ResourceLimit\022\\\n\023autos" + + "caling_profile\030\003 \001(\0162?.google.container." + + "v1beta1.ClusterAutoscaling.AutoscalingPr" + + "ofile\022g\n#autoprovisioning_node_pool_defa" + + "ults\030\004 \001(\0132:.google.container.v1beta1.Au" + + "toprovisioningNodePoolDefaults\022\"\n\032autopr" + + "ovisioning_locations\030\005 \003(\t\"U\n\022Autoscalin" + + "gProfile\022\027\n\023PROFILE_UNSPECIFIED\020\000\022\030\n\024OPT" + + "IMIZE_UTILIZATION\020\001\022\014\n\010BALANCED\020\002\"\243\003\n Au" + + "toprovisioningNodePoolDefaults\022\024\n\014oauth_" + + "scopes\030\001 \003(\t\022\027\n\017service_account\030\002 \001(\t\022L\n" + + "\020upgrade_settings\030\003 \001(\01322.google.contain" + + "er.v1beta1.NodePool.UpgradeSettings\022<\n\nm" + + "anagement\030\004 \001(\0132(.google.container.v1bet" + + "a1.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\022R\n\030shielded_instance_config\030\010 \001(\01320" + + ".google.container.v1beta1.ShieldedInstan" + + "ceConfig\022\031\n\021boot_disk_kms_key\030\t \001(\t\022\022\n\ni" + + "mage_type\030\n \001(\t\"H\n\rResourceLimit\022\025\n\rreso" + + "urce_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007maxi" + + "mum\030\003 \001(\003\"o\n\023NodePoolAutoscaling\022\017\n\007enab" + + "led\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\017autoprovisioned\030\004 \001" + + "(\010\"\240\002\n\020SetLabelsRequest\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\nclust" + + "er_id\030\003 \001(\tB\005\030\001\340A\002\022\\\n\017resource_labels\030\004 " + + "\003(\0132>.google.container.v1beta1.SetLabels" + + "Request.ResourceLabelsEntryB\003\340A\002\022\036\n\021labe" + + "l_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\005va" + + "lue\030\002 \001(\t:\0028\001\"\205\001\n\024SetLegacyAbacRequest\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\007ena" + + "bled\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\215\001\n\026StartI" + + "PRotationRequest\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\006 \001(\t\022\032\n\022rotate_cred" + + "entials\030\007 \001(\010\"t\n\031CompleteIPRotationReque" + + "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\007 \001(\t\"H\n\021AcceleratorConfig\022\031\n\021acce" + + "lerator_count\030\001 \001(\003\022\030\n\020accelerator_type\030" + + "\002 \001(\t\"\313\002\n\026WorkloadMetadataConfig\022X\n\rnode" + + "_metadata\030\001 \001(\0162=.google.container.v1bet" + + "a1.WorkloadMetadataConfig.NodeMetadataB\002" + + "\030\001\022C\n\004mode\030\002 \001(\01625.google.container.v1be" + + "ta1.WorkloadMetadataConfig.Mode\"P\n\014NodeM" + + "etadata\022\017\n\013UNSPECIFIED\020\000\022\n\n\006SECURE\020\001\022\n\n\006" + + "EXPOSE\020\002\022\027\n\023GKE_METADATA_SERVER\020\003\"@\n\004Mod" + + "e\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n\014GCE_METADATA\020" + + "\001\022\020\n\014GKE_METADATA\020\002\"\270\001\n\027SetNetworkPolicy" + + "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\022D\n\016network_policy\030\004 \001(\0132\'.google.cont" + + "ainer.v1beta1.NetworkPolicyB\003\340A\002\022\014\n\004name" + + "\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\340" + + "A\002\022\027\n\ncluster_id\030\003 \001(\tB\003\340A\002\022L\n\022maintenan" + + "ce_policy\030\004 \001(\0132+.google.container.v1bet" + + "a1.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\tlocatio" + + "ns\030\001 \003(\0132\".google.container.v1beta1.Loca" + + "tion\022\027\n\017next_page_token\030\002 \001(\t\"\261\001\n\010Locati" + + "on\022=\n\004type\030\001 \001(\0162/.google.container.v1be" + + "ta1.Location.LocationType\022\014\n\004name\030\002 \001(\t\022" + + "\023\n\013recommended\030\003 \001(\010\"C\n\014LocationType\022\035\n\031" + + "LOCATION_TYPE_UNSPECIFIED\020\000\022\010\n\004ZONE\020\001\022\n\n" + + "\006REGION\020\002\"\235\002\n\017StatusCondition\022@\n\004code\030\001 " + + "\001(\0162..google.container.v1beta1.StatusCon" + + "dition.CodeB\002\030\001\022\017\n\007message\030\002 \001(\t\022(\n\016cano" + + "nical_code\030\003 \001(\0162\020.google.rpc.Code\"\214\001\n\004C" + + "ode\022\013\n\007UNKNOWN\020\000\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GK" + + "E_SERVICE_ACCOUNT_DELETED\020\002\022\026\n\022GCE_QUOTA" + + "_EXCEEDED\020\003\022\023\n\017SET_BY_OPERATOR\020\004\022\027\n\023CLOU" + + "D_KMS_KEY_ERROR\020\007\"\353\001\n\rNetworkConfig\022\017\n\007n" + + "etwork\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022$\n\034enab" + + "le_intra_node_visibility\030\005 \001(\010\022H\n\023defaul" + + "t_snat_status\030\007 \001(\0132+.google.container.v" + + "1beta1.DefaultSnatStatus\022E\n\021datapath_pro" + + "vider\030\013 \001(\0162*.google.container.v1beta1.D" + + "atapathProvider\"j\n\034ListUsableSubnetworks" + + "Request\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\035ListUsableSubnetworksResponse\022?\n\013" + + "subnetworks\030\001 \003(\0132*.google.container.v1b" + + "eta1.UsableSubnetwork\022\027\n\017next_page_token" + + "\030\002 \001(\t\"\205\002\n\036UsableSubnetworkSecondaryRang" + + "e\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.UsableSubnetworkSecondaryRange.S" + + "tatus\"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_POD\020\004\"\275\001\n\020Usabl" + + "eSubnetwork\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n\007netwo" + + "rk\030\002 \001(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022U\n\023secon" + + "dary_ip_ranges\030\004 \003(\01328.google.container." + + "v1beta1.UsableSubnetworkSecondaryRange\022\026" + + "\n\016status_message\030\005 \001(\t\")\n\026VerticalPodAut" + + "oscaling\022\017\n\007enabled\030\001 \001(\010\"%\n\021DefaultSnat" + + "Status\022\020\n\010disabled\030\001 \001(\010\",\n\031IntraNodeVis" + + "ibilityConfig\022\017\n\007enabled\030\001 \001(\010\".\n\021MaxPod" + + "sConstraint\022\031\n\021max_pods_per_node\030\001 \001(\003\"j" + + "\n\026WorkloadIdentityConfig\022\036\n\022identity_nam" + + "espace\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\"\235\001\n\022DatabaseE" + + "ncryption\022A\n\005state\030\002 \001(\01622.google.contai" + + "ner.v1beta1.DatabaseEncryption.State\022\020\n\010" + + "key_name\030\001 \001(\t\"2\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n\t" + + "ENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"\367\002\n\031ResourceU" + + "sageExportConfig\022e\n\024bigquery_destination" + + "\030\001 \001(\0132G.google.container.v1beta1.Resour" + + "ceUsageExportConfig.BigQueryDestination\022" + + "&\n\036enable_network_egress_metering\030\002 \001(\010\022" + + "r\n\033consumption_metering_config\030\003 \001(\0132M.g" + + "oogle.container.v1beta1.ResourceUsageExp" + + "ortConfig.ConsumptionMeteringConfig\032)\n\023B" + + "igQueryDestination\022\022\n\ndataset_id\030\001 \001(\t\032," + + "\n\031ConsumptionMeteringConfig\022\017\n\007enabled\030\001" + + " \001(\010\" \n\rShieldedNodes\022\017\n\007enabled\030\001 \001(\010\"(" + + "\n\026GetOpenIDConfigRequest\022\016\n\006parent\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\030response_types" + + "_supported\030\003 \003(\t\022\037\n\027subject_types_suppor" + + "ted\030\004 \003(\t\022-\n%id_token_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\025GetJSONWebKey" + + "sRequest\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\001" + + "y\030\010 \001(\t\022\013\n\003crv\030\t \001(\t\"E\n\026GetJSONWebKeysRe" + + "sponse\022+\n\004keys\030\001 \003(\0132\035.google.container." + + "v1beta1.Jwk\"\223\001\n\016ReleaseChannel\022A\n\007channe" + + "l\030\001 \001(\01620.google.container.v1beta1.Relea" + + "seChannel.Channel\">\n\007Channel\022\017\n\013UNSPECIF" + + "IED\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_s" + + "ervice_networking\030\002 \001(\010\022\027\n\017ipv4_cidr_blo" + + "ck\030\003 \001(\t\"\010\n\006Master\"\245\001\n\022NotificationConfi" + + "g\022C\n\006pubsub\030\001 \001(\01323.google.container.v1b" + + "eta1.NotificationConfig.PubSub\032J\n\006PubSub" + + "\022\017\n\007enabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033p" + + "ubsub.googleapis.com/Topic\"$\n\021Confidenti" + + "alNodes\022\017\n\007enabled\030\001 \001(\010\"\202\002\n\014UpgradeEven" + + "t\022I\n\rresource_type\030\001 \001(\0162-.google.contai" + + "ner.v1beta1.UpgradeResourceTypeB\003\340A\002\022\026\n\t" + + "operation\030\002 \001(\tB\003\340A\002\022=\n\024operation_start_" + + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\002\022\034\n\017current_version\030\004 \001(\tB\003\340A\002\022\033\n\016tar" + + "get_version\030\005 \001(\tB\003\340A\002\022\025\n\010resource\030\006 \001(\t" + + "B\003\340A\001*a\n\020DatapathProvider\022!\n\035DATAPATH_PR" + + "OVIDER_UNSPECIFIED\020\000\022\023\n\017LEGACY_DATAPATH\020" + + "\001\022\025\n\021ADVANCED_DATAPATH\020\002*W\n\023UpgradeResou" + + "rceType\022%\n!UPGRADE_RESOURCE_TYPE_UNSPECI" + + "FIED\020\000\022\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\0022\352J\n\016Cl" + + "usterManager\022\363\001\n\014ListClusters\022-.google.c" + + "ontainer.v1beta1.ListClustersRequest\032..g" + + "oogle.container.v1beta1.ListClustersResp" + + "onse\"\203\001\202\323\344\223\002k\0221/v1beta1/{parent=projects" + + "/*/locations/*}/clustersZ6\0224/v1beta1/pro" + + "jects/{project_id}/zones/{zone}/clusters" + + "\332A\017project_id,zone\022\372\001\n\nGetCluster\022+.goog" + + "le.container.v1beta1.GetClusterRequest\032!" + + ".google.container.v1beta1.Cluster\"\233\001\202\323\344\223" + + "\002x\0221/v1beta1/{name=projects/*/locations/" + + "*/clusters/*}ZC\022A/v1beta1/projects/{proj" + + "ect_id}/zones/{zone}/clusters/{cluster_i" + + "d}\332A\032project_id,zone,cluster_id\022\370\001\n\rCrea" + + "teCluster\022..google.container.v1beta1.Cre" + + "ateClusterRequest\032#.google.container.v1b" + + "eta1.Operation\"\221\001\202\323\344\223\002q\"1/v1beta1/{paren" + + "t=projects/*/locations/*}/clusters:\001*Z9\"" + + "4/v1beta1/projects/{project_id}/zones/{z" + + "one}/clusters:\001*\332A\027project_id,zone,clust" + + "er\022\217\002\n\rUpdateCluster\022..google.container." + + "v1beta1.UpdateClusterRequest\032#.google.co" + + "ntainer.v1beta1.Operation\"\250\001\202\323\344\223\002~\0321/v1b" + + "eta1/{name=projects/*/locations/*/cluste" + + "rs/*}:\001*ZF\032A/v1beta1/projects/{project_i" + + "d}/zones/{zone}/clusters/{cluster_id}:\001*" + + "\332A!project_id,zone,cluster_id,update\022\232\002\n" + + "\016UpdateNodePool\022/.google.container.v1bet" + + "a1.UpdateNodePoolRequest\032#.google.contai" + + "ner.v1beta1.Operation\"\261\001\202\323\344\223\002\252\001\032=/v1beta" + + "1/{name=projects/*/locations/*/clusters/" + + "*/nodePools/*}:\001*Zf\"a/v1beta1/projects/{" + + "project_id}/zones/{zone}/clusters/{clust" + + "er_id}/nodePools/{node_pool_id}/update:\001" + + "*\022\276\002\n\026SetNodePoolAutoscaling\0227.google.co" + + "ntainer.v1beta1.SetNodePoolAutoscalingRe" + + "quest\032#.google.container.v1beta1.Operati" + + "on\"\305\001\202\323\344\223\002\276\001\"L/v1beta1/{name=projects/*/" + + "locations/*/clusters/*/nodePools/*}:setA" + + "utoscaling:\001*Zk\"f/v1beta1/projects/{proj" + + "ect_id}/zones/{zone}/clusters/{cluster_i" + + "d}/nodePools/{node_pool_id}/autoscaling:" + + "\001*\022\264\002\n\021SetLoggingService\0222.google.contai" + + "ner.v1beta1.SetLoggingServiceRequest\032#.g" + + "oogle.container.v1beta1.Operation\"\305\001\202\323\344\223" + + "\002\221\001\"/v1beta1/{name=project" + + "s/*/locations/*/clusters/*}:setLocations" + + ":\001*ZP\"K/v1beta1/projects/{project_id}/zo" + + "nes/{zone}/clusters/{cluster_id}/locatio" + + "ns:\001*\332A$project_id,zone,cluster_id,locat" + + "ions\022\252\002\n\014UpdateMaster\022-.google.container" + + ".v1beta1.UpdateMasterRequest\032#.google.co" + + "ntainer.v1beta1.Operation\"\305\001\202\323\344\223\002\222\001\">/v1" + + "beta1/{name=projects/*/locations/*/clust" + + "ers/*}:updateMaster:\001*ZM\"H/v1beta1/proje" + + "cts/{project_id}/zones/{zone}/clusters/{" + + "cluster_id}/master:\001*\332A)project_id,zone," + + "cluster_id,master_version\022\210\002\n\rSetMasterA" + + "uth\022..google.container.v1beta1.SetMaster" + + "AuthRequest\032#.google.container.v1beta1.O" + + "peration\"\241\001\202\323\344\223\002\232\001\"?/v1beta1/{name=proje" + + "cts/*/locations/*/clusters/*}:setMasterA" + + "uth:\001*ZT\"O/v1beta1/projects/{project_id}" + + "/zones/{zone}/clusters/{cluster_id}:setM" + + "asterAuth:\001*\022\202\002\n\rDeleteCluster\022..google." + + "container.v1beta1.DeleteClusterRequest\032#" + + ".google.container.v1beta1.Operation\"\233\001\202\323" + + "\344\223\002x*1/v1beta1/{name=projects/*/location" + + "s/*/clusters/*}ZC*A/v1beta1/projects/{pr" + + "oject_id}/zones/{zone}/clusters/{cluster" + + "_id}\332A\032project_id,zone,cluster_id\022\375\001\n\016Li" + + "stOperations\022/.google.container.v1beta1." + + "ListOperationsRequest\0320.google.container" + + ".v1beta1.ListOperationsResponse\"\207\001\202\323\344\223\002o" + + "\0223/v1beta1/{parent=projects/*/locations/" + + "*}/operationsZ8\0226/v1beta1/projects/{proj" + + "ect_id}/zones/{zone}/operations\332A\017projec" + + "t_id,zone\022\210\002\n\014GetOperation\022-.google.cont" + + "ainer.v1beta1.GetOperationRequest\032#.goog" + + "le.container.v1beta1.Operation\"\243\001\202\323\344\223\002~\022" + + "3/v1beta1/{name=projects/*/locations/*/o" + + "perations/*}ZG\022E/v1beta1/projects/{proje" + + "ct_id}/zones/{zone}/operations/{operatio" + + "n_id}\332A\034project_id,zone,operation_id\022\226\002\n" + + "\017CancelOperation\0220.google.container.v1be" + + "ta1.CancelOperationRequest\032\026.google.prot" + + "obuf.Empty\"\270\001\202\323\344\223\002\222\001\":/v1beta1/{name=pro" + + "jects/*/locations/*/operations/*}:cancel" + + ":\001*ZQ\"L/v1beta1/projects/{project_id}/zo" + + "nes/{zone}/operations/{operation_id}:can" + + "cel:\001*\332A\034project_id,zone,operation_id\022\367\001" + + "\n\017GetServerConfig\0220.google.container.v1b" + + "eta1.GetServerConfigRequest\032&.google.con" + + "tainer.v1beta1.ServerConfig\"\211\001\202\323\344\223\002q\0223/v" + + "1beta1/{name=projects/*/locations/*}/ser" + + "verConfigZ:\0228/v1beta1/projects/{project_" + + "id}/zones/{zone}/serverconfig\332A\017project_" + + "id,zone\022\245\002\n\rListNodePools\022..google.conta" + + "iner.v1beta1.ListNodePoolsRequest\032/.goog" + + "le.container.v1beta1.ListNodePoolsRespon" + + "se\"\262\001\202\323\344\223\002\216\001\022=/v1beta1/{parent=projects/" + + "*/locations/*/clusters/*}/nodePoolsZM\022K/" + + "v1beta1/projects/{project_id}/zones/{zon" + + "e}/clusters/{cluster_id}/nodePools\332A\032pro" + + "ject_id,zone,cluster_id\022\265\001\n\016GetJSONWebKe" + + "ys\022/.google.container.v1beta1.GetJSONWeb" + + "KeysRequest\0320.google.container.v1beta1.G" + + "etJSONWebKeysResponse\"@\202\323\344\223\002:\0228/v1beta1/" + + "{parent=projects/*/locations/*/clusters/" + + "*}/jwks\022\260\002\n\013GetNodePool\022,.google.contain" + + "er.v1beta1.GetNodePoolRequest\032\".google.c" + + "ontainer.v1beta1.NodePool\"\316\001\202\323\344\223\002\235\001\022=/v1" + + "beta1/{name=projects/*/locations/*/clust" + + "ers/*/nodePools/*}Z\\\022Z/v1beta1/projects/" + + "{project_id}/zones/{zone}/clusters/{clus" + + "ter_id}/nodePools/{node_pool_id}\332A\'proje" + + "ct_id,zone,cluster_id,node_pool_id\022\253\002\n\016C" + + "reateNodePool\022/.google.container.v1beta1" + + ".CreateNodePoolRequest\032#.google.containe" + + "r.v1beta1.Operation\"\302\001\202\323\344\223\002\224\001\"=/v1beta1/" + + "{parent=projects/*/locations/*/clusters/" + + "*}/nodePools:\001*ZP\"K/v1beta1/projects/{pr" + + "oject_id}/zones/{zone}/clusters/{cluster" + + "_id}/nodePools:\001*\332A$project_id,zone,clus" + + "ter_id,node_pool\022\267\002\n\016DeleteNodePool\022/.go" + + "ogle.container.v1beta1.DeleteNodePoolReq" + + "uest\032#.google.container.v1beta1.Operatio" + + "n\"\316\001\202\323\344\223\002\235\001*=/v1beta1/{name=projects/*/l" + + "ocations/*/clusters/*/nodePools/*}Z\\*Z/v" + + "1beta1/projects/{project_id}/zones/{zone" + + "}/clusters/{cluster_id}/nodePools/{node_" + + "pool_id}\332A\'project_id,zone,cluster_id,no" + + "de_pool_id\022\341\002\n\027RollbackNodePoolUpgrade\0228" + + ".google.container.v1beta1.RollbackNodePo" + + "olUpgradeRequest\032#.google.container.v1be" + + "ta1.Operation\"\346\001\202\323\344\223\002\265\001\"F/v1beta1/{name=" + + "projects/*/locations/*/clusters/*/nodePo" + + "ols/*}:rollback:\001*Zh\"c/v1beta1/projects/" + + "{project_id}/zones/{zone}/clusters/{clus" + + "ter_id}/nodePools/{node_pool_id}:rollbac" + + "k:\001*\332A\'project_id,zone,cluster_id,node_p" + + "ool_id\022\362\002\n\025SetNodePoolManagement\0226.googl" + + "e.container.v1beta1.SetNodePoolManagemen" + + "tRequest\032#.google.container.v1beta1.Oper" + + "ation\"\373\001\202\323\344\223\002\277\001\"K/v1beta1/{name=projects" + + "/*/locations/*/clusters/*/nodePools/*}:s" + + "etManagement:\001*Zm\"h/v1beta1/projects/{pr" + + "oject_id}/zones/{zone}/clusters/{cluster" + + "_id}/nodePools/{node_pool_id}/setManagem" + + "ent:\001*\332A2project_id,zone,cluster_id,node", + "_pool_id,management\022\304\002\n\tSetLabels\022*.goog" + + "le.container.v1beta1.SetLabelsRequest\032#." + + "google.container.v1beta1.Operation\"\345\001\202\323\344" + + "\223\002\237\001\"C/v1beta1/{name=projects/*/location" + + "s/*/clusters/*}:setResourceLabels:\001*ZU\"P" + + "/v1beta1/projects/{project_id}/zones/{zo" + + "ne}/clusters/{cluster_id}/resourceLabels" + + ":\001*\332A + * Telemetry integration for the cluster. + * + * + * Protobuf type {@code google.container.v1beta1.ClusterTelemetry} + */ +public final class ClusterTelemetry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClusterTelemetry) + ClusterTelemetryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterTelemetry.newBuilder() to construct. + private ClusterTelemetry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterTelemetry() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterTelemetry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ClusterTelemetry( + 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_ClusterTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterTelemetry.class, + com.google.container.v1beta1.ClusterTelemetry.Builder.class); + } + + /** + * + * + *
+   * Type of the integration.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.ClusterTelemetry.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * Monitoring integration is disabled.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
+     * Monitoring integration is enabled.
+     * 
+ * + * ENABLED = 2; + */ + ENABLED(2), + /** + * + * + *
+     * Only system components are monitored and logged.
+     * 
+ * + * SYSTEM_ONLY = 3; + */ + SYSTEM_ONLY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Monitoring integration is disabled.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
+     * Monitoring integration is enabled.
+     * 
+ * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + /** + * + * + *
+     * Only system components are monitored and logged.
+     * 
+ * + * SYSTEM_ONLY = 3; + */ + public static final int SYSTEM_ONLY_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + case 3: + return SYSTEM_ONLY; + 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.ClusterTelemetry.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.ClusterTelemetry.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Type of the integration.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Type of the integration.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ClusterTelemetry.Type result = + com.google.container.v1beta1.ClusterTelemetry.Type.valueOf(type_); + return result == null + ? com.google.container.v1beta1.ClusterTelemetry.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.ClusterTelemetry.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.ClusterTelemetry.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.ClusterTelemetry)) { + return super.equals(obj); + } + com.google.container.v1beta1.ClusterTelemetry other = + (com.google.container.v1beta1.ClusterTelemetry) 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.ClusterTelemetry parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ClusterTelemetry 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.ClusterTelemetry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ClusterTelemetry 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.ClusterTelemetry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ClusterTelemetry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ClusterTelemetry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ClusterTelemetry 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.ClusterTelemetry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ClusterTelemetry 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.ClusterTelemetry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ClusterTelemetry 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.ClusterTelemetry 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; + } + /** + * + * + *
+   * Telemetry integration for the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ClusterTelemetry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ClusterTelemetry) + com.google.container.v1beta1.ClusterTelemetryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterTelemetry.class, + com.google.container.v1beta1.ClusterTelemetry.Builder.class); + } + + // Construct using com.google.container.v1beta1.ClusterTelemetry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterTelemetry_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry getDefaultInstanceForType() { + return com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry build() { + com.google.container.v1beta1.ClusterTelemetry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry buildPartial() { + com.google.container.v1beta1.ClusterTelemetry result = + new com.google.container.v1beta1.ClusterTelemetry(this); + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ClusterTelemetry) { + return mergeFrom((com.google.container.v1beta1.ClusterTelemetry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ClusterTelemetry other) { + if (other == com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ClusterTelemetry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ClusterTelemetry) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Type of the integration.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Type of the integration.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the integration.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ClusterTelemetry.Type result = + com.google.container.v1beta1.ClusterTelemetry.Type.valueOf(type_); + return result == null + ? com.google.container.v1beta1.ClusterTelemetry.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Type of the integration.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.container.v1beta1.ClusterTelemetry.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the integration.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ClusterTelemetry) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClusterTelemetry) + private static final com.google.container.v1beta1.ClusterTelemetry DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ClusterTelemetry(); + } + + public static com.google.container.v1beta1.ClusterTelemetry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterTelemetry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterTelemetry(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.ClusterTelemetry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetryOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetryOrBuilder.java new file mode 100644 index 00000000..1729bb55 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetryOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ClusterTelemetryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClusterTelemetry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Type of the integration.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Type of the integration.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry.Type type = 1; + * + * @return The type. + */ + com.google.container.v1beta1.ClusterTelemetry.Type getType(); +} 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 new file mode 100644 index 00000000..b5e1d1bb --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java @@ -0,0 +1,7887 @@ +/* + * 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; + +/** + * + * + *
+ * ClusterUpdate describes an update to the cluster. Exactly one update can
+ * be applied to a cluster with each request, so at most one field can be
+ * provided.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ClusterUpdate} + */ +public final class ClusterUpdate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ClusterUpdate) + ClusterUpdateOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterUpdate.newBuilder() to construct. + private ClusterUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterUpdate() { + desiredNodeVersion_ = ""; + desiredMonitoringService_ = ""; + desiredNodePoolId_ = ""; + desiredImageType_ = ""; + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + desiredLoggingService_ = ""; + desiredDatapathProvider_ = 0; + desiredMasterVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterUpdate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ClusterUpdate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + desiredNodeVersion_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + desiredMonitoringService_ = s; + break; + } + case 50: + { + com.google.container.v1beta1.AddonsConfig.Builder subBuilder = null; + if (desiredAddonsConfig_ != null) { + subBuilder = desiredAddonsConfig_.toBuilder(); + } + desiredAddonsConfig_ = + input.readMessage( + com.google.container.v1beta1.AddonsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredAddonsConfig_); + desiredAddonsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + desiredNodePoolId_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + desiredImageType_ = s; + break; + } + case 74: + { + com.google.container.v1beta1.NodePoolAutoscaling.Builder subBuilder = null; + if (desiredNodePoolAutoscaling_ != null) { + subBuilder = desiredNodePoolAutoscaling_.toBuilder(); + } + desiredNodePoolAutoscaling_ = + input.readMessage( + com.google.container.v1beta1.NodePoolAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredNodePoolAutoscaling_); + desiredNodePoolAutoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + desiredLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + desiredLocations_.add(s); + break; + } + case 98: + { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder subBuilder = null; + if (desiredMasterAuthorizedNetworksConfig_ != null) { + subBuilder = desiredMasterAuthorizedNetworksConfig_.toBuilder(); + } + desiredMasterAuthorizedNetworksConfig_ = + input.readMessage( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredMasterAuthorizedNetworksConfig_); + desiredMasterAuthorizedNetworksConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 114: + { + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder subBuilder = null; + if (desiredPodSecurityPolicyConfig_ != null) { + subBuilder = desiredPodSecurityPolicyConfig_.toBuilder(); + } + desiredPodSecurityPolicyConfig_ = + input.readMessage( + com.google.container.v1beta1.PodSecurityPolicyConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredPodSecurityPolicyConfig_); + desiredPodSecurityPolicyConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 122: + { + com.google.container.v1beta1.ClusterAutoscaling.Builder subBuilder = null; + if (desiredClusterAutoscaling_ != null) { + subBuilder = desiredClusterAutoscaling_.toBuilder(); + } + desiredClusterAutoscaling_ = + input.readMessage( + com.google.container.v1beta1.ClusterAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredClusterAutoscaling_); + desiredClusterAutoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 130: + { + com.google.container.v1beta1.BinaryAuthorization.Builder subBuilder = null; + if (desiredBinaryAuthorization_ != null) { + subBuilder = desiredBinaryAuthorization_.toBuilder(); + } + desiredBinaryAuthorization_ = + input.readMessage( + com.google.container.v1beta1.BinaryAuthorization.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredBinaryAuthorization_); + desiredBinaryAuthorization_ = subBuilder.buildPartial(); + } + + break; + } + case 154: + { + java.lang.String s = input.readStringRequireUtf8(); + + desiredLoggingService_ = s; + break; + } + case 170: + { + com.google.container.v1beta1.ResourceUsageExportConfig.Builder subBuilder = null; + if (desiredResourceUsageExportConfig_ != null) { + subBuilder = desiredResourceUsageExportConfig_.toBuilder(); + } + desiredResourceUsageExportConfig_ = + input.readMessage( + com.google.container.v1beta1.ResourceUsageExportConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredResourceUsageExportConfig_); + desiredResourceUsageExportConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 178: + { + com.google.container.v1beta1.VerticalPodAutoscaling.Builder subBuilder = null; + if (desiredVerticalPodAutoscaling_ != null) { + subBuilder = desiredVerticalPodAutoscaling_.toBuilder(); + } + desiredVerticalPodAutoscaling_ = + input.readMessage( + com.google.container.v1beta1.VerticalPodAutoscaling.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredVerticalPodAutoscaling_); + desiredVerticalPodAutoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 202: + { + com.google.container.v1beta1.PrivateClusterConfig.Builder subBuilder = null; + if (desiredPrivateClusterConfig_ != null) { + subBuilder = desiredPrivateClusterConfig_.toBuilder(); + } + desiredPrivateClusterConfig_ = + input.readMessage( + com.google.container.v1beta1.PrivateClusterConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredPrivateClusterConfig_); + desiredPrivateClusterConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 210: + { + com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder subBuilder = null; + if (desiredIntraNodeVisibilityConfig_ != null) { + subBuilder = desiredIntraNodeVisibilityConfig_.toBuilder(); + } + desiredIntraNodeVisibilityConfig_ = + input.readMessage( + com.google.container.v1beta1.IntraNodeVisibilityConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredIntraNodeVisibilityConfig_); + desiredIntraNodeVisibilityConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 226: + { + com.google.container.v1beta1.DefaultSnatStatus.Builder subBuilder = null; + if (desiredDefaultSnatStatus_ != null) { + subBuilder = desiredDefaultSnatStatus_.toBuilder(); + } + desiredDefaultSnatStatus_ = + input.readMessage( + com.google.container.v1beta1.DefaultSnatStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredDefaultSnatStatus_); + desiredDefaultSnatStatus_ = subBuilder.buildPartial(); + } + + break; + } + case 242: + { + com.google.container.v1beta1.ClusterTelemetry.Builder subBuilder = null; + if (desiredClusterTelemetry_ != null) { + subBuilder = desiredClusterTelemetry_.toBuilder(); + } + desiredClusterTelemetry_ = + input.readMessage( + com.google.container.v1beta1.ClusterTelemetry.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredClusterTelemetry_); + desiredClusterTelemetry_ = subBuilder.buildPartial(); + } + + break; + } + case 250: + { + com.google.container.v1beta1.ReleaseChannel.Builder subBuilder = null; + if (desiredReleaseChannel_ != null) { + subBuilder = desiredReleaseChannel_.toBuilder(); + } + desiredReleaseChannel_ = + input.readMessage( + com.google.container.v1beta1.ReleaseChannel.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredReleaseChannel_); + desiredReleaseChannel_ = subBuilder.buildPartial(); + } + + break; + } + case 306: + { + com.google.container.v1beta1.TpuConfig.Builder subBuilder = null; + if (desiredTpuConfig_ != null) { + subBuilder = desiredTpuConfig_.toBuilder(); + } + desiredTpuConfig_ = + input.readMessage( + com.google.container.v1beta1.TpuConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredTpuConfig_); + desiredTpuConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 370: + { + com.google.container.v1beta1.DatabaseEncryption.Builder subBuilder = null; + if (desiredDatabaseEncryption_ != null) { + subBuilder = desiredDatabaseEncryption_.toBuilder(); + } + desiredDatabaseEncryption_ = + input.readMessage( + com.google.container.v1beta1.DatabaseEncryption.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredDatabaseEncryption_); + desiredDatabaseEncryption_ = subBuilder.buildPartial(); + } + + break; + } + case 378: + { + com.google.container.v1beta1.WorkloadIdentityConfig.Builder subBuilder = null; + if (desiredWorkloadIdentityConfig_ != null) { + subBuilder = desiredWorkloadIdentityConfig_.toBuilder(); + } + desiredWorkloadIdentityConfig_ = + input.readMessage( + com.google.container.v1beta1.WorkloadIdentityConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredWorkloadIdentityConfig_); + desiredWorkloadIdentityConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 386: + { + com.google.container.v1beta1.ShieldedNodes.Builder subBuilder = null; + if (desiredShieldedNodes_ != null) { + subBuilder = desiredShieldedNodes_.toBuilder(); + } + desiredShieldedNodes_ = + input.readMessage( + com.google.container.v1beta1.ShieldedNodes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredShieldedNodes_); + desiredShieldedNodes_ = subBuilder.buildPartial(); + } + + break; + } + case 400: + { + int rawValue = input.readEnum(); + + desiredDatapathProvider_ = rawValue; + break; + } + case 418: + { + com.google.container.v1beta1.Master.Builder subBuilder = null; + if (desiredMaster_ != null) { + subBuilder = desiredMaster_.toBuilder(); + } + desiredMaster_ = + input.readMessage( + com.google.container.v1beta1.Master.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredMaster_); + desiredMaster_ = subBuilder.buildPartial(); + } + + break; + } + case 442: + { + com.google.container.v1beta1.NotificationConfig.Builder subBuilder = null; + if (desiredNotificationConfig_ != null) { + subBuilder = desiredNotificationConfig_.toBuilder(); + } + desiredNotificationConfig_ = + input.readMessage( + com.google.container.v1beta1.NotificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(desiredNotificationConfig_); + desiredNotificationConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + + desiredMasterVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + desiredLocations_ = desiredLocations_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterUpdate.class, + com.google.container.v1beta1.ClusterUpdate.Builder.class); + } + + public static final int DESIRED_NODE_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object desiredNodeVersion_; + /** + * + * + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + * + * @return The desiredNodeVersion. + */ + @java.lang.Override + public java.lang.String getDesiredNodeVersion() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodeVersion_ = s; + return s; + } + } + /** + * + * + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + * + * @return The bytes for desiredNodeVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredNodeVersionBytes() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_MONITORING_SERVICE_FIELD_NUMBER = 5; + private volatile java.lang.Object desiredMonitoringService_; + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_monitoring_service = 5; + * + * @return The desiredMonitoringService. + */ + @java.lang.Override + public java.lang.String getDesiredMonitoringService() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMonitoringService_ = s; + return s; + } + } + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_monitoring_service = 5; + * + * @return The bytes for desiredMonitoringService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredMonitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_ADDONS_CONFIG_FIELD_NUMBER = 6; + private com.google.container.v1beta1.AddonsConfig desiredAddonsConfig_; + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + * + * @return Whether the desiredAddonsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredAddonsConfig() { + return desiredAddonsConfig_ != null; + } + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + * + * @return The desiredAddonsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig getDesiredAddonsConfig() { + return desiredAddonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : desiredAddonsConfig_; + } + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + @java.lang.Override + public com.google.container.v1beta1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { + return getDesiredAddonsConfig(); + } + + public static final int DESIRED_NODE_POOL_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object desiredNodePoolId_; + /** + * + * + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family",
+   * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+   * is specified and there is more than one node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + * + * @return The desiredNodePoolId. + */ + @java.lang.Override + public java.lang.String getDesiredNodePoolId() { + java.lang.Object ref = desiredNodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodePoolId_ = s; + return s; + } + } + /** + * + * + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family",
+   * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+   * is specified and there is more than one node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + * + * @return The bytes for desiredNodePoolId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredNodePoolIdBytes() { + java.lang.Object ref = desiredNodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredNodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_IMAGE_TYPE_FIELD_NUMBER = 8; + private volatile java.lang.Object desiredImageType_; + /** + * + * + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + * + * @return The desiredImageType. + */ + @java.lang.Override + public java.lang.String getDesiredImageType() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredImageType_ = s; + return s; + } + } + /** + * + * + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + * + * @return The bytes for desiredImageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredImageTypeBytes() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; + private com.google.container.v1beta1.NodePoolAutoscaling desiredNodePoolAutoscaling_; + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return Whether the desiredNodePoolAutoscaling field is set. + */ + @java.lang.Override + public boolean hasDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscaling_ != null; + } + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return The desiredNodePoolAutoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : desiredNodePoolAutoscaling_; + } + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder + getDesiredNodePoolAutoscalingOrBuilder() { + return getDesiredNodePoolAutoscaling(); + } + + public static final int DESIRED_LOCATIONS_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList desiredLocations_; + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @return A list containing the desiredLocations. + */ + public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { + return desiredLocations_; + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @return The count of desiredLocations. + */ + public int getDesiredLocationsCount() { + return desiredLocations_.size(); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the element to return. + * @return The desiredLocations at the given index. + */ + public java.lang.String getDesiredLocations(int index) { + return desiredLocations_.get(index); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the value to return. + * @return The bytes of the desiredLocations at the given index. + */ + public com.google.protobuf.ByteString getDesiredLocationsBytes(int index) { + return desiredLocations_.getByteString(index); + } + + public static final int DESIRED_MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 12; + private com.google.container.v1beta1.MasterAuthorizedNetworksConfig + desiredMasterAuthorizedNetworksConfig_; + /** + * + * + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + * + * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + * + * @return The desiredMasterAuthorizedNetworksConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig + getDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfig_ == null + ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : desiredMasterAuthorizedNetworksConfig_; + } + /** + * + * + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder + getDesiredMasterAuthorizedNetworksConfigOrBuilder() { + return getDesiredMasterAuthorizedNetworksConfig(); + } + + public static final int DESIRED_POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1beta1.PodSecurityPolicyConfig desiredPodSecurityPolicyConfig_; + /** + * + * + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + * + * @return Whether the desiredPodSecurityPolicyConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredPodSecurityPolicyConfig() { + return desiredPodSecurityPolicyConfig_ != null; + } + /** + * + * + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + * + * @return The desiredPodSecurityPolicyConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig() { + return desiredPodSecurityPolicyConfig_ == null + ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() + : desiredPodSecurityPolicyConfig_; + } + /** + * + * + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder + getDesiredPodSecurityPolicyConfigOrBuilder() { + return getDesiredPodSecurityPolicyConfig(); + } + + public static final int DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER = 15; + private com.google.container.v1beta1.ClusterAutoscaling desiredClusterAutoscaling_; + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return Whether the desiredClusterAutoscaling field is set. + */ + @java.lang.Override + public boolean hasDesiredClusterAutoscaling() { + return desiredClusterAutoscaling_ != null; + } + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return The desiredClusterAutoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscaling getDesiredClusterAutoscaling() { + return desiredClusterAutoscaling_ == null + ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() + : desiredClusterAutoscaling_; + } + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterAutoscalingOrBuilder + getDesiredClusterAutoscalingOrBuilder() { + return getDesiredClusterAutoscaling(); + } + + public static final int DESIRED_BINARY_AUTHORIZATION_FIELD_NUMBER = 16; + private com.google.container.v1beta1.BinaryAuthorization desiredBinaryAuthorization_; + /** + * + * + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + * + * @return Whether the desiredBinaryAuthorization field is set. + */ + @java.lang.Override + public boolean hasDesiredBinaryAuthorization() { + return desiredBinaryAuthorization_ != null; + } + /** + * + * + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + * + * @return The desiredBinaryAuthorization. + */ + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization getDesiredBinaryAuthorization() { + return desiredBinaryAuthorization_ == null + ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() + : desiredBinaryAuthorization_; + } + /** + * + * + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorizationOrBuilder + getDesiredBinaryAuthorizationOrBuilder() { + return getDesiredBinaryAuthorization(); + } + + public static final int DESIRED_LOGGING_SERVICE_FIELD_NUMBER = 19; + private volatile java.lang.Object desiredLoggingService_; + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_logging_service = 19; + * + * @return The desiredLoggingService. + */ + @java.lang.Override + public java.lang.String getDesiredLoggingService() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredLoggingService_ = s; + return s; + } + } + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_logging_service = 19; + * + * @return The bytes for desiredLoggingService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredLoggingServiceBytes() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredLoggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1beta1.ResourceUsageExportConfig desiredResourceUsageExportConfig_; + /** + * + * + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + * + * @return Whether the desiredResourceUsageExportConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredResourceUsageExportConfig() { + return desiredResourceUsageExportConfig_ != null; + } + /** + * + * + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + * + * @return The desiredResourceUsageExportConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig + getDesiredResourceUsageExportConfig() { + return desiredResourceUsageExportConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() + : desiredResourceUsageExportConfig_; + } + /** + * + * + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder + getDesiredResourceUsageExportConfigOrBuilder() { + return getDesiredResourceUsageExportConfig(); + } + + public static final int DESIRED_VERTICAL_POD_AUTOSCALING_FIELD_NUMBER = 22; + private com.google.container.v1beta1.VerticalPodAutoscaling desiredVerticalPodAutoscaling_; + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + * + * @return Whether the desiredVerticalPodAutoscaling field is set. + */ + @java.lang.Override + public boolean hasDesiredVerticalPodAutoscaling() { + return desiredVerticalPodAutoscaling_ != null; + } + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + * + * @return The desiredVerticalPodAutoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling() { + return desiredVerticalPodAutoscaling_ == null + ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() + : desiredVerticalPodAutoscaling_; + } + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder + getDesiredVerticalPodAutoscalingOrBuilder() { + return getDesiredVerticalPodAutoscaling(); + } + + public static final int DESIRED_PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1beta1.PrivateClusterConfig desiredPrivateClusterConfig_; + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * + * @return Whether the desiredPrivateClusterConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredPrivateClusterConfig() { + return desiredPrivateClusterConfig_ != null; + } + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * + * @return The desiredPrivateClusterConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfig getDesiredPrivateClusterConfig() { + return desiredPrivateClusterConfig_ == null + ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() + : desiredPrivateClusterConfig_; + } + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfigOrBuilder + getDesiredPrivateClusterConfigOrBuilder() { + return getDesiredPrivateClusterConfig(); + } + + public static final int DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER = 26; + private com.google.container.v1beta1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; + /** + * + * + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return Whether the desiredIntraNodeVisibilityConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredIntraNodeVisibilityConfig() { + return desiredIntraNodeVisibilityConfig_ != null; + } + /** + * + * + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return The desiredIntraNodeVisibilityConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.IntraNodeVisibilityConfig + getDesiredIntraNodeVisibilityConfig() { + return desiredIntraNodeVisibilityConfig_ == null + ? com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance() + : desiredIntraNodeVisibilityConfig_; + } + /** + * + * + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + @java.lang.Override + public com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder + getDesiredIntraNodeVisibilityConfigOrBuilder() { + return getDesiredIntraNodeVisibilityConfig(); + } + + public static final int DESIRED_DEFAULT_SNAT_STATUS_FIELD_NUMBER = 28; + private com.google.container.v1beta1.DefaultSnatStatus desiredDefaultSnatStatus_; + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return Whether the desiredDefaultSnatStatus field is set. + */ + @java.lang.Override + public boolean hasDesiredDefaultSnatStatus() { + return desiredDefaultSnatStatus_ != null; + } + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return The desiredDefaultSnatStatus. + */ + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatus getDesiredDefaultSnatStatus() { + return desiredDefaultSnatStatus_ == null + ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() + : desiredDefaultSnatStatus_; + } + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatusOrBuilder + getDesiredDefaultSnatStatusOrBuilder() { + return getDesiredDefaultSnatStatus(); + } + + public static final int DESIRED_CLUSTER_TELEMETRY_FIELD_NUMBER = 30; + private com.google.container.v1beta1.ClusterTelemetry desiredClusterTelemetry_; + /** + * + * + *
+   * The desired telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + * + * @return Whether the desiredClusterTelemetry field is set. + */ + @java.lang.Override + public boolean hasDesiredClusterTelemetry() { + return desiredClusterTelemetry_ != null; + } + /** + * + * + *
+   * The desired telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + * + * @return The desiredClusterTelemetry. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetry getDesiredClusterTelemetry() { + return desiredClusterTelemetry_ == null + ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() + : desiredClusterTelemetry_; + } + /** + * + * + *
+   * The desired telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterTelemetryOrBuilder + getDesiredClusterTelemetryOrBuilder() { + return getDesiredClusterTelemetry(); + } + + public static final int DESIRED_RELEASE_CHANNEL_FIELD_NUMBER = 31; + private com.google.container.v1beta1.ReleaseChannel desiredReleaseChannel_; + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + * + * @return Whether the desiredReleaseChannel field is set. + */ + @java.lang.Override + public boolean hasDesiredReleaseChannel() { + return desiredReleaseChannel_ != null; + } + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + * + * @return The desiredReleaseChannel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel getDesiredReleaseChannel() { + return desiredReleaseChannel_ == null + ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() + : desiredReleaseChannel_; + } + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { + return getDesiredReleaseChannel(); + } + + public static final int DESIRED_TPU_CONFIG_FIELD_NUMBER = 38; + private com.google.container.v1beta1.TpuConfig desiredTpuConfig_; + /** + * + * + *
+   * The desired Cloud TPU configuration.
+   * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + * + * @return Whether the desiredTpuConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredTpuConfig() { + return desiredTpuConfig_ != null; + } + /** + * + * + *
+   * The desired Cloud TPU configuration.
+   * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + * + * @return The desiredTpuConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.TpuConfig getDesiredTpuConfig() { + return desiredTpuConfig_ == null + ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() + : desiredTpuConfig_; + } + /** + * + * + *
+   * The desired Cloud TPU configuration.
+   * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + @java.lang.Override + public com.google.container.v1beta1.TpuConfigOrBuilder getDesiredTpuConfigOrBuilder() { + return getDesiredTpuConfig(); + } + + public static final int DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER = 50; + private int desiredDatapathProvider_; + /** + * + * + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.DatapathProvider desired_datapath_provider = 50; + * + * @return The desiredDatapathProvider. + */ + @java.lang.Override + public com.google.container.v1beta1.DatapathProvider getDesiredDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DatapathProvider result = + com.google.container.v1beta1.DatapathProvider.valueOf(desiredDatapathProvider_); + return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; + } + + public static final int DESIRED_NOTIFICATION_CONFIG_FIELD_NUMBER = 55; + private com.google.container.v1beta1.NotificationConfig desiredNotificationConfig_; + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.NotificationConfig desired_notification_config = 55; + * + * @return The desiredNotificationConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig getDesiredNotificationConfig() { + return desiredNotificationConfig_ == null + ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() + : desiredNotificationConfig_; + } + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfigOrBuilder + getDesiredNotificationConfigOrBuilder() { + return getDesiredNotificationConfig(); + } + + public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; + private volatile java.lang.Object desiredMasterVersion_; + /** + * + * + *
+   * The Kubernetes version to change the master to. The only valid value is the
+   * latest supported version.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + * + * @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; + } + } + /** + * + * + *
+   * The Kubernetes version to change the master to. The only valid value is the
+   * latest supported version.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + * + * @return The bytes for desiredMasterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiredMasterVersionBytes() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_DATABASE_ENCRYPTION_FIELD_NUMBER = 46; + private com.google.container.v1beta1.DatabaseEncryption desiredDatabaseEncryption_; + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + * + * @return Whether the desiredDatabaseEncryption field is set. + */ + @java.lang.Override + public boolean hasDesiredDatabaseEncryption() { + return desiredDatabaseEncryption_ != null; + } + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + * + * @return The desiredDatabaseEncryption. + */ + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption getDesiredDatabaseEncryption() { + return desiredDatabaseEncryption_ == null + ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() + : desiredDatabaseEncryption_; + } + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryptionOrBuilder + getDesiredDatabaseEncryptionOrBuilder() { + return getDesiredDatabaseEncryption(); + } + + public static final int DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 47; + private com.google.container.v1beta1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return Whether the desiredWorkloadIdentityConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredWorkloadIdentityConfig() { + return desiredWorkloadIdentityConfig_ != null; + } + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return The desiredWorkloadIdentityConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { + return desiredWorkloadIdentityConfig_ == null + ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() + : desiredWorkloadIdentityConfig_; + } + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder + getDesiredWorkloadIdentityConfigOrBuilder() { + return getDesiredWorkloadIdentityConfig(); + } + + public static final int DESIRED_SHIELDED_NODES_FIELD_NUMBER = 48; + private com.google.container.v1beta1.ShieldedNodes desiredShieldedNodes_; + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return Whether the desiredShieldedNodes field is set. + */ + @java.lang.Override + public boolean hasDesiredShieldedNodes() { + return desiredShieldedNodes_ != null; + } + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return The desiredShieldedNodes. + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodes getDesiredShieldedNodes() { + return desiredShieldedNodes_ == null + ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() + : desiredShieldedNodes_; + } + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { + return getDesiredShieldedNodes(); + } + + public static final int DESIRED_MASTER_FIELD_NUMBER = 52; + private com.google.container.v1beta1.Master desiredMaster_; + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + * + * @return Whether the desiredMaster field is set. + */ + @java.lang.Override + public boolean hasDesiredMaster() { + return desiredMaster_ != null; + } + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + * + * @return The desiredMaster. + */ + @java.lang.Override + public com.google.container.v1beta1.Master getDesiredMaster() { + return desiredMaster_ == null + ? com.google.container.v1beta1.Master.getDefaultInstance() + : desiredMaster_; + } + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + @java.lang.Override + public com.google.container.v1beta1.MasterOrBuilder getDesiredMasterOrBuilder() { + return getDesiredMaster(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDesiredNodeVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desiredNodeVersion_); + } + if (!getDesiredMonitoringServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, desiredMonitoringService_); + } + if (desiredAddonsConfig_ != null) { + output.writeMessage(6, getDesiredAddonsConfig()); + } + if (!getDesiredNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, desiredNodePoolId_); + } + if (!getDesiredImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, desiredImageType_); + } + if (desiredNodePoolAutoscaling_ != null) { + output.writeMessage(9, getDesiredNodePoolAutoscaling()); + } + for (int i = 0; i < desiredLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (desiredPodSecurityPolicyConfig_ != null) { + output.writeMessage(14, getDesiredPodSecurityPolicyConfig()); + } + if (desiredClusterAutoscaling_ != null) { + output.writeMessage(15, getDesiredClusterAutoscaling()); + } + if (desiredBinaryAuthorization_ != null) { + output.writeMessage(16, getDesiredBinaryAuthorization()); + } + if (!getDesiredLoggingServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); + } + if (desiredResourceUsageExportConfig_ != null) { + output.writeMessage(21, getDesiredResourceUsageExportConfig()); + } + if (desiredVerticalPodAutoscaling_ != null) { + output.writeMessage(22, getDesiredVerticalPodAutoscaling()); + } + if (desiredPrivateClusterConfig_ != null) { + output.writeMessage(25, getDesiredPrivateClusterConfig()); + } + if (desiredIntraNodeVisibilityConfig_ != null) { + output.writeMessage(26, getDesiredIntraNodeVisibilityConfig()); + } + if (desiredDefaultSnatStatus_ != null) { + output.writeMessage(28, getDesiredDefaultSnatStatus()); + } + if (desiredClusterTelemetry_ != null) { + output.writeMessage(30, getDesiredClusterTelemetry()); + } + if (desiredReleaseChannel_ != null) { + output.writeMessage(31, getDesiredReleaseChannel()); + } + if (desiredTpuConfig_ != null) { + output.writeMessage(38, getDesiredTpuConfig()); + } + if (desiredDatabaseEncryption_ != null) { + output.writeMessage(46, getDesiredDatabaseEncryption()); + } + if (desiredWorkloadIdentityConfig_ != null) { + output.writeMessage(47, getDesiredWorkloadIdentityConfig()); + } + if (desiredShieldedNodes_ != null) { + output.writeMessage(48, getDesiredShieldedNodes()); + } + if (desiredDatapathProvider_ + != com.google.container.v1beta1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED + .getNumber()) { + output.writeEnum(50, desiredDatapathProvider_); + } + if (desiredMaster_ != null) { + output.writeMessage(52, getDesiredMaster()); + } + if (desiredNotificationConfig_ != null) { + output.writeMessage(55, getDesiredNotificationConfig()); + } + if (!getDesiredMasterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDesiredNodeVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, desiredNodeVersion_); + } + if (!getDesiredMonitoringServiceBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(5, desiredMonitoringService_); + } + if (desiredAddonsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDesiredAddonsConfig()); + } + if (!getDesiredNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, desiredNodePoolId_); + } + if (!getDesiredImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, desiredImageType_); + } + if (desiredNodePoolAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, getDesiredNodePoolAutoscaling()); + } + { + int dataSize = 0; + for (int i = 0; i < desiredLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(desiredLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getDesiredLocationsList().size(); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (desiredPodSecurityPolicyConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, getDesiredPodSecurityPolicyConfig()); + } + if (desiredClusterAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, getDesiredClusterAutoscaling()); + } + if (desiredBinaryAuthorization_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, getDesiredBinaryAuthorization()); + } + if (!getDesiredLoggingServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); + } + if (desiredResourceUsageExportConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, getDesiredResourceUsageExportConfig()); + } + if (desiredVerticalPodAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getDesiredVerticalPodAutoscaling()); + } + if (desiredPrivateClusterConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, getDesiredPrivateClusterConfig()); + } + if (desiredIntraNodeVisibilityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, getDesiredIntraNodeVisibilityConfig()); + } + if (desiredDefaultSnatStatus_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, getDesiredDefaultSnatStatus()); + } + if (desiredClusterTelemetry_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, getDesiredClusterTelemetry()); + } + if (desiredReleaseChannel_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(31, getDesiredReleaseChannel()); + } + if (desiredTpuConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getDesiredTpuConfig()); + } + if (desiredDatabaseEncryption_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 46, getDesiredDatabaseEncryption()); + } + if (desiredWorkloadIdentityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 47, getDesiredWorkloadIdentityConfig()); + } + if (desiredShieldedNodes_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(48, getDesiredShieldedNodes()); + } + if (desiredDatapathProvider_ + != com.google.container.v1beta1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(50, desiredDatapathProvider_); + } + if (desiredMaster_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, getDesiredMaster()); + } + if (desiredNotificationConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 55, getDesiredNotificationConfig()); + } + if (!getDesiredMasterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ClusterUpdate)) { + return super.equals(obj); + } + com.google.container.v1beta1.ClusterUpdate other = + (com.google.container.v1beta1.ClusterUpdate) obj; + + if (!getDesiredNodeVersion().equals(other.getDesiredNodeVersion())) return false; + if (!getDesiredMonitoringService().equals(other.getDesiredMonitoringService())) return false; + if (hasDesiredAddonsConfig() != other.hasDesiredAddonsConfig()) return false; + if (hasDesiredAddonsConfig()) { + if (!getDesiredAddonsConfig().equals(other.getDesiredAddonsConfig())) return false; + } + if (!getDesiredNodePoolId().equals(other.getDesiredNodePoolId())) return false; + if (!getDesiredImageType().equals(other.getDesiredImageType())) return false; + if (hasDesiredNodePoolAutoscaling() != other.hasDesiredNodePoolAutoscaling()) return false; + if (hasDesiredNodePoolAutoscaling()) { + if (!getDesiredNodePoolAutoscaling().equals(other.getDesiredNodePoolAutoscaling())) + return false; + } + if (!getDesiredLocationsList().equals(other.getDesiredLocationsList())) return false; + if (hasDesiredMasterAuthorizedNetworksConfig() + != other.hasDesiredMasterAuthorizedNetworksConfig()) return false; + if (hasDesiredMasterAuthorizedNetworksConfig()) { + if (!getDesiredMasterAuthorizedNetworksConfig() + .equals(other.getDesiredMasterAuthorizedNetworksConfig())) return false; + } + if (hasDesiredPodSecurityPolicyConfig() != other.hasDesiredPodSecurityPolicyConfig()) + return false; + if (hasDesiredPodSecurityPolicyConfig()) { + if (!getDesiredPodSecurityPolicyConfig().equals(other.getDesiredPodSecurityPolicyConfig())) + return false; + } + if (hasDesiredClusterAutoscaling() != other.hasDesiredClusterAutoscaling()) return false; + if (hasDesiredClusterAutoscaling()) { + if (!getDesiredClusterAutoscaling().equals(other.getDesiredClusterAutoscaling())) + return false; + } + if (hasDesiredBinaryAuthorization() != other.hasDesiredBinaryAuthorization()) return false; + if (hasDesiredBinaryAuthorization()) { + if (!getDesiredBinaryAuthorization().equals(other.getDesiredBinaryAuthorization())) + return false; + } + if (!getDesiredLoggingService().equals(other.getDesiredLoggingService())) return false; + if (hasDesiredResourceUsageExportConfig() != other.hasDesiredResourceUsageExportConfig()) + return false; + if (hasDesiredResourceUsageExportConfig()) { + if (!getDesiredResourceUsageExportConfig() + .equals(other.getDesiredResourceUsageExportConfig())) return false; + } + if (hasDesiredVerticalPodAutoscaling() != other.hasDesiredVerticalPodAutoscaling()) + return false; + if (hasDesiredVerticalPodAutoscaling()) { + if (!getDesiredVerticalPodAutoscaling().equals(other.getDesiredVerticalPodAutoscaling())) + return false; + } + if (hasDesiredPrivateClusterConfig() != other.hasDesiredPrivateClusterConfig()) return false; + if (hasDesiredPrivateClusterConfig()) { + if (!getDesiredPrivateClusterConfig().equals(other.getDesiredPrivateClusterConfig())) + return false; + } + if (hasDesiredIntraNodeVisibilityConfig() != other.hasDesiredIntraNodeVisibilityConfig()) + return false; + if (hasDesiredIntraNodeVisibilityConfig()) { + if (!getDesiredIntraNodeVisibilityConfig() + .equals(other.getDesiredIntraNodeVisibilityConfig())) return false; + } + if (hasDesiredDefaultSnatStatus() != other.hasDesiredDefaultSnatStatus()) return false; + if (hasDesiredDefaultSnatStatus()) { + if (!getDesiredDefaultSnatStatus().equals(other.getDesiredDefaultSnatStatus())) return false; + } + if (hasDesiredClusterTelemetry() != other.hasDesiredClusterTelemetry()) return false; + if (hasDesiredClusterTelemetry()) { + if (!getDesiredClusterTelemetry().equals(other.getDesiredClusterTelemetry())) return false; + } + if (hasDesiredReleaseChannel() != other.hasDesiredReleaseChannel()) return false; + if (hasDesiredReleaseChannel()) { + if (!getDesiredReleaseChannel().equals(other.getDesiredReleaseChannel())) return false; + } + if (hasDesiredTpuConfig() != other.hasDesiredTpuConfig()) return false; + if (hasDesiredTpuConfig()) { + if (!getDesiredTpuConfig().equals(other.getDesiredTpuConfig())) return false; + } + if (desiredDatapathProvider_ != other.desiredDatapathProvider_) return false; + if (hasDesiredNotificationConfig() != other.hasDesiredNotificationConfig()) return false; + if (hasDesiredNotificationConfig()) { + if (!getDesiredNotificationConfig().equals(other.getDesiredNotificationConfig())) + return false; + } + if (!getDesiredMasterVersion().equals(other.getDesiredMasterVersion())) return false; + if (hasDesiredDatabaseEncryption() != other.hasDesiredDatabaseEncryption()) return false; + if (hasDesiredDatabaseEncryption()) { + if (!getDesiredDatabaseEncryption().equals(other.getDesiredDatabaseEncryption())) + return false; + } + if (hasDesiredWorkloadIdentityConfig() != other.hasDesiredWorkloadIdentityConfig()) + return false; + if (hasDesiredWorkloadIdentityConfig()) { + if (!getDesiredWorkloadIdentityConfig().equals(other.getDesiredWorkloadIdentityConfig())) + return false; + } + if (hasDesiredShieldedNodes() != other.hasDesiredShieldedNodes()) return false; + if (hasDesiredShieldedNodes()) { + if (!getDesiredShieldedNodes().equals(other.getDesiredShieldedNodes())) return false; + } + if (hasDesiredMaster() != other.hasDesiredMaster()) return false; + if (hasDesiredMaster()) { + if (!getDesiredMaster().equals(other.getDesiredMaster())) 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) + DESIRED_NODE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodeVersion().hashCode(); + hash = (37 * hash) + DESIRED_MONITORING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMonitoringService().hashCode(); + if (hasDesiredAddonsConfig()) { + hash = (37 * hash) + DESIRED_ADDONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredAddonsConfig().hashCode(); + } + hash = (37 * hash) + DESIRED_NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolId().hashCode(); + hash = (37 * hash) + DESIRED_IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDesiredImageType().hashCode(); + if (hasDesiredNodePoolAutoscaling()) { + hash = (37 * hash) + DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolAutoscaling().hashCode(); + } + if (getDesiredLocationsCount() > 0) { + hash = (37 * hash) + DESIRED_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDesiredLocationsList().hashCode(); + } + if (hasDesiredMasterAuthorizedNetworksConfig()) { + hash = (37 * hash) + DESIRED_MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMasterAuthorizedNetworksConfig().hashCode(); + } + if (hasDesiredPodSecurityPolicyConfig()) { + hash = (37 * hash) + DESIRED_POD_SECURITY_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredPodSecurityPolicyConfig().hashCode(); + } + if (hasDesiredClusterAutoscaling()) { + hash = (37 * hash) + DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getDesiredClusterAutoscaling().hashCode(); + } + if (hasDesiredBinaryAuthorization()) { + hash = (37 * hash) + DESIRED_BINARY_AUTHORIZATION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredBinaryAuthorization().hashCode(); + } + hash = (37 * hash) + DESIRED_LOGGING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getDesiredLoggingService().hashCode(); + if (hasDesiredResourceUsageExportConfig()) { + hash = (37 * hash) + DESIRED_RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredResourceUsageExportConfig().hashCode(); + } + if (hasDesiredVerticalPodAutoscaling()) { + hash = (37 * hash) + DESIRED_VERTICAL_POD_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getDesiredVerticalPodAutoscaling().hashCode(); + } + if (hasDesiredPrivateClusterConfig()) { + hash = (37 * hash) + DESIRED_PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredPrivateClusterConfig().hashCode(); + } + if (hasDesiredIntraNodeVisibilityConfig()) { + hash = (37 * hash) + DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredIntraNodeVisibilityConfig().hashCode(); + } + if (hasDesiredDefaultSnatStatus()) { + hash = (37 * hash) + DESIRED_DEFAULT_SNAT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getDesiredDefaultSnatStatus().hashCode(); + } + if (hasDesiredClusterTelemetry()) { + hash = (37 * hash) + DESIRED_CLUSTER_TELEMETRY_FIELD_NUMBER; + hash = (53 * hash) + getDesiredClusterTelemetry().hashCode(); + } + if (hasDesiredReleaseChannel()) { + hash = (37 * hash) + DESIRED_RELEASE_CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getDesiredReleaseChannel().hashCode(); + } + if (hasDesiredTpuConfig()) { + hash = (37 * hash) + DESIRED_TPU_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredTpuConfig().hashCode(); + } + hash = (37 * hash) + DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + desiredDatapathProvider_; + if (hasDesiredNotificationConfig()) { + hash = (37 * hash) + DESIRED_NOTIFICATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNotificationConfig().hashCode(); + } + hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMasterVersion().hashCode(); + if (hasDesiredDatabaseEncryption()) { + hash = (37 * hash) + DESIRED_DATABASE_ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredDatabaseEncryption().hashCode(); + } + if (hasDesiredWorkloadIdentityConfig()) { + hash = (37 * hash) + DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredWorkloadIdentityConfig().hashCode(); + } + if (hasDesiredShieldedNodes()) { + hash = (37 * hash) + DESIRED_SHIELDED_NODES_FIELD_NUMBER; + hash = (53 * hash) + getDesiredShieldedNodes().hashCode(); + } + if (hasDesiredMaster()) { + hash = (37 * hash) + DESIRED_MASTER_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMaster().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ClusterUpdate parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ClusterUpdate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ClusterUpdate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ClusterUpdate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ClusterUpdate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ClusterUpdate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ClusterUpdate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ClusterUpdate describes an update to the cluster. Exactly one update can
+   * be applied to a cluster with each request, so at most one field can be
+   * provided.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ClusterUpdate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ClusterUpdate) + com.google.container.v1beta1.ClusterUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterUpdate.class, + com.google.container.v1beta1.ClusterUpdate.Builder.class); + } + + // Construct using com.google.container.v1beta1.ClusterUpdate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + desiredNodeVersion_ = ""; + + desiredMonitoringService_ = ""; + + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = null; + } else { + desiredAddonsConfig_ = null; + desiredAddonsConfigBuilder_ = null; + } + desiredNodePoolId_ = ""; + + desiredImageType_ = ""; + + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = null; + } else { + desiredNodePoolAutoscaling_ = null; + desiredNodePoolAutoscalingBuilder_ = null; + } + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = null; + } else { + desiredMasterAuthorizedNetworksConfig_ = null; + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfig_ = null; + } else { + desiredPodSecurityPolicyConfig_ = null; + desiredPodSecurityPolicyConfigBuilder_ = null; + } + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = null; + } else { + desiredClusterAutoscaling_ = null; + desiredClusterAutoscalingBuilder_ = null; + } + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = null; + } else { + desiredBinaryAuthorization_ = null; + desiredBinaryAuthorizationBuilder_ = null; + } + desiredLoggingService_ = ""; + + if (desiredResourceUsageExportConfigBuilder_ == null) { + desiredResourceUsageExportConfig_ = null; + } else { + desiredResourceUsageExportConfig_ = null; + desiredResourceUsageExportConfigBuilder_ = null; + } + if (desiredVerticalPodAutoscalingBuilder_ == null) { + desiredVerticalPodAutoscaling_ = null; + } else { + desiredVerticalPodAutoscaling_ = null; + desiredVerticalPodAutoscalingBuilder_ = null; + } + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = null; + } else { + desiredPrivateClusterConfig_ = null; + desiredPrivateClusterConfigBuilder_ = null; + } + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfig_ = null; + } else { + desiredIntraNodeVisibilityConfig_ = null; + desiredIntraNodeVisibilityConfigBuilder_ = null; + } + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = null; + } else { + desiredDefaultSnatStatus_ = null; + desiredDefaultSnatStatusBuilder_ = null; + } + if (desiredClusterTelemetryBuilder_ == null) { + desiredClusterTelemetry_ = null; + } else { + desiredClusterTelemetry_ = null; + desiredClusterTelemetryBuilder_ = null; + } + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = null; + } else { + desiredReleaseChannel_ = null; + desiredReleaseChannelBuilder_ = null; + } + if (desiredTpuConfigBuilder_ == null) { + desiredTpuConfig_ = null; + } else { + desiredTpuConfig_ = null; + desiredTpuConfigBuilder_ = null; + } + desiredDatapathProvider_ = 0; + + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfig_ = null; + } else { + desiredNotificationConfig_ = null; + desiredNotificationConfigBuilder_ = null; + } + desiredMasterVersion_ = ""; + + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryption_ = null; + } else { + desiredDatabaseEncryption_ = null; + desiredDatabaseEncryptionBuilder_ = null; + } + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = null; + } else { + desiredWorkloadIdentityConfig_ = null; + desiredWorkloadIdentityConfigBuilder_ = null; + } + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = null; + } else { + desiredShieldedNodes_ = null; + desiredShieldedNodesBuilder_ = null; + } + if (desiredMasterBuilder_ == null) { + desiredMaster_ = null; + } else { + desiredMaster_ = null; + desiredMasterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ClusterUpdate_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate getDefaultInstanceForType() { + return com.google.container.v1beta1.ClusterUpdate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate build() { + com.google.container.v1beta1.ClusterUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate buildPartial() { + com.google.container.v1beta1.ClusterUpdate result = + new com.google.container.v1beta1.ClusterUpdate(this); + int from_bitField0_ = bitField0_; + result.desiredNodeVersion_ = desiredNodeVersion_; + result.desiredMonitoringService_ = desiredMonitoringService_; + if (desiredAddonsConfigBuilder_ == null) { + result.desiredAddonsConfig_ = desiredAddonsConfig_; + } else { + result.desiredAddonsConfig_ = desiredAddonsConfigBuilder_.build(); + } + result.desiredNodePoolId_ = desiredNodePoolId_; + result.desiredImageType_ = desiredImageType_; + if (desiredNodePoolAutoscalingBuilder_ == null) { + result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscaling_; + } else { + result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscalingBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + desiredLocations_ = desiredLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.desiredLocations_ = desiredLocations_; + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfig_; + } else { + result.desiredMasterAuthorizedNetworksConfig_ = + desiredMasterAuthorizedNetworksConfigBuilder_.build(); + } + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + result.desiredPodSecurityPolicyConfig_ = desiredPodSecurityPolicyConfig_; + } else { + result.desiredPodSecurityPolicyConfig_ = desiredPodSecurityPolicyConfigBuilder_.build(); + } + if (desiredClusterAutoscalingBuilder_ == null) { + result.desiredClusterAutoscaling_ = desiredClusterAutoscaling_; + } else { + result.desiredClusterAutoscaling_ = desiredClusterAutoscalingBuilder_.build(); + } + if (desiredBinaryAuthorizationBuilder_ == null) { + result.desiredBinaryAuthorization_ = desiredBinaryAuthorization_; + } else { + result.desiredBinaryAuthorization_ = desiredBinaryAuthorizationBuilder_.build(); + } + result.desiredLoggingService_ = desiredLoggingService_; + if (desiredResourceUsageExportConfigBuilder_ == null) { + result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfig_; + } else { + result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfigBuilder_.build(); + } + if (desiredVerticalPodAutoscalingBuilder_ == null) { + result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscaling_; + } else { + result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscalingBuilder_.build(); + } + if (desiredPrivateClusterConfigBuilder_ == null) { + result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfig_; + } else { + result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfigBuilder_.build(); + } + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfig_; + } else { + result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfigBuilder_.build(); + } + if (desiredDefaultSnatStatusBuilder_ == null) { + result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatus_; + } else { + result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatusBuilder_.build(); + } + if (desiredClusterTelemetryBuilder_ == null) { + result.desiredClusterTelemetry_ = desiredClusterTelemetry_; + } else { + result.desiredClusterTelemetry_ = desiredClusterTelemetryBuilder_.build(); + } + if (desiredReleaseChannelBuilder_ == null) { + result.desiredReleaseChannel_ = desiredReleaseChannel_; + } else { + result.desiredReleaseChannel_ = desiredReleaseChannelBuilder_.build(); + } + if (desiredTpuConfigBuilder_ == null) { + result.desiredTpuConfig_ = desiredTpuConfig_; + } else { + result.desiredTpuConfig_ = desiredTpuConfigBuilder_.build(); + } + result.desiredDatapathProvider_ = desiredDatapathProvider_; + if (desiredNotificationConfigBuilder_ == null) { + result.desiredNotificationConfig_ = desiredNotificationConfig_; + } else { + result.desiredNotificationConfig_ = desiredNotificationConfigBuilder_.build(); + } + result.desiredMasterVersion_ = desiredMasterVersion_; + if (desiredDatabaseEncryptionBuilder_ == null) { + result.desiredDatabaseEncryption_ = desiredDatabaseEncryption_; + } else { + result.desiredDatabaseEncryption_ = desiredDatabaseEncryptionBuilder_.build(); + } + if (desiredWorkloadIdentityConfigBuilder_ == null) { + result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfig_; + } else { + result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfigBuilder_.build(); + } + if (desiredShieldedNodesBuilder_ == null) { + result.desiredShieldedNodes_ = desiredShieldedNodes_; + } else { + result.desiredShieldedNodes_ = desiredShieldedNodesBuilder_.build(); + } + if (desiredMasterBuilder_ == null) { + result.desiredMaster_ = desiredMaster_; + } else { + result.desiredMaster_ = desiredMasterBuilder_.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.ClusterUpdate) { + return mergeFrom((com.google.container.v1beta1.ClusterUpdate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ClusterUpdate other) { + if (other == com.google.container.v1beta1.ClusterUpdate.getDefaultInstance()) return this; + if (!other.getDesiredNodeVersion().isEmpty()) { + desiredNodeVersion_ = other.desiredNodeVersion_; + onChanged(); + } + if (!other.getDesiredMonitoringService().isEmpty()) { + desiredMonitoringService_ = other.desiredMonitoringService_; + onChanged(); + } + if (other.hasDesiredAddonsConfig()) { + mergeDesiredAddonsConfig(other.getDesiredAddonsConfig()); + } + if (!other.getDesiredNodePoolId().isEmpty()) { + desiredNodePoolId_ = other.desiredNodePoolId_; + onChanged(); + } + if (!other.getDesiredImageType().isEmpty()) { + desiredImageType_ = other.desiredImageType_; + onChanged(); + } + if (other.hasDesiredNodePoolAutoscaling()) { + mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); + } + if (!other.desiredLocations_.isEmpty()) { + if (desiredLocations_.isEmpty()) { + desiredLocations_ = other.desiredLocations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDesiredLocationsIsMutable(); + desiredLocations_.addAll(other.desiredLocations_); + } + onChanged(); + } + if (other.hasDesiredMasterAuthorizedNetworksConfig()) { + mergeDesiredMasterAuthorizedNetworksConfig( + other.getDesiredMasterAuthorizedNetworksConfig()); + } + if (other.hasDesiredPodSecurityPolicyConfig()) { + mergeDesiredPodSecurityPolicyConfig(other.getDesiredPodSecurityPolicyConfig()); + } + if (other.hasDesiredClusterAutoscaling()) { + mergeDesiredClusterAutoscaling(other.getDesiredClusterAutoscaling()); + } + if (other.hasDesiredBinaryAuthorization()) { + mergeDesiredBinaryAuthorization(other.getDesiredBinaryAuthorization()); + } + if (!other.getDesiredLoggingService().isEmpty()) { + desiredLoggingService_ = other.desiredLoggingService_; + onChanged(); + } + if (other.hasDesiredResourceUsageExportConfig()) { + mergeDesiredResourceUsageExportConfig(other.getDesiredResourceUsageExportConfig()); + } + if (other.hasDesiredVerticalPodAutoscaling()) { + mergeDesiredVerticalPodAutoscaling(other.getDesiredVerticalPodAutoscaling()); + } + if (other.hasDesiredPrivateClusterConfig()) { + mergeDesiredPrivateClusterConfig(other.getDesiredPrivateClusterConfig()); + } + if (other.hasDesiredIntraNodeVisibilityConfig()) { + mergeDesiredIntraNodeVisibilityConfig(other.getDesiredIntraNodeVisibilityConfig()); + } + if (other.hasDesiredDefaultSnatStatus()) { + mergeDesiredDefaultSnatStatus(other.getDesiredDefaultSnatStatus()); + } + if (other.hasDesiredClusterTelemetry()) { + mergeDesiredClusterTelemetry(other.getDesiredClusterTelemetry()); + } + if (other.hasDesiredReleaseChannel()) { + mergeDesiredReleaseChannel(other.getDesiredReleaseChannel()); + } + if (other.hasDesiredTpuConfig()) { + mergeDesiredTpuConfig(other.getDesiredTpuConfig()); + } + if (other.desiredDatapathProvider_ != 0) { + setDesiredDatapathProviderValue(other.getDesiredDatapathProviderValue()); + } + if (other.hasDesiredNotificationConfig()) { + mergeDesiredNotificationConfig(other.getDesiredNotificationConfig()); + } + if (!other.getDesiredMasterVersion().isEmpty()) { + desiredMasterVersion_ = other.desiredMasterVersion_; + onChanged(); + } + if (other.hasDesiredDatabaseEncryption()) { + mergeDesiredDatabaseEncryption(other.getDesiredDatabaseEncryption()); + } + if (other.hasDesiredWorkloadIdentityConfig()) { + mergeDesiredWorkloadIdentityConfig(other.getDesiredWorkloadIdentityConfig()); + } + if (other.hasDesiredShieldedNodes()) { + mergeDesiredShieldedNodes(other.getDesiredShieldedNodes()); + } + if (other.hasDesiredMaster()) { + mergeDesiredMaster(other.getDesiredMaster()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ClusterUpdate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ClusterUpdate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object desiredNodeVersion_ = ""; + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @return The desiredNodeVersion. + */ + public java.lang.String getDesiredNodeVersion() { + java.lang.Object ref = desiredNodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @return The bytes for desiredNodeVersion. + */ + public com.google.protobuf.ByteString getDesiredNodeVersionBytes() { + java.lang.Object ref = desiredNodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredNodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @param value The desiredNodeVersion to set. + * @return This builder for chaining. + */ + public Builder setDesiredNodeVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredNodeVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @return This builder for chaining. + */ + public Builder clearDesiredNodeVersion() { + + desiredNodeVersion_ = getDefaultInstance().getDesiredNodeVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string desired_node_version = 4; + * + * @param value The bytes for desiredNodeVersion to set. + * @return This builder for chaining. + */ + public Builder setDesiredNodeVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredNodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object desiredMonitoringService_ = ""; + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @return The desiredMonitoringService. + */ + public java.lang.String getDesiredMonitoringService() { + java.lang.Object ref = desiredMonitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMonitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @return The bytes for desiredMonitoringService. + */ + public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { + java.lang.Object ref = desiredMonitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredMonitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @param value The desiredMonitoringService to set. + * @return This builder for chaining. + */ + public Builder setDesiredMonitoringService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredMonitoringService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @return This builder for chaining. + */ + public Builder clearDesiredMonitoringService() { + + desiredMonitoringService_ = getDefaultInstance().getDesiredMonitoringService(); + onChanged(); + return this; + } + /** + * + * + *
+     * The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_monitoring_service = 5; + * + * @param value The bytes for desiredMonitoringService to set. + * @return This builder for chaining. + */ + public Builder setDesiredMonitoringServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredMonitoringService_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AddonsConfig desiredAddonsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder> + desiredAddonsConfigBuilder_; + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + * + * @return Whether the desiredAddonsConfig field is set. + */ + public boolean hasDesiredAddonsConfig() { + return desiredAddonsConfigBuilder_ != null || desiredAddonsConfig_ != null; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + * + * @return The desiredAddonsConfig. + */ + public com.google.container.v1beta1.AddonsConfig getDesiredAddonsConfig() { + if (desiredAddonsConfigBuilder_ == null) { + return desiredAddonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : desiredAddonsConfig_; + } else { + return desiredAddonsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder setDesiredAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (desiredAddonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredAddonsConfig_ = value; + onChanged(); + } else { + desiredAddonsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder setDesiredAddonsConfig( + com.google.container.v1beta1.AddonsConfig.Builder builderForValue) { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredAddonsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder mergeDesiredAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (desiredAddonsConfigBuilder_ == null) { + if (desiredAddonsConfig_ != null) { + desiredAddonsConfig_ = + com.google.container.v1beta1.AddonsConfig.newBuilder(desiredAddonsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredAddonsConfig_ = value; + } + onChanged(); + } else { + desiredAddonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder clearDesiredAddonsConfig() { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = null; + onChanged(); + } else { + desiredAddonsConfig_ = null; + desiredAddonsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1beta1.AddonsConfig.Builder getDesiredAddonsConfigBuilder() { + + onChanged(); + return getDesiredAddonsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1beta1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { + if (desiredAddonsConfigBuilder_ != null) { + return desiredAddonsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredAddonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : desiredAddonsConfig_; + } + } + /** + * + * + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder> + getDesiredAddonsConfigFieldBuilder() { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder>( + getDesiredAddonsConfig(), getParentForChildren(), isClean()); + desiredAddonsConfig_ = null; + } + return desiredAddonsConfigBuilder_; + } + + private java.lang.Object desiredNodePoolId_ = ""; + /** + * + * + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family",
+     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+     * is specified and there is more than one node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * + * @return The desiredNodePoolId. + */ + public java.lang.String getDesiredNodePoolId() { + java.lang.Object ref = desiredNodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredNodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family",
+     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+     * is specified and there is more than one node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * + * @return The bytes for desiredNodePoolId. + */ + public com.google.protobuf.ByteString getDesiredNodePoolIdBytes() { + java.lang.Object ref = desiredNodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredNodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family",
+     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+     * is specified and there is more than one node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * + * @param value The desiredNodePoolId to set. + * @return This builder for chaining. + */ + public Builder setDesiredNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredNodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family",
+     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+     * is specified and there is more than one node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * + * @return This builder for chaining. + */ + public Builder clearDesiredNodePoolId() { + + desiredNodePoolId_ = getDefaultInstance().getDesiredNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family",
+     * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+     * is specified and there is more than one node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * + * @param value The bytes for desiredNodePoolId to set. + * @return This builder for chaining. + */ + public Builder setDesiredNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredNodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object desiredImageType_ = ""; + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @return The desiredImageType. + */ + public java.lang.String getDesiredImageType() { + java.lang.Object ref = desiredImageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredImageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @return The bytes for desiredImageType. + */ + public com.google.protobuf.ByteString getDesiredImageTypeBytes() { + java.lang.Object ref = desiredImageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @param value The desiredImageType to set. + * @return This builder for chaining. + */ + public Builder setDesiredImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredImageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @return This builder for chaining. + */ + public Builder clearDesiredImageType() { + + desiredImageType_ = getDefaultInstance().getDesiredImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired image type for the node pool.
+     * NOTE: Set the "desired_node_pool" field as well.
+     * 
+ * + * string desired_image_type = 8; + * + * @param value The bytes for desiredImageType to set. + * @return This builder for chaining. + */ + public Builder setDesiredImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredImageType_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePoolAutoscaling desiredNodePoolAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + desiredNodePoolAutoscalingBuilder_; + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return Whether the desiredNodePoolAutoscaling field is set. + */ + public boolean hasDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscalingBuilder_ != null || desiredNodePoolAutoscaling_ != null; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return The desiredNodePoolAutoscaling. + */ + public com.google.container.v1beta1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + return desiredNodePoolAutoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : desiredNodePoolAutoscaling_; + } else { + return desiredNodePoolAutoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder setDesiredNodePoolAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling value) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodePoolAutoscaling_ = value; + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder setDesiredNodePoolAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling.Builder builderForValue) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder mergeDesiredNodePoolAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling value) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + if (desiredNodePoolAutoscaling_ != null) { + desiredNodePoolAutoscaling_ = + com.google.container.v1beta1.NodePoolAutoscaling.newBuilder( + desiredNodePoolAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredNodePoolAutoscaling_ = value; + } + onChanged(); + } else { + desiredNodePoolAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder clearDesiredNodePoolAutoscaling() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = null; + onChanged(); + } else { + desiredNodePoolAutoscaling_ = null; + desiredNodePoolAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1beta1.NodePoolAutoscaling.Builder + getDesiredNodePoolAutoscalingBuilder() { + + onChanged(); + return getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder + getDesiredNodePoolAutoscalingOrBuilder() { + if (desiredNodePoolAutoscalingBuilder_ != null) { + return desiredNodePoolAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredNodePoolAutoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : desiredNodePoolAutoscaling_; + } + } + /** + * + * + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + getDesiredNodePoolAutoscalingFieldBuilder() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder>( + getDesiredNodePoolAutoscaling(), getParentForChildren(), isClean()); + desiredNodePoolAutoscaling_ = null; + } + return desiredNodePoolAutoscalingBuilder_; + } + + private com.google.protobuf.LazyStringList desiredLocations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureDesiredLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @return A list containing the desiredLocations. + */ + public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { + return desiredLocations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @return The count of desiredLocations. + */ + public int getDesiredLocationsCount() { + return desiredLocations_.size(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the element to return. + * @return The desiredLocations at the given index. + */ + public java.lang.String getDesiredLocations(int index) { + return desiredLocations_.get(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the value to return. + * @return The bytes of the desiredLocations at the given index. + */ + public com.google.protobuf.ByteString getDesiredLocationsBytes(int index) { + return desiredLocations_.getByteString(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index to set the value at. + * @param value The desiredLocations to set. + * @return This builder for chaining. + */ + public Builder setDesiredLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDesiredLocationsIsMutable(); + desiredLocations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param value The desiredLocations to add. + * @return This builder for chaining. + */ + public Builder addDesiredLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDesiredLocationsIsMutable(); + desiredLocations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param values The desiredLocations to add. + * @return This builder for chaining. + */ + public Builder addAllDesiredLocations(java.lang.Iterable values) { + ensureDesiredLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, desiredLocations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @return This builder for chaining. + */ + public Builder clearDesiredLocations() { + desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located.
+     * This list must always include the cluster's primary zone.
+     * Warning: changing cluster locations will update the locations of all node
+     * pools and will result in nodes being added and/or removed.
+     * 
+ * + * repeated string desired_locations = 10; + * + * @param value The bytes of the desiredLocations to add. + * @return This builder for chaining. + */ + public Builder addDesiredLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDesiredLocationsIsMutable(); + desiredLocations_.add(value); + onChanged(); + return this; + } + + private com.google.container.v1beta1.MasterAuthorizedNetworksConfig + desiredMasterAuthorizedNetworksConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> + desiredMasterAuthorizedNetworksConfigBuilder_; + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + * + * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. + */ + public boolean hasDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfigBuilder_ != null + || desiredMasterAuthorizedNetworksConfig_ != null; + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + * + * @return The desiredMasterAuthorizedNetworksConfig. + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig + getDesiredMasterAuthorizedNetworksConfig() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + return desiredMasterAuthorizedNetworksConfig_ == null + ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : desiredMasterAuthorizedNetworksConfig_; + } else { + return desiredMasterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public Builder setDesiredMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMasterAuthorizedNetworksConfig_ = value; + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public Builder setDesiredMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder builderForValue) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public Builder mergeDesiredMasterAuthorizedNetworksConfig( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig value) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + if (desiredMasterAuthorizedNetworksConfig_ != null) { + desiredMasterAuthorizedNetworksConfig_ = + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.newBuilder( + desiredMasterAuthorizedNetworksConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredMasterAuthorizedNetworksConfig_ = value; + } + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public Builder clearDesiredMasterAuthorizedNetworksConfig() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = null; + onChanged(); + } else { + desiredMasterAuthorizedNetworksConfig_ = null; + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder + getDesiredMasterAuthorizedNetworksConfigBuilder() { + + onChanged(); + return getDesiredMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder + getDesiredMasterAuthorizedNetworksConfigOrBuilder() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { + return desiredMasterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredMasterAuthorizedNetworksConfig_ == null + ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() + : desiredMasterAuthorizedNetworksConfig_; + } + } + /** + * + * + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder> + getDesiredMasterAuthorizedNetworksConfigFieldBuilder() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder>( + getDesiredMasterAuthorizedNetworksConfig(), getParentForChildren(), isClean()); + desiredMasterAuthorizedNetworksConfig_ = null; + } + return desiredMasterAuthorizedNetworksConfigBuilder_; + } + + private com.google.container.v1beta1.PodSecurityPolicyConfig desiredPodSecurityPolicyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> + desiredPodSecurityPolicyConfigBuilder_; + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + * + * @return Whether the desiredPodSecurityPolicyConfig field is set. + */ + public boolean hasDesiredPodSecurityPolicyConfig() { + return desiredPodSecurityPolicyConfigBuilder_ != null + || desiredPodSecurityPolicyConfig_ != null; + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + * + * @return The desiredPodSecurityPolicyConfig. + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig + getDesiredPodSecurityPolicyConfig() { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + return desiredPodSecurityPolicyConfig_ == null + ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() + : desiredPodSecurityPolicyConfig_; + } else { + return desiredPodSecurityPolicyConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + public Builder setDesiredPodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig value) { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredPodSecurityPolicyConfig_ = value; + onChanged(); + } else { + desiredPodSecurityPolicyConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + public Builder setDesiredPodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder builderForValue) { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredPodSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + public Builder mergeDesiredPodSecurityPolicyConfig( + com.google.container.v1beta1.PodSecurityPolicyConfig value) { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + if (desiredPodSecurityPolicyConfig_ != null) { + desiredPodSecurityPolicyConfig_ = + com.google.container.v1beta1.PodSecurityPolicyConfig.newBuilder( + desiredPodSecurityPolicyConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredPodSecurityPolicyConfig_ = value; + } + onChanged(); + } else { + desiredPodSecurityPolicyConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + public Builder clearDesiredPodSecurityPolicyConfig() { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfig_ = null; + onChanged(); + } else { + desiredPodSecurityPolicyConfig_ = null; + desiredPodSecurityPolicyConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig.Builder + getDesiredPodSecurityPolicyConfigBuilder() { + + onChanged(); + return getDesiredPodSecurityPolicyConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + public com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder + getDesiredPodSecurityPolicyConfigOrBuilder() { + if (desiredPodSecurityPolicyConfigBuilder_ != null) { + return desiredPodSecurityPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredPodSecurityPolicyConfig_ == null + ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() + : desiredPodSecurityPolicyConfig_; + } + } + /** + * + * + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder> + getDesiredPodSecurityPolicyConfigFieldBuilder() { + if (desiredPodSecurityPolicyConfigBuilder_ == null) { + desiredPodSecurityPolicyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodSecurityPolicyConfig, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder, + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder>( + getDesiredPodSecurityPolicyConfig(), getParentForChildren(), isClean()); + desiredPodSecurityPolicyConfig_ = null; + } + return desiredPodSecurityPolicyConfigBuilder_; + } + + private com.google.container.v1beta1.ClusterAutoscaling desiredClusterAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, + com.google.container.v1beta1.ClusterAutoscaling.Builder, + com.google.container.v1beta1.ClusterAutoscalingOrBuilder> + desiredClusterAutoscalingBuilder_; + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return Whether the desiredClusterAutoscaling field is set. + */ + public boolean hasDesiredClusterAutoscaling() { + return desiredClusterAutoscalingBuilder_ != null || desiredClusterAutoscaling_ != null; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return The desiredClusterAutoscaling. + */ + public com.google.container.v1beta1.ClusterAutoscaling getDesiredClusterAutoscaling() { + if (desiredClusterAutoscalingBuilder_ == null) { + return desiredClusterAutoscaling_ == null + ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() + : desiredClusterAutoscaling_; + } else { + return desiredClusterAutoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder setDesiredClusterAutoscaling( + com.google.container.v1beta1.ClusterAutoscaling value) { + if (desiredClusterAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredClusterAutoscaling_ = value; + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder setDesiredClusterAutoscaling( + com.google.container.v1beta1.ClusterAutoscaling.Builder builderForValue) { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder mergeDesiredClusterAutoscaling( + com.google.container.v1beta1.ClusterAutoscaling value) { + if (desiredClusterAutoscalingBuilder_ == null) { + if (desiredClusterAutoscaling_ != null) { + desiredClusterAutoscaling_ = + com.google.container.v1beta1.ClusterAutoscaling.newBuilder(desiredClusterAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredClusterAutoscaling_ = value; + } + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder clearDesiredClusterAutoscaling() { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = null; + onChanged(); + } else { + desiredClusterAutoscaling_ = null; + desiredClusterAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1beta1.ClusterAutoscaling.Builder + getDesiredClusterAutoscalingBuilder() { + + onChanged(); + return getDesiredClusterAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1beta1.ClusterAutoscalingOrBuilder + getDesiredClusterAutoscalingOrBuilder() { + if (desiredClusterAutoscalingBuilder_ != null) { + return desiredClusterAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredClusterAutoscaling_ == null + ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() + : desiredClusterAutoscaling_; + } + } + /** + * + * + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, + com.google.container.v1beta1.ClusterAutoscaling.Builder, + com.google.container.v1beta1.ClusterAutoscalingOrBuilder> + getDesiredClusterAutoscalingFieldBuilder() { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterAutoscaling, + com.google.container.v1beta1.ClusterAutoscaling.Builder, + com.google.container.v1beta1.ClusterAutoscalingOrBuilder>( + getDesiredClusterAutoscaling(), getParentForChildren(), isClean()); + desiredClusterAutoscaling_ = null; + } + return desiredClusterAutoscalingBuilder_; + } + + private com.google.container.v1beta1.BinaryAuthorization desiredBinaryAuthorization_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, + com.google.container.v1beta1.BinaryAuthorization.Builder, + com.google.container.v1beta1.BinaryAuthorizationOrBuilder> + desiredBinaryAuthorizationBuilder_; + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + * + * @return Whether the desiredBinaryAuthorization field is set. + */ + public boolean hasDesiredBinaryAuthorization() { + return desiredBinaryAuthorizationBuilder_ != null || desiredBinaryAuthorization_ != null; + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + * + * @return The desiredBinaryAuthorization. + */ + public com.google.container.v1beta1.BinaryAuthorization getDesiredBinaryAuthorization() { + if (desiredBinaryAuthorizationBuilder_ == null) { + return desiredBinaryAuthorization_ == null + ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() + : desiredBinaryAuthorization_; + } else { + return desiredBinaryAuthorizationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder setDesiredBinaryAuthorization( + com.google.container.v1beta1.BinaryAuthorization value) { + if (desiredBinaryAuthorizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredBinaryAuthorization_ = value; + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder setDesiredBinaryAuthorization( + com.google.container.v1beta1.BinaryAuthorization.Builder builderForValue) { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = builderForValue.build(); + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder mergeDesiredBinaryAuthorization( + com.google.container.v1beta1.BinaryAuthorization value) { + if (desiredBinaryAuthorizationBuilder_ == null) { + if (desiredBinaryAuthorization_ != null) { + desiredBinaryAuthorization_ = + com.google.container.v1beta1.BinaryAuthorization.newBuilder( + desiredBinaryAuthorization_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredBinaryAuthorization_ = value; + } + onChanged(); + } else { + desiredBinaryAuthorizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder clearDesiredBinaryAuthorization() { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = null; + onChanged(); + } else { + desiredBinaryAuthorization_ = null; + desiredBinaryAuthorizationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1beta1.BinaryAuthorization.Builder + getDesiredBinaryAuthorizationBuilder() { + + onChanged(); + return getDesiredBinaryAuthorizationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1beta1.BinaryAuthorizationOrBuilder + getDesiredBinaryAuthorizationOrBuilder() { + if (desiredBinaryAuthorizationBuilder_ != null) { + return desiredBinaryAuthorizationBuilder_.getMessageOrBuilder(); + } else { + return desiredBinaryAuthorization_ == null + ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() + : desiredBinaryAuthorization_; + } + } + /** + * + * + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, + com.google.container.v1beta1.BinaryAuthorization.Builder, + com.google.container.v1beta1.BinaryAuthorizationOrBuilder> + getDesiredBinaryAuthorizationFieldBuilder() { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorizationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization, + com.google.container.v1beta1.BinaryAuthorization.Builder, + com.google.container.v1beta1.BinaryAuthorizationOrBuilder>( + getDesiredBinaryAuthorization(), getParentForChildren(), isClean()); + desiredBinaryAuthorization_ = null; + } + return desiredBinaryAuthorizationBuilder_; + } + + private java.lang.Object desiredLoggingService_ = ""; + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_logging_service = 19; + * + * @return The desiredLoggingService. + */ + public java.lang.String getDesiredLoggingService() { + java.lang.Object ref = desiredLoggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredLoggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_logging_service = 19; + * + * @return The bytes for desiredLoggingService. + */ + public com.google.protobuf.ByteString getDesiredLoggingServiceBytes() { + java.lang.Object ref = desiredLoggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredLoggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_logging_service = 19; + * + * @param value The desiredLoggingService to set. + * @return This builder for chaining. + */ + public Builder setDesiredLoggingService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredLoggingService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_logging_service = 19; + * + * @return This builder for chaining. + */ + public Builder clearDesiredLoggingService() { + + desiredLoggingService_ = getDefaultInstance().getDesiredLoggingService(); + onChanged(); + return this; + } + /** + * + * + *
+     * The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string desired_logging_service = 19; + * + * @param value The bytes for desiredLoggingService to set. + * @return This builder for chaining. + */ + public Builder setDesiredLoggingServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredLoggingService_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ResourceUsageExportConfig + desiredResourceUsageExportConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder, + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder> + desiredResourceUsageExportConfigBuilder_; + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + * + * @return Whether the desiredResourceUsageExportConfig field is set. + */ + public boolean hasDesiredResourceUsageExportConfig() { + return desiredResourceUsageExportConfigBuilder_ != null + || desiredResourceUsageExportConfig_ != null; + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + * + * @return The desiredResourceUsageExportConfig. + */ + public com.google.container.v1beta1.ResourceUsageExportConfig + getDesiredResourceUsageExportConfig() { + if (desiredResourceUsageExportConfigBuilder_ == null) { + return desiredResourceUsageExportConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() + : desiredResourceUsageExportConfig_; + } else { + return desiredResourceUsageExportConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public Builder setDesiredResourceUsageExportConfig( + com.google.container.v1beta1.ResourceUsageExportConfig value) { + if (desiredResourceUsageExportConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredResourceUsageExportConfig_ = value; + onChanged(); + } else { + desiredResourceUsageExportConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public Builder setDesiredResourceUsageExportConfig( + com.google.container.v1beta1.ResourceUsageExportConfig.Builder builderForValue) { + if (desiredResourceUsageExportConfigBuilder_ == null) { + desiredResourceUsageExportConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredResourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public Builder mergeDesiredResourceUsageExportConfig( + com.google.container.v1beta1.ResourceUsageExportConfig value) { + if (desiredResourceUsageExportConfigBuilder_ == null) { + if (desiredResourceUsageExportConfig_ != null) { + desiredResourceUsageExportConfig_ = + com.google.container.v1beta1.ResourceUsageExportConfig.newBuilder( + desiredResourceUsageExportConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredResourceUsageExportConfig_ = value; + } + onChanged(); + } else { + desiredResourceUsageExportConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public Builder clearDesiredResourceUsageExportConfig() { + if (desiredResourceUsageExportConfigBuilder_ == null) { + desiredResourceUsageExportConfig_ = null; + onChanged(); + } else { + desiredResourceUsageExportConfig_ = null; + desiredResourceUsageExportConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.Builder + getDesiredResourceUsageExportConfigBuilder() { + + onChanged(); + return getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder + getDesiredResourceUsageExportConfigOrBuilder() { + if (desiredResourceUsageExportConfigBuilder_ != null) { + return desiredResourceUsageExportConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredResourceUsageExportConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() + : desiredResourceUsageExportConfig_; + } + } + /** + * + * + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder, + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder> + getDesiredResourceUsageExportConfigFieldBuilder() { + if (desiredResourceUsageExportConfigBuilder_ == null) { + desiredResourceUsageExportConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder, + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder>( + getDesiredResourceUsageExportConfig(), getParentForChildren(), isClean()); + desiredResourceUsageExportConfig_ = null; + } + return desiredResourceUsageExportConfigBuilder_; + } + + private com.google.container.v1beta1.VerticalPodAutoscaling desiredVerticalPodAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VerticalPodAutoscaling, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder, + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder> + desiredVerticalPodAutoscalingBuilder_; + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + * + * @return Whether the desiredVerticalPodAutoscaling field is set. + */ + public boolean hasDesiredVerticalPodAutoscaling() { + return desiredVerticalPodAutoscalingBuilder_ != null + || desiredVerticalPodAutoscaling_ != null; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + * + * @return The desiredVerticalPodAutoscaling. + */ + public com.google.container.v1beta1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling() { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + return desiredVerticalPodAutoscaling_ == null + ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() + : desiredVerticalPodAutoscaling_; + } else { + return desiredVerticalPodAutoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public Builder setDesiredVerticalPodAutoscaling( + com.google.container.v1beta1.VerticalPodAutoscaling value) { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredVerticalPodAutoscaling_ = value; + onChanged(); + } else { + desiredVerticalPodAutoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public Builder setDesiredVerticalPodAutoscaling( + com.google.container.v1beta1.VerticalPodAutoscaling.Builder builderForValue) { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + desiredVerticalPodAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + desiredVerticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public Builder mergeDesiredVerticalPodAutoscaling( + com.google.container.v1beta1.VerticalPodAutoscaling value) { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + if (desiredVerticalPodAutoscaling_ != null) { + desiredVerticalPodAutoscaling_ = + com.google.container.v1beta1.VerticalPodAutoscaling.newBuilder( + desiredVerticalPodAutoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredVerticalPodAutoscaling_ = value; + } + onChanged(); + } else { + desiredVerticalPodAutoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public Builder clearDesiredVerticalPodAutoscaling() { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + desiredVerticalPodAutoscaling_ = null; + onChanged(); + } else { + desiredVerticalPodAutoscaling_ = null; + desiredVerticalPodAutoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public com.google.container.v1beta1.VerticalPodAutoscaling.Builder + getDesiredVerticalPodAutoscalingBuilder() { + + onChanged(); + return getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + public com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder + getDesiredVerticalPodAutoscalingOrBuilder() { + if (desiredVerticalPodAutoscalingBuilder_ != null) { + return desiredVerticalPodAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredVerticalPodAutoscaling_ == null + ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() + : desiredVerticalPodAutoscaling_; + } + } + /** + * + * + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VerticalPodAutoscaling, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder, + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder> + getDesiredVerticalPodAutoscalingFieldBuilder() { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + desiredVerticalPodAutoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VerticalPodAutoscaling, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder, + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder>( + getDesiredVerticalPodAutoscaling(), getParentForChildren(), isClean()); + desiredVerticalPodAutoscaling_ = null; + } + return desiredVerticalPodAutoscalingBuilder_; + } + + private com.google.container.v1beta1.PrivateClusterConfig desiredPrivateClusterConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, + com.google.container.v1beta1.PrivateClusterConfig.Builder, + com.google.container.v1beta1.PrivateClusterConfigOrBuilder> + desiredPrivateClusterConfigBuilder_; + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * + * @return Whether the desiredPrivateClusterConfig field is set. + */ + public boolean hasDesiredPrivateClusterConfig() { + return desiredPrivateClusterConfigBuilder_ != null || desiredPrivateClusterConfig_ != null; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * + * @return The desiredPrivateClusterConfig. + */ + public com.google.container.v1beta1.PrivateClusterConfig getDesiredPrivateClusterConfig() { + if (desiredPrivateClusterConfigBuilder_ == null) { + return desiredPrivateClusterConfig_ == null + ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() + : desiredPrivateClusterConfig_; + } else { + return desiredPrivateClusterConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + public Builder setDesiredPrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig value) { + if (desiredPrivateClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredPrivateClusterConfig_ = value; + onChanged(); + } else { + desiredPrivateClusterConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + public Builder setDesiredPrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig.Builder builderForValue) { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredPrivateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + public Builder mergeDesiredPrivateClusterConfig( + com.google.container.v1beta1.PrivateClusterConfig value) { + if (desiredPrivateClusterConfigBuilder_ == null) { + if (desiredPrivateClusterConfig_ != null) { + desiredPrivateClusterConfig_ = + com.google.container.v1beta1.PrivateClusterConfig.newBuilder( + desiredPrivateClusterConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredPrivateClusterConfig_ = value; + } + onChanged(); + } else { + desiredPrivateClusterConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + public Builder clearDesiredPrivateClusterConfig() { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = null; + onChanged(); + } else { + desiredPrivateClusterConfig_ = null; + desiredPrivateClusterConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + public com.google.container.v1beta1.PrivateClusterConfig.Builder + getDesiredPrivateClusterConfigBuilder() { + + onChanged(); + return getDesiredPrivateClusterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + public com.google.container.v1beta1.PrivateClusterConfigOrBuilder + getDesiredPrivateClusterConfigOrBuilder() { + if (desiredPrivateClusterConfigBuilder_ != null) { + return desiredPrivateClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredPrivateClusterConfig_ == null + ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() + : desiredPrivateClusterConfig_; + } + } + /** + * + * + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, + com.google.container.v1beta1.PrivateClusterConfig.Builder, + com.google.container.v1beta1.PrivateClusterConfigOrBuilder> + getDesiredPrivateClusterConfigFieldBuilder() { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterConfig, + com.google.container.v1beta1.PrivateClusterConfig.Builder, + com.google.container.v1beta1.PrivateClusterConfigOrBuilder>( + getDesiredPrivateClusterConfig(), getParentForChildren(), isClean()); + desiredPrivateClusterConfig_ = null; + } + return desiredPrivateClusterConfigBuilder_; + } + + private com.google.container.v1beta1.IntraNodeVisibilityConfig + desiredIntraNodeVisibilityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IntraNodeVisibilityConfig, + com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder, + com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder> + desiredIntraNodeVisibilityConfigBuilder_; + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return Whether the desiredIntraNodeVisibilityConfig field is set. + */ + public boolean hasDesiredIntraNodeVisibilityConfig() { + return desiredIntraNodeVisibilityConfigBuilder_ != null + || desiredIntraNodeVisibilityConfig_ != null; + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return The desiredIntraNodeVisibilityConfig. + */ + public com.google.container.v1beta1.IntraNodeVisibilityConfig + getDesiredIntraNodeVisibilityConfig() { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + return desiredIntraNodeVisibilityConfig_ == null + ? com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance() + : desiredIntraNodeVisibilityConfig_; + } else { + return desiredIntraNodeVisibilityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public Builder setDesiredIntraNodeVisibilityConfig( + com.google.container.v1beta1.IntraNodeVisibilityConfig value) { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredIntraNodeVisibilityConfig_ = value; + onChanged(); + } else { + desiredIntraNodeVisibilityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public Builder setDesiredIntraNodeVisibilityConfig( + com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder builderForValue) { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredIntraNodeVisibilityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public Builder mergeDesiredIntraNodeVisibilityConfig( + com.google.container.v1beta1.IntraNodeVisibilityConfig value) { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + if (desiredIntraNodeVisibilityConfig_ != null) { + desiredIntraNodeVisibilityConfig_ = + com.google.container.v1beta1.IntraNodeVisibilityConfig.newBuilder( + desiredIntraNodeVisibilityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredIntraNodeVisibilityConfig_ = value; + } + onChanged(); + } else { + desiredIntraNodeVisibilityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public Builder clearDesiredIntraNodeVisibilityConfig() { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfig_ = null; + onChanged(); + } else { + desiredIntraNodeVisibilityConfig_ = null; + desiredIntraNodeVisibilityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder + getDesiredIntraNodeVisibilityConfigBuilder() { + + onChanged(); + return getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + public com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder + getDesiredIntraNodeVisibilityConfigOrBuilder() { + if (desiredIntraNodeVisibilityConfigBuilder_ != null) { + return desiredIntraNodeVisibilityConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredIntraNodeVisibilityConfig_ == null + ? com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance() + : desiredIntraNodeVisibilityConfig_; + } + } + /** + * + * + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IntraNodeVisibilityConfig, + com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder, + com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder> + getDesiredIntraNodeVisibilityConfigFieldBuilder() { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IntraNodeVisibilityConfig, + com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder, + com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder>( + getDesiredIntraNodeVisibilityConfig(), getParentForChildren(), isClean()); + desiredIntraNodeVisibilityConfig_ = null; + } + return desiredIntraNodeVisibilityConfigBuilder_; + } + + private com.google.container.v1beta1.DefaultSnatStatus desiredDefaultSnatStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DefaultSnatStatus, + com.google.container.v1beta1.DefaultSnatStatus.Builder, + com.google.container.v1beta1.DefaultSnatStatusOrBuilder> + desiredDefaultSnatStatusBuilder_; + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return Whether the desiredDefaultSnatStatus field is set. + */ + public boolean hasDesiredDefaultSnatStatus() { + return desiredDefaultSnatStatusBuilder_ != null || desiredDefaultSnatStatus_ != null; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return The desiredDefaultSnatStatus. + */ + public com.google.container.v1beta1.DefaultSnatStatus getDesiredDefaultSnatStatus() { + if (desiredDefaultSnatStatusBuilder_ == null) { + return desiredDefaultSnatStatus_ == null + ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() + : desiredDefaultSnatStatus_; + } else { + return desiredDefaultSnatStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder setDesiredDefaultSnatStatus( + com.google.container.v1beta1.DefaultSnatStatus value) { + if (desiredDefaultSnatStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredDefaultSnatStatus_ = value; + onChanged(); + } else { + desiredDefaultSnatStatusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder setDesiredDefaultSnatStatus( + com.google.container.v1beta1.DefaultSnatStatus.Builder builderForValue) { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = builderForValue.build(); + onChanged(); + } else { + desiredDefaultSnatStatusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder mergeDesiredDefaultSnatStatus( + com.google.container.v1beta1.DefaultSnatStatus value) { + if (desiredDefaultSnatStatusBuilder_ == null) { + if (desiredDefaultSnatStatus_ != null) { + desiredDefaultSnatStatus_ = + com.google.container.v1beta1.DefaultSnatStatus.newBuilder(desiredDefaultSnatStatus_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredDefaultSnatStatus_ = value; + } + onChanged(); + } else { + desiredDefaultSnatStatusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder clearDesiredDefaultSnatStatus() { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = null; + onChanged(); + } else { + desiredDefaultSnatStatus_ = null; + desiredDefaultSnatStatusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public com.google.container.v1beta1.DefaultSnatStatus.Builder + getDesiredDefaultSnatStatusBuilder() { + + onChanged(); + return getDesiredDefaultSnatStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public com.google.container.v1beta1.DefaultSnatStatusOrBuilder + getDesiredDefaultSnatStatusOrBuilder() { + if (desiredDefaultSnatStatusBuilder_ != null) { + return desiredDefaultSnatStatusBuilder_.getMessageOrBuilder(); + } else { + return desiredDefaultSnatStatus_ == null + ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() + : desiredDefaultSnatStatus_; + } + } + /** + * + * + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DefaultSnatStatus, + com.google.container.v1beta1.DefaultSnatStatus.Builder, + com.google.container.v1beta1.DefaultSnatStatusOrBuilder> + getDesiredDefaultSnatStatusFieldBuilder() { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DefaultSnatStatus, + com.google.container.v1beta1.DefaultSnatStatus.Builder, + com.google.container.v1beta1.DefaultSnatStatusOrBuilder>( + getDesiredDefaultSnatStatus(), getParentForChildren(), isClean()); + desiredDefaultSnatStatus_ = null; + } + return desiredDefaultSnatStatusBuilder_; + } + + private com.google.container.v1beta1.ClusterTelemetry desiredClusterTelemetry_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterTelemetry, + com.google.container.v1beta1.ClusterTelemetry.Builder, + com.google.container.v1beta1.ClusterTelemetryOrBuilder> + desiredClusterTelemetryBuilder_; + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + * + * @return Whether the desiredClusterTelemetry field is set. + */ + public boolean hasDesiredClusterTelemetry() { + return desiredClusterTelemetryBuilder_ != null || desiredClusterTelemetry_ != null; + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + * + * @return The desiredClusterTelemetry. + */ + public com.google.container.v1beta1.ClusterTelemetry getDesiredClusterTelemetry() { + if (desiredClusterTelemetryBuilder_ == null) { + return desiredClusterTelemetry_ == null + ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() + : desiredClusterTelemetry_; + } else { + return desiredClusterTelemetryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public Builder setDesiredClusterTelemetry(com.google.container.v1beta1.ClusterTelemetry value) { + if (desiredClusterTelemetryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredClusterTelemetry_ = value; + onChanged(); + } else { + desiredClusterTelemetryBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public Builder setDesiredClusterTelemetry( + com.google.container.v1beta1.ClusterTelemetry.Builder builderForValue) { + if (desiredClusterTelemetryBuilder_ == null) { + desiredClusterTelemetry_ = builderForValue.build(); + onChanged(); + } else { + desiredClusterTelemetryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public Builder mergeDesiredClusterTelemetry( + com.google.container.v1beta1.ClusterTelemetry value) { + if (desiredClusterTelemetryBuilder_ == null) { + if (desiredClusterTelemetry_ != null) { + desiredClusterTelemetry_ = + com.google.container.v1beta1.ClusterTelemetry.newBuilder(desiredClusterTelemetry_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredClusterTelemetry_ = value; + } + onChanged(); + } else { + desiredClusterTelemetryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public Builder clearDesiredClusterTelemetry() { + if (desiredClusterTelemetryBuilder_ == null) { + desiredClusterTelemetry_ = null; + onChanged(); + } else { + desiredClusterTelemetry_ = null; + desiredClusterTelemetryBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public com.google.container.v1beta1.ClusterTelemetry.Builder + getDesiredClusterTelemetryBuilder() { + + onChanged(); + return getDesiredClusterTelemetryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public com.google.container.v1beta1.ClusterTelemetryOrBuilder + getDesiredClusterTelemetryOrBuilder() { + if (desiredClusterTelemetryBuilder_ != null) { + return desiredClusterTelemetryBuilder_.getMessageOrBuilder(); + } else { + return desiredClusterTelemetry_ == null + ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() + : desiredClusterTelemetry_; + } + } + /** + * + * + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterTelemetry, + com.google.container.v1beta1.ClusterTelemetry.Builder, + com.google.container.v1beta1.ClusterTelemetryOrBuilder> + getDesiredClusterTelemetryFieldBuilder() { + if (desiredClusterTelemetryBuilder_ == null) { + desiredClusterTelemetryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterTelemetry, + com.google.container.v1beta1.ClusterTelemetry.Builder, + com.google.container.v1beta1.ClusterTelemetryOrBuilder>( + getDesiredClusterTelemetry(), getParentForChildren(), isClean()); + desiredClusterTelemetry_ = null; + } + return desiredClusterTelemetryBuilder_; + } + + private com.google.container.v1beta1.ReleaseChannel desiredReleaseChannel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReleaseChannel, + com.google.container.v1beta1.ReleaseChannel.Builder, + com.google.container.v1beta1.ReleaseChannelOrBuilder> + desiredReleaseChannelBuilder_; + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + * + * @return Whether the desiredReleaseChannel field is set. + */ + public boolean hasDesiredReleaseChannel() { + return desiredReleaseChannelBuilder_ != null || desiredReleaseChannel_ != null; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + * + * @return The desiredReleaseChannel. + */ + public com.google.container.v1beta1.ReleaseChannel getDesiredReleaseChannel() { + if (desiredReleaseChannelBuilder_ == null) { + return desiredReleaseChannel_ == null + ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() + : desiredReleaseChannel_; + } else { + return desiredReleaseChannelBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public Builder setDesiredReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { + if (desiredReleaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredReleaseChannel_ = value; + onChanged(); + } else { + desiredReleaseChannelBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public Builder setDesiredReleaseChannel( + com.google.container.v1beta1.ReleaseChannel.Builder builderForValue) { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = builderForValue.build(); + onChanged(); + } else { + desiredReleaseChannelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public Builder mergeDesiredReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { + if (desiredReleaseChannelBuilder_ == null) { + if (desiredReleaseChannel_ != null) { + desiredReleaseChannel_ = + com.google.container.v1beta1.ReleaseChannel.newBuilder(desiredReleaseChannel_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredReleaseChannel_ = value; + } + onChanged(); + } else { + desiredReleaseChannelBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public Builder clearDesiredReleaseChannel() { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = null; + onChanged(); + } else { + desiredReleaseChannel_ = null; + desiredReleaseChannelBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public com.google.container.v1beta1.ReleaseChannel.Builder getDesiredReleaseChannelBuilder() { + + onChanged(); + return getDesiredReleaseChannelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public com.google.container.v1beta1.ReleaseChannelOrBuilder + getDesiredReleaseChannelOrBuilder() { + if (desiredReleaseChannelBuilder_ != null) { + return desiredReleaseChannelBuilder_.getMessageOrBuilder(); + } else { + return desiredReleaseChannel_ == null + ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() + : desiredReleaseChannel_; + } + } + /** + * + * + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReleaseChannel, + com.google.container.v1beta1.ReleaseChannel.Builder, + com.google.container.v1beta1.ReleaseChannelOrBuilder> + getDesiredReleaseChannelFieldBuilder() { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReleaseChannel, + com.google.container.v1beta1.ReleaseChannel.Builder, + com.google.container.v1beta1.ReleaseChannelOrBuilder>( + getDesiredReleaseChannel(), getParentForChildren(), isClean()); + desiredReleaseChannel_ = null; + } + return desiredReleaseChannelBuilder_; + } + + private com.google.container.v1beta1.TpuConfig desiredTpuConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TpuConfig, + com.google.container.v1beta1.TpuConfig.Builder, + com.google.container.v1beta1.TpuConfigOrBuilder> + desiredTpuConfigBuilder_; + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + * + * @return Whether the desiredTpuConfig field is set. + */ + public boolean hasDesiredTpuConfig() { + return desiredTpuConfigBuilder_ != null || desiredTpuConfig_ != null; + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + * + * @return The desiredTpuConfig. + */ + public com.google.container.v1beta1.TpuConfig getDesiredTpuConfig() { + if (desiredTpuConfigBuilder_ == null) { + return desiredTpuConfig_ == null + ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() + : desiredTpuConfig_; + } else { + return desiredTpuConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public Builder setDesiredTpuConfig(com.google.container.v1beta1.TpuConfig value) { + if (desiredTpuConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredTpuConfig_ = value; + onChanged(); + } else { + desiredTpuConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public Builder setDesiredTpuConfig( + com.google.container.v1beta1.TpuConfig.Builder builderForValue) { + if (desiredTpuConfigBuilder_ == null) { + desiredTpuConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredTpuConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public Builder mergeDesiredTpuConfig(com.google.container.v1beta1.TpuConfig value) { + if (desiredTpuConfigBuilder_ == null) { + if (desiredTpuConfig_ != null) { + desiredTpuConfig_ = + com.google.container.v1beta1.TpuConfig.newBuilder(desiredTpuConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredTpuConfig_ = value; + } + onChanged(); + } else { + desiredTpuConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public Builder clearDesiredTpuConfig() { + if (desiredTpuConfigBuilder_ == null) { + desiredTpuConfig_ = null; + onChanged(); + } else { + desiredTpuConfig_ = null; + desiredTpuConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public com.google.container.v1beta1.TpuConfig.Builder getDesiredTpuConfigBuilder() { + + onChanged(); + return getDesiredTpuConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public com.google.container.v1beta1.TpuConfigOrBuilder getDesiredTpuConfigOrBuilder() { + if (desiredTpuConfigBuilder_ != null) { + return desiredTpuConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredTpuConfig_ == null + ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() + : desiredTpuConfig_; + } + } + /** + * + * + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TpuConfig, + com.google.container.v1beta1.TpuConfig.Builder, + com.google.container.v1beta1.TpuConfigOrBuilder> + getDesiredTpuConfigFieldBuilder() { + if (desiredTpuConfigBuilder_ == null) { + desiredTpuConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TpuConfig, + com.google.container.v1beta1.TpuConfig.Builder, + com.google.container.v1beta1.TpuConfigOrBuilder>( + getDesiredTpuConfig(), getParentForChildren(), isClean()); + desiredTpuConfig_ = null; + } + return desiredTpuConfigBuilder_; + } + + private int desiredDatapathProvider_ = 0; + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1beta1.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.v1beta1.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.v1beta1.DatapathProvider desired_datapath_provider = 50; + * + * @return The desiredDatapathProvider. + */ + @java.lang.Override + public com.google.container.v1beta1.DatapathProvider getDesiredDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DatapathProvider result = + com.google.container.v1beta1.DatapathProvider.valueOf(desiredDatapathProvider_); + return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1beta1.DatapathProvider desired_datapath_provider = 50; + * + * @param value The desiredDatapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDesiredDatapathProvider(com.google.container.v1beta1.DatapathProvider value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredDatapathProvider_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1beta1.DatapathProvider desired_datapath_provider = 50; + * + * @return This builder for chaining. + */ + public Builder clearDesiredDatapathProvider() { + + desiredDatapathProvider_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NotificationConfig desiredNotificationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig, + com.google.container.v1beta1.NotificationConfig.Builder, + com.google.container.v1beta1.NotificationConfigOrBuilder> + desiredNotificationConfigBuilder_; + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.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.v1beta1.NotificationConfig desired_notification_config = 55; + * + * @return The desiredNotificationConfig. + */ + public com.google.container.v1beta1.NotificationConfig getDesiredNotificationConfig() { + if (desiredNotificationConfigBuilder_ == null) { + return desiredNotificationConfig_ == null + ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() + : desiredNotificationConfig_; + } else { + return desiredNotificationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public Builder setDesiredNotificationConfig( + com.google.container.v1beta1.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.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public Builder setDesiredNotificationConfig( + com.google.container.v1beta1.NotificationConfig.Builder builderForValue) { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredNotificationConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public Builder mergeDesiredNotificationConfig( + com.google.container.v1beta1.NotificationConfig value) { + if (desiredNotificationConfigBuilder_ == null) { + if (desiredNotificationConfig_ != null) { + desiredNotificationConfig_ = + com.google.container.v1beta1.NotificationConfig.newBuilder(desiredNotificationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredNotificationConfig_ = value; + } + onChanged(); + } else { + desiredNotificationConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.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.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public com.google.container.v1beta1.NotificationConfig.Builder + getDesiredNotificationConfigBuilder() { + + onChanged(); + return getDesiredNotificationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public com.google.container.v1beta1.NotificationConfigOrBuilder + getDesiredNotificationConfigOrBuilder() { + if (desiredNotificationConfigBuilder_ != null) { + return desiredNotificationConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredNotificationConfig_ == null + ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() + : desiredNotificationConfig_; + } + } + /** + * + * + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig, + com.google.container.v1beta1.NotificationConfig.Builder, + com.google.container.v1beta1.NotificationConfigOrBuilder> + getDesiredNotificationConfigFieldBuilder() { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig, + com.google.container.v1beta1.NotificationConfig.Builder, + com.google.container.v1beta1.NotificationConfigOrBuilder>( + getDesiredNotificationConfig(), getParentForChildren(), isClean()); + desiredNotificationConfig_ = null; + } + return desiredNotificationConfigBuilder_; + } + + private java.lang.Object desiredMasterVersion_ = ""; + /** + * + * + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * + * @return The desiredMasterVersion. + */ + public java.lang.String getDesiredMasterVersion() { + java.lang.Object ref = desiredMasterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMasterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * + * @return The bytes for desiredMasterVersion. + */ + public com.google.protobuf.ByteString getDesiredMasterVersionBytes() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desiredMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * + * @param value The desiredMasterVersion to set. + * @return This builder for chaining. + */ + public Builder setDesiredMasterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + desiredMasterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * + * @return This builder for chaining. + */ + public Builder clearDesiredMasterVersion() { + + desiredMasterVersion_ = getDefaultInstance().getDesiredMasterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Kubernetes version to change the master to. The only valid value is the
+     * latest supported version.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * + * @param value The bytes for desiredMasterVersion to set. + * @return This builder for chaining. + */ + public Builder setDesiredMasterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + desiredMasterVersion_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.DatabaseEncryption desiredDatabaseEncryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, + com.google.container.v1beta1.DatabaseEncryption.Builder, + com.google.container.v1beta1.DatabaseEncryptionOrBuilder> + desiredDatabaseEncryptionBuilder_; + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + * + * @return Whether the desiredDatabaseEncryption field is set. + */ + public boolean hasDesiredDatabaseEncryption() { + return desiredDatabaseEncryptionBuilder_ != null || desiredDatabaseEncryption_ != null; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + * + * @return The desiredDatabaseEncryption. + */ + public com.google.container.v1beta1.DatabaseEncryption getDesiredDatabaseEncryption() { + if (desiredDatabaseEncryptionBuilder_ == null) { + return desiredDatabaseEncryption_ == null + ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() + : desiredDatabaseEncryption_; + } else { + return desiredDatabaseEncryptionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder setDesiredDatabaseEncryption( + com.google.container.v1beta1.DatabaseEncryption value) { + if (desiredDatabaseEncryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredDatabaseEncryption_ = value; + onChanged(); + } else { + desiredDatabaseEncryptionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder setDesiredDatabaseEncryption( + com.google.container.v1beta1.DatabaseEncryption.Builder builderForValue) { + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryption_ = builderForValue.build(); + onChanged(); + } else { + desiredDatabaseEncryptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder mergeDesiredDatabaseEncryption( + com.google.container.v1beta1.DatabaseEncryption value) { + if (desiredDatabaseEncryptionBuilder_ == null) { + if (desiredDatabaseEncryption_ != null) { + desiredDatabaseEncryption_ = + com.google.container.v1beta1.DatabaseEncryption.newBuilder(desiredDatabaseEncryption_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredDatabaseEncryption_ = value; + } + onChanged(); + } else { + desiredDatabaseEncryptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder clearDesiredDatabaseEncryption() { + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryption_ = null; + onChanged(); + } else { + desiredDatabaseEncryption_ = null; + desiredDatabaseEncryptionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public com.google.container.v1beta1.DatabaseEncryption.Builder + getDesiredDatabaseEncryptionBuilder() { + + onChanged(); + return getDesiredDatabaseEncryptionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public com.google.container.v1beta1.DatabaseEncryptionOrBuilder + getDesiredDatabaseEncryptionOrBuilder() { + if (desiredDatabaseEncryptionBuilder_ != null) { + return desiredDatabaseEncryptionBuilder_.getMessageOrBuilder(); + } else { + return desiredDatabaseEncryption_ == null + ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() + : desiredDatabaseEncryption_; + } + } + /** + * + * + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, + com.google.container.v1beta1.DatabaseEncryption.Builder, + com.google.container.v1beta1.DatabaseEncryptionOrBuilder> + getDesiredDatabaseEncryptionFieldBuilder() { + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, + com.google.container.v1beta1.DatabaseEncryption.Builder, + com.google.container.v1beta1.DatabaseEncryptionOrBuilder>( + getDesiredDatabaseEncryption(), getParentForChildren(), isClean()); + desiredDatabaseEncryption_ = null; + } + return desiredDatabaseEncryptionBuilder_; + } + + private com.google.container.v1beta1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadIdentityConfig, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder, + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder> + desiredWorkloadIdentityConfigBuilder_; + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return Whether the desiredWorkloadIdentityConfig field is set. + */ + public boolean hasDesiredWorkloadIdentityConfig() { + return desiredWorkloadIdentityConfigBuilder_ != null + || desiredWorkloadIdentityConfig_ != null; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return The desiredWorkloadIdentityConfig. + */ + public com.google.container.v1beta1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + return desiredWorkloadIdentityConfig_ == null + ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() + : desiredWorkloadIdentityConfig_; + } else { + return desiredWorkloadIdentityConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder setDesiredWorkloadIdentityConfig( + com.google.container.v1beta1.WorkloadIdentityConfig value) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredWorkloadIdentityConfig_ = value; + onChanged(); + } else { + desiredWorkloadIdentityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder setDesiredWorkloadIdentityConfig( + com.google.container.v1beta1.WorkloadIdentityConfig.Builder builderForValue) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = builderForValue.build(); + onChanged(); + } else { + desiredWorkloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder mergeDesiredWorkloadIdentityConfig( + com.google.container.v1beta1.WorkloadIdentityConfig value) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + if (desiredWorkloadIdentityConfig_ != null) { + desiredWorkloadIdentityConfig_ = + com.google.container.v1beta1.WorkloadIdentityConfig.newBuilder( + desiredWorkloadIdentityConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredWorkloadIdentityConfig_ = value; + } + onChanged(); + } else { + desiredWorkloadIdentityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public Builder clearDesiredWorkloadIdentityConfig() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = null; + onChanged(); + } else { + desiredWorkloadIdentityConfig_ = null; + desiredWorkloadIdentityConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public com.google.container.v1beta1.WorkloadIdentityConfig.Builder + getDesiredWorkloadIdentityConfigBuilder() { + + onChanged(); + return getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + public com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder + getDesiredWorkloadIdentityConfigOrBuilder() { + if (desiredWorkloadIdentityConfigBuilder_ != null) { + return desiredWorkloadIdentityConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredWorkloadIdentityConfig_ == null + ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() + : desiredWorkloadIdentityConfig_; + } + } + /** + * + * + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadIdentityConfig, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder, + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder> + getDesiredWorkloadIdentityConfigFieldBuilder() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadIdentityConfig, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder, + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder>( + getDesiredWorkloadIdentityConfig(), getParentForChildren(), isClean()); + desiredWorkloadIdentityConfig_ = null; + } + return desiredWorkloadIdentityConfigBuilder_; + } + + private com.google.container.v1beta1.ShieldedNodes desiredShieldedNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedNodes, + com.google.container.v1beta1.ShieldedNodes.Builder, + com.google.container.v1beta1.ShieldedNodesOrBuilder> + desiredShieldedNodesBuilder_; + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.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.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return The desiredShieldedNodes. + */ + public com.google.container.v1beta1.ShieldedNodes getDesiredShieldedNodes() { + if (desiredShieldedNodesBuilder_ == null) { + return desiredShieldedNodes_ == null + ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() + : desiredShieldedNodes_; + } else { + return desiredShieldedNodesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder setDesiredShieldedNodes(com.google.container.v1beta1.ShieldedNodes value) { + if (desiredShieldedNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredShieldedNodes_ = value; + onChanged(); + } else { + desiredShieldedNodesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder setDesiredShieldedNodes( + com.google.container.v1beta1.ShieldedNodes.Builder builderForValue) { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = builderForValue.build(); + onChanged(); + } else { + desiredShieldedNodesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder mergeDesiredShieldedNodes(com.google.container.v1beta1.ShieldedNodes value) { + if (desiredShieldedNodesBuilder_ == null) { + if (desiredShieldedNodes_ != null) { + desiredShieldedNodes_ = + com.google.container.v1beta1.ShieldedNodes.newBuilder(desiredShieldedNodes_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredShieldedNodes_ = value; + } + onChanged(); + } else { + desiredShieldedNodesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder clearDesiredShieldedNodes() { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = null; + onChanged(); + } else { + desiredShieldedNodes_ = null; + desiredShieldedNodesBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public com.google.container.v1beta1.ShieldedNodes.Builder getDesiredShieldedNodesBuilder() { + + onChanged(); + return getDesiredShieldedNodesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public com.google.container.v1beta1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { + if (desiredShieldedNodesBuilder_ != null) { + return desiredShieldedNodesBuilder_.getMessageOrBuilder(); + } else { + return desiredShieldedNodes_ == null + ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() + : desiredShieldedNodes_; + } + } + /** + * + * + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedNodes, + com.google.container.v1beta1.ShieldedNodes.Builder, + com.google.container.v1beta1.ShieldedNodesOrBuilder> + getDesiredShieldedNodesFieldBuilder() { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedNodes, + com.google.container.v1beta1.ShieldedNodes.Builder, + com.google.container.v1beta1.ShieldedNodesOrBuilder>( + getDesiredShieldedNodes(), getParentForChildren(), isClean()); + desiredShieldedNodes_ = null; + } + return desiredShieldedNodesBuilder_; + } + + private com.google.container.v1beta1.Master desiredMaster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Master, + com.google.container.v1beta1.Master.Builder, + com.google.container.v1beta1.MasterOrBuilder> + desiredMasterBuilder_; + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + * + * @return Whether the desiredMaster field is set. + */ + public boolean hasDesiredMaster() { + return desiredMasterBuilder_ != null || desiredMaster_ != null; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + * + * @return The desiredMaster. + */ + public com.google.container.v1beta1.Master getDesiredMaster() { + if (desiredMasterBuilder_ == null) { + return desiredMaster_ == null + ? com.google.container.v1beta1.Master.getDefaultInstance() + : desiredMaster_; + } else { + return desiredMasterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public Builder setDesiredMaster(com.google.container.v1beta1.Master value) { + if (desiredMasterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMaster_ = value; + onChanged(); + } else { + desiredMasterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public Builder setDesiredMaster(com.google.container.v1beta1.Master.Builder builderForValue) { + if (desiredMasterBuilder_ == null) { + desiredMaster_ = builderForValue.build(); + onChanged(); + } else { + desiredMasterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public Builder mergeDesiredMaster(com.google.container.v1beta1.Master value) { + if (desiredMasterBuilder_ == null) { + if (desiredMaster_ != null) { + desiredMaster_ = + com.google.container.v1beta1.Master.newBuilder(desiredMaster_) + .mergeFrom(value) + .buildPartial(); + } else { + desiredMaster_ = value; + } + onChanged(); + } else { + desiredMasterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public Builder clearDesiredMaster() { + if (desiredMasterBuilder_ == null) { + desiredMaster_ = null; + onChanged(); + } else { + desiredMaster_ = null; + desiredMasterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public com.google.container.v1beta1.Master.Builder getDesiredMasterBuilder() { + + onChanged(); + return getDesiredMasterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public com.google.container.v1beta1.MasterOrBuilder getDesiredMasterOrBuilder() { + if (desiredMasterBuilder_ != null) { + return desiredMasterBuilder_.getMessageOrBuilder(); + } else { + return desiredMaster_ == null + ? com.google.container.v1beta1.Master.getDefaultInstance() + : desiredMaster_; + } + } + /** + * + * + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Master, + com.google.container.v1beta1.Master.Builder, + com.google.container.v1beta1.MasterOrBuilder> + getDesiredMasterFieldBuilder() { + if (desiredMasterBuilder_ == null) { + desiredMasterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Master, + com.google.container.v1beta1.Master.Builder, + com.google.container.v1beta1.MasterOrBuilder>( + getDesiredMaster(), getParentForChildren(), isClean()); + desiredMaster_ = null; + } + return desiredMasterBuilder_; + } + + @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.ClusterUpdate) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ClusterUpdate) + private static final com.google.container.v1beta1.ClusterUpdate DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ClusterUpdate(); + } + + public static com.google.container.v1beta1.ClusterUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterUpdate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/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 new file mode 100644 index 00000000..d4d242fc --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java @@ -0,0 +1,1060 @@ +/* + * 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 ClusterUpdateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ClusterUpdate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + * + * @return The desiredNodeVersion. + */ + java.lang.String getDesiredNodeVersion(); + /** + * + * + *
+   * The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string desired_node_version = 4; + * + * @return The bytes for desiredNodeVersion. + */ + com.google.protobuf.ByteString getDesiredNodeVersionBytes(); + + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_monitoring_service = 5; + * + * @return The desiredMonitoringService. + */ + java.lang.String getDesiredMonitoringService(); + /** + * + * + *
+   * The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_monitoring_service = 5; + * + * @return The bytes for desiredMonitoringService. + */ + com.google.protobuf.ByteString getDesiredMonitoringServiceBytes(); + + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + * + * @return Whether the desiredAddonsConfig field is set. + */ + boolean hasDesiredAddonsConfig(); + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + * + * @return The desiredAddonsConfig. + */ + com.google.container.v1beta1.AddonsConfig getDesiredAddonsConfig(); + /** + * + * + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + com.google.container.v1beta1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder(); + + /** + * + * + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family",
+   * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+   * is specified and there is more than one node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + * + * @return The desiredNodePoolId. + */ + java.lang.String getDesiredNodePoolId(); + /** + * + * + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family",
+   * "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
+   * is specified and there is more than one node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + * + * @return The bytes for desiredNodePoolId. + */ + com.google.protobuf.ByteString getDesiredNodePoolIdBytes(); + + /** + * + * + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + * + * @return The desiredImageType. + */ + java.lang.String getDesiredImageType(); + /** + * + * + *
+   * The desired image type for the node pool.
+   * NOTE: Set the "desired_node_pool" field as well.
+   * 
+ * + * string desired_image_type = 8; + * + * @return The bytes for desiredImageType. + */ + com.google.protobuf.ByteString getDesiredImageTypeBytes(); + + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return Whether the desiredNodePoolAutoscaling field is set. + */ + boolean hasDesiredNodePoolAutoscaling(); + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return The desiredNodePoolAutoscaling. + */ + com.google.container.v1beta1.NodePoolAutoscaling getDesiredNodePoolAutoscaling(); + /** + * + * + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder + getDesiredNodePoolAutoscalingOrBuilder(); + + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @return A list containing the desiredLocations. + */ + java.util.List getDesiredLocationsList(); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @return The count of desiredLocations. + */ + int getDesiredLocationsCount(); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the element to return. + * @return The desiredLocations at the given index. + */ + java.lang.String getDesiredLocations(int index); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   * This list must always include the cluster's primary zone.
+   * Warning: changing cluster locations will update the locations of all node
+   * pools and will result in nodes being added and/or removed.
+   * 
+ * + * repeated string desired_locations = 10; + * + * @param index The index of the value to return. + * @return The bytes of the desiredLocations at the given index. + */ + com.google.protobuf.ByteString getDesiredLocationsBytes(int index); + + /** + * + * + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + * + * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. + */ + boolean hasDesiredMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + * + * @return The desiredMasterAuthorizedNetworksConfig. + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfig + getDesiredMasterAuthorizedNetworksConfig(); + /** + * + * + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder + getDesiredMasterAuthorizedNetworksConfigOrBuilder(); + + /** + * + * + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + * + * @return Whether the desiredPodSecurityPolicyConfig field is set. + */ + boolean hasDesiredPodSecurityPolicyConfig(); + /** + * + * + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + * + * @return The desiredPodSecurityPolicyConfig. + */ + com.google.container.v1beta1.PodSecurityPolicyConfig getDesiredPodSecurityPolicyConfig(); + /** + * + * + *
+   * The desired configuration options for the PodSecurityPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + * + */ + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder + getDesiredPodSecurityPolicyConfigOrBuilder(); + + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return Whether the desiredClusterAutoscaling field is set. + */ + boolean hasDesiredClusterAutoscaling(); + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return The desiredClusterAutoscaling. + */ + com.google.container.v1beta1.ClusterAutoscaling getDesiredClusterAutoscaling(); + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + com.google.container.v1beta1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder(); + + /** + * + * + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + * + * @return Whether the desiredBinaryAuthorization field is set. + */ + boolean hasDesiredBinaryAuthorization(); + /** + * + * + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + * + * @return The desiredBinaryAuthorization. + */ + com.google.container.v1beta1.BinaryAuthorization getDesiredBinaryAuthorization(); + /** + * + * + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + com.google.container.v1beta1.BinaryAuthorizationOrBuilder + getDesiredBinaryAuthorizationOrBuilder(); + + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_logging_service = 19; + * + * @return The desiredLoggingService. + */ + java.lang.String getDesiredLoggingService(); + /** + * + * + *
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string desired_logging_service = 19; + * + * @return The bytes for desiredLoggingService. + */ + com.google.protobuf.ByteString getDesiredLoggingServiceBytes(); + + /** + * + * + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + * + * @return Whether the desiredResourceUsageExportConfig field is set. + */ + boolean hasDesiredResourceUsageExportConfig(); + /** + * + * + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + * + * @return The desiredResourceUsageExportConfig. + */ + com.google.container.v1beta1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig(); + /** + * + * + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * + */ + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder + getDesiredResourceUsageExportConfigOrBuilder(); + + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + * + * @return Whether the desiredVerticalPodAutoscaling field is set. + */ + boolean hasDesiredVerticalPodAutoscaling(); + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + * + * @return The desiredVerticalPodAutoscaling. + */ + com.google.container.v1beta1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling(); + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * + */ + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder + getDesiredVerticalPodAutoscalingOrBuilder(); + + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * + * @return Whether the desiredPrivateClusterConfig field is set. + */ + boolean hasDesiredPrivateClusterConfig(); + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + * + * @return The desiredPrivateClusterConfig. + */ + com.google.container.v1beta1.PrivateClusterConfig getDesiredPrivateClusterConfig(); + /** + * + * + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + * + */ + com.google.container.v1beta1.PrivateClusterConfigOrBuilder + getDesiredPrivateClusterConfigOrBuilder(); + + /** + * + * + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return Whether the desiredIntraNodeVisibilityConfig field is set. + */ + boolean hasDesiredIntraNodeVisibilityConfig(); + /** + * + * + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + * + * @return The desiredIntraNodeVisibilityConfig. + */ + com.google.container.v1beta1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig(); + /** + * + * + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * + */ + com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder + getDesiredIntraNodeVisibilityConfigOrBuilder(); + + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return Whether the desiredDefaultSnatStatus field is set. + */ + boolean hasDesiredDefaultSnatStatus(); + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + * + * @return The desiredDefaultSnatStatus. + */ + com.google.container.v1beta1.DefaultSnatStatus getDesiredDefaultSnatStatus(); + /** + * + * + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus desired_default_snat_status = 28; + */ + com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder(); + + /** + * + * + *
+   * The desired telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + * + * @return Whether the desiredClusterTelemetry field is set. + */ + boolean hasDesiredClusterTelemetry(); + /** + * + * + *
+   * The desired telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + * + * @return The desiredClusterTelemetry. + */ + com.google.container.v1beta1.ClusterTelemetry getDesiredClusterTelemetry(); + /** + * + * + *
+   * The desired telemetry integration for the cluster.
+   * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + com.google.container.v1beta1.ClusterTelemetryOrBuilder getDesiredClusterTelemetryOrBuilder(); + + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + * + * @return Whether the desiredReleaseChannel field is set. + */ + boolean hasDesiredReleaseChannel(); + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + * + * @return The desiredReleaseChannel. + */ + com.google.container.v1beta1.ReleaseChannel getDesiredReleaseChannel(); + /** + * + * + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + com.google.container.v1beta1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder(); + + /** + * + * + *
+   * The desired Cloud TPU configuration.
+   * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + * + * @return Whether the desiredTpuConfig field is set. + */ + boolean hasDesiredTpuConfig(); + /** + * + * + *
+   * The desired Cloud TPU configuration.
+   * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + * + * @return The desiredTpuConfig. + */ + com.google.container.v1beta1.TpuConfig getDesiredTpuConfig(); + /** + * + * + *
+   * The desired Cloud TPU configuration.
+   * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + com.google.container.v1beta1.TpuConfigOrBuilder getDesiredTpuConfigOrBuilder(); + + /** + * + * + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.DatapathProvider desired_datapath_provider = 50; + * + * @return The desiredDatapathProvider. + */ + com.google.container.v1beta1.DatapathProvider getDesiredDatapathProvider(); + + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + * + * @return Whether the desiredNotificationConfig field is set. + */ + boolean hasDesiredNotificationConfig(); + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + * + * @return The desiredNotificationConfig. + */ + com.google.container.v1beta1.NotificationConfig getDesiredNotificationConfig(); + /** + * + * + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + com.google.container.v1beta1.NotificationConfigOrBuilder getDesiredNotificationConfigOrBuilder(); + + /** + * + * + *
+   * The Kubernetes version to change the master to. The only valid value is the
+   * latest supported version.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + * + * @return The desiredMasterVersion. + */ + java.lang.String getDesiredMasterVersion(); + /** + * + * + *
+   * The Kubernetes version to change the master to. The only valid value is the
+   * latest supported version.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + * + * @return The bytes for desiredMasterVersion. + */ + com.google.protobuf.ByteString getDesiredMasterVersionBytes(); + + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + * + * @return Whether the desiredDatabaseEncryption field is set. + */ + boolean hasDesiredDatabaseEncryption(); + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + * + * @return The desiredDatabaseEncryption. + */ + com.google.container.v1beta1.DatabaseEncryption getDesiredDatabaseEncryption(); + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + com.google.container.v1beta1.DatabaseEncryptionOrBuilder getDesiredDatabaseEncryptionOrBuilder(); + + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return Whether the desiredWorkloadIdentityConfig field is set. + */ + boolean hasDesiredWorkloadIdentityConfig(); + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + * + * @return The desiredWorkloadIdentityConfig. + */ + com.google.container.v1beta1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig(); + /** + * + * + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * + */ + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder + getDesiredWorkloadIdentityConfigOrBuilder(); + + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return Whether the desiredShieldedNodes field is set. + */ + boolean hasDesiredShieldedNodes(); + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + * + * @return The desiredShieldedNodes. + */ + com.google.container.v1beta1.ShieldedNodes getDesiredShieldedNodes(); + /** + * + * + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + com.google.container.v1beta1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder(); + + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + * + * @return Whether the desiredMaster field is set. + */ + boolean hasDesiredMaster(); + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + * + * @return The desiredMaster. + */ + com.google.container.v1beta1.Master getDesiredMaster(); + /** + * + * + *
+   * Configuration for master components.
+   * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + com.google.container.v1beta1.MasterOrBuilder getDesiredMasterOrBuilder(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java new file mode 100644 index 00000000..0f50c3ac --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java @@ -0,0 +1,1258 @@ +/* + * 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; + +/** + * + * + *
+ * CompleteIPRotationRequest moves the cluster master back into single-IP mode.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CompleteIPRotationRequest} + */ +public final class CompleteIPRotationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CompleteIPRotationRequest) + CompleteIPRotationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompleteIPRotationRequest.newBuilder() to construct. + private CompleteIPRotationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CompleteIPRotationRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CompleteIPRotationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CompleteIPRotationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CompleteIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CompleteIPRotationRequest.class, + com.google.container.v1beta1.CompleteIPRotationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.CompleteIPRotationRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.CompleteIPRotationRequest other = + (com.google.container.v1beta1.CompleteIPRotationRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.CompleteIPRotationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * CompleteIPRotationRequest moves the cluster master back into single-IP mode.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CompleteIPRotationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CompleteIPRotationRequest) + com.google.container.v1beta1.CompleteIPRotationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CompleteIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CompleteIPRotationRequest.class, + com.google.container.v1beta1.CompleteIPRotationRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.CompleteIPRotationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteIPRotationRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CompleteIPRotationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteIPRotationRequest build() { + com.google.container.v1beta1.CompleteIPRotationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteIPRotationRequest buildPartial() { + com.google.container.v1beta1.CompleteIPRotationRequest result = + new com.google.container.v1beta1.CompleteIPRotationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.CompleteIPRotationRequest) { + return mergeFrom((com.google.container.v1beta1.CompleteIPRotationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CompleteIPRotationRequest other) { + if (other == com.google.container.v1beta1.CompleteIPRotationRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.CompleteIPRotationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.CompleteIPRotationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to complete IP
+     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CompleteIPRotationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CompleteIPRotationRequest) + private static final com.google.container.v1beta1.CompleteIPRotationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CompleteIPRotationRequest(); + } + + public static com.google.container.v1beta1.CompleteIPRotationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteIPRotationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompleteIPRotationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteIPRotationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java new file mode 100644 index 00000000..456223dd --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * 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 CompleteIPRotationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CompleteIPRotationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to complete IP
+   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodes.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodes.java new file mode 100644 index 00000000..4afc9e73 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ConfidentialNodes is configuration for the confidential nodes feature, which
+ * makes nodes run on confidential VMs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ConfidentialNodes} + */ +public final class ConfidentialNodes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfidentialNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfidentialNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ConfidentialNodes.class, + com.google.container.v1beta1.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.v1beta1.ConfidentialNodes)) { + return super.equals(obj); + } + com.google.container.v1beta1.ConfidentialNodes other = + (com.google.container.v1beta1.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.v1beta1.ConfidentialNodes parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.ConfidentialNodes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.ConfidentialNodes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ConfidentialNodes parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ConfidentialNodes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.ConfidentialNodes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.ConfidentialNodes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.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.v1beta1.ConfidentialNodes} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ConfidentialNodes) + com.google.container.v1beta1.ConfidentialNodesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfidentialNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfidentialNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ConfidentialNodes.class, + com.google.container.v1beta1.ConfidentialNodes.Builder.class); + } + + // Construct using com.google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfidentialNodes_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodes getDefaultInstanceForType() { + return com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodes build() { + com.google.container.v1beta1.ConfidentialNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodes buildPartial() { + com.google.container.v1beta1.ConfidentialNodes result = + new com.google.container.v1beta1.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.v1beta1.ConfidentialNodes) { + return mergeFrom((com.google.container.v1beta1.ConfidentialNodes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ConfidentialNodes other) { + if (other == com.google.container.v1beta1.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.v1beta1.ConfidentialNodes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.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.v1beta1.ConfidentialNodes) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ConfidentialNodes) + private static final com.google.container.v1beta1.ConfidentialNodes DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ConfidentialNodes(); + } + + public static com.google.container.v1beta1.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.v1beta1.ConfidentialNodes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodesOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodesOrBuilder.java new file mode 100644 index 00000000..dc25d471 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ConfidentialNodesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.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-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfig.java new file mode 100644 index 00000000..f2e23fa1 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfig.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 options for the Config Connector add-on.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ConfigConnectorConfig} + */ +public final class ConfigConnectorConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ConfigConnectorConfig) + ConfigConnectorConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfigConnectorConfig.newBuilder() to construct. + private ConfigConnectorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfigConnectorConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfigConnectorConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ConfigConnectorConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfigConnectorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ConfigConnectorConfig.class, + com.google.container.v1beta1.ConfigConnectorConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Cloud Connector is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ConfigConnectorConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ConfigConnectorConfig other = + (com.google.container.v1beta1.ConfigConnectorConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ConfigConnectorConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ConfigConnectorConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration options for the Config Connector add-on.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ConfigConnectorConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ConfigConnectorConfig) + com.google.container.v1beta1.ConfigConnectorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfigConnectorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ConfigConnectorConfig.class, + com.google.container.v1beta1.ConfigConnectorConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ConfigConnectorConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ConfigConnectorConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ConfigConnectorConfig build() { + com.google.container.v1beta1.ConfigConnectorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ConfigConnectorConfig buildPartial() { + com.google.container.v1beta1.ConfigConnectorConfig result = + new com.google.container.v1beta1.ConfigConnectorConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ConfigConnectorConfig) { + return mergeFrom((com.google.container.v1beta1.ConfigConnectorConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ConfigConnectorConfig other) { + if (other == com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ConfigConnectorConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ConfigConnectorConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ConfigConnectorConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ConfigConnectorConfig) + private static final com.google.container.v1beta1.ConfigConnectorConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ConfigConnectorConfig(); + } + + public static com.google.container.v1beta1.ConfigConnectorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigConnectorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigConnectorConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ConfigConnectorConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfigOrBuilder.java new file mode 100644 index 00000000..03bbc8fc --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ConfigConnectorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ConfigConnectorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Cloud Connector is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java new file mode 100644 index 00000000..c900b5e4 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java @@ -0,0 +1,1365 @@ +/* + * 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; + +/** + * + * + *
+ * CreateClusterRequest creates a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CreateClusterRequest} + */ +public final class CreateClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CreateClusterRequest) + CreateClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateClusterRequest.newBuilder() to construct. + private CreateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateClusterRequest() { + projectId_ = ""; + zone_ = ""; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateClusterRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + com.google.container.v1beta1.Cluster.Builder subBuilder = null; + if (cluster_ != null) { + subBuilder = cluster_.toBuilder(); + } + cluster_ = + input.readMessage( + com.google.container.v1beta1.Cluster.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cluster_); + cluster_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!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_CreateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CreateClusterRequest.class, + com.google.container.v1beta1.CreateClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_FIELD_NUMBER = 3; + private com.google.container.v1beta1.Cluster cluster_; + /** + * + * + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + @java.lang.Override + public boolean hasCluster() { + return cluster_ != null; + } + /** + * + * + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + @java.lang.Override + public com.google.container.v1beta1.Cluster getCluster() { + return cluster_ == null ? com.google.container.v1beta1.Cluster.getDefaultInstance() : cluster_; + } + /** + * + * + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterOrBuilder getClusterOrBuilder() { + return getCluster(); + } + + public static final int PARENT_FIELD_NUMBER = 5; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 5; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 5; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (cluster_ != null) { + output.writeMessage(3, getCluster()); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (cluster_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster()); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.CreateClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.CreateClusterRequest other = + (com.google.container.v1beta1.CreateClusterRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (hasCluster() != other.hasCluster()) return false; + if (hasCluster()) { + if (!getCluster().equals(other.getCluster())) return false; + } + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + if (hasCluster()) { + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CreateClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.CreateClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CreateClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CreateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.CreateClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * CreateClusterRequest creates a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CreateClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CreateClusterRequest) + com.google.container.v1beta1.CreateClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CreateClusterRequest.class, + com.google.container.v1beta1.CreateClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.CreateClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + if (clusterBuilder_ == null) { + cluster_ = null; + } else { + cluster_ = null; + clusterBuilder_ = null; + } + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateClusterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CreateClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CreateClusterRequest build() { + com.google.container.v1beta1.CreateClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateClusterRequest buildPartial() { + com.google.container.v1beta1.CreateClusterRequest result = + new com.google.container.v1beta1.CreateClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + if (clusterBuilder_ == null) { + result.cluster_ = cluster_; + } else { + result.cluster_ = clusterBuilder_.build(); + } + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.CreateClusterRequest) { + return mergeFrom((com.google.container.v1beta1.CreateClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CreateClusterRequest other) { + if (other == com.google.container.v1beta1.CreateClusterRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.CreateClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.CreateClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.Cluster cluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Cluster, + com.google.container.v1beta1.Cluster.Builder, + com.google.container.v1beta1.ClusterOrBuilder> + clusterBuilder_; + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + public boolean hasCluster() { + return clusterBuilder_ != null || cluster_ != null; + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + public com.google.container.v1beta1.Cluster getCluster() { + if (clusterBuilder_ == null) { + return cluster_ == null + ? com.google.container.v1beta1.Cluster.getDefaultInstance() + : cluster_; + } else { + return clusterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.container.v1beta1.Cluster value) { + if (clusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + onChanged(); + } else { + clusterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.container.v1beta1.Cluster.Builder builderForValue) { + if (clusterBuilder_ == null) { + cluster_ = builderForValue.build(); + onChanged(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCluster(com.google.container.v1beta1.Cluster value) { + if (clusterBuilder_ == null) { + if (cluster_ != null) { + cluster_ = + com.google.container.v1beta1.Cluster.newBuilder(cluster_) + .mergeFrom(value) + .buildPartial(); + } else { + cluster_ = value; + } + onChanged(); + } else { + clusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCluster() { + if (clusterBuilder_ == null) { + cluster_ = null; + onChanged(); + } else { + cluster_ = null; + clusterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.Cluster.Builder getClusterBuilder() { + + onChanged(); + return getClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.ClusterOrBuilder getClusterOrBuilder() { + if (clusterBuilder_ != null) { + return clusterBuilder_.getMessageOrBuilder(); + } else { + return cluster_ == null + ? com.google.container.v1beta1.Cluster.getDefaultInstance() + : cluster_; + } + } + /** + * + * + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+     * 
+ * + * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Cluster, + com.google.container.v1beta1.Cluster.Builder, + com.google.container.v1beta1.ClusterOrBuilder> + getClusterFieldBuilder() { + if (clusterBuilder_ == null) { + clusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Cluster, + com.google.container.v1beta1.Cluster.Builder, + com.google.container.v1beta1.ClusterOrBuilder>( + getCluster(), getParentForChildren(), isClean()); + cluster_ = null; + } + return clusterBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 5; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 5; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 5; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 5; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the cluster will be created.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 5; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CreateClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CreateClusterRequest) + private static final com.google.container.v1beta1.CreateClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CreateClusterRequest(); + } + + public static com.google.container.v1beta1.CreateClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java new file mode 100644 index 00000000..b2df9279 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java @@ -0,0 +1,159 @@ +/* + * 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 CreateClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CreateClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + boolean hasCluster(); + /** + * + * + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + com.google.container.v1beta1.Cluster getCluster(); + /** + * + * + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1beta1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.container.v1beta1.ClusterOrBuilder getClusterOrBuilder(); + + /** + * + * + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 5; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 5; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java new file mode 100644 index 00000000..05bb552c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java @@ -0,0 +1,1565 @@ +/* + * 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; + +/** + * + * + *
+ * CreateNodePoolRequest creates a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CreateNodePoolRequest} + */ +public final class CreateNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CreateNodePoolRequest) + CreateNodePoolRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateNodePoolRequest.newBuilder() to construct. + private CreateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateNodePoolRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateNodePoolRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + com.google.container.v1beta1.NodePool.Builder subBuilder = null; + if (nodePool_ != null) { + subBuilder = nodePool_.toBuilder(); + } + nodePool_ = + input.readMessage( + com.google.container.v1beta1.NodePool.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodePool_); + nodePool_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!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_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CreateNodePoolRequest.class, + com.google.container.v1beta1.CreateNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NodePool nodePool_; + /** + * + * + *
+   * Required. The node pool to create.
+   * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the nodePool field is set. + */ + @java.lang.Override + public boolean hasNodePool() { + return nodePool_ != null; + } + /** + * + * + *
+   * Required. The node pool to create.
+   * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePool. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool getNodePool() { + return nodePool_ == null + ? com.google.container.v1beta1.NodePool.getDefaultInstance() + : nodePool_; + } + /** + * + * + *
+   * Required. The node pool to create.
+   * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolOrBuilder() { + return getNodePool(); + } + + public static final int PARENT_FIELD_NUMBER = 6; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 6; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 6; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (nodePool_ != null) { + output.writeMessage(4, getNodePool()); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (nodePool_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNodePool()); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.CreateNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.CreateNodePoolRequest other = + (com.google.container.v1beta1.CreateNodePoolRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (hasNodePool() != other.hasNodePool()) return false; + if (hasNodePool()) { + if (!getNodePool().equals(other.getNodePool())) return false; + } + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasNodePool()) { + hash = (37 * hash) + NODE_POOL_FIELD_NUMBER; + hash = (53 * hash) + getNodePool().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.CreateNodePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * CreateNodePoolRequest creates a node pool for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CreateNodePoolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CreateNodePoolRequest) + com.google.container.v1beta1.CreateNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CreateNodePoolRequest.class, + com.google.container.v1beta1.CreateNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.CreateNodePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (nodePoolBuilder_ == null) { + nodePool_ = null; + } else { + nodePool_ = null; + nodePoolBuilder_ = null; + } + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CreateNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CreateNodePoolRequest build() { + com.google.container.v1beta1.CreateNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateNodePoolRequest buildPartial() { + com.google.container.v1beta1.CreateNodePoolRequest result = + new com.google.container.v1beta1.CreateNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (nodePoolBuilder_ == null) { + result.nodePool_ = nodePool_; + } else { + result.nodePool_ = nodePoolBuilder_.build(); + } + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.CreateNodePoolRequest) { + return mergeFrom((com.google.container.v1beta1.CreateNodePoolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CreateNodePoolRequest other) { + if (other == com.google.container.v1beta1.CreateNodePoolRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasNodePool()) { + mergeNodePool(other.getNodePool()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.CreateNodePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.CreateNodePoolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePool nodePool_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder> + nodePoolBuilder_; + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the nodePool field is set. + */ + public boolean hasNodePool() { + return nodePoolBuilder_ != null || nodePool_ != null; + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePool. + */ + public com.google.container.v1beta1.NodePool getNodePool() { + if (nodePoolBuilder_ == null) { + return nodePool_ == null + ? com.google.container.v1beta1.NodePool.getDefaultInstance() + : nodePool_; + } else { + return nodePoolBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNodePool(com.google.container.v1beta1.NodePool value) { + if (nodePoolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePool_ = value; + onChanged(); + } else { + nodePoolBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNodePool(com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolBuilder_ == null) { + nodePool_ = builderForValue.build(); + onChanged(); + } else { + nodePoolBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeNodePool(com.google.container.v1beta1.NodePool value) { + if (nodePoolBuilder_ == null) { + if (nodePool_ != null) { + nodePool_ = + com.google.container.v1beta1.NodePool.newBuilder(nodePool_) + .mergeFrom(value) + .buildPartial(); + } else { + nodePool_ = value; + } + onChanged(); + } else { + nodePoolBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNodePool() { + if (nodePoolBuilder_ == null) { + nodePool_ = null; + onChanged(); + } else { + nodePool_ = null; + nodePoolBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NodePool.Builder getNodePoolBuilder() { + + onChanged(); + return getNodePoolFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolOrBuilder() { + if (nodePoolBuilder_ != null) { + return nodePoolBuilder_.getMessageOrBuilder(); + } else { + return nodePool_ == null + ? com.google.container.v1beta1.NodePool.getDefaultInstance() + : nodePool_; + } + } + /** + * + * + *
+     * Required. The node pool to create.
+     * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder> + getNodePoolFieldBuilder() { + if (nodePoolBuilder_ == null) { + nodePoolBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder>( + getNodePool(), getParentForChildren(), isClean()); + nodePool_ = null; + } + return nodePoolBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 6; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 6; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 6; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 6; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project, location, cluster id) where the node pool will be
+     * created. Specified in the format
+     * `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 6; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.CreateNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CreateNodePoolRequest) + private static final com.google.container.v1beta1.CreateNodePoolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CreateNodePoolRequest(); + } + + public static com.google.container.v1beta1.CreateNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateNodePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.CreateNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java new file mode 100644 index 00000000..fa676b63 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java @@ -0,0 +1,192 @@ +/* + * 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 CreateNodePoolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CreateNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The node pool to create.
+   * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the nodePool field is set. + */ + boolean hasNodePool(); + /** + * + * + *
+   * Required. The node pool to create.
+   * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePool. + */ + com.google.container.v1beta1.NodePool getNodePool(); + /** + * + * + *
+   * Required. The node pool to create.
+   * 
+ * + * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.container.v1beta1.NodePoolOrBuilder getNodePoolOrBuilder(); + + /** + * + * + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 6; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * The parent (project, location, cluster id) where the node pool will be
+   * created. Specified in the format
+   * `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 6; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java new file mode 100644 index 00000000..3229335d --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java @@ -0,0 +1,829 @@ +/* + * 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; + +/** + * + * + *
+ * Time window specified for daily maintenance operations.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DailyMaintenanceWindow} + */ +public final class DailyMaintenanceWindow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DailyMaintenanceWindow) + DailyMaintenanceWindowOrBuilder { + private static final long serialVersionUID = 0L; + // Use DailyMaintenanceWindow.newBuilder() to construct. + private DailyMaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DailyMaintenanceWindow() { + startTime_ = ""; + duration_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DailyMaintenanceWindow(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DailyMaintenanceWindow( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + startTime_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + duration_ = s; + break; + } + default: + { + if (!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_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DailyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DailyMaintenanceWindow.class, + com.google.container.v1beta1.DailyMaintenanceWindow.Builder.class); + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private volatile java.lang.Object startTime_; + /** + * + * + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } + } + /** + * + * + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + * + * @return The bytes for startTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DURATION_FIELD_NUMBER = 3; + private volatile java.lang.Object duration_; + /** + * + * + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + * + * @return The duration. + */ + @java.lang.Override + public java.lang.String getDuration() { + java.lang.Object ref = duration_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + duration_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + * + * @return The bytes for duration. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDurationBytes() { + java.lang.Object ref = duration_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + duration_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getStartTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startTime_); + } + if (!getDurationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, duration_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getStartTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startTime_); + } + if (!getDurationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, duration_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.DailyMaintenanceWindow)) { + return super.equals(obj); + } + com.google.container.v1beta1.DailyMaintenanceWindow other = + (com.google.container.v1beta1.DailyMaintenanceWindow) obj; + + if (!getStartTime().equals(other.getStartTime())) return false; + if (!getDuration().equals(other.getDuration())) 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) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.DailyMaintenanceWindow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Time window specified for daily maintenance operations.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.DailyMaintenanceWindow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.DailyMaintenanceWindow) + com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DailyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DailyMaintenanceWindow.class, + com.google.container.v1beta1.DailyMaintenanceWindow.Builder.class); + } + + // Construct using com.google.container.v1beta1.DailyMaintenanceWindow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + startTime_ = ""; + + duration_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow getDefaultInstanceForType() { + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow build() { + com.google.container.v1beta1.DailyMaintenanceWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow buildPartial() { + com.google.container.v1beta1.DailyMaintenanceWindow result = + new com.google.container.v1beta1.DailyMaintenanceWindow(this); + result.startTime_ = startTime_; + result.duration_ = duration_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.DailyMaintenanceWindow) { + return mergeFrom((com.google.container.v1beta1.DailyMaintenanceWindow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DailyMaintenanceWindow other) { + if (other == com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance()) + return this; + if (!other.getStartTime().isEmpty()) { + startTime_ = other.startTime_; + onChanged(); + } + if (!other.getDuration().isEmpty()) { + duration_ = other.duration_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.DailyMaintenanceWindow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.DailyMaintenanceWindow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object startTime_ = ""; + /** + * + * + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + * + * @return The startTime. + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + * + * @return The bytes for startTime. + */ + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + * + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + startTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + * + * @return This builder for chaining. + */ + public Builder clearStartTime() { + + startTime_ = getDefaultInstance().getStartTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * Time within the maintenance window to start the maintenance operations.
+     * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+     * 
+ * + * string start_time = 2; + * + * @param value The bytes for startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + startTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object duration_ = ""; + /** + * + * + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + * + * @return The duration. + */ + public java.lang.String getDuration() { + java.lang.Object ref = duration_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + duration_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + * + * @return The bytes for duration. + */ + public com.google.protobuf.ByteString getDurationBytes() { + java.lang.Object ref = duration_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + duration_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + * + * @param value The duration to set. + * @return This builder for chaining. + */ + public Builder setDuration(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + duration_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + * + * @return This builder for chaining. + */ + public Builder clearDuration() { + + duration_ = getDefaultInstance().getDuration(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * 
+ * + * string duration = 3; + * + * @param value The bytes for duration to set. + * @return This builder for chaining. + */ + public Builder setDurationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + duration_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.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.DailyMaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DailyMaintenanceWindow) + private static final com.google.container.v1beta1.DailyMaintenanceWindow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DailyMaintenanceWindow(); + } + + public static com.google.container.v1beta1.DailyMaintenanceWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DailyMaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DailyMaintenanceWindow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java new file mode 100644 index 00000000..68dea28b --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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 DailyMaintenanceWindowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DailyMaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + * + * @return The startTime. + */ + java.lang.String getStartTime(); + /** + * + * + *
+   * Time within the maintenance window to start the maintenance operations.
+   * It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
+   * 
+ * + * string start_time = 2; + * + * @return The bytes for startTime. + */ + com.google.protobuf.ByteString getStartTimeBytes(); + + /** + * + * + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + * + * @return The duration. + */ + java.lang.String getDuration(); + /** + * + * + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * 
+ * + * string duration = 3; + * + * @return The bytes for duration. + */ + com.google.protobuf.ByteString getDurationBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryption.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryption.java new file mode 100644 index 00000000..00aa7e18 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryption.java @@ -0,0 +1,955 @@ +/* + * 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 of etcd encryption.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DatabaseEncryption} + */ +public final class DatabaseEncryption extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DatabaseEncryption) + DatabaseEncryptionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatabaseEncryption.newBuilder() to construct. + private DatabaseEncryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatabaseEncryption() { + state_ = 0; + keyName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatabaseEncryption(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DatabaseEncryption( + 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(); + + keyName_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + state_ = 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_DatabaseEncryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DatabaseEncryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DatabaseEncryption.class, + com.google.container.v1beta1.DatabaseEncryption.Builder.class); + } + + /** + * + * + *
+   * State of etcd encryption.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.DatabaseEncryption.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Should never be set
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
+     * Secrets in etcd are encrypted.
+     * 
+ * + * ENCRYPTED = 1; + */ + ENCRYPTED(1), + /** + * + * + *
+     * Secrets in etcd are stored in plain text (at etcd level) - this is
+     * unrelated to Compute Engine level full disk encryption.
+     * 
+ * + * DECRYPTED = 2; + */ + DECRYPTED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Should never be set
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * + * + *
+     * Secrets in etcd are encrypted.
+     * 
+ * + * ENCRYPTED = 1; + */ + public static final int ENCRYPTED_VALUE = 1; + /** + * + * + *
+     * Secrets in etcd are stored in plain text (at etcd level) - this is
+     * unrelated to Compute Engine level full disk encryption.
+     * 
+ * + * DECRYPTED = 2; + */ + public static final int DECRYPTED_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 State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return ENCRYPTED; + case 2: + return DECRYPTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.DatabaseEncryption.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.DatabaseEncryption.State) + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + * + * + *
+   * Denotes the state of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Denotes the state of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption.State getState() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DatabaseEncryption.State result = + com.google.container.v1beta1.DatabaseEncryption.State.valueOf(state_); + return result == null + ? com.google.container.v1beta1.DatabaseEncryption.State.UNRECOGNIZED + : result; + } + + public static final int KEY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object keyName_; + /** + * + * + *
+   * Name of CloudKMS key to use for the encryption of secrets in etcd.
+   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+   * 
+ * + * string key_name = 1; + * + * @return The keyName. + */ + @java.lang.Override + public java.lang.String getKeyName() { + java.lang.Object ref = keyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyName_ = s; + return s; + } + } + /** + * + * + *
+   * Name of CloudKMS key to use for the encryption of secrets in etcd.
+   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+   * 
+ * + * string key_name = 1; + * + * @return The bytes for keyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = 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 (!getKeyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyName_); + } + if (state_ != com.google.container.v1beta1.DatabaseEncryption.State.UNKNOWN.getNumber()) { + output.writeEnum(2, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyName_); + } + if (state_ != com.google.container.v1beta1.DatabaseEncryption.State.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + 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.DatabaseEncryption)) { + return super.equals(obj); + } + com.google.container.v1beta1.DatabaseEncryption other = + (com.google.container.v1beta1.DatabaseEncryption) obj; + + if (state_ != other.state_) return false; + if (!getKeyName().equals(other.getKeyName())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKeyName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.DatabaseEncryption parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DatabaseEncryption 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.DatabaseEncryption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DatabaseEncryption 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.DatabaseEncryption parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DatabaseEncryption parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DatabaseEncryption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DatabaseEncryption 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.DatabaseEncryption parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DatabaseEncryption 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.DatabaseEncryption parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DatabaseEncryption 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.DatabaseEncryption 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 etcd encryption.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.DatabaseEncryption} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.DatabaseEncryption) + com.google.container.v1beta1.DatabaseEncryptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DatabaseEncryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DatabaseEncryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DatabaseEncryption.class, + com.google.container.v1beta1.DatabaseEncryption.Builder.class); + } + + // Construct using com.google.container.v1beta1.DatabaseEncryption.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(); + state_ = 0; + + keyName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DatabaseEncryption_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption getDefaultInstanceForType() { + return com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption build() { + com.google.container.v1beta1.DatabaseEncryption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption buildPartial() { + com.google.container.v1beta1.DatabaseEncryption result = + new com.google.container.v1beta1.DatabaseEncryption(this); + result.state_ = state_; + result.keyName_ = keyName_; + 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.DatabaseEncryption) { + return mergeFrom((com.google.container.v1beta1.DatabaseEncryption) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DatabaseEncryption other) { + if (other == com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getKeyName().isEmpty()) { + keyName_ = other.keyName_; + 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.DatabaseEncryption parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.DatabaseEncryption) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Denotes the state of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Denotes the state of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Denotes the state of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.container.v1beta1.DatabaseEncryption.State getState() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DatabaseEncryption.State result = + com.google.container.v1beta1.DatabaseEncryption.State.valueOf(state_); + return result == null + ? com.google.container.v1beta1.DatabaseEncryption.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Denotes the state of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.container.v1beta1.DatabaseEncryption.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Denotes the state of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object keyName_ = ""; + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @return The keyName. + */ + public java.lang.String getKeyName() { + java.lang.Object ref = keyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @return The bytes for keyName. + */ + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @param value The keyName to set. + * @return This builder for chaining. + */ + public Builder setKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + keyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearKeyName() { + + keyName_ = getDefaultInstance().getKeyName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of CloudKMS key to use for the encryption of secrets in etcd.
+     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+     * 
+ * + * string key_name = 1; + * + * @param value The bytes for keyName to set. + * @return This builder for chaining. + */ + public Builder setKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + keyName_ = 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.DatabaseEncryption) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DatabaseEncryption) + private static final com.google.container.v1beta1.DatabaseEncryption DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DatabaseEncryption(); + } + + public static com.google.container.v1beta1.DatabaseEncryption getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatabaseEncryption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DatabaseEncryption(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.DatabaseEncryption getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryptionOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryptionOrBuilder.java new file mode 100644 index 00000000..431c6fef --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryptionOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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 DatabaseEncryptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DatabaseEncryption) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Denotes the state of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Denotes the state of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * + * @return The state. + */ + com.google.container.v1beta1.DatabaseEncryption.State getState(); + + /** + * + * + *
+   * Name of CloudKMS key to use for the encryption of secrets in etcd.
+   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+   * 
+ * + * string key_name = 1; + * + * @return The keyName. + */ + java.lang.String getKeyName(); + /** + * + * + *
+   * Name of CloudKMS key to use for the encryption of secrets in etcd.
+   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
+   * 
+ * + * string key_name = 1; + * + * @return The bytes for keyName. + */ + com.google.protobuf.ByteString getKeyNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatapathProvider.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatapathProvider.java new file mode 100644 index 00000000..3e5bc1d1 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * The datapath provider selects the implementation of the Kubernetes networking
+ * // model for service resolution and network policy enforcement.
+ * 
+ * + * Protobuf enum {@code google.container.v1beta1.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.v1beta1.ClusterServiceProto.getDescriptor().getEnumTypes().get(0); + } + + 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.v1beta1.DatapathProvider) +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatus.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatus.java new file mode 100644 index 00000000..a9471d73 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatus.java @@ -0,0 +1,546 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * DefaultSnatStatus contains the desired state of whether default sNAT should
+ * be disabled on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DefaultSnatStatus} + */ +public final class DefaultSnatStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DefaultSnatStatus) + DefaultSnatStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use DefaultSnatStatus.newBuilder() to construct. + private DefaultSnatStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DefaultSnatStatus() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DefaultSnatStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DefaultSnatStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DefaultSnatStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DefaultSnatStatus.class, + com.google.container.v1beta1.DefaultSnatStatus.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Disables cluster default sNAT rules.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.DefaultSnatStatus)) { + return super.equals(obj); + } + com.google.container.v1beta1.DefaultSnatStatus other = + (com.google.container.v1beta1.DefaultSnatStatus) obj; + + if (getDisabled() != other.getDisabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.DefaultSnatStatus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DefaultSnatStatus parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DefaultSnatStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DefaultSnatStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DefaultSnatStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DefaultSnatStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DefaultSnatStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DefaultSnatStatus parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.DefaultSnatStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DefaultSnatStatus parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.DefaultSnatStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DefaultSnatStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.DefaultSnatStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * DefaultSnatStatus contains the desired state of whether default sNAT should
+   * be disabled on the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.DefaultSnatStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.DefaultSnatStatus) + com.google.container.v1beta1.DefaultSnatStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DefaultSnatStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DefaultSnatStatus.class, + com.google.container.v1beta1.DefaultSnatStatus.Builder.class); + } + + // Construct using com.google.container.v1beta1.DefaultSnatStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatus getDefaultInstanceForType() { + return com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatus build() { + com.google.container.v1beta1.DefaultSnatStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatus buildPartial() { + com.google.container.v1beta1.DefaultSnatStatus result = + new com.google.container.v1beta1.DefaultSnatStatus(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.DefaultSnatStatus) { + return mergeFrom((com.google.container.v1beta1.DefaultSnatStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DefaultSnatStatus other) { + if (other == com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.DefaultSnatStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.DefaultSnatStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_; + /** + * + * + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DefaultSnatStatus) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DefaultSnatStatus) + private static final com.google.container.v1beta1.DefaultSnatStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DefaultSnatStatus(); + } + + public static com.google.container.v1beta1.DefaultSnatStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefaultSnatStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DefaultSnatStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatusOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatusOrBuilder.java new file mode 100644 index 00000000..c2d2542c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatusOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface DefaultSnatStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DefaultSnatStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Disables cluster default sNAT rules.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java new file mode 100644 index 00000000..65dca6dc --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java @@ -0,0 +1,1257 @@ +/* + * 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; + +/** + * + * + *
+ * DeleteClusterRequest deletes a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DeleteClusterRequest} + */ +public final class DeleteClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DeleteClusterRequest) + DeleteClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteClusterRequest.newBuilder() to construct. + private DeleteClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteClusterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteClusterRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DeleteClusterRequest.class, + com.google.container.v1beta1.DeleteClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 4; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.DeleteClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.DeleteClusterRequest other = + (com.google.container.v1beta1.DeleteClusterRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.DeleteClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DeleteClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DeleteClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.DeleteClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * DeleteClusterRequest deletes a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.DeleteClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.DeleteClusterRequest) + com.google.container.v1beta1.DeleteClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DeleteClusterRequest.class, + com.google.container.v1beta1.DeleteClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.DeleteClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteClusterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.DeleteClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteClusterRequest build() { + com.google.container.v1beta1.DeleteClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteClusterRequest buildPartial() { + com.google.container.v1beta1.DeleteClusterRequest result = + new com.google.container.v1beta1.DeleteClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.DeleteClusterRequest) { + return mergeFrom((com.google.container.v1beta1.DeleteClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DeleteClusterRequest other) { + if (other == com.google.container.v1beta1.DeleteClusterRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.DeleteClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.DeleteClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to delete.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 4; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DeleteClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DeleteClusterRequest) + private static final com.google.container.v1beta1.DeleteClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DeleteClusterRequest(); + } + + public static com.google.container.v1beta1.DeleteClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java new file mode 100644 index 00000000..2a7c3a42 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * 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 DeleteClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DeleteClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 4; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to delete.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java new file mode 100644 index 00000000..7b9be923 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java @@ -0,0 +1,1464 @@ +/* + * 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; + +/** + * + * + *
+ * DeleteNodePoolRequest deletes a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DeleteNodePoolRequest} + */ +public final class DeleteNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DeleteNodePoolRequest) + DeleteNodePoolRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteNodePoolRequest.newBuilder() to construct. + private DeleteNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteNodePoolRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteNodePoolRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DeleteNodePoolRequest.class, + com.google.container.v1beta1.DeleteNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.DeleteNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.DeleteNodePoolRequest other = + (com.google.container.v1beta1.DeleteNodePoolRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getNodePoolId().equals(other.getNodePoolId())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.DeleteNodePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * DeleteNodePoolRequest deletes a node pool for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.DeleteNodePoolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.DeleteNodePoolRequest) + com.google.container.v1beta1.DeleteNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DeleteNodePoolRequest.class, + com.google.container.v1beta1.DeleteNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.DeleteNodePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.DeleteNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteNodePoolRequest build() { + com.google.container.v1beta1.DeleteNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteNodePoolRequest buildPartial() { + com.google.container.v1beta1.DeleteNodePoolRequest result = + new com.google.container.v1beta1.DeleteNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.DeleteNodePoolRequest) { + return mergeFrom((com.google.container.v1beta1.DeleteNodePoolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DeleteNodePoolRequest other) { + if (other == com.google.container.v1beta1.DeleteNodePoolRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.DeleteNodePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.DeleteNodePoolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * delete. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DeleteNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DeleteNodePoolRequest) + private static final com.google.container.v1beta1.DeleteNodePoolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DeleteNodePoolRequest(); + } + + public static com.google.container.v1beta1.DeleteNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteNodePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.DeleteNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java new file mode 100644 index 00000000..76db6dd7 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java @@ -0,0 +1,182 @@ +/* + * 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 DeleteNodePoolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DeleteNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + java.lang.String getNodePoolId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getNodePoolIdBytes(); + + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * delete. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfig.java new file mode 100644 index 00000000..213a6448 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfig.java @@ -0,0 +1,544 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for NodeLocal DNSCache
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DnsCacheConfig} + */ +public final class DnsCacheConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DnsCacheConfig) + DnsCacheConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DnsCacheConfig.newBuilder() to construct. + private DnsCacheConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DnsCacheConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DnsCacheConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DnsCacheConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DnsCacheConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DnsCacheConfig.class, + com.google.container.v1beta1.DnsCacheConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether NodeLocal DNSCache is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.DnsCacheConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.DnsCacheConfig other = + (com.google.container.v1beta1.DnsCacheConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.DnsCacheConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DnsCacheConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DnsCacheConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DnsCacheConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DnsCacheConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.DnsCacheConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.DnsCacheConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DnsCacheConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.DnsCacheConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DnsCacheConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.DnsCacheConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DnsCacheConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.DnsCacheConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for NodeLocal DNSCache
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.DnsCacheConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.DnsCacheConfig) + com.google.container.v1beta1.DnsCacheConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DnsCacheConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DnsCacheConfig.class, + com.google.container.v1beta1.DnsCacheConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.DnsCacheConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DnsCacheConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DnsCacheConfig build() { + com.google.container.v1beta1.DnsCacheConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DnsCacheConfig buildPartial() { + com.google.container.v1beta1.DnsCacheConfig result = + new com.google.container.v1beta1.DnsCacheConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.DnsCacheConfig) { + return mergeFrom((com.google.container.v1beta1.DnsCacheConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DnsCacheConfig other) { + if (other == com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.DnsCacheConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.DnsCacheConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.DnsCacheConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DnsCacheConfig) + private static final com.google.container.v1beta1.DnsCacheConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DnsCacheConfig(); + } + + public static com.google.container.v1beta1.DnsCacheConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DnsCacheConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DnsCacheConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.DnsCacheConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfigOrBuilder.java new file mode 100644 index 00000000..2d4b812a --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface DnsCacheConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DnsCacheConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether NodeLocal DNSCache is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfig.java new file mode 100644 index 00000000..3f1cf182 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfig.java @@ -0,0 +1,556 @@ +/* + * 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; + +/** + * + * + *
+ * EphemeralStorageConfig contains configuration for the ephemeral storage
+ * filesystem.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.EphemeralStorageConfig} + */ +public final class EphemeralStorageConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.EphemeralStorageConfig) + EphemeralStorageConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use EphemeralStorageConfig.newBuilder() to construct. + private EphemeralStorageConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EphemeralStorageConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EphemeralStorageConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EphemeralStorageConfig( + 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: + { + localSsdCount_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_EphemeralStorageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_EphemeralStorageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.EphemeralStorageConfig.class, + com.google.container.v1beta1.EphemeralStorageConfig.Builder.class); + } + + public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 1; + private int localSsdCount_; + /** + * + * + *
+   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+   * interfaces. Each local SSD is 375 GB in size.
+   * If zero, it means to disable using local SSDs as ephemeral storage.
+   * 
+ * + * int32 local_ssd_count = 1; + * + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + + 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 (localSsdCount_ != 0) { + output.writeInt32(1, localSsdCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (localSsdCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, localSsdCount_); + } + 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.EphemeralStorageConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.EphemeralStorageConfig other = + (com.google.container.v1beta1.EphemeralStorageConfig) obj; + + if (getLocalSsdCount() != other.getLocalSsdCount()) 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) + LOCAL_SSD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getLocalSsdCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.EphemeralStorageConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.EphemeralStorageConfig 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.EphemeralStorageConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.EphemeralStorageConfig 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.EphemeralStorageConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.EphemeralStorageConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.EphemeralStorageConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.EphemeralStorageConfig 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.EphemeralStorageConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.EphemeralStorageConfig 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.EphemeralStorageConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.EphemeralStorageConfig 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.EphemeralStorageConfig 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; + } + /** + * + * + *
+   * EphemeralStorageConfig contains configuration for the ephemeral storage
+   * filesystem.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.EphemeralStorageConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.EphemeralStorageConfig) + com.google.container.v1beta1.EphemeralStorageConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_EphemeralStorageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_EphemeralStorageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.EphemeralStorageConfig.class, + com.google.container.v1beta1.EphemeralStorageConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.EphemeralStorageConfig.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(); + localSsdCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_EphemeralStorageConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageConfig build() { + com.google.container.v1beta1.EphemeralStorageConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageConfig buildPartial() { + com.google.container.v1beta1.EphemeralStorageConfig result = + new com.google.container.v1beta1.EphemeralStorageConfig(this); + result.localSsdCount_ = localSsdCount_; + 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.EphemeralStorageConfig) { + return mergeFrom((com.google.container.v1beta1.EphemeralStorageConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.EphemeralStorageConfig other) { + if (other == com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance()) + return this; + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + 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.EphemeralStorageConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.EphemeralStorageConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int localSsdCount_; + /** + * + * + *
+     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+     * interfaces. Each local SSD is 375 GB in size.
+     * If zero, it means to disable using local SSDs as ephemeral storage.
+     * 
+ * + * int32 local_ssd_count = 1; + * + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + /** + * + * + *
+     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+     * interfaces. Each local SSD is 375 GB in size.
+     * If zero, it means to disable using local SSDs as ephemeral storage.
+     * 
+ * + * int32 local_ssd_count = 1; + * + * @param value The localSsdCount to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+     * interfaces. Each local SSD is 375 GB in size.
+     * If zero, it means to disable using local SSDs as ephemeral storage.
+     * 
+ * + * int32 local_ssd_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearLocalSsdCount() { + + localSsdCount_ = 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.EphemeralStorageConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.EphemeralStorageConfig) + private static final com.google.container.v1beta1.EphemeralStorageConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.EphemeralStorageConfig(); + } + + public static com.google.container.v1beta1.EphemeralStorageConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EphemeralStorageConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EphemeralStorageConfig(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.EphemeralStorageConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfigOrBuilder.java new file mode 100644 index 00000000..6a4da142 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfigOrBuilder.java @@ -0,0 +1,40 @@ +/* + * 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 EphemeralStorageConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.EphemeralStorageConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+   * interfaces. Each local SSD is 375 GB in size.
+   * If zero, it means to disable using local SSDs as ephemeral storage.
+   * 
+ * + * int32 local_ssd_count = 1; + * + * @return The localSsdCount. + */ + int getLocalSsdCount(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfig.java new file mode 100644 index 00000000..7b3fcc0d --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfig.java @@ -0,0 +1,554 @@ +/* + * 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 Compute Engine PD CSI driver. This option can only be
+ * enabled at cluster creation time.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GcePersistentDiskCsiDriverConfig} + */ +public final class GcePersistentDiskCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.class, + com.google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig other = + (com.google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.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. This option can only be
+   * enabled at cluster creation time.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GcePersistentDiskCsiDriverConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GcePersistentDiskCsiDriverConfig) + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.class, + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + getDefaultInstanceForType() { + return com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig build() { + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig buildPartial() { + com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig result = + new com.google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig) { + return mergeFrom((com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig other) { + if (other + == com.google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcePersistentDiskCsiDriverConfig) + private static final com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig(); + } + + public static com.google.container.v1beta1.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.v1beta1.GcePersistentDiskCsiDriverConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfigOrBuilder.java new file mode 100644 index 00000000..17dcc862 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GcePersistentDiskCsiDriverConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.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-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java new file mode 100644 index 00000000..5143f800 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java @@ -0,0 +1,1255 @@ +/* + * 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; + +/** + * + * + *
+ * GetClusterRequest gets the settings of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetClusterRequest} + */ +public final class GetClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetClusterRequest) + GetClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetClusterRequest.newBuilder() to construct. + private GetClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetClusterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetClusterRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_GetClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetClusterRequest.class, + com.google.container.v1beta1.GetClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.GetClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.GetClusterRequest other = + (com.google.container.v1beta1.GetClusterRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GetClusterRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.GetClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetClusterRequest gets the settings of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GetClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GetClusterRequest) + com.google.container.v1beta1.GetClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetClusterRequest.class, + com.google.container.v1beta1.GetClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.GetClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetClusterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetClusterRequest build() { + com.google.container.v1beta1.GetClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetClusterRequest buildPartial() { + com.google.container.v1beta1.GetClusterRequest result = + new com.google.container.v1beta1.GetClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.GetClusterRequest) { + return mergeFrom((com.google.container.v1beta1.GetClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetClusterRequest other) { + if (other == com.google.container.v1beta1.GetClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GetClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.GetClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetClusterRequest) + private static final com.google.container.v1beta1.GetClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetClusterRequest(); + } + + public static com.google.container.v1beta1.GetClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GetClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java new file mode 100644 index 00000000..cdbba81a --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * 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 GetClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequest.java new file mode 100644 index 00000000..2187dfcb --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequest.java @@ -0,0 +1,649 @@ +/* + * 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; + +/** + * + * + *
+ * GetJSONWebKeysRequest gets the public component of the keys used by the
+ * cluster to sign token requests. This will be the jwks_uri for the discover
+ * document returned by getOpenIDConfig. See the OpenID Connect
+ * Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetJSONWebKeysRequest} + */ +public final class GetJSONWebKeysRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetJSONWebKeysRequest) + GetJSONWebKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJSONWebKeysRequest.newBuilder() to construct. + private GetJSONWebKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetJSONWebKeysRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetJSONWebKeysRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetJSONWebKeysRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetJSONWebKeysRequest.class, + com.google.container.v1beta1.GetJSONWebKeysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The cluster (project, location, cluster id) to get keys for. Specified in
+   * the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The cluster (project, location, cluster id) to get keys for. Specified in
+   * the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.GetJSONWebKeysRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.GetJSONWebKeysRequest other = + (com.google.container.v1beta1.GetJSONWebKeysRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.GetJSONWebKeysRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetJSONWebKeysRequest gets the public component of the keys used by the
+   * cluster to sign token requests. This will be the jwks_uri for the discover
+   * document returned by getOpenIDConfig. See the OpenID Connect
+   * Discovery 1.0 specification for details.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GetJSONWebKeysRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GetJSONWebKeysRequest) + com.google.container.v1beta1.GetJSONWebKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetJSONWebKeysRequest.class, + com.google.container.v1beta1.GetJSONWebKeysRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.GetJSONWebKeysRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetJSONWebKeysRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetJSONWebKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetJSONWebKeysRequest build() { + com.google.container.v1beta1.GetJSONWebKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetJSONWebKeysRequest buildPartial() { + com.google.container.v1beta1.GetJSONWebKeysRequest result = + new com.google.container.v1beta1.GetJSONWebKeysRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetJSONWebKeysRequest) { + return mergeFrom((com.google.container.v1beta1.GetJSONWebKeysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetJSONWebKeysRequest other) { + if (other == com.google.container.v1beta1.GetJSONWebKeysRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GetJSONWebKeysRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.GetJSONWebKeysRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The cluster (project, location, cluster id) to get keys for. Specified in
+     * the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get keys for. Specified in
+     * the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get keys for. Specified in
+     * the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get keys for. Specified in
+     * the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get keys for. Specified in
+     * the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetJSONWebKeysRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetJSONWebKeysRequest) + private static final com.google.container.v1beta1.GetJSONWebKeysRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetJSONWebKeysRequest(); + } + + public static com.google.container.v1beta1.GetJSONWebKeysRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJSONWebKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetJSONWebKeysRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GetJSONWebKeysRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequestOrBuilder.java new file mode 100644 index 00000000..b2072b55 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequestOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetJSONWebKeysRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetJSONWebKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The cluster (project, location, cluster id) to get keys for. Specified in
+   * the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * The cluster (project, location, cluster id) to get keys for. Specified in
+   * the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponse.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponse.java new file mode 100644 index 00000000..7f5abd59 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponse.java @@ -0,0 +1,968 @@ +/* + * 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; + +/** + * + * + *
+ * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetJSONWebKeysResponse} + */ +public final class GetJSONWebKeysResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetJSONWebKeysResponse) + GetJSONWebKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetJSONWebKeysResponse.newBuilder() to construct. + private GetJSONWebKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetJSONWebKeysResponse() { + keys_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetJSONWebKeysResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetJSONWebKeysResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + keys_.add( + input.readMessage(com.google.container.v1beta1.Jwk.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = java.util.Collections.unmodifiableList(keys_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetJSONWebKeysResponse.class, + com.google.container.v1beta1.GetJSONWebKeysResponse.Builder.class); + } + + public static final int KEYS_FIELD_NUMBER = 1; + private java.util.List keys_; + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + @java.lang.Override + public java.util.List getKeysList() { + return keys_; + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + @java.lang.Override + public java.util.List + getKeysOrBuilderList() { + return keys_; + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + @java.lang.Override + public int getKeysCount() { + return keys_.size(); + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.Jwk getKeys(int index) { + return keys_.get(index); + } + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.JwkOrBuilder getKeysOrBuilder(int index) { + return keys_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < keys_.size(); i++) { + output.writeMessage(1, keys_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < keys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.GetJSONWebKeysResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.GetJSONWebKeysResponse other = + (com.google.container.v1beta1.GetJSONWebKeysResponse) obj; + + if (!getKeysList().equals(other.getKeysList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getKeysCount() > 0) { + hash = (37 * hash) + KEYS_FIELD_NUMBER; + hash = (53 * hash) + getKeysList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.GetJSONWebKeysResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GetJSONWebKeysResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GetJSONWebKeysResponse) + com.google.container.v1beta1.GetJSONWebKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetJSONWebKeysResponse.class, + com.google.container.v1beta1.GetJSONWebKeysResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.GetJSONWebKeysResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getKeysFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (keysBuilder_ == null) { + keys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + keysBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetJSONWebKeysResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetJSONWebKeysResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.GetJSONWebKeysResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetJSONWebKeysResponse build() { + com.google.container.v1beta1.GetJSONWebKeysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetJSONWebKeysResponse buildPartial() { + com.google.container.v1beta1.GetJSONWebKeysResponse result = + new com.google.container.v1beta1.GetJSONWebKeysResponse(this); + int from_bitField0_ = bitField0_; + if (keysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + keys_ = java.util.Collections.unmodifiableList(keys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keys_ = keys_; + } else { + result.keys_ = keysBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetJSONWebKeysResponse) { + return mergeFrom((com.google.container.v1beta1.GetJSONWebKeysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetJSONWebKeysResponse other) { + if (other == com.google.container.v1beta1.GetJSONWebKeysResponse.getDefaultInstance()) + return this; + if (keysBuilder_ == null) { + if (!other.keys_.isEmpty()) { + if (keys_.isEmpty()) { + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeysIsMutable(); + keys_.addAll(other.keys_); + } + onChanged(); + } + } else { + if (!other.keys_.isEmpty()) { + if (keysBuilder_.isEmpty()) { + keysBuilder_.dispose(); + keysBuilder_ = null; + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getKeysFieldBuilder() + : null; + } else { + keysBuilder_.addAllMessages(other.keys_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GetJSONWebKeysResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.GetJSONWebKeysResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List keys_ = + java.util.Collections.emptyList(); + + private void ensureKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(keys_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Jwk, + com.google.container.v1beta1.Jwk.Builder, + com.google.container.v1beta1.JwkOrBuilder> + keysBuilder_; + + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public java.util.List getKeysList() { + if (keysBuilder_ == null) { + return java.util.Collections.unmodifiableList(keys_); + } else { + return keysBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public int getKeysCount() { + if (keysBuilder_ == null) { + return keys_.size(); + } else { + return keysBuilder_.getCount(); + } + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public com.google.container.v1beta1.Jwk getKeys(int index) { + if (keysBuilder_ == null) { + return keys_.get(index); + } else { + return keysBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public Builder setKeys(int index, com.google.container.v1beta1.Jwk value) { + if (keysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.set(index, value); + onChanged(); + } else { + keysBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public Builder setKeys(int index, com.google.container.v1beta1.Jwk.Builder builderForValue) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.set(index, builderForValue.build()); + onChanged(); + } else { + keysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public Builder addKeys(com.google.container.v1beta1.Jwk value) { + if (keysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.add(value); + onChanged(); + } else { + keysBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public Builder addKeys(int index, com.google.container.v1beta1.Jwk value) { + if (keysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.add(index, value); + onChanged(); + } else { + keysBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public Builder addKeys(com.google.container.v1beta1.Jwk.Builder builderForValue) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(builderForValue.build()); + onChanged(); + } else { + keysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public Builder addKeys(int index, com.google.container.v1beta1.Jwk.Builder builderForValue) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(index, builderForValue.build()); + onChanged(); + } else { + keysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public Builder addAllKeys( + java.lang.Iterable values) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_); + onChanged(); + } else { + keysBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public Builder clearKeys() { + if (keysBuilder_ == null) { + keys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + keysBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public Builder removeKeys(int index) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.remove(index); + onChanged(); + } else { + keysBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public com.google.container.v1beta1.Jwk.Builder getKeysBuilder(int index) { + return getKeysFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public com.google.container.v1beta1.JwkOrBuilder getKeysOrBuilder(int index) { + if (keysBuilder_ == null) { + return keys_.get(index); + } else { + return keysBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public java.util.List + getKeysOrBuilderList() { + if (keysBuilder_ != null) { + return keysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(keys_); + } + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public com.google.container.v1beta1.Jwk.Builder addKeysBuilder() { + return getKeysFieldBuilder() + .addBuilder(com.google.container.v1beta1.Jwk.getDefaultInstance()); + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public com.google.container.v1beta1.Jwk.Builder addKeysBuilder(int index) { + return getKeysFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.Jwk.getDefaultInstance()); + } + /** + * + * + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + public java.util.List getKeysBuilderList() { + return getKeysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Jwk, + com.google.container.v1beta1.Jwk.Builder, + com.google.container.v1beta1.JwkOrBuilder> + getKeysFieldBuilder() { + if (keysBuilder_ == null) { + keysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Jwk, + com.google.container.v1beta1.Jwk.Builder, + com.google.container.v1beta1.JwkOrBuilder>( + keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + keys_ = null; + } + return keysBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetJSONWebKeysResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetJSONWebKeysResponse) + private static final com.google.container.v1beta1.GetJSONWebKeysResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetJSONWebKeysResponse(); + } + + public static com.google.container.v1beta1.GetJSONWebKeysResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJSONWebKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetJSONWebKeysResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GetJSONWebKeysResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponseOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponseOrBuilder.java new file mode 100644 index 00000000..80112d6a --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponseOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetJSONWebKeysResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetJSONWebKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + java.util.List getKeysList(); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + com.google.container.v1beta1.Jwk getKeys(int index); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + int getKeysCount(); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + java.util.List getKeysOrBuilderList(); + /** + * + * + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1beta1.Jwk keys = 1; + */ + com.google.container.v1beta1.JwkOrBuilder getKeysOrBuilder(int index); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java new file mode 100644 index 00000000..11295b60 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java @@ -0,0 +1,1463 @@ +/* + * 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; + +/** + * + * + *
+ * GetNodePoolRequest retrieves a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetNodePoolRequest} + */ +public final class GetNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetNodePoolRequest) + GetNodePoolRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetNodePoolRequest.newBuilder() to construct. + private GetNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetNodePoolRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetNodePoolRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetNodePoolRequest.class, + com.google.container.v1beta1.GetNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.GetNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.GetNodePoolRequest other = + (com.google.container.v1beta1.GetNodePoolRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getNodePoolId().equals(other.getNodePoolId())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetNodePoolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetNodePoolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.GetNodePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetNodePoolRequest retrieves a node pool for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GetNodePoolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GetNodePoolRequest) + com.google.container.v1beta1.GetNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetNodePoolRequest.class, + com.google.container.v1beta1.GetNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.GetNodePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetNodePoolRequest build() { + com.google.container.v1beta1.GetNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetNodePoolRequest buildPartial() { + com.google.container.v1beta1.GetNodePoolRequest result = + new com.google.container.v1beta1.GetNodePoolRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.GetNodePoolRequest) { + return mergeFrom((com.google.container.v1beta1.GetNodePoolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetNodePoolRequest other) { + if (other == com.google.container.v1beta1.GetNodePoolRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GetNodePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.GetNodePoolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * get. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetNodePoolRequest) + private static final com.google.container.v1beta1.GetNodePoolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetNodePoolRequest(); + } + + public static com.google.container.v1beta1.GetNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetNodePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GetNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java new file mode 100644 index 00000000..939944a0 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java @@ -0,0 +1,182 @@ +/* + * 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 GetNodePoolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + java.lang.String getNodePoolId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getNodePoolIdBytes(); + + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * get. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} 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 new file mode 100644 index 00000000..4de02622 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java @@ -0,0 +1,645 @@ +/* + * 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; + +/** + * + * + *
+ * GetOpenIDConfigRequest gets the OIDC discovery document for the
+ * cluster. See the OpenID Connect Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetOpenIDConfigRequest} + */ +public final class GetOpenIDConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetOpenIDConfigRequest) + GetOpenIDConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOpenIDConfigRequest.newBuilder() to construct. + private GetOpenIDConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOpenIDConfigRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOpenIDConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetOpenIDConfigRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetOpenIDConfigRequest.class, + com.google.container.v1beta1.GetOpenIDConfigRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The cluster (project, location, cluster id) to get the discovery document
+   * for. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The cluster (project, location, cluster id) to get the discovery document
+   * for. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.GetOpenIDConfigRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.GetOpenIDConfigRequest other = + (com.google.container.v1beta1.GetOpenIDConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.GetOpenIDConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetOpenIDConfigRequest gets the OIDC discovery document for the
+   * cluster. See the OpenID Connect Discovery 1.0 specification for details.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GetOpenIDConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GetOpenIDConfigRequest) + com.google.container.v1beta1.GetOpenIDConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetOpenIDConfigRequest.class, + com.google.container.v1beta1.GetOpenIDConfigRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.GetOpenIDConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetOpenIDConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigRequest build() { + com.google.container.v1beta1.GetOpenIDConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigRequest buildPartial() { + com.google.container.v1beta1.GetOpenIDConfigRequest result = + new com.google.container.v1beta1.GetOpenIDConfigRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetOpenIDConfigRequest) { + return mergeFrom((com.google.container.v1beta1.GetOpenIDConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetOpenIDConfigRequest other) { + if (other == com.google.container.v1beta1.GetOpenIDConfigRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GetOpenIDConfigRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.GetOpenIDConfigRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The cluster (project, location, cluster id) to get the discovery document
+     * for. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get the discovery document
+     * for. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get the discovery document
+     * for. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get the discovery document
+     * for. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The cluster (project, location, cluster id) to get the discovery document
+     * for. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 1; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetOpenIDConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetOpenIDConfigRequest) + private static final com.google.container.v1beta1.GetOpenIDConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetOpenIDConfigRequest(); + } + + public static com.google.container.v1beta1.GetOpenIDConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOpenIDConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOpenIDConfigRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 00000000..5613bd0c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetOpenIDConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetOpenIDConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The cluster (project, location, cluster id) to get the discovery document
+   * for. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * The cluster (project, location, cluster id) to get the discovery document
+   * for. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 1; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponse.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponse.java new file mode 100644 index 00000000..30a679cf --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponse.java @@ -0,0 +1,2211 @@ +/* + * 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; + +/** + * + * + *
+ * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
+ * See the OpenID Connect Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetOpenIDConfigResponse} + */ +public final class GetOpenIDConfigResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetOpenIDConfigResponse) + GetOpenIDConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOpenIDConfigResponse.newBuilder() to construct. + private GetOpenIDConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOpenIDConfigResponse() { + issuer_ = ""; + jwksUri_ = ""; + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOpenIDConfigResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetOpenIDConfigResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + issuer_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + jwksUri_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + responseTypesSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + responseTypesSupported_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + subjectTypesSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + subjectTypesSupported_.add(s); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + idTokenSigningAlgValuesSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + idTokenSigningAlgValuesSupported_.add(s); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + claimsSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + claimsSupported_.add(s); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + grantTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + grantTypes_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + subjectTypesSupported_ = subjectTypesSupported_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + claimsSupported_ = claimsSupported_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + grantTypes_ = grantTypes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetOpenIDConfigResponse.class, + com.google.container.v1beta1.GetOpenIDConfigResponse.Builder.class); + } + + public static final int ISSUER_FIELD_NUMBER = 1; + private volatile java.lang.Object issuer_; + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The issuer. + */ + @java.lang.Override + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuer_ = s; + return s; + } + } + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The bytes for issuer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIssuerBytes() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + issuer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JWKS_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object jwksUri_; + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The jwksUri. + */ + @java.lang.Override + public java.lang.String getJwksUri() { + java.lang.Object ref = jwksUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwksUri_ = s; + return s; + } + } + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The bytes for jwksUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJwksUriBytes() { + java.lang.Object ref = jwksUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jwksUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList responseTypesSupported_; + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return A list containing the responseTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { + return responseTypesSupported_; + } + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return The count of responseTypesSupported. + */ + public int getResponseTypesSupportedCount() { + return responseTypesSupported_.size(); + } + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + public java.lang.String getResponseTypesSupported(int index) { + return responseTypesSupported_.get(index); + } + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) { + return responseTypesSupported_.getByteString(index); + } + + public static final int SUBJECT_TYPES_SUPPORTED_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList subjectTypesSupported_; + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return A list containing the subjectTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { + return subjectTypesSupported_; + } + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return The count of subjectTypesSupported. + */ + public int getSubjectTypesSupportedCount() { + return subjectTypesSupported_.size(); + } + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + public java.lang.String getSubjectTypesSupported(int index) { + return subjectTypesSupported_.get(index); + } + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { + return subjectTypesSupported_.getByteString(index); + } + + public static final int ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_; + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupportedList() { + return idTokenSigningAlgValuesSupported_; + } + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return The count of idTokenSigningAlgValuesSupported. + */ + public int getIdTokenSigningAlgValuesSupportedCount() { + return idTokenSigningAlgValuesSupported_.size(); + } + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { + return idTokenSigningAlgValuesSupported_.get(index); + } + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index) { + return idTokenSigningAlgValuesSupported_.getByteString(index); + } + + public static final int CLAIMS_SUPPORTED_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList claimsSupported_; + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return A list containing the claimsSupported. + */ + public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { + return claimsSupported_; + } + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return The count of claimsSupported. + */ + public int getClaimsSupportedCount() { + return claimsSupported_.size(); + } + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + public java.lang.String getClaimsSupported(int index) { + return claimsSupported_.get(index); + } + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { + return claimsSupported_.getByteString(index); + } + + public static final int GRANT_TYPES_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList grantTypes_; + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return A list containing the grantTypes. + */ + public com.google.protobuf.ProtocolStringList getGrantTypesList() { + return grantTypes_; + } + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return The count of grantTypes. + */ + public int getGrantTypesCount() { + return grantTypes_.size(); + } + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + public java.lang.String getGrantTypes(int index) { + return grantTypes_.get(index); + } + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + public com.google.protobuf.ByteString getGrantTypesBytes(int index) { + return grantTypes_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getIssuerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); + } + if (!getJwksUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jwksUri_); + } + for (int i = 0; i < responseTypesSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, responseTypesSupported_.getRaw(i)); + } + for (int i = 0; i < subjectTypesSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, subjectTypesSupported_.getRaw(i)); + } + for (int i = 0; i < idTokenSigningAlgValuesSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, idTokenSigningAlgValuesSupported_.getRaw(i)); + } + for (int i = 0; i < claimsSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, claimsSupported_.getRaw(i)); + } + for (int i = 0; i < grantTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, grantTypes_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIssuerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, issuer_); + } + if (!getJwksUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jwksUri_); + } + { + int dataSize = 0; + for (int i = 0; i < responseTypesSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(responseTypesSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getResponseTypesSupportedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < subjectTypesSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(subjectTypesSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getSubjectTypesSupportedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < idTokenSigningAlgValuesSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(idTokenSigningAlgValuesSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getIdTokenSigningAlgValuesSupportedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < claimsSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(claimsSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getClaimsSupportedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < grantTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(grantTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getGrantTypesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.GetOpenIDConfigResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.GetOpenIDConfigResponse other = + (com.google.container.v1beta1.GetOpenIDConfigResponse) obj; + + if (!getIssuer().equals(other.getIssuer())) return false; + if (!getJwksUri().equals(other.getJwksUri())) return false; + if (!getResponseTypesSupportedList().equals(other.getResponseTypesSupportedList())) + return false; + if (!getSubjectTypesSupportedList().equals(other.getSubjectTypesSupportedList())) return false; + if (!getIdTokenSigningAlgValuesSupportedList() + .equals(other.getIdTokenSigningAlgValuesSupportedList())) return false; + if (!getClaimsSupportedList().equals(other.getClaimsSupportedList())) return false; + if (!getGrantTypesList().equals(other.getGrantTypesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISSUER_FIELD_NUMBER; + hash = (53 * hash) + getIssuer().hashCode(); + hash = (37 * hash) + JWKS_URI_FIELD_NUMBER; + hash = (53 * hash) + getJwksUri().hashCode(); + if (getResponseTypesSupportedCount() > 0) { + hash = (37 * hash) + RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getResponseTypesSupportedList().hashCode(); + } + if (getSubjectTypesSupportedCount() > 0) { + hash = (37 * hash) + SUBJECT_TYPES_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getSubjectTypesSupportedList().hashCode(); + } + if (getIdTokenSigningAlgValuesSupportedCount() > 0) { + hash = (37 * hash) + ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getIdTokenSigningAlgValuesSupportedList().hashCode(); + } + if (getClaimsSupportedCount() > 0) { + hash = (37 * hash) + CLAIMS_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getClaimsSupportedList().hashCode(); + } + if (getGrantTypesCount() > 0) { + hash = (37 * hash) + GRANT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getGrantTypesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.GetOpenIDConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
+   * See the OpenID Connect Discovery 1.0 specification for details.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GetOpenIDConfigResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GetOpenIDConfigResponse) + com.google.container.v1beta1.GetOpenIDConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetOpenIDConfigResponse.class, + com.google.container.v1beta1.GetOpenIDConfigResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.GetOpenIDConfigResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + issuer_ = ""; + + jwksUri_ = ""; + + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.GetOpenIDConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigResponse build() { + com.google.container.v1beta1.GetOpenIDConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigResponse buildPartial() { + com.google.container.v1beta1.GetOpenIDConfigResponse result = + new com.google.container.v1beta1.GetOpenIDConfigResponse(this); + int from_bitField0_ = bitField0_; + result.issuer_ = issuer_; + result.jwksUri_ = jwksUri_; + if (((bitField0_ & 0x00000001) != 0)) { + responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.responseTypesSupported_ = responseTypesSupported_; + if (((bitField0_ & 0x00000002) != 0)) { + subjectTypesSupported_ = subjectTypesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subjectTypesSupported_ = subjectTypesSupported_; + if (((bitField0_ & 0x00000004) != 0)) { + idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_; + if (((bitField0_ & 0x00000008) != 0)) { + claimsSupported_ = claimsSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.claimsSupported_ = claimsSupported_; + if (((bitField0_ & 0x00000010) != 0)) { + grantTypes_ = grantTypes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.grantTypes_ = grantTypes_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GetOpenIDConfigResponse) { + return mergeFrom((com.google.container.v1beta1.GetOpenIDConfigResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetOpenIDConfigResponse other) { + if (other == com.google.container.v1beta1.GetOpenIDConfigResponse.getDefaultInstance()) + return this; + if (!other.getIssuer().isEmpty()) { + issuer_ = other.issuer_; + onChanged(); + } + if (!other.getJwksUri().isEmpty()) { + jwksUri_ = other.jwksUri_; + onChanged(); + } + if (!other.responseTypesSupported_.isEmpty()) { + if (responseTypesSupported_.isEmpty()) { + responseTypesSupported_ = other.responseTypesSupported_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.addAll(other.responseTypesSupported_); + } + onChanged(); + } + if (!other.subjectTypesSupported_.isEmpty()) { + if (subjectTypesSupported_.isEmpty()) { + subjectTypesSupported_ = other.subjectTypesSupported_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.addAll(other.subjectTypesSupported_); + } + onChanged(); + } + if (!other.idTokenSigningAlgValuesSupported_.isEmpty()) { + if (idTokenSigningAlgValuesSupported_.isEmpty()) { + idTokenSigningAlgValuesSupported_ = other.idTokenSigningAlgValuesSupported_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.addAll(other.idTokenSigningAlgValuesSupported_); + } + onChanged(); + } + if (!other.claimsSupported_.isEmpty()) { + if (claimsSupported_.isEmpty()) { + claimsSupported_ = other.claimsSupported_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureClaimsSupportedIsMutable(); + claimsSupported_.addAll(other.claimsSupported_); + } + onChanged(); + } + if (!other.grantTypes_.isEmpty()) { + if (grantTypes_.isEmpty()) { + grantTypes_ = other.grantTypes_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureGrantTypesIsMutable(); + grantTypes_.addAll(other.grantTypes_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GetOpenIDConfigResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.GetOpenIDConfigResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object issuer_ = ""; + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @return The issuer. + */ + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @return The bytes for issuer. + */ + public com.google.protobuf.ByteString getIssuerBytes() { + java.lang.Object ref = issuer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + issuer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @param value The issuer to set. + * @return This builder for chaining. + */ + public Builder setIssuer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + issuer_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @return This builder for chaining. + */ + public Builder clearIssuer() { + + issuer_ = getDefaultInstance().getIssuer(); + onChanged(); + return this; + } + /** + * + * + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * + * @param value The bytes for issuer to set. + * @return This builder for chaining. + */ + public Builder setIssuerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + issuer_ = value; + onChanged(); + return this; + } + + private java.lang.Object jwksUri_ = ""; + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @return The jwksUri. + */ + public java.lang.String getJwksUri() { + java.lang.Object ref = jwksUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwksUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @return The bytes for jwksUri. + */ + public com.google.protobuf.ByteString getJwksUriBytes() { + java.lang.Object ref = jwksUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jwksUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @param value The jwksUri to set. + * @return This builder for chaining. + */ + public Builder setJwksUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jwksUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearJwksUri() { + + jwksUri_ = getDefaultInstance().getJwksUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * + * @param value The bytes for jwksUri to set. + * @return This builder for chaining. + */ + public Builder setJwksUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jwksUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList responseTypesSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureResponseTypesSupportedIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + responseTypesSupported_ = + new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @return A list containing the responseTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { + return responseTypesSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @return The count of responseTypesSupported. + */ + public int getResponseTypesSupportedCount() { + return responseTypesSupported_.size(); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + public java.lang.String getResponseTypesSupported(int index) { + return responseTypesSupported_.get(index); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) { + return responseTypesSupported_.getByteString(index); + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index to set the value at. + * @param value The responseTypesSupported to set. + * @return This builder for chaining. + */ + public Builder setResponseTypesSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param value The responseTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addResponseTypesSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param values The responseTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllResponseTypesSupported(java.lang.Iterable values) { + ensureResponseTypesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responseTypesSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @return This builder for chaining. + */ + public Builder clearResponseTypesSupported() { + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * + * @param value The bytes of the responseTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addResponseTypesSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList subjectTypesSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSubjectTypesSupportedIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + subjectTypesSupported_ = + new com.google.protobuf.LazyStringArrayList(subjectTypesSupported_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @return A list containing the subjectTypesSupported. + */ + public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { + return subjectTypesSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @return The count of subjectTypesSupported. + */ + public int getSubjectTypesSupportedCount() { + return subjectTypesSupported_.size(); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + public java.lang.String getSubjectTypesSupported(int index) { + return subjectTypesSupported_.get(index); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { + return subjectTypesSupported_.getByteString(index); + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index to set the value at. + * @param value The subjectTypesSupported to set. + * @return This builder for chaining. + */ + public Builder setSubjectTypesSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param value The subjectTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addSubjectTypesSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param values The subjectTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllSubjectTypesSupported(java.lang.Iterable values) { + ensureSubjectTypesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subjectTypesSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @return This builder for chaining. + */ + public Builder clearSubjectTypesSupported() { + subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * + * @param value The bytes of the subjectTypesSupported to add. + * @return This builder for chaining. + */ + public Builder addSubjectTypesSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + idTokenSigningAlgValuesSupported_ = + new com.google.protobuf.LazyStringArrayList(idTokenSigningAlgValuesSupported_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupportedList() { + return idTokenSigningAlgValuesSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return The count of idTokenSigningAlgValuesSupported. + */ + public int getIdTokenSigningAlgValuesSupportedCount() { + return idTokenSigningAlgValuesSupported_.size(); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { + return idTokenSigningAlgValuesSupported_.get(index); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index) { + return idTokenSigningAlgValuesSupported_.getByteString(index); + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index to set the value at. + * @param value The idTokenSigningAlgValuesSupported to set. + * @return This builder for chaining. + */ + public Builder setIdTokenSigningAlgValuesSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param value The idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addIdTokenSigningAlgValuesSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param values The idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addAllIdTokenSigningAlgValuesSupported( + java.lang.Iterable values) { + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, idTokenSigningAlgValuesSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return This builder for chaining. + */ + public Builder clearIdTokenSigningAlgValuesSupported() { + idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * supported ID Token signing Algorithms.
+     * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param value The bytes of the idTokenSigningAlgValuesSupported to add. + * @return This builder for chaining. + */ + public Builder addIdTokenSigningAlgValuesSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList claimsSupported_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureClaimsSupportedIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + claimsSupported_ = new com.google.protobuf.LazyStringArrayList(claimsSupported_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @return A list containing the claimsSupported. + */ + public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { + return claimsSupported_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @return The count of claimsSupported. + */ + public int getClaimsSupportedCount() { + return claimsSupported_.size(); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + public java.lang.String getClaimsSupported(int index) { + return claimsSupported_.get(index); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { + return claimsSupported_.getByteString(index); + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index to set the value at. + * @param value The claimsSupported to set. + * @return This builder for chaining. + */ + public Builder setClaimsSupported(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsSupportedIsMutable(); + claimsSupported_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param value The claimsSupported to add. + * @return This builder for chaining. + */ + public Builder addClaimsSupported(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClaimsSupportedIsMutable(); + claimsSupported_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param values The claimsSupported to add. + * @return This builder for chaining. + */ + public Builder addAllClaimsSupported(java.lang.Iterable values) { + ensureClaimsSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, claimsSupported_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @return This builder for chaining. + */ + public Builder clearClaimsSupported() { + claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * + * @param value The bytes of the claimsSupported to add. + * @return This builder for chaining. + */ + public Builder addClaimsSupportedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureClaimsSupportedIsMutable(); + claimsSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList grantTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureGrantTypesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); + bitField0_ |= 0x00000010; + } + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @return A list containing the grantTypes. + */ + public com.google.protobuf.ProtocolStringList getGrantTypesList() { + return grantTypes_.getUnmodifiableView(); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @return The count of grantTypes. + */ + public int getGrantTypesCount() { + return grantTypes_.size(); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + public java.lang.String getGrantTypes(int index) { + return grantTypes_.get(index); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + public com.google.protobuf.ByteString getGrantTypesBytes(int index) { + return grantTypes_.getByteString(index); + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param index The index to set the value at. + * @param value The grantTypes to set. + * @return This builder for chaining. + */ + public Builder setGrantTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGrantTypesIsMutable(); + grantTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param value The grantTypes to add. + * @return This builder for chaining. + */ + public Builder addGrantTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGrantTypesIsMutable(); + grantTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param values The grantTypes to add. + * @return This builder for chaining. + */ + public Builder addAllGrantTypes(java.lang.Iterable values) { + ensureGrantTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, grantTypes_); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @return This builder for chaining. + */ + public Builder clearGrantTypes() { + grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * + * @param value The bytes of the grantTypes to add. + * @return This builder for chaining. + */ + public Builder addGrantTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGrantTypesIsMutable(); + grantTypes_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetOpenIDConfigResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetOpenIDConfigResponse) + private static final com.google.container.v1beta1.GetOpenIDConfigResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetOpenIDConfigResponse(); + } + + public static com.google.container.v1beta1.GetOpenIDConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOpenIDConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOpenIDConfigResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOpenIDConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponseOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponseOrBuilder.java new file mode 100644 index 00000000..f7efa434 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponseOrBuilder.java @@ -0,0 +1,330 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface GetOpenIDConfigResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetOpenIDConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The issuer. + */ + java.lang.String getIssuer(); + /** + * + * + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * + * @return The bytes for issuer. + */ + com.google.protobuf.ByteString getIssuerBytes(); + + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The jwksUri. + */ + java.lang.String getJwksUri(); + /** + * + * + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * + * @return The bytes for jwksUri. + */ + com.google.protobuf.ByteString getJwksUriBytes(); + + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return A list containing the responseTypesSupported. + */ + java.util.List getResponseTypesSupportedList(); + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @return The count of responseTypesSupported. + */ + int getResponseTypesSupportedCount(); + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + java.lang.String getResponseTypesSupported(int index); + /** + * + * + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index); + + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return A list containing the subjectTypesSupported. + */ + java.util.List getSubjectTypesSupportedList(); + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @return The count of subjectTypesSupported. + */ + int getSubjectTypesSupportedCount(); + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + java.lang.String getSubjectTypesSupported(int index); + /** + * + * + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index); + + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + java.util.List getIdTokenSigningAlgValuesSupportedList(); + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @return The count of idTokenSigningAlgValuesSupported. + */ + int getIdTokenSigningAlgValuesSupportedCount(); + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + java.lang.String getIdTokenSigningAlgValuesSupported(int index); + /** + * + * + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index); + + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return A list containing the claimsSupported. + */ + java.util.List getClaimsSupportedList(); + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @return The count of claimsSupported. + */ + int getClaimsSupportedCount(); + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + java.lang.String getClaimsSupported(int index); + /** + * + * + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + com.google.protobuf.ByteString getClaimsSupportedBytes(int index); + + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return A list containing the grantTypes. + */ + java.util.List getGrantTypesList(); + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @return The count of grantTypes. + */ + int getGrantTypesCount(); + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + java.lang.String getGrantTypes(int index); + /** + * + * + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + com.google.protobuf.ByteString getGrantTypesBytes(int index); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java new file mode 100644 index 00000000..e80912ec --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java @@ -0,0 +1,1256 @@ +/* + * 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; + +/** + * + * + *
+ * GetOperationRequest gets a single operation.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetOperationRequest} + */ +public final class GetOperationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetOperationRequest) + GetOperationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOperationRequest.newBuilder() to construct. + private GetOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOperationRequest() { + projectId_ = ""; + zone_ = ""; + operationId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOperationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetOperationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + operationId_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_GetOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetOperationRequest.class, + com.google.container.v1beta1.GetOperationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object operationId_; + /** + * + * + *
+   * 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]; + * + * + * @return The operationId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for operationId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getOperationIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getOperationIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.GetOperationRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.GetOperationRequest other = + (com.google.container.v1beta1.GetOperationRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getOperationId().equals(other.getOperationId())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GetOperationRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOperationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOperationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetOperationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.GetOperationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * GetOperationRequest gets a single operation.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GetOperationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GetOperationRequest) + com.google.container.v1beta1.GetOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetOperationRequest.class, + com.google.container.v1beta1.GetOperationRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.GetOperationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + operationId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOperationRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetOperationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetOperationRequest build() { + com.google.container.v1beta1.GetOperationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOperationRequest buildPartial() { + com.google.container.v1beta1.GetOperationRequest result = + new com.google.container.v1beta1.GetOperationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.operationId_ = operationId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.GetOperationRequest) { + return mergeFrom((com.google.container.v1beta1.GetOperationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetOperationRequest other) { + if (other == com.google.container.v1beta1.GetOperationRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GetOperationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.GetOperationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The operationId. + */ + @java.lang.Deprecated + public java.lang.String getOperationId() { + java.lang.Object ref = operationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for operationId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getOperationIdBytes() { + java.lang.Object ref = operationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The operationId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + operationId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearOperationId() { + + operationId_ = getDefaultInstance().getOperationId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for operationId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + operationId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, operation id) of the operation to get.
+     * Specified in the format `projects/*/locations/*/operations/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetOperationRequest) + private static final com.google.container.v1beta1.GetOperationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetOperationRequest(); + } + + public static com.google.container.v1beta1.GetOperationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOperationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GetOperationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java new file mode 100644 index 00000000..a3ecb3fd --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * 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 GetOperationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The operationId. + */ + @java.lang.Deprecated + java.lang.String getOperationId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for operationId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getOperationIdBytes(); + + /** + * + * + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, operation id) of the operation to get.
+   * Specified in the format `projects/*/locations/*/operations/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java new file mode 100644 index 00000000..f4b2355f --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java @@ -0,0 +1,1057 @@ +/* + * 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; + +/** + * + * + *
+ * Gets the current Kubernetes Engine service configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GetServerConfigRequest} + */ +public final class GetServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GetServerConfigRequest) + GetServerConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetServerConfigRequest.newBuilder() to construct. + private GetServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetServerConfigRequest() { + projectId_ = ""; + zone_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetServerConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetServerConfigRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetServerConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetServerConfigRequest.class, + com.google.container.v1beta1.GetServerConfigRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project and location) of the server config to get,
+   * specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 4; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project and location) of the server config to get,
+   * specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.GetServerConfigRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.GetServerConfigRequest other = + (com.google.container.v1beta1.GetServerConfigRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetServerConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetServerConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GetServerConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.GetServerConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Gets the current Kubernetes Engine service configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GetServerConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GetServerConfigRequest) + com.google.container.v1beta1.GetServerConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetServerConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GetServerConfigRequest.class, + com.google.container.v1beta1.GetServerConfigRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.GetServerConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GetServerConfigRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.GetServerConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GetServerConfigRequest build() { + com.google.container.v1beta1.GetServerConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GetServerConfigRequest buildPartial() { + com.google.container.v1beta1.GetServerConfigRequest result = + new com.google.container.v1beta1.GetServerConfigRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.GetServerConfigRequest) { + return mergeFrom((com.google.container.v1beta1.GetServerConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GetServerConfigRequest other) { + if (other == com.google.container.v1beta1.GetServerConfigRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.GetServerConfigRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.GetServerConfigRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project and location) of the server config to get,
+     * specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 4; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GetServerConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GetServerConfigRequest) + private static final com.google.container.v1beta1.GetServerConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GetServerConfigRequest(); + } + + public static com.google.container.v1beta1.GetServerConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServerConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetServerConfigRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GetServerConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java new file mode 100644 index 00000000..a428475f --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java @@ -0,0 +1,118 @@ +/* + * 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 GetServerConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GetServerConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * The name (project and location) of the server config to get,
+   * specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 4; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project and location) of the server config to get,
+   * specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 4; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java new file mode 100644 index 00000000..55fa9e30 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java @@ -0,0 +1,559 @@ +/* + * 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 options for the horizontal pod autoscaling feature, which
+ * increases or decreases the number of replica pods a replication controller
+ * has based on the resource usage of the existing pods.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.HorizontalPodAutoscaling} + */ +public final class HorizontalPodAutoscaling extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.HorizontalPodAutoscaling) + HorizontalPodAutoscalingOrBuilder { + private static final long serialVersionUID = 0L; + // Use HorizontalPodAutoscaling.newBuilder() to construct. + private HorizontalPodAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HorizontalPodAutoscaling() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HorizontalPodAutoscaling(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HorizontalPodAutoscaling( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HorizontalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HorizontalPodAutoscaling.class, + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+   * When enabled, it ensures that metrics are collected into Stackdriver
+   * Monitoring.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.HorizontalPodAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1beta1.HorizontalPodAutoscaling other = + (com.google.container.v1beta1.HorizontalPodAutoscaling) obj; + + if (getDisabled() != other.getDisabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.HorizontalPodAutoscaling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration options for the horizontal pod autoscaling feature, which
+   * increases or decreases the number of replica pods a replication controller
+   * has based on the resource usage of the existing pods.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.HorizontalPodAutoscaling} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.HorizontalPodAutoscaling) + com.google.container.v1beta1.HorizontalPodAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HorizontalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HorizontalPodAutoscaling.class, + com.google.container.v1beta1.HorizontalPodAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1beta1.HorizontalPodAutoscaling.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling getDefaultInstanceForType() { + return com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling build() { + com.google.container.v1beta1.HorizontalPodAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling buildPartial() { + com.google.container.v1beta1.HorizontalPodAutoscaling result = + new com.google.container.v1beta1.HorizontalPodAutoscaling(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.HorizontalPodAutoscaling) { + return mergeFrom((com.google.container.v1beta1.HorizontalPodAutoscaling) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.HorizontalPodAutoscaling other) { + if (other == com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance()) + return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.HorizontalPodAutoscaling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.HorizontalPodAutoscaling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_; + /** + * + * + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that metrics are collected into Stackdriver
+     * Monitoring.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that metrics are collected into Stackdriver
+     * Monitoring.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+     * When enabled, it ensures that metrics are collected into Stackdriver
+     * Monitoring.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.HorizontalPodAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.HorizontalPodAutoscaling) + private static final com.google.container.v1beta1.HorizontalPodAutoscaling DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.HorizontalPodAutoscaling(); + } + + public static com.google.container.v1beta1.HorizontalPodAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HorizontalPodAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HorizontalPodAutoscaling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.HorizontalPodAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java new file mode 100644 index 00000000..00047639 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java @@ -0,0 +1,40 @@ +/* + * 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 HorizontalPodAutoscalingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.HorizontalPodAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
+   * When enabled, it ensures that metrics are collected into Stackdriver
+   * Monitoring.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java new file mode 100644 index 00000000..d0e3e706 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java @@ -0,0 +1,554 @@ +/* + * 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 options for the HTTP (L7) load balancing controller addon,
+ * which makes it easy to set up HTTP load balancers for services in a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.HttpLoadBalancing} + */ +public final class HttpLoadBalancing extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.HttpLoadBalancing) + HttpLoadBalancingOrBuilder { + private static final long serialVersionUID = 0L; + // Use HttpLoadBalancing.newBuilder() to construct. + private HttpLoadBalancing(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HttpLoadBalancing() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HttpLoadBalancing(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HttpLoadBalancing( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HttpLoadBalancing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HttpLoadBalancing.class, + com.google.container.v1beta1.HttpLoadBalancing.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Whether the HTTP Load Balancing controller is enabled in the cluster.
+   * When enabled, it runs a small pod in the cluster that manages the load
+   * balancers.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.HttpLoadBalancing)) { + return super.equals(obj); + } + com.google.container.v1beta1.HttpLoadBalancing other = + (com.google.container.v1beta1.HttpLoadBalancing) obj; + + if (getDisabled() != other.getDisabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.HttpLoadBalancing parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.HttpLoadBalancing prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration options for the HTTP (L7) load balancing controller addon,
+   * which makes it easy to set up HTTP load balancers for services in a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.HttpLoadBalancing} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.HttpLoadBalancing) + com.google.container.v1beta1.HttpLoadBalancingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HttpLoadBalancing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HttpLoadBalancing.class, + com.google.container.v1beta1.HttpLoadBalancing.Builder.class); + } + + // Construct using com.google.container.v1beta1.HttpLoadBalancing.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing getDefaultInstanceForType() { + return com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing build() { + com.google.container.v1beta1.HttpLoadBalancing result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing buildPartial() { + com.google.container.v1beta1.HttpLoadBalancing result = + new com.google.container.v1beta1.HttpLoadBalancing(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.HttpLoadBalancing) { + return mergeFrom((com.google.container.v1beta1.HttpLoadBalancing) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.HttpLoadBalancing other) { + if (other == com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.HttpLoadBalancing parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.HttpLoadBalancing) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_; + /** + * + * + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the HTTP Load Balancing controller is enabled in the cluster.
+     * When enabled, it runs a small pod in the cluster that manages the load
+     * balancers.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.HttpLoadBalancing) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.HttpLoadBalancing) + private static final com.google.container.v1beta1.HttpLoadBalancing DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.HttpLoadBalancing(); + } + + public static com.google.container.v1beta1.HttpLoadBalancing getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpLoadBalancing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpLoadBalancing(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.HttpLoadBalancing getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java new file mode 100644 index 00000000..cc8ca3b2 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java @@ -0,0 +1,40 @@ +/* + * 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 HttpLoadBalancingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.HttpLoadBalancing) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the HTTP Load Balancing controller is enabled in the cluster.
+   * When enabled, it runs a small pod in the cluster that manages the load
+   * balancers.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java new file mode 100644 index 00000000..a279f7d0 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java @@ -0,0 +1,3062 @@ +/* + * 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 controlling how IPs are allocated in the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.IPAllocationPolicy} + */ +public final class IPAllocationPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.IPAllocationPolicy) + IPAllocationPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use IPAllocationPolicy.newBuilder() to construct. + private IPAllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IPAllocationPolicy() { + subnetworkName_ = ""; + clusterIpv4Cidr_ = ""; + nodeIpv4Cidr_ = ""; + servicesIpv4Cidr_ = ""; + clusterSecondaryRangeName_ = ""; + servicesSecondaryRangeName_ = ""; + clusterIpv4CidrBlock_ = ""; + nodeIpv4CidrBlock_ = ""; + servicesIpv4CidrBlock_ = ""; + tpuIpv4CidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IPAllocationPolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IPAllocationPolicy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + useIpAliases_ = input.readBool(); + break; + } + case 16: + { + createSubnetwork_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + subnetworkName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterIpv4Cidr_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodeIpv4Cidr_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + servicesIpv4Cidr_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterSecondaryRangeName_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + servicesSecondaryRangeName_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterIpv4CidrBlock_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodeIpv4CidrBlock_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + servicesIpv4CidrBlock_ = s; + break; + } + case 96: + { + allowRouteOverlap_ = input.readBool(); + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + tpuIpv4CidrBlock_ = s; + break; + } + case 120: + { + useRoutes_ = 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_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IPAllocationPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.IPAllocationPolicy.class, + com.google.container.v1beta1.IPAllocationPolicy.Builder.class); + } + + public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; + private boolean useIpAliases_; + /** + * + * + *
+   * Whether alias IPs will be used for pod IPs in the cluster.
+   * This is used in conjunction with use_routes. It cannot
+   * be true if use_routes is true. If both use_ip_aliases and use_routes are
+   * false, then the server picks the default IP allocation mode
+   * 
+ * + * bool use_ip_aliases = 1; + * + * @return The useIpAliases. + */ + @java.lang.Override + public boolean getUseIpAliases() { + return useIpAliases_; + } + + public static final int CREATE_SUBNETWORK_FIELD_NUMBER = 2; + private boolean createSubnetwork_; + /** + * + * + *
+   * Whether a new subnetwork will be created automatically for the cluster.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * 
+ * + * bool create_subnetwork = 2; + * + * @return The createSubnetwork. + */ + @java.lang.Override + public boolean getCreateSubnetwork() { + return createSubnetwork_; + } + + public static final int SUBNETWORK_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object subnetworkName_; + /** + * + * + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + * + * @return The subnetworkName. + */ + @java.lang.Override + public java.lang.String getSubnetworkName() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetworkName_ = s; + return s; + } + } + /** + * + * + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + * + * @return The bytes for subnetworkName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetworkNameBytes() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetworkName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 4; + private volatile java.lang.Object clusterIpv4Cidr_; + /** + * + * + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return The clusterIpv4Cidr. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } + } + /** + * + * + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return The bytes for clusterIpv4Cidr. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_FIELD_NUMBER = 5; + private volatile java.lang.Object nodeIpv4Cidr_; + /** + * + * + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return The nodeIpv4Cidr. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getNodeIpv4Cidr() { + java.lang.Object ref = nodeIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4Cidr_ = s; + return s; + } + } + /** + * + * + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return The bytes for nodeIpv4Cidr. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { + java.lang.Object ref = nodeIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 6; + private volatile java.lang.Object servicesIpv4Cidr_; + /** + * + * + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return The servicesIpv4Cidr. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } + } + /** + * + * + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return The bytes for servicesIpv4Cidr. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object clusterSecondaryRangeName_; + /** + * + * + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + * + * @return The clusterSecondaryRangeName. + */ + @java.lang.Override + public java.lang.String getClusterSecondaryRangeName() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterSecondaryRangeName_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + * + * @return The bytes for clusterSecondaryRangeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object servicesSecondaryRangeName_; + /** + * + * + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + * + * @return The servicesSecondaryRangeName. + */ + @java.lang.Override + public java.lang.String getServicesSecondaryRangeName() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesSecondaryRangeName_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + * + * @return The bytes for servicesSecondaryRangeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 9; + private volatile java.lang.Object clusterIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The clusterIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getClusterIpv4CidrBlock() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The bytes for clusterIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER = 10; + private volatile java.lang.Object nodeIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The nodeIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getNodeIpv4CidrBlock() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The bytes for nodeIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER = 11; + private volatile java.lang.Object servicesIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The servicesIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getServicesIpv4CidrBlock() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The bytes for servicesIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_ROUTE_OVERLAP_FIELD_NUMBER = 12; + private boolean allowRouteOverlap_; + /** + * + * + *
+   * If true, allow allocation of cluster CIDR ranges that overlap with certain
+   * kinds of network routes. By default we do not allow cluster CIDR ranges to
+   * intersect with any user declared routes. With allow_route_overlap == true,
+   * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+   * range.
+   * If this field is set to true, then cluster and services CIDRs must be
+   * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+   * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+   *    `services_ipv4_cidr_block` must be fully-specified.
+   * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+   *    fully-specified.
+   * 
+ * + * bool allow_route_overlap = 12; + * + * @return The allowRouteOverlap. + */ + @java.lang.Override + public boolean getAllowRouteOverlap() { + return allowRouteOverlap_; + } + + public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 13; + private volatile java.lang.Object tpuIpv4CidrBlock_; + /** + * + * + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * If unspecified, the range will use the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @return The tpuIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getTpuIpv4CidrBlock() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * If unspecified, the range will use the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @return The bytes for tpuIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { + java.lang.Object ref = tpuIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tpuIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USE_ROUTES_FIELD_NUMBER = 15; + private boolean useRoutes_; + /** + * + * + *
+   * Whether routes will be used for pod IPs in the cluster.
+   * This is used in conjunction with use_ip_aliases. It cannot be true if
+   * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+   * then the server picks the default IP allocation mode
+   * 
+ * + * bool use_routes = 15; + * + * @return The useRoutes. + */ + @java.lang.Override + public boolean getUseRoutes() { + return useRoutes_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (useIpAliases_ != false) { + output.writeBool(1, useIpAliases_); + } + if (createSubnetwork_ != false) { + output.writeBool(2, createSubnetwork_); + } + if (!getSubnetworkNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subnetworkName_); + } + if (!getClusterIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterIpv4Cidr_); + } + if (!getNodeIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeIpv4Cidr_); + } + if (!getServicesIpv4CidrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, servicesIpv4Cidr_); + } + if (!getClusterSecondaryRangeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterSecondaryRangeName_); + } + if (!getServicesSecondaryRangeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, servicesSecondaryRangeName_); + } + if (!getClusterIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4CidrBlock_); + } + if (!getNodeIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeIpv4CidrBlock_); + } + if (!getServicesIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, servicesIpv4CidrBlock_); + } + if (allowRouteOverlap_ != false) { + output.writeBool(12, allowRouteOverlap_); + } + if (!getTpuIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tpuIpv4CidrBlock_); + } + if (useRoutes_ != false) { + output.writeBool(15, useRoutes_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (useIpAliases_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, useIpAliases_); + } + if (createSubnetwork_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, createSubnetwork_); + } + if (!getSubnetworkNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subnetworkName_); + } + if (!getClusterIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterIpv4Cidr_); + } + if (!getNodeIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeIpv4Cidr_); + } + if (!getServicesIpv4CidrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, servicesIpv4Cidr_); + } + if (!getClusterSecondaryRangeNameBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterSecondaryRangeName_); + } + if (!getServicesSecondaryRangeNameBytes().isEmpty()) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(8, servicesSecondaryRangeName_); + } + if (!getClusterIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4CidrBlock_); + } + if (!getNodeIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeIpv4CidrBlock_); + } + if (!getServicesIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, servicesIpv4CidrBlock_); + } + if (allowRouteOverlap_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, allowRouteOverlap_); + } + if (!getTpuIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, tpuIpv4CidrBlock_); + } + if (useRoutes_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, useRoutes_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.IPAllocationPolicy)) { + return super.equals(obj); + } + com.google.container.v1beta1.IPAllocationPolicy other = + (com.google.container.v1beta1.IPAllocationPolicy) obj; + + if (getUseIpAliases() != other.getUseIpAliases()) return false; + if (getCreateSubnetwork() != other.getCreateSubnetwork()) return false; + if (!getSubnetworkName().equals(other.getSubnetworkName())) return false; + if (!getClusterIpv4Cidr().equals(other.getClusterIpv4Cidr())) return false; + if (!getNodeIpv4Cidr().equals(other.getNodeIpv4Cidr())) return false; + if (!getServicesIpv4Cidr().equals(other.getServicesIpv4Cidr())) return false; + if (!getClusterSecondaryRangeName().equals(other.getClusterSecondaryRangeName())) return false; + if (!getServicesSecondaryRangeName().equals(other.getServicesSecondaryRangeName())) + return false; + if (!getClusterIpv4CidrBlock().equals(other.getClusterIpv4CidrBlock())) return false; + if (!getNodeIpv4CidrBlock().equals(other.getNodeIpv4CidrBlock())) return false; + if (!getServicesIpv4CidrBlock().equals(other.getServicesIpv4CidrBlock())) return false; + if (getAllowRouteOverlap() != other.getAllowRouteOverlap()) return false; + if (!getTpuIpv4CidrBlock().equals(other.getTpuIpv4CidrBlock())) return false; + if (getUseRoutes() != other.getUseRoutes()) 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) + USE_IP_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseIpAliases()); + hash = (37 * hash) + CREATE_SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreateSubnetwork()); + hash = (37 * hash) + SUBNETWORK_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSubnetworkName().hashCode(); + hash = (37 * hash) + CLUSTER_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getClusterIpv4Cidr().hashCode(); + hash = (37 * hash) + NODE_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getNodeIpv4Cidr().hashCode(); + hash = (37 * hash) + SERVICES_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getServicesIpv4Cidr().hashCode(); + hash = (37 * hash) + CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClusterSecondaryRangeName().hashCode(); + hash = (37 * hash) + SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getServicesSecondaryRangeName().hashCode(); + hash = (37 * hash) + CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getClusterIpv4CidrBlock().hashCode(); + hash = (37 * hash) + NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getNodeIpv4CidrBlock().hashCode(); + hash = (37 * hash) + SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getServicesIpv4CidrBlock().hashCode(); + hash = (37 * hash) + ALLOW_ROUTE_OVERLAP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowRouteOverlap()); + hash = (37 * hash) + TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getTpuIpv4CidrBlock().hashCode(); + hash = (37 * hash) + USE_ROUTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseRoutes()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.IPAllocationPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.IPAllocationPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for controlling how IPs are allocated in the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.IPAllocationPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.IPAllocationPolicy) + com.google.container.v1beta1.IPAllocationPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IPAllocationPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.IPAllocationPolicy.class, + com.google.container.v1beta1.IPAllocationPolicy.Builder.class); + } + + // Construct using com.google.container.v1beta1.IPAllocationPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + useIpAliases_ = false; + + createSubnetwork_ = false; + + subnetworkName_ = ""; + + clusterIpv4Cidr_ = ""; + + nodeIpv4Cidr_ = ""; + + servicesIpv4Cidr_ = ""; + + clusterSecondaryRangeName_ = ""; + + servicesSecondaryRangeName_ = ""; + + clusterIpv4CidrBlock_ = ""; + + nodeIpv4CidrBlock_ = ""; + + servicesIpv4CidrBlock_ = ""; + + allowRouteOverlap_ = false; + + tpuIpv4CidrBlock_ = ""; + + useRoutes_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy build() { + com.google.container.v1beta1.IPAllocationPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy buildPartial() { + com.google.container.v1beta1.IPAllocationPolicy result = + new com.google.container.v1beta1.IPAllocationPolicy(this); + result.useIpAliases_ = useIpAliases_; + result.createSubnetwork_ = createSubnetwork_; + result.subnetworkName_ = subnetworkName_; + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + result.nodeIpv4Cidr_ = nodeIpv4Cidr_; + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; + result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; + result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; + result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; + result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; + result.allowRouteOverlap_ = allowRouteOverlap_; + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + result.useRoutes_ = useRoutes_; + 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.IPAllocationPolicy) { + return mergeFrom((com.google.container.v1beta1.IPAllocationPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.IPAllocationPolicy other) { + if (other == com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance()) + return this; + if (other.getUseIpAliases() != false) { + setUseIpAliases(other.getUseIpAliases()); + } + if (other.getCreateSubnetwork() != false) { + setCreateSubnetwork(other.getCreateSubnetwork()); + } + if (!other.getSubnetworkName().isEmpty()) { + subnetworkName_ = other.subnetworkName_; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + onChanged(); + } + if (!other.getNodeIpv4Cidr().isEmpty()) { + nodeIpv4Cidr_ = other.nodeIpv4Cidr_; + onChanged(); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + onChanged(); + } + if (!other.getClusterSecondaryRangeName().isEmpty()) { + clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; + onChanged(); + } + if (!other.getServicesSecondaryRangeName().isEmpty()) { + servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; + onChanged(); + } + if (!other.getClusterIpv4CidrBlock().isEmpty()) { + clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; + onChanged(); + } + if (!other.getNodeIpv4CidrBlock().isEmpty()) { + nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; + onChanged(); + } + if (!other.getServicesIpv4CidrBlock().isEmpty()) { + servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; + onChanged(); + } + if (other.getAllowRouteOverlap() != false) { + setAllowRouteOverlap(other.getAllowRouteOverlap()); + } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + onChanged(); + } + if (other.getUseRoutes() != false) { + setUseRoutes(other.getUseRoutes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.IPAllocationPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.IPAllocationPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean useIpAliases_; + /** + * + * + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_routes. It cannot
+     * be true if use_routes is true. If both use_ip_aliases and use_routes are
+     * false, then the server picks the default IP allocation mode
+     * 
+ * + * bool use_ip_aliases = 1; + * + * @return The useIpAliases. + */ + @java.lang.Override + public boolean getUseIpAliases() { + return useIpAliases_; + } + /** + * + * + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_routes. It cannot
+     * be true if use_routes is true. If both use_ip_aliases and use_routes are
+     * false, then the server picks the default IP allocation mode
+     * 
+ * + * bool use_ip_aliases = 1; + * + * @param value The useIpAliases to set. + * @return This builder for chaining. + */ + public Builder setUseIpAliases(boolean value) { + + useIpAliases_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether alias IPs will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_routes. It cannot
+     * be true if use_routes is true. If both use_ip_aliases and use_routes are
+     * false, then the server picks the default IP allocation mode
+     * 
+ * + * bool use_ip_aliases = 1; + * + * @return This builder for chaining. + */ + public Builder clearUseIpAliases() { + + useIpAliases_ = false; + onChanged(); + return this; + } + + private boolean createSubnetwork_; + /** + * + * + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + * + * @return The createSubnetwork. + */ + @java.lang.Override + public boolean getCreateSubnetwork() { + return createSubnetwork_; + } + /** + * + * + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + * + * @param value The createSubnetwork to set. + * @return This builder for chaining. + */ + public Builder setCreateSubnetwork(boolean value) { + + createSubnetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether a new subnetwork will be created automatically for the cluster.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * 
+ * + * bool create_subnetwork = 2; + * + * @return This builder for chaining. + */ + public Builder clearCreateSubnetwork() { + + createSubnetwork_ = false; + onChanged(); + return this; + } + + private java.lang.Object subnetworkName_ = ""; + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @return The subnetworkName. + */ + public java.lang.String getSubnetworkName() { + java.lang.Object ref = subnetworkName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetworkName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @return The bytes for subnetworkName. + */ + public com.google.protobuf.ByteString getSubnetworkNameBytes() { + java.lang.Object ref = subnetworkName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetworkName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @param value The subnetworkName to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetworkName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearSubnetworkName() { + + subnetworkName_ = getDefaultInstance().getSubnetworkName(); + onChanged(); + return this; + } + /** + * + * + *
+     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+     * this field is empty, then an automatic name will be chosen for the new
+     * subnetwork.
+     * 
+ * + * string subnetwork_name = 3; + * + * @param value The bytes for subnetworkName to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetworkName_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4Cidr_ = ""; + /** + * + * + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return The clusterIpv4Cidr. + */ + @java.lang.Deprecated + public java.lang.String getClusterIpv4Cidr() { + java.lang.Object ref = clusterIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return The bytes for clusterIpv4Cidr. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { + java.lang.Object ref = clusterIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @param value The clusterIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterIpv4Cidr() { + + clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @param value The bytes for clusterIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeIpv4Cidr_ = ""; + /** + * + * + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return The nodeIpv4Cidr. + */ + @java.lang.Deprecated + public java.lang.String getNodeIpv4Cidr() { + java.lang.Object ref = nodeIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return The bytes for nodeIpv4Cidr. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { + java.lang.Object ref = nodeIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @param value The nodeIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodeIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodeIpv4Cidr() { + + nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @param value The bytes for nodeIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4Cidr_ = ""; + /** + * + * + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return The servicesIpv4Cidr. + */ + @java.lang.Deprecated + public java.lang.String getServicesIpv4Cidr() { + java.lang.Object ref = servicesIpv4Cidr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4Cidr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return The bytes for servicesIpv4Cidr. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { + java.lang.Object ref = servicesIpv4Cidr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4Cidr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @param value The servicesIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setServicesIpv4Cidr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearServicesIpv4Cidr() { + + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + onChanged(); + return this; + } + /** + * + * + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @param value The bytes for servicesIpv4Cidr to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4Cidr_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterSecondaryRangeName_ = ""; + /** + * + * + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + * + * @return The clusterSecondaryRangeName. + */ + public java.lang.String getClusterSecondaryRangeName() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterSecondaryRangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + * + * @return The bytes for clusterSecondaryRangeName. + */ + public com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes() { + java.lang.Object ref = clusterSecondaryRangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + * + * @param value The clusterSecondaryRangeName to set. + * @return This builder for chaining. + */ + public Builder setClusterSecondaryRangeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterSecondaryRangeName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearClusterSecondaryRangeName() { + + clusterSecondaryRangeName_ = getDefaultInstance().getClusterSecondaryRangeName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the secondary range to be used for the cluster CIDR
+     * block.  The secondary range will be used for pod IP
+     * addresses. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + * + * @param value The bytes for clusterSecondaryRangeName to set. + * @return This builder for chaining. + */ + public Builder setClusterSecondaryRangeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterSecondaryRangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesSecondaryRangeName_ = ""; + /** + * + * + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * + * @return The servicesSecondaryRangeName. + */ + public java.lang.String getServicesSecondaryRangeName() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesSecondaryRangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * + * @return The bytes for servicesSecondaryRangeName. + */ + public com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes() { + java.lang.Object ref = servicesSecondaryRangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesSecondaryRangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * + * @param value The servicesSecondaryRangeName to set. + * @return This builder for chaining. + */ + public Builder setServicesSecondaryRangeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesSecondaryRangeName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * + * @return This builder for chaining. + */ + public Builder clearServicesSecondaryRangeName() { + + servicesSecondaryRangeName_ = getDefaultInstance().getServicesSecondaryRangeName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     * This field is only applicable with use_ip_aliases and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * + * @param value The bytes for servicesSecondaryRangeName to set. + * @return This builder for chaining. + */ + public Builder setServicesSecondaryRangeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesSecondaryRangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The clusterIpv4CidrBlock. + */ + public java.lang.String getClusterIpv4CidrBlock() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The bytes for clusterIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { + java.lang.Object ref = clusterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @param value The clusterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return This builder for chaining. + */ + public Builder clearClusterIpv4CidrBlock() { + + clusterIpv4CidrBlock_ = getDefaultInstance().getClusterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range for the cluster pod IPs. If this field is set, then
+     * `cluster.cluster_ipv4_cidr` must be left blank.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @param value The bytes for clusterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setClusterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The nodeIpv4CidrBlock. + */ + public java.lang.String getNodeIpv4CidrBlock() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The bytes for nodeIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { + java.lang.Object ref = nodeIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @param value The nodeIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setNodeIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return This builder for chaining. + */ + public Builder clearNodeIpv4CidrBlock() { + + nodeIpv4CidrBlock_ = getDefaultInstance().getNodeIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the instance IPs in this cluster.
+     * This is applicable only if `create_subnetwork` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @param value The bytes for nodeIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setNodeIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The servicesIpv4CidrBlock. + */ + public java.lang.String getServicesIpv4CidrBlock() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The bytes for servicesIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { + java.lang.Object ref = servicesIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servicesIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @param value The servicesIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + servicesIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return This builder for chaining. + */ + public Builder clearServicesIpv4CidrBlock() { + + servicesIpv4CidrBlock_ = getDefaultInstance().getServicesIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the services IPs in this cluster. If blank, a range
+     * will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * Set to blank to have a range chosen with the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @param value The bytes for servicesIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + servicesIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private boolean allowRouteOverlap_; + /** + * + * + *
+     * If true, allow allocation of cluster CIDR ranges that overlap with certain
+     * kinds of network routes. By default we do not allow cluster CIDR ranges to
+     * intersect with any user declared routes. With allow_route_overlap == true,
+     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+     * range.
+     * If this field is set to true, then cluster and services CIDRs must be
+     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+     *    `services_ipv4_cidr_block` must be fully-specified.
+     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+     *    fully-specified.
+     * 
+ * + * bool allow_route_overlap = 12; + * + * @return The allowRouteOverlap. + */ + @java.lang.Override + public boolean getAllowRouteOverlap() { + return allowRouteOverlap_; + } + /** + * + * + *
+     * If true, allow allocation of cluster CIDR ranges that overlap with certain
+     * kinds of network routes. By default we do not allow cluster CIDR ranges to
+     * intersect with any user declared routes. With allow_route_overlap == true,
+     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+     * range.
+     * If this field is set to true, then cluster and services CIDRs must be
+     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+     *    `services_ipv4_cidr_block` must be fully-specified.
+     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+     *    fully-specified.
+     * 
+ * + * bool allow_route_overlap = 12; + * + * @param value The allowRouteOverlap to set. + * @return This builder for chaining. + */ + public Builder setAllowRouteOverlap(boolean value) { + + allowRouteOverlap_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, allow allocation of cluster CIDR ranges that overlap with certain
+     * kinds of network routes. By default we do not allow cluster CIDR ranges to
+     * intersect with any user declared routes. With allow_route_overlap == true,
+     * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+     * range.
+     * If this field is set to true, then cluster and services CIDRs must be
+     * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+     * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+     *    `services_ipv4_cidr_block` must be fully-specified.
+     * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+     *    fully-specified.
+     * 
+ * + * bool allow_route_overlap = 12; + * + * @return This builder for chaining. + */ + public Builder clearAllowRouteOverlap() { + + allowRouteOverlap_ = false; + onChanged(); + return this; + } + + private java.lang.Object tpuIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @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; + } + } + /** + * + * + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @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; + } + } + /** + * + * + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @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; + } + /** + * + * + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @return This builder for chaining. + */ + public Builder clearTpuIpv4CidrBlock() { + + tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     * This field is only applicable when `use_ip_aliases` is true.
+     * If unspecified, the range will use the default size.
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @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 boolean useRoutes_; + /** + * + * + *
+     * Whether routes will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_ip_aliases. It cannot be true if
+     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+     * then the server picks the default IP allocation mode
+     * 
+ * + * bool use_routes = 15; + * + * @return The useRoutes. + */ + @java.lang.Override + public boolean getUseRoutes() { + return useRoutes_; + } + /** + * + * + *
+     * Whether routes will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_ip_aliases. It cannot be true if
+     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+     * then the server picks the default IP allocation mode
+     * 
+ * + * bool use_routes = 15; + * + * @param value The useRoutes to set. + * @return This builder for chaining. + */ + public Builder setUseRoutes(boolean value) { + + useRoutes_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether routes will be used for pod IPs in the cluster.
+     * This is used in conjunction with use_ip_aliases. It cannot be true if
+     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+     * then the server picks the default IP allocation mode
+     * 
+ * + * bool use_routes = 15; + * + * @return This builder for chaining. + */ + public Builder clearUseRoutes() { + + useRoutes_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.IPAllocationPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.IPAllocationPolicy) + private static final com.google.container.v1beta1.IPAllocationPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.IPAllocationPolicy(); + } + + public static com.google.container.v1beta1.IPAllocationPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IPAllocationPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IPAllocationPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java new file mode 100644 index 00000000..1b120dfc --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java @@ -0,0 +1,454 @@ +/* + * 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 IPAllocationPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.IPAllocationPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether alias IPs will be used for pod IPs in the cluster.
+   * This is used in conjunction with use_routes. It cannot
+   * be true if use_routes is true. If both use_ip_aliases and use_routes are
+   * false, then the server picks the default IP allocation mode
+   * 
+ * + * bool use_ip_aliases = 1; + * + * @return The useIpAliases. + */ + boolean getUseIpAliases(); + + /** + * + * + *
+   * Whether a new subnetwork will be created automatically for the cluster.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * 
+ * + * bool create_subnetwork = 2; + * + * @return The createSubnetwork. + */ + boolean getCreateSubnetwork(); + + /** + * + * + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + * + * @return The subnetworkName. + */ + java.lang.String getSubnetworkName(); + /** + * + * + *
+   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
+   * this field is empty, then an automatic name will be chosen for the new
+   * subnetwork.
+   * 
+ * + * string subnetwork_name = 3; + * + * @return The bytes for subnetworkName. + */ + com.google.protobuf.ByteString getSubnetworkNameBytes(); + + /** + * + * + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return The clusterIpv4Cidr. + */ + @java.lang.Deprecated + java.lang.String getClusterIpv4Cidr(); + /** + * + * + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return The bytes for clusterIpv4Cidr. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIpv4CidrBytes(); + + /** + * + * + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return The nodeIpv4Cidr. + */ + @java.lang.Deprecated + java.lang.String getNodeIpv4Cidr(); + /** + * + * + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return The bytes for nodeIpv4Cidr. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getNodeIpv4CidrBytes(); + + /** + * + * + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return The servicesIpv4Cidr. + */ + @java.lang.Deprecated + java.lang.String getServicesIpv4Cidr(); + /** + * + * + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return The bytes for servicesIpv4Cidr. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getServicesIpv4CidrBytes(); + + /** + * + * + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + * + * @return The clusterSecondaryRangeName. + */ + java.lang.String getClusterSecondaryRangeName(); + /** + * + * + *
+   * The name of the secondary range to be used for the cluster CIDR
+   * block.  The secondary range will be used for pod IP
+   * addresses. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string cluster_secondary_range_name = 7; + * + * @return The bytes for clusterSecondaryRangeName. + */ + com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes(); + + /** + * + * + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + * + * @return The servicesSecondaryRangeName. + */ + java.lang.String getServicesSecondaryRangeName(); + /** + * + * + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   * This field is only applicable with use_ip_aliases and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + * + * @return The bytes for servicesSecondaryRangeName. + */ + com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes(); + + /** + * + * + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The clusterIpv4CidrBlock. + */ + java.lang.String getClusterIpv4CidrBlock(); + /** + * + * + *
+   * The IP address range for the cluster pod IPs. If this field is set, then
+   * `cluster.cluster_ipv4_cidr` must be left blank.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string cluster_ipv4_cidr_block = 9; + * + * @return The bytes for clusterIpv4CidrBlock. + */ + com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes(); + + /** + * + * + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The nodeIpv4CidrBlock. + */ + java.lang.String getNodeIpv4CidrBlock(); + /** + * + * + *
+   * The IP address range of the instance IPs in this cluster.
+   * This is applicable only if `create_subnetwork` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string node_ipv4_cidr_block = 10; + * + * @return The bytes for nodeIpv4CidrBlock. + */ + com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes(); + + /** + * + * + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The servicesIpv4CidrBlock. + */ + java.lang.String getServicesIpv4CidrBlock(); + /** + * + * + *
+   * The IP address range of the services IPs in this cluster. If blank, a range
+   * will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * Set to blank to have a range chosen with the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string services_ipv4_cidr_block = 11; + * + * @return The bytes for servicesIpv4CidrBlock. + */ + com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes(); + + /** + * + * + *
+   * If true, allow allocation of cluster CIDR ranges that overlap with certain
+   * kinds of network routes. By default we do not allow cluster CIDR ranges to
+   * intersect with any user declared routes. With allow_route_overlap == true,
+   * we allow overlapping with CIDR ranges that are larger than the cluster CIDR
+   * range.
+   * If this field is set to true, then cluster and services CIDRs must be
+   * fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
+   * 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
+   *    `services_ipv4_cidr_block` must be fully-specified.
+   * 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
+   *    fully-specified.
+   * 
+ * + * bool allow_route_overlap = 12; + * + * @return The allowRouteOverlap. + */ + boolean getAllowRouteOverlap(); + + /** + * + * + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * If unspecified, the range will use the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @return The tpuIpv4CidrBlock. + */ + java.lang.String getTpuIpv4CidrBlock(); + /** + * + * + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   * This field is only applicable when `use_ip_aliases` is true.
+   * If unspecified, the range will use the default size.
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + * + * @return The bytes for tpuIpv4CidrBlock. + */ + com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes(); + + /** + * + * + *
+   * Whether routes will be used for pod IPs in the cluster.
+   * This is used in conjunction with use_ip_aliases. It cannot be true if
+   * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
+   * then the server picks the default IP allocation mode
+   * 
+ * + * bool use_routes = 15; + * + * @return The useRoutes. + */ + boolean getUseRoutes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java new file mode 100644 index 00000000..b4b6a4a9 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java @@ -0,0 +1,549 @@ +/* + * 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; + +/** + * + * + *
+ * IntraNodeVisibilityConfig contains the desired config of the intra-node
+ * visibility on this cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.IntraNodeVisibilityConfig} + */ +public final class IntraNodeVisibilityConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.IntraNodeVisibilityConfig) + IntraNodeVisibilityConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntraNodeVisibilityConfig.newBuilder() to construct. + private IntraNodeVisibilityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IntraNodeVisibilityConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IntraNodeVisibilityConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IntraNodeVisibilityConfig( + 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_IntraNodeVisibilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.IntraNodeVisibilityConfig.class, + com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enables intra node visibility 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.IntraNodeVisibilityConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.IntraNodeVisibilityConfig other = + (com.google.container.v1beta1.IntraNodeVisibilityConfig) 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.IntraNodeVisibilityConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.IntraNodeVisibilityConfig 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.IntraNodeVisibilityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.IntraNodeVisibilityConfig 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.IntraNodeVisibilityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.IntraNodeVisibilityConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.IntraNodeVisibilityConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.IntraNodeVisibilityConfig 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.IntraNodeVisibilityConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.IntraNodeVisibilityConfig 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.IntraNodeVisibilityConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.IntraNodeVisibilityConfig 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.IntraNodeVisibilityConfig 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; + } + /** + * + * + *
+   * IntraNodeVisibilityConfig contains the desired config of the intra-node
+   * visibility on this cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.IntraNodeVisibilityConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.IntraNodeVisibilityConfig) + com.google.container.v1beta1.IntraNodeVisibilityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IntraNodeVisibilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.IntraNodeVisibilityConfig.class, + com.google.container.v1beta1.IntraNodeVisibilityConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.IntraNodeVisibilityConfig.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_IntraNodeVisibilityConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.IntraNodeVisibilityConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.IntraNodeVisibilityConfig build() { + com.google.container.v1beta1.IntraNodeVisibilityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.IntraNodeVisibilityConfig buildPartial() { + com.google.container.v1beta1.IntraNodeVisibilityConfig result = + new com.google.container.v1beta1.IntraNodeVisibilityConfig(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.IntraNodeVisibilityConfig) { + return mergeFrom((com.google.container.v1beta1.IntraNodeVisibilityConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.IntraNodeVisibilityConfig other) { + if (other == com.google.container.v1beta1.IntraNodeVisibilityConfig.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.IntraNodeVisibilityConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.IntraNodeVisibilityConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Enables intra node visibility for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enables intra node visibility 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 intra node visibility 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.IntraNodeVisibilityConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.IntraNodeVisibilityConfig) + private static final com.google.container.v1beta1.IntraNodeVisibilityConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.IntraNodeVisibilityConfig(); + } + + public static com.google.container.v1beta1.IntraNodeVisibilityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntraNodeVisibilityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IntraNodeVisibilityConfig(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.IntraNodeVisibilityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfigOrBuilder.java new file mode 100644 index 00000000..0cfb8e6d --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfigOrBuilder.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 IntraNodeVisibilityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.IntraNodeVisibilityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enables intra node visibility 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 new file mode 100644 index 00000000..e3d31ed8 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java @@ -0,0 +1,833 @@ +/* + * 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 options for Istio addon.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.IstioConfig} + */ +public final class IstioConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.IstioConfig) + IstioConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use IstioConfig.newBuilder() to construct. + private IstioConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IstioConfig() { + auth_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IstioConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IstioConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disabled_ = input.readBool(); + break; + } + case 16: + { + int rawValue = input.readEnum(); + + auth_ = 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_IstioConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IstioConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.IstioConfig.class, + com.google.container.v1beta1.IstioConfig.Builder.class); + } + + /** + * + * + *
+   * Istio auth mode, https://istio.io/docs/concepts/security/mutual-tls.html
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.IstioConfig.IstioAuthMode} + */ + public enum IstioAuthMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * auth not enabled
+     * 
+ * + * AUTH_NONE = 0; + */ + AUTH_NONE(0), + /** + * + * + *
+     * auth mutual TLS enabled
+     * 
+ * + * AUTH_MUTUAL_TLS = 1; + */ + AUTH_MUTUAL_TLS(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * auth not enabled
+     * 
+ * + * AUTH_NONE = 0; + */ + public static final int AUTH_NONE_VALUE = 0; + /** + * + * + *
+     * auth mutual TLS enabled
+     * 
+ * + * AUTH_MUTUAL_TLS = 1; + */ + public static final int AUTH_MUTUAL_TLS_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 IstioAuthMode 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 IstioAuthMode forNumber(int value) { + switch (value) { + case 0: + return AUTH_NONE; + case 1: + return AUTH_MUTUAL_TLS; + 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 IstioAuthMode findValueByNumber(int number) { + return IstioAuthMode.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.IstioConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final IstioAuthMode[] VALUES = values(); + + public static IstioAuthMode 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 IstioAuthMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.IstioConfig.IstioAuthMode) + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Whether Istio is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + public static final int AUTH_FIELD_NUMBER = 2; + private int auth_; + /** + * + * + *
+   * The specified Istio auth mode, either none, or mutual TLS.
+   * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * + * @return The enum numeric value on the wire for auth. + */ + @java.lang.Override + public int getAuthValue() { + return auth_; + } + /** + * + * + *
+   * The specified Istio auth mode, either none, or mutual TLS.
+   * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * + * @return The auth. + */ + @java.lang.Override + public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.IstioConfig.IstioAuthMode result = + com.google.container.v1beta1.IstioConfig.IstioAuthMode.valueOf(auth_); + return result == null + ? com.google.container.v1beta1.IstioConfig.IstioAuthMode.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 (disabled_ != false) { + output.writeBool(1, disabled_); + } + if (auth_ != com.google.container.v1beta1.IstioConfig.IstioAuthMode.AUTH_NONE.getNumber()) { + output.writeEnum(2, auth_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); + } + if (auth_ != com.google.container.v1beta1.IstioConfig.IstioAuthMode.AUTH_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, auth_); + } + 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.IstioConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.IstioConfig other = (com.google.container.v1beta1.IstioConfig) obj; + + if (getDisabled() != other.getDisabled()) return false; + if (auth_ != other.auth_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (37 * hash) + AUTH_FIELD_NUMBER; + hash = (53 * hash) + auth_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.IstioConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.IstioConfig 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.IstioConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.IstioConfig 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.IstioConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.IstioConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.IstioConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.IstioConfig 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.IstioConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.IstioConfig 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.IstioConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.IstioConfig 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.IstioConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration options for Istio addon.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.IstioConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.IstioConfig) + com.google.container.v1beta1.IstioConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IstioConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IstioConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.IstioConfig.class, + com.google.container.v1beta1.IstioConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.IstioConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + auth_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_IstioConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.IstioConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.IstioConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.IstioConfig build() { + com.google.container.v1beta1.IstioConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.IstioConfig buildPartial() { + com.google.container.v1beta1.IstioConfig result = + new com.google.container.v1beta1.IstioConfig(this); + result.disabled_ = disabled_; + result.auth_ = auth_; + 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.IstioConfig) { + return mergeFrom((com.google.container.v1beta1.IstioConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.IstioConfig other) { + if (other == com.google.container.v1beta1.IstioConfig.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + if (other.auth_ != 0) { + setAuthValue(other.getAuthValue()); + } + 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.IstioConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.IstioConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_; + /** + * + * + *
+     * Whether Istio is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether Istio is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Istio is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + private int auth_ = 0; + /** + * + * + *
+     * The specified Istio auth mode, either none, or mutual TLS.
+     * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * + * @return The enum numeric value on the wire for auth. + */ + @java.lang.Override + public int getAuthValue() { + return auth_; + } + /** + * + * + *
+     * The specified Istio auth mode, either none, or mutual TLS.
+     * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * + * @param value The enum numeric value on the wire for auth to set. + * @return This builder for chaining. + */ + public Builder setAuthValue(int value) { + + auth_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The specified Istio auth mode, either none, or mutual TLS.
+     * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * + * @return The auth. + */ + @java.lang.Override + public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.IstioConfig.IstioAuthMode result = + com.google.container.v1beta1.IstioConfig.IstioAuthMode.valueOf(auth_); + return result == null + ? com.google.container.v1beta1.IstioConfig.IstioAuthMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The specified Istio auth mode, either none, or mutual TLS.
+     * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * + * @param value The auth to set. + * @return This builder for chaining. + */ + public Builder setAuth(com.google.container.v1beta1.IstioConfig.IstioAuthMode value) { + if (value == null) { + throw new NullPointerException(); + } + + auth_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The specified Istio auth mode, either none, or mutual TLS.
+     * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * + * @return This builder for chaining. + */ + public Builder clearAuth() { + + auth_ = 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.IstioConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.IstioConfig) + private static final com.google.container.v1beta1.IstioConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.IstioConfig(); + } + + public static com.google.container.v1beta1.IstioConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IstioConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IstioConfig(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.IstioConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 00000000..af3d1989 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java @@ -0,0 +1,63 @@ +/* + * 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 IstioConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.IstioConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Istio is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); + + /** + * + * + *
+   * The specified Istio auth mode, either none, or mutual TLS.
+   * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * + * @return The enum numeric value on the wire for auth. + */ + int getAuthValue(); + /** + * + * + *
+   * The specified Istio auth mode, either none, or mutual TLS.
+   * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2; + * + * @return The auth. + */ + com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Jwk.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Jwk.java new file mode 100644 index 00000000..113ebc51 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Jwk.java @@ -0,0 +1,2062 @@ +/* + * 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; + +/** + * + * + *
+ * Jwk is a JSON Web Key as specified in RFC 7517
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Jwk} + */ +public final class Jwk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Jwk) + JwkOrBuilder { + private static final long serialVersionUID = 0L; + // Use Jwk.newBuilder() to construct. + private Jwk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Jwk() { + kty_ = ""; + alg_ = ""; + use_ = ""; + kid_ = ""; + n_ = ""; + e_ = ""; + x_ = ""; + y_ = ""; + crv_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Jwk(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Jwk( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + kty_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + alg_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + use_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + kid_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + n_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + e_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + x_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + y_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + crv_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Jwk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Jwk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Jwk.class, com.google.container.v1beta1.Jwk.Builder.class); + } + + public static final int KTY_FIELD_NUMBER = 1; + private volatile java.lang.Object kty_; + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The kty. + */ + @java.lang.Override + public java.lang.String getKty() { + java.lang.Object ref = kty_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kty_ = s; + return s; + } + } + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The bytes for kty. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKtyBytes() { + java.lang.Object ref = kty_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALG_FIELD_NUMBER = 2; + private volatile java.lang.Object alg_; + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The alg. + */ + @java.lang.Override + public java.lang.String getAlg() { + java.lang.Object ref = alg_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alg_ = s; + return s; + } + } + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The bytes for alg. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAlgBytes() { + java.lang.Object ref = alg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USE_FIELD_NUMBER = 3; + private volatile java.lang.Object use_; + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The use. + */ + @java.lang.Override + public java.lang.String getUse() { + java.lang.Object ref = use_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + use_ = s; + return s; + } + } + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The bytes for use. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUseBytes() { + java.lang.Object ref = use_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + use_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KID_FIELD_NUMBER = 4; + private volatile java.lang.Object kid_; + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The kid. + */ + @java.lang.Override + public java.lang.String getKid() { + java.lang.Object ref = kid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kid_ = s; + return s; + } + } + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The bytes for kid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKidBytes() { + java.lang.Object ref = kid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int N_FIELD_NUMBER = 5; + private volatile java.lang.Object n_; + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The n. + */ + @java.lang.Override + public java.lang.String getN() { + java.lang.Object ref = n_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + n_ = s; + return s; + } + } + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The bytes for n. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNBytes() { + java.lang.Object ref = n_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + n_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int E_FIELD_NUMBER = 6; + private volatile java.lang.Object e_; + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The e. + */ + @java.lang.Override + public java.lang.String getE() { + java.lang.Object ref = e_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + e_ = s; + return s; + } + } + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The bytes for e. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEBytes() { + java.lang.Object ref = e_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + e_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int X_FIELD_NUMBER = 7; + private volatile java.lang.Object x_; + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The x. + */ + @java.lang.Override + public java.lang.String getX() { + java.lang.Object ref = x_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + x_ = s; + return s; + } + } + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The bytes for x. + */ + @java.lang.Override + public com.google.protobuf.ByteString getXBytes() { + java.lang.Object ref = x_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + x_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int Y_FIELD_NUMBER = 8; + private volatile java.lang.Object y_; + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The y. + */ + @java.lang.Override + public java.lang.String getY() { + java.lang.Object ref = y_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + y_ = s; + return s; + } + } + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The bytes for y. + */ + @java.lang.Override + public com.google.protobuf.ByteString getYBytes() { + java.lang.Object ref = y_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + y_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CRV_FIELD_NUMBER = 9; + private volatile java.lang.Object crv_; + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The crv. + */ + @java.lang.Override + public java.lang.String getCrv() { + java.lang.Object ref = crv_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crv_ = s; + return s; + } + } + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The bytes for crv. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrvBytes() { + java.lang.Object ref = crv_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crv_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKtyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kty_); + } + if (!getAlgBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alg_); + } + if (!getUseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, use_); + } + if (!getKidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kid_); + } + if (!getNBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, n_); + } + if (!getEBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, e_); + } + if (!getXBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, x_); + } + if (!getYBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, y_); + } + if (!getCrvBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, crv_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKtyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kty_); + } + if (!getAlgBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alg_); + } + if (!getUseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, use_); + } + if (!getKidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kid_); + } + if (!getNBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, n_); + } + if (!getEBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, e_); + } + if (!getXBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, x_); + } + if (!getYBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, y_); + } + if (!getCrvBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, crv_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.Jwk)) { + return super.equals(obj); + } + com.google.container.v1beta1.Jwk other = (com.google.container.v1beta1.Jwk) obj; + + if (!getKty().equals(other.getKty())) return false; + if (!getAlg().equals(other.getAlg())) return false; + if (!getUse().equals(other.getUse())) return false; + if (!getKid().equals(other.getKid())) return false; + if (!getN().equals(other.getN())) return false; + if (!getE().equals(other.getE())) return false; + if (!getX().equals(other.getX())) return false; + if (!getY().equals(other.getY())) return false; + if (!getCrv().equals(other.getCrv())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KTY_FIELD_NUMBER; + hash = (53 * hash) + getKty().hashCode(); + hash = (37 * hash) + ALG_FIELD_NUMBER; + hash = (53 * hash) + getAlg().hashCode(); + hash = (37 * hash) + USE_FIELD_NUMBER; + hash = (53 * hash) + getUse().hashCode(); + hash = (37 * hash) + KID_FIELD_NUMBER; + hash = (53 * hash) + getKid().hashCode(); + hash = (37 * hash) + N_FIELD_NUMBER; + hash = (53 * hash) + getN().hashCode(); + hash = (37 * hash) + E_FIELD_NUMBER; + hash = (53 * hash) + getE().hashCode(); + hash = (37 * hash) + X_FIELD_NUMBER; + hash = (53 * hash) + getX().hashCode(); + hash = (37 * hash) + Y_FIELD_NUMBER; + hash = (53 * hash) + getY().hashCode(); + hash = (37 * hash) + CRV_FIELD_NUMBER; + hash = (53 * hash) + getCrv().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.Jwk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Jwk parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Jwk parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Jwk parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Jwk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Jwk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Jwk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Jwk parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.Jwk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Jwk parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.Jwk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Jwk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.Jwk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Jwk is a JSON Web Key as specified in RFC 7517
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.Jwk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.Jwk) + com.google.container.v1beta1.JwkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Jwk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Jwk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Jwk.class, + com.google.container.v1beta1.Jwk.Builder.class); + } + + // Construct using com.google.container.v1beta1.Jwk.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + kty_ = ""; + + alg_ = ""; + + use_ = ""; + + kid_ = ""; + + n_ = ""; + + e_ = ""; + + x_ = ""; + + y_ = ""; + + crv_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Jwk_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Jwk getDefaultInstanceForType() { + return com.google.container.v1beta1.Jwk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Jwk build() { + com.google.container.v1beta1.Jwk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Jwk buildPartial() { + com.google.container.v1beta1.Jwk result = new com.google.container.v1beta1.Jwk(this); + result.kty_ = kty_; + result.alg_ = alg_; + result.use_ = use_; + result.kid_ = kid_; + result.n_ = n_; + result.e_ = e_; + result.x_ = x_; + result.y_ = y_; + result.crv_ = crv_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.Jwk) { + return mergeFrom((com.google.container.v1beta1.Jwk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Jwk other) { + if (other == com.google.container.v1beta1.Jwk.getDefaultInstance()) return this; + if (!other.getKty().isEmpty()) { + kty_ = other.kty_; + onChanged(); + } + if (!other.getAlg().isEmpty()) { + alg_ = other.alg_; + onChanged(); + } + if (!other.getUse().isEmpty()) { + use_ = other.use_; + onChanged(); + } + if (!other.getKid().isEmpty()) { + kid_ = other.kid_; + onChanged(); + } + if (!other.getN().isEmpty()) { + n_ = other.n_; + onChanged(); + } + if (!other.getE().isEmpty()) { + e_ = other.e_; + onChanged(); + } + if (!other.getX().isEmpty()) { + x_ = other.x_; + onChanged(); + } + if (!other.getY().isEmpty()) { + y_ = other.y_; + onChanged(); + } + if (!other.getCrv().isEmpty()) { + crv_ = other.crv_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.Jwk parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.Jwk) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object kty_ = ""; + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @return The kty. + */ + public java.lang.String getKty() { + java.lang.Object ref = kty_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kty_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @return The bytes for kty. + */ + public com.google.protobuf.ByteString getKtyBytes() { + java.lang.Object ref = kty_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @param value The kty to set. + * @return This builder for chaining. + */ + public Builder setKty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kty_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @return This builder for chaining. + */ + public Builder clearKty() { + + kty_ = getDefaultInstance().getKty(); + onChanged(); + return this; + } + /** + * + * + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * + * @param value The bytes for kty to set. + * @return This builder for chaining. + */ + public Builder setKtyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kty_ = value; + onChanged(); + return this; + } + + private java.lang.Object alg_ = ""; + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @return The alg. + */ + public java.lang.String getAlg() { + java.lang.Object ref = alg_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alg_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @return The bytes for alg. + */ + public com.google.protobuf.ByteString getAlgBytes() { + java.lang.Object ref = alg_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @param value The alg to set. + * @return This builder for chaining. + */ + public Builder setAlg(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alg_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @return This builder for chaining. + */ + public Builder clearAlg() { + + alg_ = getDefaultInstance().getAlg(); + onChanged(); + return this; + } + /** + * + * + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * + * @param value The bytes for alg to set. + * @return This builder for chaining. + */ + public Builder setAlgBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alg_ = value; + onChanged(); + return this; + } + + private java.lang.Object use_ = ""; + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @return The use. + */ + public java.lang.String getUse() { + java.lang.Object ref = use_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + use_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @return The bytes for use. + */ + public com.google.protobuf.ByteString getUseBytes() { + java.lang.Object ref = use_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + use_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @param value The use to set. + * @return This builder for chaining. + */ + public Builder setUse(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + use_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @return This builder for chaining. + */ + public Builder clearUse() { + + use_ = getDefaultInstance().getUse(); + onChanged(); + return this; + } + /** + * + * + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * + * @param value The bytes for use to set. + * @return This builder for chaining. + */ + public Builder setUseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + use_ = value; + onChanged(); + return this; + } + + private java.lang.Object kid_ = ""; + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @return The kid. + */ + public java.lang.String getKid() { + java.lang.Object ref = kid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @return The bytes for kid. + */ + public com.google.protobuf.ByteString getKidBytes() { + java.lang.Object ref = kid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @param value The kid to set. + * @return This builder for chaining. + */ + public Builder setKid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @return This builder for chaining. + */ + public Builder clearKid() { + + kid_ = getDefaultInstance().getKid(); + onChanged(); + return this; + } + /** + * + * + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * + * @param value The bytes for kid to set. + * @return This builder for chaining. + */ + public Builder setKidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kid_ = value; + onChanged(); + return this; + } + + private java.lang.Object n_ = ""; + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @return The n. + */ + public java.lang.String getN() { + java.lang.Object ref = n_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + n_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @return The bytes for n. + */ + public com.google.protobuf.ByteString getNBytes() { + java.lang.Object ref = n_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + n_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @param value The n to set. + * @return This builder for chaining. + */ + public Builder setN(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + n_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @return This builder for chaining. + */ + public Builder clearN() { + + n_ = getDefaultInstance().getN(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * + * @param value The bytes for n to set. + * @return This builder for chaining. + */ + public Builder setNBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + n_ = value; + onChanged(); + return this; + } + + private java.lang.Object e_ = ""; + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @return The e. + */ + public java.lang.String getE() { + java.lang.Object ref = e_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + e_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @return The bytes for e. + */ + public com.google.protobuf.ByteString getEBytes() { + java.lang.Object ref = e_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + e_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @param value The e to set. + * @return This builder for chaining. + */ + public Builder setE(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + e_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @return This builder for chaining. + */ + public Builder clearE() { + + e_ = getDefaultInstance().getE(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * + * @param value The bytes for e to set. + * @return This builder for chaining. + */ + public Builder setEBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + e_ = value; + onChanged(); + return this; + } + + private java.lang.Object x_ = ""; + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @return The x. + */ + public java.lang.String getX() { + java.lang.Object ref = x_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + x_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @return The bytes for x. + */ + public com.google.protobuf.ByteString getXBytes() { + java.lang.Object ref = x_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + x_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @param value The x to set. + * @return This builder for chaining. + */ + public Builder setX(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + x_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @return This builder for chaining. + */ + public Builder clearX() { + + x_ = getDefaultInstance().getX(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * + * @param value The bytes for x to set. + * @return This builder for chaining. + */ + public Builder setXBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + x_ = value; + onChanged(); + return this; + } + + private java.lang.Object y_ = ""; + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @return The y. + */ + public java.lang.String getY() { + java.lang.Object ref = y_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + y_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @return The bytes for y. + */ + public com.google.protobuf.ByteString getYBytes() { + java.lang.Object ref = y_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + y_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @param value The y to set. + * @return This builder for chaining. + */ + public Builder setY(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + y_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @return This builder for chaining. + */ + public Builder clearY() { + + y_ = getDefaultInstance().getY(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * + * @param value The bytes for y to set. + * @return This builder for chaining. + */ + public Builder setYBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + y_ = value; + onChanged(); + return this; + } + + private java.lang.Object crv_ = ""; + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @return The crv. + */ + public java.lang.String getCrv() { + java.lang.Object ref = crv_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crv_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @return The bytes for crv. + */ + public com.google.protobuf.ByteString getCrvBytes() { + java.lang.Object ref = crv_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crv_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @param value The crv to set. + * @return This builder for chaining. + */ + public Builder setCrv(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + crv_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @return This builder for chaining. + */ + public Builder clearCrv() { + + crv_ = getDefaultInstance().getCrv(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * + * @param value The bytes for crv to set. + * @return This builder for chaining. + */ + public Builder setCrvBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crv_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.Jwk) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Jwk) + private static final com.google.container.v1beta1.Jwk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Jwk(); + } + + public static com.google.container.v1beta1.Jwk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Jwk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Jwk(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.Jwk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/JwkOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/JwkOrBuilder.java new file mode 100644 index 00000000..0850d357 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/JwkOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface JwkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Jwk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The kty. + */ + java.lang.String getKty(); + /** + * + * + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * + * @return The bytes for kty. + */ + com.google.protobuf.ByteString getKtyBytes(); + + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The alg. + */ + java.lang.String getAlg(); + /** + * + * + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * + * @return The bytes for alg. + */ + com.google.protobuf.ByteString getAlgBytes(); + + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The use. + */ + java.lang.String getUse(); + /** + * + * + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * + * @return The bytes for use. + */ + com.google.protobuf.ByteString getUseBytes(); + + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The kid. + */ + java.lang.String getKid(); + /** + * + * + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * + * @return The bytes for kid. + */ + com.google.protobuf.ByteString getKidBytes(); + + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The n. + */ + java.lang.String getN(); + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * + * @return The bytes for n. + */ + com.google.protobuf.ByteString getNBytes(); + + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The e. + */ + java.lang.String getE(); + /** + * + * + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * + * @return The bytes for e. + */ + com.google.protobuf.ByteString getEBytes(); + + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The x. + */ + java.lang.String getX(); + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * + * @return The bytes for x. + */ + com.google.protobuf.ByteString getXBytes(); + + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The y. + */ + java.lang.String getY(); + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * + * @return The bytes for y. + */ + com.google.protobuf.ByteString getYBytes(); + + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The crv. + */ + java.lang.String getCrv(); + /** + * + * + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * + * @return The bytes for crv. + */ + com.google.protobuf.ByteString getCrvBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java new file mode 100644 index 00000000..c23e0e05 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.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; + +/** + * + * + *
+ * Configuration options for the KALM addon.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.KalmConfig} + */ +public final class KalmConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.KalmConfig) + KalmConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use KalmConfig.newBuilder() to construct. + private KalmConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KalmConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new KalmConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private KalmConfig( + 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_KalmConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KalmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.KalmConfig.class, + com.google.container.v1beta1.KalmConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether KALM 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.KalmConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.KalmConfig other = (com.google.container.v1beta1.KalmConfig) 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.KalmConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.KalmConfig 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.KalmConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.KalmConfig 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.KalmConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.KalmConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.KalmConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.KalmConfig 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.KalmConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.KalmConfig 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.KalmConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.KalmConfig 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.KalmConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration options for the KALM addon.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.KalmConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.KalmConfig) + com.google.container.v1beta1.KalmConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KalmConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KalmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.KalmConfig.class, + com.google.container.v1beta1.KalmConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.KalmConfig.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_KalmConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.KalmConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.KalmConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.KalmConfig build() { + com.google.container.v1beta1.KalmConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.KalmConfig buildPartial() { + com.google.container.v1beta1.KalmConfig result = + new com.google.container.v1beta1.KalmConfig(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.KalmConfig) { + return mergeFrom((com.google.container.v1beta1.KalmConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.KalmConfig other) { + if (other == com.google.container.v1beta1.KalmConfig.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.KalmConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.KalmConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether KALM is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether KALM 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 KALM 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.KalmConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.KalmConfig) + private static final com.google.container.v1beta1.KalmConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.KalmConfig(); + } + + public static com.google.container.v1beta1.KalmConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KalmConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KalmConfig(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.KalmConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java new file mode 100644 index 00000000..3b23eaa7 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.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 KalmConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.KalmConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether KALM 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/KubernetesDashboard.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java new file mode 100644 index 00000000..8b8439f2 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for the Kubernetes Dashboard.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.KubernetesDashboard} + */ +public final class KubernetesDashboard extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.KubernetesDashboard) + KubernetesDashboardOrBuilder { + private static final long serialVersionUID = 0L; + // Use KubernetesDashboard.newBuilder() to construct. + private KubernetesDashboard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KubernetesDashboard() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new KubernetesDashboard(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private KubernetesDashboard( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KubernetesDashboard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.KubernetesDashboard.class, + com.google.container.v1beta1.KubernetesDashboard.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Whether the Kubernetes Dashboard is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.KubernetesDashboard)) { + return super.equals(obj); + } + com.google.container.v1beta1.KubernetesDashboard other = + (com.google.container.v1beta1.KubernetesDashboard) obj; + + if (getDisabled() != other.getDisabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.KubernetesDashboard parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.KubernetesDashboard parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.KubernetesDashboard parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.KubernetesDashboard parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.KubernetesDashboard parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.KubernetesDashboard prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for the Kubernetes Dashboard.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.KubernetesDashboard} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.KubernetesDashboard) + com.google.container.v1beta1.KubernetesDashboardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KubernetesDashboard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.KubernetesDashboard.class, + com.google.container.v1beta1.KubernetesDashboard.Builder.class); + } + + // Construct using com.google.container.v1beta1.KubernetesDashboard.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.KubernetesDashboard getDefaultInstanceForType() { + return com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.KubernetesDashboard build() { + com.google.container.v1beta1.KubernetesDashboard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.KubernetesDashboard buildPartial() { + com.google.container.v1beta1.KubernetesDashboard result = + new com.google.container.v1beta1.KubernetesDashboard(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.KubernetesDashboard) { + return mergeFrom((com.google.container.v1beta1.KubernetesDashboard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.KubernetesDashboard other) { + if (other == com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance()) + return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.KubernetesDashboard parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.KubernetesDashboard) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_; + /** + * + * + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.KubernetesDashboard) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.KubernetesDashboard) + private static final com.google.container.v1beta1.KubernetesDashboard DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.KubernetesDashboard(); + } + + public static com.google.container.v1beta1.KubernetesDashboard getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesDashboard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesDashboard(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.KubernetesDashboard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java new file mode 100644 index 00000000..ce5bd328 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.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 KubernetesDashboardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.KubernetesDashboard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the Kubernetes Dashboard is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbac.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbac.java new file mode 100644 index 00000000..1461a358 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbac.java @@ -0,0 +1,557 @@ +/* + * 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 legacy Attribute Based Access Control authorization
+ * mode.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.LegacyAbac} + */ +public final class LegacyAbac extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.LegacyAbac) + LegacyAbacOrBuilder { + private static final long serialVersionUID = 0L; + // Use LegacyAbac.newBuilder() to construct. + private LegacyAbac(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LegacyAbac() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LegacyAbac(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LegacyAbac( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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_LegacyAbac_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LegacyAbac_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LegacyAbac.class, + com.google.container.v1beta1.LegacyAbac.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+   * identities in the system, including service accounts, nodes, and
+   * controllers, will have statically granted permissions beyond those
+   * provided by the RBAC configuration or IAM.
+   * 
+ * + * bool enabled = 1; + * + * @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.LegacyAbac)) { + return super.equals(obj); + } + com.google.container.v1beta1.LegacyAbac other = (com.google.container.v1beta1.LegacyAbac) 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.LegacyAbac parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.LegacyAbac parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.LegacyAbac parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.LegacyAbac parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.LegacyAbac parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.LegacyAbac parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.LegacyAbac parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.LegacyAbac parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.LegacyAbac parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.LegacyAbac parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.LegacyAbac parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.LegacyAbac parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.LegacyAbac prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for the legacy Attribute Based Access Control authorization
+   * mode.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.LegacyAbac} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.LegacyAbac) + com.google.container.v1beta1.LegacyAbacOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LegacyAbac_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LegacyAbac_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LegacyAbac.class, + com.google.container.v1beta1.LegacyAbac.Builder.class); + } + + // Construct using com.google.container.v1beta1.LegacyAbac.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LegacyAbac_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac getDefaultInstanceForType() { + return com.google.container.v1beta1.LegacyAbac.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac build() { + com.google.container.v1beta1.LegacyAbac result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac buildPartial() { + com.google.container.v1beta1.LegacyAbac result = + new com.google.container.v1beta1.LegacyAbac(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.LegacyAbac) { + return mergeFrom((com.google.container.v1beta1.LegacyAbac) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.LegacyAbac other) { + if (other == com.google.container.v1beta1.LegacyAbac.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.LegacyAbac parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.LegacyAbac) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+     * identities in the system, including service accounts, nodes, and
+     * controllers, will have statically granted permissions beyond those
+     * provided by the RBAC configuration or IAM.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+     * identities in the system, including service accounts, nodes, and
+     * controllers, will have statically granted permissions beyond those
+     * provided by the RBAC configuration or IAM.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+     * identities in the system, including service accounts, nodes, and
+     * controllers, will have statically granted permissions beyond those
+     * provided by the RBAC configuration or IAM.
+     * 
+ * + * bool enabled = 1; + * + * @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.LegacyAbac) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.LegacyAbac) + private static final com.google.container.v1beta1.LegacyAbac DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.LegacyAbac(); + } + + public static com.google.container.v1beta1.LegacyAbac getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LegacyAbac parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LegacyAbac(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.LegacyAbac getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java new file mode 100644 index 00000000..2376daff --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java @@ -0,0 +1,41 @@ +/* + * 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 LegacyAbacOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LegacyAbac) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the ABAC authorizer is enabled for this cluster. When enabled,
+   * identities in the system, including service accounts, nodes, and
+   * controllers, will have statically granted permissions beyond those
+   * provided by the RBAC configuration or IAM.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfig.java new file mode 100644 index 00000000..4ff2d598 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfig.java @@ -0,0 +1,900 @@ +/* + * 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; + +/** + * + * + *
+ * Parameters that can be configured on Linux nodes.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.LinuxNodeConfig} + */ +public final class LinuxNodeConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LinuxNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LinuxNodeConfig.class, + com.google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_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.v1beta1.LinuxNodeConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.LinuxNodeConfig other = + (com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.LinuxNodeConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.LinuxNodeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.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.v1beta1.LinuxNodeConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.LinuxNodeConfig) + com.google.container.v1beta1.LinuxNodeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LinuxNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LinuxNodeConfig.class, + com.google.container.v1beta1.LinuxNodeConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_LinuxNodeConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.LinuxNodeConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.LinuxNodeConfig build() { + com.google.container.v1beta1.LinuxNodeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.LinuxNodeConfig buildPartial() { + com.google.container.v1beta1.LinuxNodeConfig result = + new com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig) { + return mergeFrom((com.google.container.v1beta1.LinuxNodeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.LinuxNodeConfig other) { + if (other == com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.LinuxNodeConfig) + private static final com.google.container.v1beta1.LinuxNodeConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.LinuxNodeConfig(); + } + + public static com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfigOrBuilder.java new file mode 100644 index 00000000..e3b6ff88 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface LinuxNodeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.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-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java new file mode 100644 index 00000000..c16a9352 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java @@ -0,0 +1,1063 @@ +/* + * 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; + +/** + * + * + *
+ * ListClustersRequest lists clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListClustersRequest} + */ +public final class ListClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListClustersRequest) + ListClustersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListClustersRequest.newBuilder() to construct. + private ListClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListClustersRequest() { + projectId_ = ""; + zone_ = ""; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListClustersRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListClustersRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!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_ListClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListClustersRequest.class, + com.google.container.v1beta1.ListClustersRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ListClustersRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListClustersRequest other = + (com.google.container.v1beta1.ListClustersRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListClustersRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListClustersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListClustersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListClustersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ListClustersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ListClustersRequest lists clusters.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListClustersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListClustersRequest) + com.google.container.v1beta1.ListClustersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListClustersRequest.class, + com.google.container.v1beta1.ListClustersRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListClustersRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListClustersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersRequest build() { + com.google.container.v1beta1.ListClustersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersRequest buildPartial() { + com.google.container.v1beta1.ListClustersRequest result = + new com.google.container.v1beta1.ListClustersRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.ListClustersRequest) { + return mergeFrom((com.google.container.v1beta1.ListClustersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListClustersRequest other) { + if (other == com.google.container.v1beta1.ListClustersRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListClustersRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ListClustersRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the clusters will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListClustersRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListClustersRequest) + private static final com.google.container.v1beta1.ListClustersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListClustersRequest(); + } + + public static com.google.container.v1beta1.ListClustersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListClustersRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java new file mode 100644 index 00000000..9f92b6c0 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * 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 ListClustersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListClustersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * The parent (project and location) where the clusters will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java new file mode 100644 index 00000000..8f170fe7 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java @@ -0,0 +1,1260 @@ +/* + * 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; + +/** + * + * + *
+ * ListClustersResponse is the result of ListClustersRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListClustersResponse} + */ +public final class ListClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListClustersResponse) + ListClustersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListClustersResponse.newBuilder() to construct. + private ListClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListClustersResponse() { + clusters_ = java.util.Collections.emptyList(); + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListClustersResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListClustersResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + clusters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + clusters_.add( + input.readMessage( + com.google.container.v1beta1.Cluster.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + missingZones_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + clusters_ = java.util.Collections.unmodifiableList(clusters_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + missingZones_ = missingZones_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListClustersResponse.class, + com.google.container.v1beta1.ListClustersResponse.Builder.class); + } + + public static final int CLUSTERS_FIELD_NUMBER = 1; + private java.util.List clusters_; + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + @java.lang.Override + public java.util.List getClustersList() { + return clusters_; + } + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + @java.lang.Override + public java.util.List + getClustersOrBuilderList() { + return clusters_; + } + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + @java.lang.Override + public int getClustersCount() { + return clusters_.size(); + } + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.Cluster getClusters(int index) { + return clusters_.get(index); + } + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterOrBuilder getClustersOrBuilder(int index) { + return clusters_.get(index); + } + + public static final int MISSING_ZONES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList missingZones_; + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + public com.google.protobuf.ProtocolStringList getMissingZonesList() { + return missingZones_; + } + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + public com.google.protobuf.ByteString getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < clusters_.size(); i++) { + output.writeMessage(1, clusters_.get(i)); + } + for (int i = 0; i < missingZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < clusters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clusters_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < missingZones_.size(); i++) { + dataSize += computeStringSizeNoTag(missingZones_.getRaw(i)); + } + size += dataSize; + size += 1 * getMissingZonesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ListClustersResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListClustersResponse other = + (com.google.container.v1beta1.ListClustersResponse) obj; + + if (!getClustersList().equals(other.getClustersList())) return false; + if (!getMissingZonesList().equals(other.getMissingZonesList())) 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 (getClustersCount() > 0) { + hash = (37 * hash) + CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getClustersList().hashCode(); + } + if (getMissingZonesCount() > 0) { + hash = (37 * hash) + MISSING_ZONES_FIELD_NUMBER; + hash = (53 * hash) + getMissingZonesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListClustersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListClustersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListClustersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ListClustersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ListClustersResponse is the result of ListClustersRequest.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListClustersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListClustersResponse) + com.google.container.v1beta1.ListClustersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListClustersResponse.class, + com.google.container.v1beta1.ListClustersResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListClustersResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getClustersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (clustersBuilder_ == null) { + clusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + clustersBuilder_.clear(); + } + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListClustersResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.ListClustersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersResponse build() { + com.google.container.v1beta1.ListClustersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersResponse buildPartial() { + com.google.container.v1beta1.ListClustersResponse result = + new com.google.container.v1beta1.ListClustersResponse(this); + int from_bitField0_ = bitField0_; + if (clustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + clusters_ = java.util.Collections.unmodifiableList(clusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clusters_ = clusters_; + } else { + result.clusters_ = clustersBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + missingZones_ = missingZones_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.missingZones_ = missingZones_; + 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.ListClustersResponse) { + return mergeFrom((com.google.container.v1beta1.ListClustersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListClustersResponse other) { + if (other == com.google.container.v1beta1.ListClustersResponse.getDefaultInstance()) + return this; + if (clustersBuilder_ == null) { + if (!other.clusters_.isEmpty()) { + if (clusters_.isEmpty()) { + clusters_ = other.clusters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureClustersIsMutable(); + clusters_.addAll(other.clusters_); + } + onChanged(); + } + } else { + if (!other.clusters_.isEmpty()) { + if (clustersBuilder_.isEmpty()) { + clustersBuilder_.dispose(); + clustersBuilder_ = null; + clusters_ = other.clusters_; + bitField0_ = (bitField0_ & ~0x00000001); + clustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClustersFieldBuilder() + : null; + } else { + clustersBuilder_.addAllMessages(other.clusters_); + } + } + } + if (!other.missingZones_.isEmpty()) { + if (missingZones_.isEmpty()) { + missingZones_ = other.missingZones_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMissingZonesIsMutable(); + missingZones_.addAll(other.missingZones_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListClustersResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ListClustersResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List clusters_ = + java.util.Collections.emptyList(); + + private void ensureClustersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + clusters_ = new java.util.ArrayList(clusters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Cluster, + com.google.container.v1beta1.Cluster.Builder, + com.google.container.v1beta1.ClusterOrBuilder> + clustersBuilder_; + + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public java.util.List getClustersList() { + if (clustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusters_); + } else { + return clustersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public int getClustersCount() { + if (clustersBuilder_ == null) { + return clusters_.size(); + } else { + return clustersBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public com.google.container.v1beta1.Cluster getClusters(int index) { + if (clustersBuilder_ == null) { + return clusters_.get(index); + } else { + return clustersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder setClusters(int index, com.google.container.v1beta1.Cluster value) { + if (clustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClustersIsMutable(); + clusters_.set(index, value); + onChanged(); + } else { + clustersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder setClusters( + int index, com.google.container.v1beta1.Cluster.Builder builderForValue) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.set(index, builderForValue.build()); + onChanged(); + } else { + clustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder addClusters(com.google.container.v1beta1.Cluster value) { + if (clustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClustersIsMutable(); + clusters_.add(value); + onChanged(); + } else { + clustersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder addClusters(int index, com.google.container.v1beta1.Cluster value) { + if (clustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClustersIsMutable(); + clusters_.add(index, value); + onChanged(); + } else { + clustersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder addClusters(com.google.container.v1beta1.Cluster.Builder builderForValue) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(builderForValue.build()); + onChanged(); + } else { + clustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder addClusters( + int index, com.google.container.v1beta1.Cluster.Builder builderForValue) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(index, builderForValue.build()); + onChanged(); + } else { + clustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder addAllClusters( + java.lang.Iterable values) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusters_); + onChanged(); + } else { + clustersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder clearClusters() { + if (clustersBuilder_ == null) { + clusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + clustersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public Builder removeClusters(int index) { + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.remove(index); + onChanged(); + } else { + clustersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public com.google.container.v1beta1.Cluster.Builder getClustersBuilder(int index) { + return getClustersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public com.google.container.v1beta1.ClusterOrBuilder getClustersOrBuilder(int index) { + if (clustersBuilder_ == null) { + return clusters_.get(index); + } else { + return clustersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public java.util.List + getClustersOrBuilderList() { + if (clustersBuilder_ != null) { + return clustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusters_); + } + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public com.google.container.v1beta1.Cluster.Builder addClustersBuilder() { + return getClustersFieldBuilder() + .addBuilder(com.google.container.v1beta1.Cluster.getDefaultInstance()); + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public com.google.container.v1beta1.Cluster.Builder addClustersBuilder(int index) { + return getClustersFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.Cluster.getDefaultInstance()); + } + /** + * + * + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + public java.util.List getClustersBuilderList() { + return getClustersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Cluster, + com.google.container.v1beta1.Cluster.Builder, + com.google.container.v1beta1.ClusterOrBuilder> + getClustersFieldBuilder() { + if (clustersBuilder_ == null) { + clustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Cluster, + com.google.container.v1beta1.Cluster.Builder, + com.google.container.v1beta1.ClusterOrBuilder>( + clusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + clusters_ = null; + } + return clustersBuilder_; + } + + private com.google.protobuf.LazyStringList missingZones_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureMissingZonesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + public com.google.protobuf.ProtocolStringList getMissingZonesList() { + return missingZones_.getUnmodifiableView(); + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + public com.google.protobuf.ByteString getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index to set the value at. + * @param value The missingZones to set. + * @return This builder for chaining. + */ + public Builder setMissingZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param value The missingZones to add. + * @return This builder for chaining. + */ + public Builder addMissingZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param values The missingZones to add. + * @return This builder for chaining. + */ + public Builder addAllMissingZones(java.lang.Iterable values) { + ensureMissingZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingZones_); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return This builder for chaining. + */ + public Builder clearMissingZones() { + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of clusters returned
+     * may be missing those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param value The bytes of the missingZones to add. + * @return This builder for chaining. + */ + public Builder addMissingZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.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.ListClustersResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListClustersResponse) + private static final com.google.container.v1beta1.ListClustersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListClustersResponse(); + } + + public static com.google.container.v1beta1.ListClustersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListClustersResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListClustersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java new file mode 100644 index 00000000..b97b0769 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java @@ -0,0 +1,137 @@ +/* + * 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 ListClustersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListClustersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + java.util.List getClustersList(); + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + com.google.container.v1beta1.Cluster getClusters(int index); + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + int getClustersCount(); + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + java.util.List + getClustersOrBuilderList(); + /** + * + * + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1beta1.Cluster clusters = 1; + */ + com.google.container.v1beta1.ClusterOrBuilder getClustersOrBuilder(int index); + + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + java.util.List getMissingZonesList(); + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + int getMissingZonesCount(); + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + java.lang.String getMissingZones(int index); + /** + * + * + *
+   * If any zones are listed here, the list of clusters returned
+   * may be missing those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + com.google.protobuf.ByteString getMissingZonesBytes(int index); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java new file mode 100644 index 00000000..4e041781 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java @@ -0,0 +1,643 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ListLocationsRequest is used to request the locations that offer GKE.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListLocationsRequest} + */ +public final class ListLocationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListLocationsRequest) + ListLocationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListLocationsRequest.newBuilder() to construct. + private ListLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLocationsRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLocationsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListLocationsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListLocationsRequest.class, + com.google.container.v1beta1.ListLocationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. Contains the name of the resource requested.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Contains the name of the resource requested.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ListLocationsRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListLocationsRequest other = + (com.google.container.v1beta1.ListLocationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListLocationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListLocationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListLocationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListLocationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListLocationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListLocationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListLocationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListLocationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListLocationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListLocationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListLocationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListLocationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ListLocationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ListLocationsRequest is used to request the locations that offer GKE.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListLocationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListLocationsRequest) + com.google.container.v1beta1.ListLocationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListLocationsRequest.class, + com.google.container.v1beta1.ListLocationsRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListLocationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListLocationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsRequest build() { + com.google.container.v1beta1.ListLocationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsRequest buildPartial() { + com.google.container.v1beta1.ListLocationsRequest result = + new com.google.container.v1beta1.ListLocationsRequest(this); + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.ListLocationsRequest) { + return mergeFrom((com.google.container.v1beta1.ListLocationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListLocationsRequest other) { + if (other == com.google.container.v1beta1.ListLocationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListLocationsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ListLocationsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Contains the name of the resource requested.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Contains the name of the resource requested.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Contains the name of the resource requested.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Contains the name of the resource requested.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Contains the name of the resource requested.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListLocationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListLocationsRequest) + private static final com.google.container.v1beta1.ListLocationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListLocationsRequest(); + } + + public static com.google.container.v1beta1.ListLocationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLocationsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java new file mode 100644 index 00000000..02512f84 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.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 ListLocationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListLocationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Contains the name of the resource requested.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Contains the name of the resource requested.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java new file mode 100644 index 00000000..ad2a5136 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java @@ -0,0 +1,1150 @@ +/* + * 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; + +/** + * + * + *
+ * ListLocationsResponse returns the list of all GKE locations and their
+ * recommendation state.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListLocationsResponse} + */ +public final class ListLocationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListLocationsResponse) + ListLocationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListLocationsResponse.newBuilder() to construct. + private ListLocationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLocationsResponse() { + locations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLocationsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListLocationsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add( + input.readMessage( + com.google.container.v1beta1.Location.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!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)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListLocationsResponse.class, + com.google.container.v1beta1.ListLocationsResponse.Builder.class); + } + + public static final int LOCATIONS_FIELD_NUMBER = 1; + private java.util.List locations_; + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + @java.lang.Override + public java.util.List getLocationsList() { + return locations_; + } + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + @java.lang.Override + public java.util.List + getLocationsOrBuilderList() { + return locations_; + } + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + @java.lang.Override + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.Location getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.LocationOrBuilder getLocationsOrBuilder(int index) { + return locations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Only return ListLocationsResponse that occur after the page_token. This
+   * value should be populated from the ListLocationsResponse.next_page_token if
+   * that response token was set (which happens when listing more Locations than
+   * fit in a single ListLocationsResponse).
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Only return ListLocationsResponse that occur after the page_token. This
+   * value should be populated from the ListLocationsResponse.next_page_token if
+   * that response token was set (which happens when listing more Locations than
+   * fit in a single ListLocationsResponse).
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(1, locations_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < locations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ListLocationsResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListLocationsResponse other = + (com.google.container.v1beta1.ListLocationsResponse) obj; + + if (!getLocationsList().equals(other.getLocationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListLocationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListLocationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListLocationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListLocationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListLocationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListLocationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListLocationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListLocationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListLocationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListLocationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListLocationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListLocationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ListLocationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ListLocationsResponse returns the list of all GKE locations and their
+   * recommendation state.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListLocationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListLocationsResponse) + com.google.container.v1beta1.ListLocationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListLocationsResponse.class, + com.google.container.v1beta1.ListLocationsResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListLocationsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLocationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + locationsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListLocationsResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.ListLocationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsResponse build() { + com.google.container.v1beta1.ListLocationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsResponse buildPartial() { + com.google.container.v1beta1.ListLocationsResponse result = + new com.google.container.v1beta1.ListLocationsResponse(this); + int from_bitField0_ = bitField0_; + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListLocationsResponse) { + return mergeFrom((com.google.container.v1beta1.ListLocationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListLocationsResponse other) { + if (other == com.google.container.v1beta1.ListLocationsResponse.getDefaultInstance()) + return this; + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListLocationsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ListLocationsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List locations_ = + java.util.Collections.emptyList(); + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new java.util.ArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Location, + com.google.container.v1beta1.Location.Builder, + com.google.container.v1beta1.LocationOrBuilder> + locationsBuilder_; + + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public java.util.List getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public com.google.container.v1beta1.Location getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder setLocations(int index, com.google.container.v1beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + } else { + locationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder setLocations( + int index, com.google.container.v1beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder addLocations(com.google.container.v1beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder addLocations(int index, com.google.container.v1beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(index, value); + onChanged(); + } else { + locationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder addLocations(com.google.container.v1beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder addLocations( + int index, com.google.container.v1beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder addAllLocations( + java.lang.Iterable values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + locationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public com.google.container.v1beta1.Location.Builder getLocationsBuilder(int index) { + return getLocationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public com.google.container.v1beta1.LocationOrBuilder getLocationsOrBuilder(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public java.util.List + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public com.google.container.v1beta1.Location.Builder addLocationsBuilder() { + return getLocationsFieldBuilder() + .addBuilder(com.google.container.v1beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public com.google.container.v1beta1.Location.Builder addLocationsBuilder(int index) { + return getLocationsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.Location.getDefaultInstance()); + } + /** + * + * + *
+     * A full list of GKE locations.
+     * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + public java.util.List getLocationsBuilderList() { + return getLocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Location, + com.google.container.v1beta1.Location.Builder, + com.google.container.v1beta1.LocationOrBuilder> + getLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Location, + com.google.container.v1beta1.Location.Builder, + com.google.container.v1beta1.LocationOrBuilder>( + locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Only return ListLocationsResponse that occur after the page_token. This
+     * value should be populated from the ListLocationsResponse.next_page_token if
+     * that response token was set (which happens when listing more Locations than
+     * fit in a single ListLocationsResponse).
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Only return ListLocationsResponse that occur after the page_token. This
+     * value should be populated from the ListLocationsResponse.next_page_token if
+     * that response token was set (which happens when listing more Locations than
+     * fit in a single ListLocationsResponse).
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Only return ListLocationsResponse that occur after the page_token. This
+     * value should be populated from the ListLocationsResponse.next_page_token if
+     * that response token was set (which happens when listing more Locations than
+     * fit in a single ListLocationsResponse).
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Only return ListLocationsResponse that occur after the page_token. This
+     * value should be populated from the ListLocationsResponse.next_page_token if
+     * that response token was set (which happens when listing more Locations than
+     * fit in a single ListLocationsResponse).
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Only return ListLocationsResponse that occur after the page_token. This
+     * value should be populated from the ListLocationsResponse.next_page_token if
+     * that response token was set (which happens when listing more Locations than
+     * fit in a single ListLocationsResponse).
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListLocationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListLocationsResponse) + private static final com.google.container.v1beta1.ListLocationsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListLocationsResponse(); + } + + public static com.google.container.v1beta1.ListLocationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLocationsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListLocationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java new file mode 100644 index 00000000..56783a61 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 ListLocationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListLocationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + java.util.List getLocationsList(); + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + com.google.container.v1beta1.Location getLocations(int index); + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + int getLocationsCount(); + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + java.util.List + getLocationsOrBuilderList(); + /** + * + * + *
+   * A full list of GKE locations.
+   * 
+ * + * repeated .google.container.v1beta1.Location locations = 1; + */ + com.google.container.v1beta1.LocationOrBuilder getLocationsOrBuilder(int index); + + /** + * + * + *
+   * Only return ListLocationsResponse that occur after the page_token. This
+   * value should be populated from the ListLocationsResponse.next_page_token if
+   * that response token was set (which happens when listing more Locations than
+   * fit in a single ListLocationsResponse).
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Only return ListLocationsResponse that occur after the page_token. This
+   * value should be populated from the ListLocationsResponse.next_page_token if
+   * that response token was set (which happens when listing more Locations than
+   * fit in a single ListLocationsResponse).
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java new file mode 100644 index 00000000..4bd88c90 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java @@ -0,0 +1,1257 @@ +/* + * 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; + +/** + * + * + *
+ * ListNodePoolsRequest lists the node pool(s) for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListNodePoolsRequest} + */ +public final class ListNodePoolsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListNodePoolsRequest) + ListNodePoolsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNodePoolsRequest.newBuilder() to construct. + private ListNodePoolsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNodePoolsRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNodePoolsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListNodePoolsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!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_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListNodePoolsRequest.class, + com.google.container.v1beta1.ListNodePoolsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 5; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 5; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 5; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ListNodePoolsRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListNodePoolsRequest other = + (com.google.container.v1beta1.ListNodePoolsRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ListNodePoolsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ListNodePoolsRequest lists the node pool(s) for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListNodePoolsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListNodePoolsRequest) + com.google.container.v1beta1.ListNodePoolsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListNodePoolsRequest.class, + com.google.container.v1beta1.ListNodePoolsRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListNodePoolsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListNodePoolsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsRequest build() { + com.google.container.v1beta1.ListNodePoolsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsRequest buildPartial() { + com.google.container.v1beta1.ListNodePoolsRequest result = + new com.google.container.v1beta1.ListNodePoolsRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.ListNodePoolsRequest) { + return mergeFrom((com.google.container.v1beta1.ListNodePoolsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListNodePoolsRequest other) { + if (other == com.google.container.v1beta1.ListNodePoolsRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListNodePoolsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ListNodePoolsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 5; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 5; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 5; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 5; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project, location, cluster id) where the node pools will be
+     * listed. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string parent = 5; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListNodePoolsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListNodePoolsRequest) + private static final com.google.container.v1beta1.ListNodePoolsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListNodePoolsRequest(); + } + + public static com.google.container.v1beta1.ListNodePoolsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodePoolsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNodePoolsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java new file mode 100644 index 00000000..425003e1 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * 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 ListNodePoolsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListNodePoolsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 5; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * The parent (project, location, cluster id) where the node pools will be
+   * listed. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string parent = 5; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java new file mode 100644 index 00000000..2312814c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java @@ -0,0 +1,948 @@ +/* + * 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; + +/** + * + * + *
+ * ListNodePoolsResponse is the result of ListNodePoolsRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListNodePoolsResponse} + */ +public final class ListNodePoolsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListNodePoolsResponse) + ListNodePoolsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListNodePoolsResponse.newBuilder() to construct. + private ListNodePoolsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListNodePoolsResponse() { + nodePools_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListNodePoolsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListNodePoolsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nodePools_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodePools_.add( + input.readMessage( + com.google.container.v1beta1.NodePool.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListNodePoolsResponse.class, + com.google.container.v1beta1.ListNodePoolsResponse.Builder.class); + } + + public static final int NODE_POOLS_FIELD_NUMBER = 1; + private java.util.List nodePools_; + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + @java.lang.Override + public java.util.List getNodePoolsList() { + return nodePools_; + } + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + @java.lang.Override + public java.util.List + getNodePoolsOrBuilderList() { + return nodePools_; + } + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + @java.lang.Override + public int getNodePoolsCount() { + return nodePools_.size(); + } + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool getNodePools(int index) { + return nodePools_.get(index); + } + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { + return nodePools_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < nodePools_.size(); i++) { + output.writeMessage(1, nodePools_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodePools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodePools_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ListNodePoolsResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListNodePoolsResponse other = + (com.google.container.v1beta1.ListNodePoolsResponse) obj; + + if (!getNodePoolsList().equals(other.getNodePoolsList())) 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 (getNodePoolsCount() > 0) { + hash = (37 * hash) + NODE_POOLS_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ListNodePoolsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ListNodePoolsResponse is the result of ListNodePoolsRequest.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListNodePoolsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListNodePoolsResponse) + com.google.container.v1beta1.ListNodePoolsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListNodePoolsResponse.class, + com.google.container.v1beta1.ListNodePoolsResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListNodePoolsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNodePoolsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.ListNodePoolsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsResponse build() { + com.google.container.v1beta1.ListNodePoolsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsResponse buildPartial() { + com.google.container.v1beta1.ListNodePoolsResponse result = + new com.google.container.v1beta1.ListNodePoolsResponse(this); + int from_bitField0_ = bitField0_; + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.ListNodePoolsResponse) { + return mergeFrom((com.google.container.v1beta1.ListNodePoolsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListNodePoolsResponse other) { + if (other == com.google.container.v1beta1.ListNodePoolsResponse.getDefaultInstance()) + return this; + if (nodePoolsBuilder_ == null) { + if (!other.nodePools_.isEmpty()) { + if (nodePools_.isEmpty()) { + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodePoolsIsMutable(); + nodePools_.addAll(other.nodePools_); + } + onChanged(); + } + } else { + if (!other.nodePools_.isEmpty()) { + if (nodePoolsBuilder_.isEmpty()) { + nodePoolsBuilder_.dispose(); + nodePoolsBuilder_ = null; + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000001); + nodePoolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodePoolsFieldBuilder() + : null; + } else { + nodePoolsBuilder_.addAllMessages(other.nodePools_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListNodePoolsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ListNodePoolsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List nodePools_ = + java.util.Collections.emptyList(); + + private void ensureNodePoolsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodePools_ = new java.util.ArrayList(nodePools_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder> + nodePoolsBuilder_; + + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public java.util.List getNodePoolsList() { + if (nodePoolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodePools_); + } else { + return nodePoolsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public int getNodePoolsCount() { + if (nodePoolsBuilder_ == null) { + return nodePools_.size(); + } else { + return nodePoolsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public com.google.container.v1beta1.NodePool getNodePools(int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); + } else { + return nodePoolsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder setNodePools(int index, com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.set(index, value); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder setNodePools( + int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.set(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder addNodePools(com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder addNodePools(int index, com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(index, value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder addNodePools(com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder addNodePools( + int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder addAllNodePools( + java.lang.Iterable values) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodePools_); + onChanged(); + } else { + nodePoolsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder clearNodePools() { + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public Builder removeNodePools(int index) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.remove(index); + onChanged(); + } else { + nodePoolsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public com.google.container.v1beta1.NodePool.Builder getNodePoolsBuilder(int index) { + return getNodePoolsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); + } else { + return nodePoolsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public java.util.List + getNodePoolsOrBuilderList() { + if (nodePoolsBuilder_ != null) { + return nodePoolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodePools_); + } + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder() { + return getNodePoolsFieldBuilder() + .addBuilder(com.google.container.v1beta1.NodePool.getDefaultInstance()); + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder(int index) { + return getNodePoolsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.NodePool.getDefaultInstance()); + } + /** + * + * + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + public java.util.List getNodePoolsBuilderList() { + return getNodePoolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder> + getNodePoolsFieldBuilder() { + if (nodePoolsBuilder_ == null) { + nodePoolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, + com.google.container.v1beta1.NodePool.Builder, + com.google.container.v1beta1.NodePoolOrBuilder>( + nodePools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nodePools_ = null; + } + return nodePoolsBuilder_; + } + + @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.ListNodePoolsResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListNodePoolsResponse) + private static final com.google.container.v1beta1.ListNodePoolsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListNodePoolsResponse(); + } + + public static com.google.container.v1beta1.ListNodePoolsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNodePoolsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListNodePoolsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListNodePoolsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java new file mode 100644 index 00000000..15665ec8 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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 ListNodePoolsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListNodePoolsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + java.util.List getNodePoolsList(); + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + com.google.container.v1beta1.NodePool getNodePools(int index); + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + int getNodePoolsCount(); + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + java.util.List + getNodePoolsOrBuilderList(); + /** + * + * + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 1; + */ + com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder(int index); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java new file mode 100644 index 00000000..8b90de3f --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java @@ -0,0 +1,1064 @@ +/* + * 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; + +/** + * + * + *
+ * ListOperationsRequest lists operations.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListOperationsRequest} + */ +public final class ListOperationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListOperationsRequest) + ListOperationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOperationsRequest.newBuilder() to construct. + private ListOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOperationsRequest() { + projectId_ = ""; + zone_ = ""; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOperationsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListOperationsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!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_ListOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListOperationsRequest.class, + com.google.container.v1beta1.ListOperationsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ListOperationsRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListOperationsRequest other = + (com.google.container.v1beta1.ListOperationsRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListOperationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListOperationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListOperationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListOperationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ListOperationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ListOperationsRequest lists operations.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListOperationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListOperationsRequest) + com.google.container.v1beta1.ListOperationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListOperationsRequest.class, + com.google.container.v1beta1.ListOperationsRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListOperationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListOperationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsRequest build() { + com.google.container.v1beta1.ListOperationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsRequest buildPartial() { + com.google.container.v1beta1.ListOperationsRequest result = + new com.google.container.v1beta1.ListOperationsRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.ListOperationsRequest) { + return mergeFrom((com.google.container.v1beta1.ListOperationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListOperationsRequest other) { + if (other == com.google.container.v1beta1.ListOperationsRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListOperationsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ListOperationsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The parent (project and location) where the operations will be listed.
+     * Specified in the format `projects/*/locations/*`.
+     * Location "-" matches all zones and all regions.
+     * 
+ * + * string parent = 4; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListOperationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListOperationsRequest) + private static final com.google.container.v1beta1.ListOperationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListOperationsRequest(); + } + + public static com.google.container.v1beta1.ListOperationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOperationsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java new file mode 100644 index 00000000..51f2b511 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * 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 ListOperationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListOperationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * The parent (project and location) where the operations will be listed.
+   * Specified in the format `projects/*/locations/*`.
+   * Location "-" matches all zones and all regions.
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java new file mode 100644 index 00000000..9297f9f4 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java @@ -0,0 +1,1238 @@ +/* + * 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; + +/** + * + * + *
+ * ListOperationsResponse is the result of ListOperationsRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListOperationsResponse} + */ +public final class ListOperationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListOperationsResponse) + ListOperationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOperationsResponse.newBuilder() to construct. + private ListOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOperationsResponse() { + operations_ = java.util.Collections.emptyList(); + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOperationsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListOperationsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + operations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + operations_.add( + input.readMessage( + com.google.container.v1beta1.Operation.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + missingZones_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + missingZones_ = missingZones_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListOperationsResponse.class, + com.google.container.v1beta1.ListOperationsResponse.Builder.class); + } + + public static final int OPERATIONS_FIELD_NUMBER = 1; + private java.util.List operations_; + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + @java.lang.Override + public java.util.List getOperationsList() { + return operations_; + } + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + @java.lang.Override + public java.util.List + getOperationsOrBuilderList() { + return operations_; + } + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + @java.lang.Override + public int getOperationsCount() { + return operations_.size(); + } + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.Operation getOperations(int index) { + return operations_.get(index); + } + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.OperationOrBuilder getOperationsOrBuilder(int index) { + return operations_.get(index); + } + + public static final int MISSING_ZONES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList missingZones_; + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + public com.google.protobuf.ProtocolStringList getMissingZonesList() { + return missingZones_; + } + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + public com.google.protobuf.ByteString getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < operations_.size(); i++) { + output.writeMessage(1, operations_.get(i)); + } + for (int i = 0; i < missingZones_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < operations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, operations_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < missingZones_.size(); i++) { + dataSize += computeStringSizeNoTag(missingZones_.getRaw(i)); + } + size += dataSize; + size += 1 * getMissingZonesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ListOperationsResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListOperationsResponse other = + (com.google.container.v1beta1.ListOperationsResponse) obj; + + if (!getOperationsList().equals(other.getOperationsList())) return false; + if (!getMissingZonesList().equals(other.getMissingZonesList())) 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 (getOperationsCount() > 0) { + hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getOperationsList().hashCode(); + } + if (getMissingZonesCount() > 0) { + hash = (37 * hash) + MISSING_ZONES_FIELD_NUMBER; + hash = (53 * hash) + getMissingZonesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListOperationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListOperationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListOperationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListOperationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ListOperationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ListOperationsResponse is the result of ListOperationsRequest.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListOperationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListOperationsResponse) + com.google.container.v1beta1.ListOperationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListOperationsResponse.class, + com.google.container.v1beta1.ListOperationsResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListOperationsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOperationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + operationsBuilder_.clear(); + } + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.ListOperationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsResponse build() { + com.google.container.v1beta1.ListOperationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsResponse buildPartial() { + com.google.container.v1beta1.ListOperationsResponse result = + new com.google.container.v1beta1.ListOperationsResponse(this); + int from_bitField0_ = bitField0_; + if (operationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.operations_ = operations_; + } else { + result.operations_ = operationsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + missingZones_ = missingZones_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.missingZones_ = missingZones_; + 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.ListOperationsResponse) { + return mergeFrom((com.google.container.v1beta1.ListOperationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListOperationsResponse other) { + if (other == com.google.container.v1beta1.ListOperationsResponse.getDefaultInstance()) + return this; + if (operationsBuilder_ == null) { + if (!other.operations_.isEmpty()) { + if (operations_.isEmpty()) { + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOperationsIsMutable(); + operations_.addAll(other.operations_); + } + onChanged(); + } + } else { + if (!other.operations_.isEmpty()) { + if (operationsBuilder_.isEmpty()) { + operationsBuilder_.dispose(); + operationsBuilder_ = null; + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000001); + operationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOperationsFieldBuilder() + : null; + } else { + operationsBuilder_.addAllMessages(other.operations_); + } + } + } + if (!other.missingZones_.isEmpty()) { + if (missingZones_.isEmpty()) { + missingZones_ = other.missingZones_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMissingZonesIsMutable(); + missingZones_.addAll(other.missingZones_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListOperationsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ListOperationsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List operations_ = + java.util.Collections.emptyList(); + + private void ensureOperationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + operations_ = new java.util.ArrayList(operations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Operation, + com.google.container.v1beta1.Operation.Builder, + com.google.container.v1beta1.OperationOrBuilder> + operationsBuilder_; + + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public java.util.List getOperationsList() { + if (operationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(operations_); + } else { + return operationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public int getOperationsCount() { + if (operationsBuilder_ == null) { + return operations_.size(); + } else { + return operationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public com.google.container.v1beta1.Operation getOperations(int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); + } else { + return operationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder setOperations(int index, com.google.container.v1beta1.Operation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.set(index, value); + onChanged(); + } else { + operationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder setOperations( + int index, com.google.container.v1beta1.Operation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.set(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder addOperations(com.google.container.v1beta1.Operation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(value); + onChanged(); + } else { + operationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder addOperations(int index, com.google.container.v1beta1.Operation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(index, value); + onChanged(); + } else { + operationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder addOperations(com.google.container.v1beta1.Operation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder addOperations( + int index, com.google.container.v1beta1.Operation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder addAllOperations( + java.lang.Iterable values) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, operations_); + onChanged(); + } else { + operationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder clearOperations() { + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + operationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public Builder removeOperations(int index) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.remove(index); + onChanged(); + } else { + operationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public com.google.container.v1beta1.Operation.Builder getOperationsBuilder(int index) { + return getOperationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public com.google.container.v1beta1.OperationOrBuilder getOperationsOrBuilder(int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); + } else { + return operationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public java.util.List + getOperationsOrBuilderList() { + if (operationsBuilder_ != null) { + return operationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(operations_); + } + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public com.google.container.v1beta1.Operation.Builder addOperationsBuilder() { + return getOperationsFieldBuilder() + .addBuilder(com.google.container.v1beta1.Operation.getDefaultInstance()); + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public com.google.container.v1beta1.Operation.Builder addOperationsBuilder(int index) { + return getOperationsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.Operation.getDefaultInstance()); + } + /** + * + * + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + public java.util.List + getOperationsBuilderList() { + return getOperationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Operation, + com.google.container.v1beta1.Operation.Builder, + com.google.container.v1beta1.OperationOrBuilder> + getOperationsFieldBuilder() { + if (operationsBuilder_ == null) { + operationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.Operation, + com.google.container.v1beta1.Operation.Builder, + com.google.container.v1beta1.OperationOrBuilder>( + operations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + operations_ = null; + } + return operationsBuilder_; + } + + private com.google.protobuf.LazyStringList missingZones_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureMissingZonesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + public com.google.protobuf.ProtocolStringList getMissingZonesList() { + return missingZones_.getUnmodifiableView(); + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + public int getMissingZonesCount() { + return missingZones_.size(); + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + public java.lang.String getMissingZones(int index) { + return missingZones_.get(index); + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + public com.google.protobuf.ByteString getMissingZonesBytes(int index) { + return missingZones_.getByteString(index); + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index to set the value at. + * @param value The missingZones to set. + * @return This builder for chaining. + */ + public Builder setMissingZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param value The missingZones to add. + * @return This builder for chaining. + */ + public Builder addMissingZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param values The missingZones to add. + * @return This builder for chaining. + */ + public Builder addAllMissingZones(java.lang.Iterable values) { + ensureMissingZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingZones_); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @return This builder for chaining. + */ + public Builder clearMissingZones() { + missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * If any zones are listed here, the list of operations returned
+     * may be missing the operations from those zones.
+     * 
+ * + * repeated string missing_zones = 2; + * + * @param value The bytes of the missingZones to add. + * @return This builder for chaining. + */ + public Builder addMissingZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMissingZonesIsMutable(); + missingZones_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.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.ListOperationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListOperationsResponse) + private static final com.google.container.v1beta1.ListOperationsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListOperationsResponse(); + } + + public static com.google.container.v1beta1.ListOperationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOperationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOperationsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListOperationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java new file mode 100644 index 00000000..968c8da5 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java @@ -0,0 +1,132 @@ +/* + * 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 ListOperationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListOperationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + java.util.List getOperationsList(); + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + com.google.container.v1beta1.Operation getOperations(int index); + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + int getOperationsCount(); + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + java.util.List + getOperationsOrBuilderList(); + /** + * + * + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1beta1.Operation operations = 1; + */ + com.google.container.v1beta1.OperationOrBuilder getOperationsOrBuilder(int index); + + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. + */ + java.util.List getMissingZonesList(); + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @return The count of missingZones. + */ + int getMissingZonesCount(); + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the element to return. + * @return The missingZones at the given index. + */ + java.lang.String getMissingZones(int index); + /** + * + * + *
+   * If any zones are listed here, the list of operations returned
+   * may be missing the operations from those zones.
+   * 
+ * + * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. + */ + com.google.protobuf.ByteString getMissingZonesBytes(int index); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java new file mode 100644 index 00000000..56e92eb9 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java @@ -0,0 +1,1134 @@ +/* + * 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; + +/** + * + * + *
+ * ListUsableSubnetworksRequest requests the list of usable subnetworks.
+ * available to a user for creating clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListUsableSubnetworksRequest} + */ +public final class ListUsableSubnetworksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListUsableSubnetworksRequest) + ListUsableSubnetworksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListUsableSubnetworksRequest.newBuilder() to construct. + private ListUsableSubnetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListUsableSubnetworksRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListUsableSubnetworksRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListUsableSubnetworksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!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_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListUsableSubnetworksRequest.class, + com.google.container.v1beta1.ListUsableSubnetworksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent project where subnetworks are usable.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent project where subnetworks are usable.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
+   * The max number of results per page that should be returned. If the number
+   * of available results is larger than `page_size`, a `next_page_token` is
+   * returned which can be used to get the next page of results in subsequent
+   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ListUsableSubnetworksRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListUsableSubnetworksRequest other = + (com.google.container.v1beta1.ListUsableSubnetworksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.ListUsableSubnetworksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ListUsableSubnetworksRequest requests the list of usable subnetworks.
+   * available to a user for creating clusters.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListUsableSubnetworksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListUsableSubnetworksRequest) + com.google.container.v1beta1.ListUsableSubnetworksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListUsableSubnetworksRequest.class, + com.google.container.v1beta1.ListUsableSubnetworksRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListUsableSubnetworksRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.ListUsableSubnetworksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksRequest build() { + com.google.container.v1beta1.ListUsableSubnetworksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksRequest buildPartial() { + com.google.container.v1beta1.ListUsableSubnetworksRequest result = + new com.google.container.v1beta1.ListUsableSubnetworksRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.ListUsableSubnetworksRequest) { + return mergeFrom((com.google.container.v1beta1.ListUsableSubnetworksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListUsableSubnetworksRequest other) { + if (other == com.google.container.v1beta1.ListUsableSubnetworksRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListUsableSubnetworksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ListUsableSubnetworksRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filtering currently only supports equality on the networkProjectId and must
+     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+     * is the project which owns the listed subnetworks. This defaults to the
+     * parent project ID.
+     * 
+ * + * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The max number of results per page that should be returned. If the number
+     * of available results is larger than `page_size`, a `next_page_token` is
+     * returned which can be used to get the next page of results in subsequent
+     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+     * 
+ * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies a page token to use. Set this to the nextPageToken returned by
+     * previous list requests to get the next page of results.
+     * 
+ * + * string page_token = 4; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListUsableSubnetworksRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListUsableSubnetworksRequest) + private static final com.google.container.v1beta1.ListUsableSubnetworksRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListUsableSubnetworksRequest(); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableSubnetworksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUsableSubnetworksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java new file mode 100644 index 00000000..c78971ae --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * 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 ListUsableSubnetworksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListUsableSubnetworksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent project where subnetworks are usable.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent project where subnetworks are usable.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filtering currently only supports equality on the networkProjectId and must
+   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
+   * is the project which owns the listed subnetworks. This defaults to the
+   * parent project ID.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The max number of results per page that should be returned. If the number
+   * of available results is larger than `page_size`, a `next_page_token` is
+   * returned which can be used to get the next page of results in subsequent
+   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
+   * 
+ * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Specifies a page token to use. Set this to the nextPageToken returned by
+   * previous list requests to get the next page of results.
+   * 
+ * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java new file mode 100644 index 00000000..943a03c5 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java @@ -0,0 +1,1156 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * ListUsableSubnetworksResponse is the response of
+ * ListUsableSubnetworksRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ListUsableSubnetworksResponse} + */ +public final class ListUsableSubnetworksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ListUsableSubnetworksResponse) + ListUsableSubnetworksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListUsableSubnetworksResponse.newBuilder() to construct. + private ListUsableSubnetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListUsableSubnetworksResponse() { + subnetworks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListUsableSubnetworksResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListUsableSubnetworksResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + subnetworks_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + subnetworks_.add( + input.readMessage( + com.google.container.v1beta1.UsableSubnetwork.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!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)) { + subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListUsableSubnetworksResponse.class, + com.google.container.v1beta1.ListUsableSubnetworksResponse.Builder.class); + } + + public static final int SUBNETWORKS_FIELD_NUMBER = 1; + private java.util.List subnetworks_; + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + @java.lang.Override + public java.util.List getSubnetworksList() { + return subnetworks_; + } + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + @java.lang.Override + public java.util.List + getSubnetworksOrBuilderList() { + return subnetworks_; + } + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + @java.lang.Override + public int getSubnetworksCount() { + return subnetworks_.size(); + } + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork getSubnetworks(int index) { + return subnetworks_.get(index); + } + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder(int index) { + return subnetworks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < subnetworks_.size(); i++) { + output.writeMessage(1, subnetworks_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < subnetworks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, subnetworks_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ListUsableSubnetworksResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.ListUsableSubnetworksResponse other = + (com.google.container.v1beta1.ListUsableSubnetworksResponse) obj; + + if (!getSubnetworksList().equals(other.getSubnetworksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSubnetworksCount() > 0) { + hash = (37 * hash) + SUBNETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getSubnetworksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.ListUsableSubnetworksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ListUsableSubnetworksResponse is the response of
+   * ListUsableSubnetworksRequest.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ListUsableSubnetworksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ListUsableSubnetworksResponse) + com.google.container.v1beta1.ListUsableSubnetworksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ListUsableSubnetworksResponse.class, + com.google.container.v1beta1.ListUsableSubnetworksResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.ListUsableSubnetworksResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSubnetworksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (subnetworksBuilder_ == null) { + subnetworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + subnetworksBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.ListUsableSubnetworksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksResponse build() { + com.google.container.v1beta1.ListUsableSubnetworksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksResponse buildPartial() { + com.google.container.v1beta1.ListUsableSubnetworksResponse result = + new com.google.container.v1beta1.ListUsableSubnetworksResponse(this); + int from_bitField0_ = bitField0_; + if (subnetworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subnetworks_ = subnetworks_; + } else { + result.subnetworks_ = subnetworksBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ListUsableSubnetworksResponse) { + return mergeFrom((com.google.container.v1beta1.ListUsableSubnetworksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ListUsableSubnetworksResponse other) { + if (other == com.google.container.v1beta1.ListUsableSubnetworksResponse.getDefaultInstance()) + return this; + if (subnetworksBuilder_ == null) { + if (!other.subnetworks_.isEmpty()) { + if (subnetworks_.isEmpty()) { + subnetworks_ = other.subnetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSubnetworksIsMutable(); + subnetworks_.addAll(other.subnetworks_); + } + onChanged(); + } + } else { + if (!other.subnetworks_.isEmpty()) { + if (subnetworksBuilder_.isEmpty()) { + subnetworksBuilder_.dispose(); + subnetworksBuilder_ = null; + subnetworks_ = other.subnetworks_; + bitField0_ = (bitField0_ & ~0x00000001); + subnetworksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSubnetworksFieldBuilder() + : null; + } else { + subnetworksBuilder_.addAllMessages(other.subnetworks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ListUsableSubnetworksResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ListUsableSubnetworksResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List subnetworks_ = + java.util.Collections.emptyList(); + + private void ensureSubnetworksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + subnetworks_ = + new java.util.ArrayList(subnetworks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetwork, + com.google.container.v1beta1.UsableSubnetwork.Builder, + com.google.container.v1beta1.UsableSubnetworkOrBuilder> + subnetworksBuilder_; + + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List getSubnetworksList() { + if (subnetworksBuilder_ == null) { + return java.util.Collections.unmodifiableList(subnetworks_); + } else { + return subnetworksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public int getSubnetworksCount() { + if (subnetworksBuilder_ == null) { + return subnetworks_.size(); + } else { + return subnetworksBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1beta1.UsableSubnetwork getSubnetworks(int index) { + if (subnetworksBuilder_ == null) { + return subnetworks_.get(index); + } else { + return subnetworksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder setSubnetworks(int index, com.google.container.v1beta1.UsableSubnetwork value) { + if (subnetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetworksIsMutable(); + subnetworks_.set(index, value); + onChanged(); + } else { + subnetworksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder setSubnetworks( + int index, com.google.container.v1beta1.UsableSubnetwork.Builder builderForValue) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.set(index, builderForValue.build()); + onChanged(); + } else { + subnetworksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks(com.google.container.v1beta1.UsableSubnetwork value) { + if (subnetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetworksIsMutable(); + subnetworks_.add(value); + onChanged(); + } else { + subnetworksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks(int index, com.google.container.v1beta1.UsableSubnetwork value) { + if (subnetworksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubnetworksIsMutable(); + subnetworks_.add(index, value); + onChanged(); + } else { + subnetworksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks( + com.google.container.v1beta1.UsableSubnetwork.Builder builderForValue) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.add(builderForValue.build()); + onChanged(); + } else { + subnetworksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks( + int index, com.google.container.v1beta1.UsableSubnetwork.Builder builderForValue) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.add(index, builderForValue.build()); + onChanged(); + } else { + subnetworksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder addAllSubnetworks( + java.lang.Iterable values) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subnetworks_); + onChanged(); + } else { + subnetworksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder clearSubnetworks() { + if (subnetworksBuilder_ == null) { + subnetworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + subnetworksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public Builder removeSubnetworks(int index) { + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.remove(index); + onChanged(); + } else { + subnetworksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1beta1.UsableSubnetwork.Builder getSubnetworksBuilder(int index) { + return getSubnetworksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1beta1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder( + int index) { + if (subnetworksBuilder_ == null) { + return subnetworks_.get(index); + } else { + return subnetworksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List + getSubnetworksOrBuilderList() { + if (subnetworksBuilder_ != null) { + return subnetworksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subnetworks_); + } + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1beta1.UsableSubnetwork.Builder addSubnetworksBuilder() { + return getSubnetworksFieldBuilder() + .addBuilder(com.google.container.v1beta1.UsableSubnetwork.getDefaultInstance()); + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1beta1.UsableSubnetwork.Builder addSubnetworksBuilder(int index) { + return getSubnetworksFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.UsableSubnetwork.getDefaultInstance()); + } + /** + * + * + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List + getSubnetworksBuilderList() { + return getSubnetworksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetwork, + com.google.container.v1beta1.UsableSubnetwork.Builder, + com.google.container.v1beta1.UsableSubnetworkOrBuilder> + getSubnetworksFieldBuilder() { + if (subnetworksBuilder_ == null) { + subnetworksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetwork, + com.google.container.v1beta1.UsableSubnetwork.Builder, + com.google.container.v1beta1.UsableSubnetworkOrBuilder>( + subnetworks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + subnetworks_ = null; + } + return subnetworksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * This token allows you to get the next page of results for list requests.
+     * If the number of results is larger than `page_size`, use the
+     * `next_page_token` as a value for the query parameter `page_token` in the
+     * next request. The value will become empty when there are no more pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ListUsableSubnetworksResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ListUsableSubnetworksResponse) + private static final com.google.container.v1beta1.ListUsableSubnetworksResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ListUsableSubnetworksResponse(); + } + + public static com.google.container.v1beta1.ListUsableSubnetworksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableSubnetworksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUsableSubnetworksResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ListUsableSubnetworksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java new file mode 100644 index 00000000..59936038 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 ListUsableSubnetworksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ListUsableSubnetworksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + java.util.List getSubnetworksList(); + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + com.google.container.v1beta1.UsableSubnetwork getSubnetworks(int index); + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + int getSubnetworksCount(); + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + java.util.List + getSubnetworksOrBuilderList(); + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1beta1.UsableSubnetwork subnetworks = 1; + */ + com.google.container.v1beta1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder(int index); + + /** + * + * + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * This token allows you to get the next page of results for list requests.
+   * If the number of results is larger than `page_size`, use the
+   * `next_page_token` as a value for the query parameter `page_token` in the
+   * next request. The value will become empty when there are no more pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Location.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Location.java new file mode 100644 index 00000000..9e4c472c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Location.java @@ -0,0 +1,1053 @@ +/* + * 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; + +/** + * + * + *
+ * Location returns the location name, and if the location is recommended
+ * for GKE cluster scheduling.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Location} + */ +public final class Location extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Location) + LocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Location.newBuilder() to construct. + private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Location() { + type_ = 0; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Location(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Location( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: + { + recommended_ = input.readBool(); + break; + } + default: + { + if (!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_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Location.class, + com.google.container.v1beta1.Location.Builder.class); + } + + /** + * + * + *
+   * LocationType is the type of GKE location, regional or zonal.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Location.LocationType} + */ + public enum LocationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * LOCATION_TYPE_UNSPECIFIED means the location type was not determined.
+     * 
+ * + * LOCATION_TYPE_UNSPECIFIED = 0; + */ + LOCATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A GKE Location where Zonal clusters can be created.
+     * 
+ * + * ZONE = 1; + */ + ZONE(1), + /** + * + * + *
+     * A GKE Location where Regional clusters can be created.
+     * 
+ * + * REGION = 2; + */ + REGION(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * LOCATION_TYPE_UNSPECIFIED means the location type was not determined.
+     * 
+ * + * LOCATION_TYPE_UNSPECIFIED = 0; + */ + public static final int LOCATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A GKE Location where Zonal clusters can be created.
+     * 
+ * + * ZONE = 1; + */ + public static final int ZONE_VALUE = 1; + /** + * + * + *
+     * A GKE Location where Regional clusters can be created.
+     * 
+ * + * REGION = 2; + */ + public static final int REGION_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @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 LocationType 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 LocationType forNumber(int value) { + switch (value) { + case 0: + return LOCATION_TYPE_UNSPECIFIED; + case 1: + return ZONE; + case 2: + return REGION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocationType findValueByNumber(int number) { + return LocationType.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.Location.getDescriptor().getEnumTypes().get(0); + } + + private static final LocationType[] VALUES = values(); + + public static LocationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LocationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.Location.LocationType) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * + * + *
+   * Contains the type of location this Location is for.
+   * Regional or Zonal.
+   * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Contains the type of location this Location is for.
+   * Regional or Zonal.
+   * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.Location.LocationType getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Location.LocationType result = + com.google.container.v1beta1.Location.LocationType.valueOf(type_); + return result == null + ? com.google.container.v1beta1.Location.LocationType.UNRECOGNIZED + : result; + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Contains the name of the resource requested.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 2; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Contains the name of the resource requested.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECOMMENDED_FIELD_NUMBER = 3; + private boolean recommended_; + /** + * + * + *
+   * Whether the location is recomended for GKE cluster scheduling.
+   * 
+ * + * bool recommended = 3; + * + * @return The recommended. + */ + @java.lang.Override + public boolean getRecommended() { + return recommended_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.container.v1beta1.Location.LocationType.LOCATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (recommended_ != false) { + output.writeBool(3, recommended_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.container.v1beta1.Location.LocationType.LOCATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (recommended_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, recommended_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.Location)) { + return super.equals(obj); + } + com.google.container.v1beta1.Location other = (com.google.container.v1beta1.Location) obj; + + if (type_ != other.type_) return false; + if (!getName().equals(other.getName())) return false; + if (getRecommended() != other.getRecommended()) 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 = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + RECOMMENDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecommended()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.Location parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Location parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Location parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Location parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Location parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Location parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Location parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Location parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.Location parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Location parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.Location parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Location parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.Location prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Location returns the location name, and if the location is recommended
+   * for GKE cluster scheduling.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.Location} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.Location) + com.google.container.v1beta1.LocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Location.class, + com.google.container.v1beta1.Location.Builder.class); + } + + // Construct using com.google.container.v1beta1.Location.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + name_ = ""; + + recommended_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Location_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Location getDefaultInstanceForType() { + return com.google.container.v1beta1.Location.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Location build() { + com.google.container.v1beta1.Location result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Location buildPartial() { + com.google.container.v1beta1.Location result = + new com.google.container.v1beta1.Location(this); + result.type_ = type_; + result.name_ = name_; + result.recommended_ = recommended_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.Location) { + return mergeFrom((com.google.container.v1beta1.Location) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Location other) { + if (other == com.google.container.v1beta1.Location.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getRecommended() != false) { + setRecommended(other.getRecommended()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.Location parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.Location) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.Location.LocationType getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Location.LocationType result = + com.google.container.v1beta1.Location.LocationType.valueOf(type_); + return result == null + ? com.google.container.v1beta1.Location.LocationType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.container.v1beta1.Location.LocationType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Contains the type of location this Location is for.
+     * Regional or Zonal.
+     * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Contains the name of the resource requested.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 2; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Contains the name of the resource requested.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Contains the name of the resource requested.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 2; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Contains the name of the resource requested.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 2; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Contains the name of the resource requested.
+     * Specified in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 2; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean recommended_; + /** + * + * + *
+     * Whether the location is recomended for GKE cluster scheduling.
+     * 
+ * + * bool recommended = 3; + * + * @return The recommended. + */ + @java.lang.Override + public boolean getRecommended() { + return recommended_; + } + /** + * + * + *
+     * Whether the location is recomended for GKE cluster scheduling.
+     * 
+ * + * bool recommended = 3; + * + * @param value The recommended to set. + * @return This builder for chaining. + */ + public Builder setRecommended(boolean value) { + + recommended_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the location is recomended for GKE cluster scheduling.
+     * 
+ * + * bool recommended = 3; + * + * @return This builder for chaining. + */ + public Builder clearRecommended() { + + recommended_ = 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.Location) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Location) + private static final com.google.container.v1beta1.Location DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Location(); + } + + public static com.google.container.v1beta1.Location getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Location(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.Location getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java new file mode 100644 index 00000000..a4a12ac3 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java @@ -0,0 +1,92 @@ +/* + * 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 LocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Location) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Contains the type of location this Location is for.
+   * Regional or Zonal.
+   * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Contains the type of location this Location is for.
+   * Regional or Zonal.
+   * 
+ * + * .google.container.v1beta1.Location.LocationType type = 1; + * + * @return The type. + */ + com.google.container.v1beta1.Location.LocationType getType(); + + /** + * + * + *
+   * Contains the name of the resource requested.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Contains the name of the resource requested.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Whether the location is recomended for GKE cluster scheduling.
+   * 
+ * + * bool recommended = 3; + * + * @return The recommended. + */ + boolean getRecommended(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java new file mode 100644 index 00000000..c7e5ac28 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java @@ -0,0 +1,940 @@ +/* + * 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; + +/** + * + * + *
+ * MaintenancePolicy defines the maintenance policy to be used for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenancePolicy} + */ +public final class MaintenancePolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenancePolicy) + MaintenancePolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaintenancePolicy.newBuilder() to construct. + private MaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenancePolicy() { + resourceVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenancePolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MaintenancePolicy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.container.v1beta1.MaintenanceWindow.Builder subBuilder = null; + if (window_ != null) { + subBuilder = window_.toBuilder(); + } + window_ = + input.readMessage( + com.google.container.v1beta1.MaintenanceWindow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(window_); + window_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceVersion_ = 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenancePolicy.class, + com.google.container.v1beta1.MaintenancePolicy.Builder.class); + } + + public static final int WINDOW_FIELD_NUMBER = 1; + private com.google.container.v1beta1.MaintenanceWindow window_; + /** + * + * + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + * + * @return Whether the window field is set. + */ + @java.lang.Override + public boolean hasWindow() { + return window_ != null; + } + /** + * + * + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + * + * @return The window. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceWindow getWindow() { + return window_ == null + ? com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() + : window_; + } + /** + * + * + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceWindowOrBuilder getWindowOrBuilder() { + return getWindow(); + } + + public static final int RESOURCE_VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object resourceVersion_; + /** + * + * + *
+   * A hash identifying the version of this policy, so that updates to fields of
+   * the policy won't accidentally undo intermediate changes (and so that users
+   * of the API unaware of some fields won't accidentally remove other fields).
+   * Make a `get()` request to the cluster to get the current
+   * resource version and include it with requests to set the policy.
+   * 
+ * + * string resource_version = 3; + * + * @return The resourceVersion. + */ + @java.lang.Override + public java.lang.String getResourceVersion() { + java.lang.Object ref = resourceVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceVersion_ = s; + return s; + } + } + /** + * + * + *
+   * A hash identifying the version of this policy, so that updates to fields of
+   * the policy won't accidentally undo intermediate changes (and so that users
+   * of the API unaware of some fields won't accidentally remove other fields).
+   * Make a `get()` request to the cluster to get the current
+   * resource version and include it with requests to set the policy.
+   * 
+ * + * string resource_version = 3; + * + * @return The bytes for resourceVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceVersionBytes() { + java.lang.Object ref = resourceVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceVersion_ = 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 (window_ != null) { + output.writeMessage(1, getWindow()); + } + if (!getResourceVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (window_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); + } + if (!getResourceVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceVersion_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.MaintenancePolicy)) { + return super.equals(obj); + } + com.google.container.v1beta1.MaintenancePolicy other = + (com.google.container.v1beta1.MaintenancePolicy) obj; + + if (hasWindow() != other.hasWindow()) return false; + if (hasWindow()) { + if (!getWindow().equals(other.getWindow())) return false; + } + if (!getResourceVersion().equals(other.getResourceVersion())) 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 (hasWindow()) { + hash = (37 * hash) + WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getWindow().hashCode(); + } + hash = (37 * hash) + RESOURCE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getResourceVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MaintenancePolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenancePolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenancePolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenancePolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaintenancePolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.MaintenancePolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * MaintenancePolicy defines the maintenance policy to be used for the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenancePolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MaintenancePolicy) + com.google.container.v1beta1.MaintenancePolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenancePolicy.class, + com.google.container.v1beta1.MaintenancePolicy.Builder.class); + } + + // Construct using com.google.container.v1beta1.MaintenancePolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (windowBuilder_ == null) { + window_ = null; + } else { + window_ = null; + windowBuilder_ = null; + } + resourceVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy build() { + com.google.container.v1beta1.MaintenancePolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy buildPartial() { + com.google.container.v1beta1.MaintenancePolicy result = + new com.google.container.v1beta1.MaintenancePolicy(this); + if (windowBuilder_ == null) { + result.window_ = window_; + } else { + result.window_ = windowBuilder_.build(); + } + result.resourceVersion_ = resourceVersion_; + 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.MaintenancePolicy) { + return mergeFrom((com.google.container.v1beta1.MaintenancePolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MaintenancePolicy other) { + if (other == com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance()) return this; + if (other.hasWindow()) { + mergeWindow(other.getWindow()); + } + if (!other.getResourceVersion().isEmpty()) { + resourceVersion_ = other.resourceVersion_; + 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.MaintenancePolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.MaintenancePolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1beta1.MaintenanceWindow window_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceWindow, + com.google.container.v1beta1.MaintenanceWindow.Builder, + com.google.container.v1beta1.MaintenanceWindowOrBuilder> + windowBuilder_; + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + * + * @return Whether the window field is set. + */ + public boolean hasWindow() { + return windowBuilder_ != null || window_ != null; + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + * + * @return The window. + */ + public com.google.container.v1beta1.MaintenanceWindow getWindow() { + if (windowBuilder_ == null) { + return window_ == null + ? com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() + : window_; + } else { + return windowBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder setWindow(com.google.container.v1beta1.MaintenanceWindow value) { + if (windowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + window_ = value; + onChanged(); + } else { + windowBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder setWindow( + com.google.container.v1beta1.MaintenanceWindow.Builder builderForValue) { + if (windowBuilder_ == null) { + window_ = builderForValue.build(); + onChanged(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder mergeWindow(com.google.container.v1beta1.MaintenanceWindow value) { + if (windowBuilder_ == null) { + if (window_ != null) { + window_ = + com.google.container.v1beta1.MaintenanceWindow.newBuilder(window_) + .mergeFrom(value) + .buildPartial(); + } else { + window_ = value; + } + onChanged(); + } else { + windowBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder clearWindow() { + if (windowBuilder_ == null) { + window_ = null; + onChanged(); + } else { + window_ = null; + windowBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public com.google.container.v1beta1.MaintenanceWindow.Builder getWindowBuilder() { + + onChanged(); + return getWindowFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public com.google.container.v1beta1.MaintenanceWindowOrBuilder getWindowOrBuilder() { + if (windowBuilder_ != null) { + return windowBuilder_.getMessageOrBuilder(); + } else { + return window_ == null + ? com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() + : window_; + } + } + /** + * + * + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceWindow, + com.google.container.v1beta1.MaintenanceWindow.Builder, + com.google.container.v1beta1.MaintenanceWindowOrBuilder> + getWindowFieldBuilder() { + if (windowBuilder_ == null) { + windowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceWindow, + com.google.container.v1beta1.MaintenanceWindow.Builder, + com.google.container.v1beta1.MaintenanceWindowOrBuilder>( + getWindow(), getParentForChildren(), isClean()); + window_ = null; + } + return windowBuilder_; + } + + private java.lang.Object resourceVersion_ = ""; + /** + * + * + *
+     * A hash identifying the version of this policy, so that updates to fields of
+     * the policy won't accidentally undo intermediate changes (and so that users
+     * of the API unaware of some fields won't accidentally remove other fields).
+     * Make a `get()` request to the cluster to get the current
+     * resource version and include it with requests to set the policy.
+     * 
+ * + * string resource_version = 3; + * + * @return The resourceVersion. + */ + public java.lang.String getResourceVersion() { + java.lang.Object ref = resourceVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A hash identifying the version of this policy, so that updates to fields of
+     * the policy won't accidentally undo intermediate changes (and so that users
+     * of the API unaware of some fields won't accidentally remove other fields).
+     * Make a `get()` request to the cluster to get the current
+     * resource version and include it with requests to set the policy.
+     * 
+ * + * string resource_version = 3; + * + * @return The bytes for resourceVersion. + */ + public com.google.protobuf.ByteString getResourceVersionBytes() { + java.lang.Object ref = resourceVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A hash identifying the version of this policy, so that updates to fields of
+     * the policy won't accidentally undo intermediate changes (and so that users
+     * of the API unaware of some fields won't accidentally remove other fields).
+     * Make a `get()` request to the cluster to get the current
+     * resource version and include it with requests to set the policy.
+     * 
+ * + * string resource_version = 3; + * + * @param value The resourceVersion to set. + * @return This builder for chaining. + */ + public Builder setResourceVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A hash identifying the version of this policy, so that updates to fields of
+     * the policy won't accidentally undo intermediate changes (and so that users
+     * of the API unaware of some fields won't accidentally remove other fields).
+     * Make a `get()` request to the cluster to get the current
+     * resource version and include it with requests to set the policy.
+     * 
+ * + * string resource_version = 3; + * + * @return This builder for chaining. + */ + public Builder clearResourceVersion() { + + resourceVersion_ = getDefaultInstance().getResourceVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * A hash identifying the version of this policy, so that updates to fields of
+     * the policy won't accidentally undo intermediate changes (and so that users
+     * of the API unaware of some fields won't accidentally remove other fields).
+     * Make a `get()` request to the cluster to get the current
+     * resource version and include it with requests to set the policy.
+     * 
+ * + * string resource_version = 3; + * + * @param value The bytes for resourceVersion to set. + * @return This builder for chaining. + */ + public Builder setResourceVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceVersion_ = 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.MaintenancePolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenancePolicy) + private static final com.google.container.v1beta1.MaintenancePolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenancePolicy(); + } + + public static com.google.container.v1beta1.MaintenancePolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenancePolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java new file mode 100644 index 00000000..328c4f43 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java @@ -0,0 +1,93 @@ +/* + * 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 MaintenancePolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenancePolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + * + * @return Whether the window field is set. + */ + boolean hasWindow(); + /** + * + * + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + * + * @return The window. + */ + com.google.container.v1beta1.MaintenanceWindow getWindow(); + /** + * + * + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + com.google.container.v1beta1.MaintenanceWindowOrBuilder getWindowOrBuilder(); + + /** + * + * + *
+   * A hash identifying the version of this policy, so that updates to fields of
+   * the policy won't accidentally undo intermediate changes (and so that users
+   * of the API unaware of some fields won't accidentally remove other fields).
+   * Make a `get()` request to the cluster to get the current
+   * resource version and include it with requests to set the policy.
+   * 
+ * + * string resource_version = 3; + * + * @return The resourceVersion. + */ + java.lang.String getResourceVersion(); + /** + * + * + *
+   * A hash identifying the version of this policy, so that updates to fields of
+   * the policy won't accidentally undo intermediate changes (and so that users
+   * of the API unaware of some fields won't accidentally remove other fields).
+   * Make a `get()` request to the cluster to get the current
+   * resource version and include it with requests to set the policy.
+   * 
+ * + * string resource_version = 3; + * + * @return The bytes for resourceVersion. + */ + com.google.protobuf.ByteString getResourceVersionBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java new file mode 100644 index 00000000..5fa29e1e --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java @@ -0,0 +1,1554 @@ +/* + * 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; + +/** + * + * + *
+ * MaintenanceWindow defines the maintenance window to be used for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenanceWindow} + */ +public final class MaintenanceWindow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenanceWindow) + MaintenanceWindowOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaintenanceWindow.newBuilder() to construct. + private MaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenanceWindow() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenanceWindow(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MaintenanceWindow( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.container.v1beta1.DailyMaintenanceWindow.Builder subBuilder = null; + if (policyCase_ == 2) { + subBuilder = + ((com.google.container.v1beta1.DailyMaintenanceWindow) policy_).toBuilder(); + } + policy_ = + input.readMessage( + com.google.container.v1beta1.DailyMaintenanceWindow.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.container.v1beta1.DailyMaintenanceWindow) policy_); + policy_ = subBuilder.buildPartial(); + } + policyCase_ = 2; + break; + } + case 26: + { + com.google.container.v1beta1.RecurringTimeWindow.Builder subBuilder = null; + if (policyCase_ == 3) { + subBuilder = + ((com.google.container.v1beta1.RecurringTimeWindow) policy_).toBuilder(); + } + policy_ = + input.readMessage( + com.google.container.v1beta1.RecurringTimeWindow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.container.v1beta1.RecurringTimeWindow) policy_); + policy_ = subBuilder.buildPartial(); + } + policyCase_ = 3; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + maintenanceExclusions_ = + com.google.protobuf.MapField.newMapField( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.container.v1beta1.TimeWindow> + maintenanceExclusions__ = + input.readMessage( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + maintenanceExclusions_ + .getMutableMap() + .put(maintenanceExclusions__.getKey(), maintenanceExclusions__.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceWindow_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetMaintenanceExclusions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenanceWindow.class, + com.google.container.v1beta1.MaintenanceWindow.Builder.class); + } + + private int policyCase_ = 0; + private java.lang.Object policy_; + + public enum PolicyCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DAILY_MAINTENANCE_WINDOW(2), + RECURRING_WINDOW(3), + POLICY_NOT_SET(0); + private final int value; + + private PolicyCase(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 PolicyCase valueOf(int value) { + return forNumber(value); + } + + public static PolicyCase forNumber(int value) { + switch (value) { + case 2: + return DAILY_MAINTENANCE_WINDOW; + case 3: + return RECURRING_WINDOW; + case 0: + return POLICY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PolicyCase getPolicyCase() { + return PolicyCase.forNumber(policyCase_); + } + + public static final int DAILY_MAINTENANCE_WINDOW_FIELD_NUMBER = 2; + /** + * + * + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return Whether the dailyMaintenanceWindow field is set. + */ + @java.lang.Override + public boolean hasDailyMaintenanceWindow() { + return policyCase_ == 2; + } + /** + * + * + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return The dailyMaintenanceWindow. + */ + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow getDailyMaintenanceWindow() { + if (policyCase_ == 2) { + return (com.google.container.v1beta1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + /** + * + * + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder + getDailyMaintenanceWindowOrBuilder() { + if (policyCase_ == 2) { + return (com.google.container.v1beta1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + + public static final int RECURRING_WINDOW_FIELD_NUMBER = 3; + /** + * + * + *
+   * RecurringWindow specifies some number of recurring time periods for
+   * maintenance to occur. The time windows may be overlapping. If no
+   * maintenance windows are set, maintenance can occur at any time.
+   * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + * + * @return Whether the recurringWindow field is set. + */ + @java.lang.Override + public boolean hasRecurringWindow() { + return policyCase_ == 3; + } + /** + * + * + *
+   * RecurringWindow specifies some number of recurring time periods for
+   * maintenance to occur. The time windows may be overlapping. If no
+   * maintenance windows are set, maintenance can occur at any time.
+   * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + * + * @return The recurringWindow. + */ + @java.lang.Override + public com.google.container.v1beta1.RecurringTimeWindow getRecurringWindow() { + if (policyCase_ == 3) { + return (com.google.container.v1beta1.RecurringTimeWindow) policy_; + } + return com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); + } + /** + * + * + *
+   * RecurringWindow specifies some number of recurring time periods for
+   * maintenance to occur. The time windows may be overlapping. If no
+   * maintenance windows are set, maintenance can occur at any time.
+   * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder() { + if (policyCase_ == 3) { + return (com.google.container.v1beta1.RecurringTimeWindow) policy_; + } + return com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); + } + + public static final int MAINTENANCE_EXCLUSIONS_FIELD_NUMBER = 4; + + private static final class MaintenanceExclusionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.container.v1beta1.TimeWindow> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceWindow_MaintenanceExclusionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.container.v1beta1.TimeWindow.getDefaultInstance()); + } + + private com.google.protobuf.MapField + maintenanceExclusions_; + + private com.google.protobuf.MapField + internalGetMaintenanceExclusions() { + if (maintenanceExclusions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry); + } + return maintenanceExclusions_; + } + + public int getMaintenanceExclusionsCount() { + return internalGetMaintenanceExclusions().getMap().size(); + } + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + @java.lang.Override + public boolean containsMaintenanceExclusions(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetMaintenanceExclusions().getMap().containsKey(key); + } + /** Use {@link #getMaintenanceExclusionsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getMaintenanceExclusions() { + return getMaintenanceExclusionsMap(); + } + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + @java.lang.Override + public java.util.Map + getMaintenanceExclusionsMap() { + return internalGetMaintenanceExclusions().getMap(); + } + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + @java.lang.Override + public com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, com.google.container.v1beta1.TimeWindow defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetMaintenanceExclusions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + @java.lang.Override + public com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetMaintenanceExclusions().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 { + if (policyCase_ == 2) { + output.writeMessage(2, (com.google.container.v1beta1.DailyMaintenanceWindow) policy_); + } + if (policyCase_ == 3) { + output.writeMessage(3, (com.google.container.v1beta1.RecurringTimeWindow) policy_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetMaintenanceExclusions(), + MaintenanceExclusionsDefaultEntryHolder.defaultEntry, + 4); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (policyCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.container.v1beta1.DailyMaintenanceWindow) policy_); + } + if (policyCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.container.v1beta1.RecurringTimeWindow) policy_); + } + for (java.util.Map.Entry entry : + internalGetMaintenanceExclusions().getMap().entrySet()) { + com.google.protobuf.MapEntry + maintenanceExclusions__ = + MaintenanceExclusionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, maintenanceExclusions__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.MaintenanceWindow)) { + return super.equals(obj); + } + com.google.container.v1beta1.MaintenanceWindow other = + (com.google.container.v1beta1.MaintenanceWindow) obj; + + if (!internalGetMaintenanceExclusions().equals(other.internalGetMaintenanceExclusions())) + return false; + if (!getPolicyCase().equals(other.getPolicyCase())) return false; + switch (policyCase_) { + case 2: + if (!getDailyMaintenanceWindow().equals(other.getDailyMaintenanceWindow())) return false; + break; + case 3: + if (!getRecurringWindow().equals(other.getRecurringWindow())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetMaintenanceExclusions().getMap().isEmpty()) { + hash = (37 * hash) + MAINTENANCE_EXCLUSIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetMaintenanceExclusions().hashCode(); + } + switch (policyCase_) { + case 2: + hash = (37 * hash) + DAILY_MAINTENANCE_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getDailyMaintenanceWindow().hashCode(); + break; + case 3: + hash = (37 * hash) + RECURRING_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getRecurringWindow().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MaintenanceWindow parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenanceWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenanceWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenanceWindow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaintenanceWindow parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.MaintenanceWindow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * MaintenanceWindow defines the maintenance window to be used for the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenanceWindow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MaintenanceWindow) + com.google.container.v1beta1.MaintenanceWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceWindow_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetMaintenanceExclusions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableMaintenanceExclusions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenanceWindow.class, + com.google.container.v1beta1.MaintenanceWindow.Builder.class); + } + + // Construct using com.google.container.v1beta1.MaintenanceWindow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableMaintenanceExclusions().clear(); + policyCase_ = 0; + policy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceWindow getDefaultInstanceForType() { + return com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceWindow build() { + com.google.container.v1beta1.MaintenanceWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceWindow buildPartial() { + com.google.container.v1beta1.MaintenanceWindow result = + new com.google.container.v1beta1.MaintenanceWindow(this); + int from_bitField0_ = bitField0_; + if (policyCase_ == 2) { + if (dailyMaintenanceWindowBuilder_ == null) { + result.policy_ = policy_; + } else { + result.policy_ = dailyMaintenanceWindowBuilder_.build(); + } + } + if (policyCase_ == 3) { + if (recurringWindowBuilder_ == null) { + result.policy_ = policy_; + } else { + result.policy_ = recurringWindowBuilder_.build(); + } + } + result.maintenanceExclusions_ = internalGetMaintenanceExclusions(); + result.maintenanceExclusions_.makeImmutable(); + result.policyCase_ = policyCase_; + 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.MaintenanceWindow) { + return mergeFrom((com.google.container.v1beta1.MaintenanceWindow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MaintenanceWindow other) { + if (other == com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance()) return this; + internalGetMutableMaintenanceExclusions().mergeFrom(other.internalGetMaintenanceExclusions()); + switch (other.getPolicyCase()) { + case DAILY_MAINTENANCE_WINDOW: + { + mergeDailyMaintenanceWindow(other.getDailyMaintenanceWindow()); + break; + } + case RECURRING_WINDOW: + { + mergeRecurringWindow(other.getRecurringWindow()); + break; + } + case POLICY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MaintenanceWindow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.MaintenanceWindow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int policyCase_ = 0; + private java.lang.Object policy_; + + public PolicyCase getPolicyCase() { + return PolicyCase.forNumber(policyCase_); + } + + public Builder clearPolicy() { + policyCase_ = 0; + policy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DailyMaintenanceWindow, + com.google.container.v1beta1.DailyMaintenanceWindow.Builder, + com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder> + dailyMaintenanceWindowBuilder_; + /** + * + * + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return Whether the dailyMaintenanceWindow field is set. + */ + @java.lang.Override + public boolean hasDailyMaintenanceWindow() { + return policyCase_ == 2; + } + /** + * + * + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return The dailyMaintenanceWindow. + */ + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindow getDailyMaintenanceWindow() { + if (dailyMaintenanceWindowBuilder_ == null) { + if (policyCase_ == 2) { + return (com.google.container.v1beta1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } else { + if (policyCase_ == 2) { + return dailyMaintenanceWindowBuilder_.getMessage(); + } + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + } + /** + * + * + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder setDailyMaintenanceWindow( + com.google.container.v1beta1.DailyMaintenanceWindow value) { + if (dailyMaintenanceWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + onChanged(); + } else { + dailyMaintenanceWindowBuilder_.setMessage(value); + } + policyCase_ = 2; + return this; + } + /** + * + * + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder setDailyMaintenanceWindow( + com.google.container.v1beta1.DailyMaintenanceWindow.Builder builderForValue) { + if (dailyMaintenanceWindowBuilder_ == null) { + policy_ = builderForValue.build(); + onChanged(); + } else { + dailyMaintenanceWindowBuilder_.setMessage(builderForValue.build()); + } + policyCase_ = 2; + return this; + } + /** + * + * + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder mergeDailyMaintenanceWindow( + com.google.container.v1beta1.DailyMaintenanceWindow value) { + if (dailyMaintenanceWindowBuilder_ == null) { + if (policyCase_ == 2 + && policy_ + != com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance()) { + policy_ = + com.google.container.v1beta1.DailyMaintenanceWindow.newBuilder( + (com.google.container.v1beta1.DailyMaintenanceWindow) policy_) + .mergeFrom(value) + .buildPartial(); + } else { + policy_ = value; + } + onChanged(); + } else { + if (policyCase_ == 2) { + dailyMaintenanceWindowBuilder_.mergeFrom(value); + } + dailyMaintenanceWindowBuilder_.setMessage(value); + } + policyCase_ = 2; + return this; + } + /** + * + * + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder clearDailyMaintenanceWindow() { + if (dailyMaintenanceWindowBuilder_ == null) { + if (policyCase_ == 2) { + policyCase_ = 0; + policy_ = null; + onChanged(); + } + } else { + if (policyCase_ == 2) { + policyCase_ = 0; + policy_ = null; + } + dailyMaintenanceWindowBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public com.google.container.v1beta1.DailyMaintenanceWindow.Builder + getDailyMaintenanceWindowBuilder() { + return getDailyMaintenanceWindowFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder + getDailyMaintenanceWindowOrBuilder() { + if ((policyCase_ == 2) && (dailyMaintenanceWindowBuilder_ != null)) { + return dailyMaintenanceWindowBuilder_.getMessageOrBuilder(); + } else { + if (policyCase_ == 2) { + return (com.google.container.v1beta1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + } + /** + * + * + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DailyMaintenanceWindow, + com.google.container.v1beta1.DailyMaintenanceWindow.Builder, + com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder> + getDailyMaintenanceWindowFieldBuilder() { + if (dailyMaintenanceWindowBuilder_ == null) { + if (!(policyCase_ == 2)) { + policy_ = com.google.container.v1beta1.DailyMaintenanceWindow.getDefaultInstance(); + } + dailyMaintenanceWindowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DailyMaintenanceWindow, + com.google.container.v1beta1.DailyMaintenanceWindow.Builder, + com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder>( + (com.google.container.v1beta1.DailyMaintenanceWindow) policy_, + getParentForChildren(), + isClean()); + policy_ = null; + } + policyCase_ = 2; + onChanged(); + ; + return dailyMaintenanceWindowBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.RecurringTimeWindow, + com.google.container.v1beta1.RecurringTimeWindow.Builder, + com.google.container.v1beta1.RecurringTimeWindowOrBuilder> + recurringWindowBuilder_; + /** + * + * + *
+     * RecurringWindow specifies some number of recurring time periods for
+     * maintenance to occur. The time windows may be overlapping. If no
+     * maintenance windows are set, maintenance can occur at any time.
+     * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + * + * @return Whether the recurringWindow field is set. + */ + @java.lang.Override + public boolean hasRecurringWindow() { + return policyCase_ == 3; + } + /** + * + * + *
+     * RecurringWindow specifies some number of recurring time periods for
+     * maintenance to occur. The time windows may be overlapping. If no
+     * maintenance windows are set, maintenance can occur at any time.
+     * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + * + * @return The recurringWindow. + */ + @java.lang.Override + public com.google.container.v1beta1.RecurringTimeWindow getRecurringWindow() { + if (recurringWindowBuilder_ == null) { + if (policyCase_ == 3) { + return (com.google.container.v1beta1.RecurringTimeWindow) policy_; + } + return com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); + } else { + if (policyCase_ == 3) { + return recurringWindowBuilder_.getMessage(); + } + return com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); + } + } + /** + * + * + *
+     * RecurringWindow specifies some number of recurring time periods for
+     * maintenance to occur. The time windows may be overlapping. If no
+     * maintenance windows are set, maintenance can occur at any time.
+     * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + */ + public Builder setRecurringWindow(com.google.container.v1beta1.RecurringTimeWindow value) { + if (recurringWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + onChanged(); + } else { + recurringWindowBuilder_.setMessage(value); + } + policyCase_ = 3; + return this; + } + /** + * + * + *
+     * RecurringWindow specifies some number of recurring time periods for
+     * maintenance to occur. The time windows may be overlapping. If no
+     * maintenance windows are set, maintenance can occur at any time.
+     * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + */ + public Builder setRecurringWindow( + com.google.container.v1beta1.RecurringTimeWindow.Builder builderForValue) { + if (recurringWindowBuilder_ == null) { + policy_ = builderForValue.build(); + onChanged(); + } else { + recurringWindowBuilder_.setMessage(builderForValue.build()); + } + policyCase_ = 3; + return this; + } + /** + * + * + *
+     * RecurringWindow specifies some number of recurring time periods for
+     * maintenance to occur. The time windows may be overlapping. If no
+     * maintenance windows are set, maintenance can occur at any time.
+     * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + */ + public Builder mergeRecurringWindow(com.google.container.v1beta1.RecurringTimeWindow value) { + if (recurringWindowBuilder_ == null) { + if (policyCase_ == 3 + && policy_ != com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance()) { + policy_ = + com.google.container.v1beta1.RecurringTimeWindow.newBuilder( + (com.google.container.v1beta1.RecurringTimeWindow) policy_) + .mergeFrom(value) + .buildPartial(); + } else { + policy_ = value; + } + onChanged(); + } else { + if (policyCase_ == 3) { + recurringWindowBuilder_.mergeFrom(value); + } + recurringWindowBuilder_.setMessage(value); + } + policyCase_ = 3; + return this; + } + /** + * + * + *
+     * RecurringWindow specifies some number of recurring time periods for
+     * maintenance to occur. The time windows may be overlapping. If no
+     * maintenance windows are set, maintenance can occur at any time.
+     * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + */ + public Builder clearRecurringWindow() { + if (recurringWindowBuilder_ == null) { + if (policyCase_ == 3) { + policyCase_ = 0; + policy_ = null; + onChanged(); + } + } else { + if (policyCase_ == 3) { + policyCase_ = 0; + policy_ = null; + } + recurringWindowBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * RecurringWindow specifies some number of recurring time periods for
+     * maintenance to occur. The time windows may be overlapping. If no
+     * maintenance windows are set, maintenance can occur at any time.
+     * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + */ + public com.google.container.v1beta1.RecurringTimeWindow.Builder getRecurringWindowBuilder() { + return getRecurringWindowFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * RecurringWindow specifies some number of recurring time periods for
+     * maintenance to occur. The time windows may be overlapping. If no
+     * maintenance windows are set, maintenance can occur at any time.
+     * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder() { + if ((policyCase_ == 3) && (recurringWindowBuilder_ != null)) { + return recurringWindowBuilder_.getMessageOrBuilder(); + } else { + if (policyCase_ == 3) { + return (com.google.container.v1beta1.RecurringTimeWindow) policy_; + } + return com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); + } + } + /** + * + * + *
+     * RecurringWindow specifies some number of recurring time periods for
+     * maintenance to occur. The time windows may be overlapping. If no
+     * maintenance windows are set, maintenance can occur at any time.
+     * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.RecurringTimeWindow, + com.google.container.v1beta1.RecurringTimeWindow.Builder, + com.google.container.v1beta1.RecurringTimeWindowOrBuilder> + getRecurringWindowFieldBuilder() { + if (recurringWindowBuilder_ == null) { + if (!(policyCase_ == 3)) { + policy_ = com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); + } + recurringWindowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.RecurringTimeWindow, + com.google.container.v1beta1.RecurringTimeWindow.Builder, + com.google.container.v1beta1.RecurringTimeWindowOrBuilder>( + (com.google.container.v1beta1.RecurringTimeWindow) policy_, + getParentForChildren(), + isClean()); + policy_ = null; + } + policyCase_ = 3; + onChanged(); + ; + return recurringWindowBuilder_; + } + + private com.google.protobuf.MapField + maintenanceExclusions_; + + private com.google.protobuf.MapField + internalGetMaintenanceExclusions() { + if (maintenanceExclusions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry); + } + return maintenanceExclusions_; + } + + private com.google.protobuf.MapField + internalGetMutableMaintenanceExclusions() { + onChanged(); + ; + if (maintenanceExclusions_ == null) { + maintenanceExclusions_ = + com.google.protobuf.MapField.newMapField( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry); + } + if (!maintenanceExclusions_.isMutable()) { + maintenanceExclusions_ = maintenanceExclusions_.copy(); + } + return maintenanceExclusions_; + } + + public int getMaintenanceExclusionsCount() { + return internalGetMaintenanceExclusions().getMap().size(); + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + @java.lang.Override + public boolean containsMaintenanceExclusions(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetMaintenanceExclusions().getMap().containsKey(key); + } + /** Use {@link #getMaintenanceExclusionsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getMaintenanceExclusions() { + return getMaintenanceExclusionsMap(); + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + @java.lang.Override + public java.util.Map + getMaintenanceExclusionsMap() { + return internalGetMaintenanceExclusions().getMap(); + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + @java.lang.Override + public com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, com.google.container.v1beta1.TimeWindow defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetMaintenanceExclusions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + @java.lang.Override + public com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetMaintenanceExclusions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMaintenanceExclusions() { + internalGetMutableMaintenanceExclusions().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + public Builder removeMaintenanceExclusions(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMaintenanceExclusions().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableMaintenanceExclusions() { + return internalGetMutableMaintenanceExclusions().getMutableMap(); + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + public Builder putMaintenanceExclusions( + java.lang.String key, com.google.container.v1beta1.TimeWindow value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMaintenanceExclusions().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + public Builder putAllMaintenanceExclusions( + java.util.Map values) { + internalGetMutableMaintenanceExclusions().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.v1beta1.MaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenanceWindow) + private static final com.google.container.v1beta1.MaintenanceWindow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenanceWindow(); + } + + public static com.google.container.v1beta1.MaintenanceWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaintenanceWindow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java new file mode 100644 index 00000000..a37829db --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java @@ -0,0 +1,170 @@ +/* + * 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 MaintenanceWindowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return Whether the dailyMaintenanceWindow field is set. + */ + boolean hasDailyMaintenanceWindow(); + /** + * + * + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return The dailyMaintenanceWindow. + */ + com.google.container.v1beta1.DailyMaintenanceWindow getDailyMaintenanceWindow(); + /** + * + * + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1beta1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + com.google.container.v1beta1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder(); + + /** + * + * + *
+   * RecurringWindow specifies some number of recurring time periods for
+   * maintenance to occur. The time windows may be overlapping. If no
+   * maintenance windows are set, maintenance can occur at any time.
+   * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + * + * @return Whether the recurringWindow field is set. + */ + boolean hasRecurringWindow(); + /** + * + * + *
+   * RecurringWindow specifies some number of recurring time periods for
+   * maintenance to occur. The time windows may be overlapping. If no
+   * maintenance windows are set, maintenance can occur at any time.
+   * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + * + * @return The recurringWindow. + */ + com.google.container.v1beta1.RecurringTimeWindow getRecurringWindow(); + /** + * + * + *
+   * RecurringWindow specifies some number of recurring time periods for
+   * maintenance to occur. The time windows may be overlapping. If no
+   * maintenance windows are set, maintenance can occur at any time.
+   * 
+ * + * .google.container.v1beta1.RecurringTimeWindow recurring_window = 3; + */ + com.google.container.v1beta1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder(); + + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + int getMaintenanceExclusionsCount(); + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + boolean containsMaintenanceExclusions(java.lang.String key); + /** Use {@link #getMaintenanceExclusionsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getMaintenanceExclusions(); + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + java.util.Map + getMaintenanceExclusionsMap(); + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, com.google.container.v1beta1.TimeWindow defaultValue); + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1beta1.TimeWindow> maintenance_exclusions = 4; + * + */ + com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrThrow(java.lang.String key); + + public com.google.container.v1beta1.MaintenanceWindow.PolicyCase getPolicyCase(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Master.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Master.java new file mode 100644 index 00000000..da49708c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Master.java @@ -0,0 +1,451 @@ +/* + * 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; + +/** + * + * + *
+ * Master is the configuration for components on master.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Master} + */ +public final class Master extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Master) + MasterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Master.newBuilder() to construct. + private Master(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Master() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Master(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Master( + 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; + 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_Master_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Master_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Master.class, + com.google.container.v1beta1.Master.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.Master)) { + return super.equals(obj); + } + com.google.container.v1beta1.Master other = (com.google.container.v1beta1.Master) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.Master parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Master 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.Master parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Master 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.Master parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Master parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Master parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Master 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.Master parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Master 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.Master parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Master 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.Master 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; + } + /** + * + * + *
+   * Master is the configuration for components on master.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.Master} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.Master) + com.google.container.v1beta1.MasterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Master_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Master_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Master.class, + com.google.container.v1beta1.Master.Builder.class); + } + + // Construct using com.google.container.v1beta1.Master.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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Master_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Master getDefaultInstanceForType() { + return com.google.container.v1beta1.Master.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Master build() { + com.google.container.v1beta1.Master result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Master buildPartial() { + com.google.container.v1beta1.Master result = new com.google.container.v1beta1.Master(this); + 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.Master) { + return mergeFrom((com.google.container.v1beta1.Master) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Master other) { + if (other == com.google.container.v1beta1.Master.getDefaultInstance()) return this; + 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.Master parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.Master) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.Master) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Master) + private static final com.google.container.v1beta1.Master DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Master(); + } + + public static com.google.container.v1beta1.Master getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Master parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Master(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.Master getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java new file mode 100644 index 00000000..131f8c63 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java @@ -0,0 +1,1740 @@ +/* + * 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; + +/** + * + * + *
+ * The authentication information for accessing the master endpoint.
+ * Authentication can be done using HTTP basic auth or using client
+ * certificates.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuth} + */ +public final class MasterAuth extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MasterAuth) + MasterAuthOrBuilder { + private static final long serialVersionUID = 0L; + // Use MasterAuth.newBuilder() to construct. + private MasterAuth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MasterAuth() { + username_ = ""; + password_ = ""; + clusterCaCertificate_ = ""; + clientCertificate_ = ""; + clientKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MasterAuth(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MasterAuth( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + case 26: + { + com.google.container.v1beta1.ClientCertificateConfig.Builder subBuilder = null; + if (clientCertificateConfig_ != null) { + subBuilder = clientCertificateConfig_.toBuilder(); + } + clientCertificateConfig_ = + input.readMessage( + com.google.container.v1beta1.ClientCertificateConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clientCertificateConfig_); + clientCertificateConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterCaCertificate_ = s; + break; + } + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + + clientCertificate_ = s; + break; + } + case 818: + { + java.lang.String s = input.readStringRequireUtf8(); + + clientKey_ = s; + break; + } + default: + { + if (!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_MasterAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuth.class, + com.google.container.v1beta1.MasterAuth.Builder.class); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object username_; + /** + * + * + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, basic authentication can be disabled by
+   * leaving username unspecified (or setting it to the empty string).
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string username = 1 [deprecated = true]; + * + * @return The username. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + /** + * + * + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, basic authentication can be disabled by
+   * leaving username unspecified (or setting it to the empty string).
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string username = 1 [deprecated = true]; + * + * @return The bytes for username. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 2; + private volatile java.lang.Object password_; + /** + * + * + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string password = 2 [deprecated = true]; + * + * @return The password. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } + /** + * + * + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string password = 2 [deprecated = true]; + * + * @return The bytes for password. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1beta1.ClientCertificateConfig clientCertificateConfig_; + /** + * + * + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + * + * @return Whether the clientCertificateConfig field is set. + */ + @java.lang.Override + public boolean hasClientCertificateConfig() { + return clientCertificateConfig_ != null; + } + /** + * + * + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + * + * @return The clientCertificateConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfig getClientCertificateConfig() { + return clientCertificateConfig_ == null + ? com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() + : clientCertificateConfig_; + } + /** + * + * + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.ClientCertificateConfigOrBuilder + getClientCertificateConfigOrBuilder() { + return getClientCertificateConfig(); + } + + public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER = 100; + private volatile java.lang.Object clusterCaCertificate_; + /** + * string cluster_ca_certificate = 100; + * + * @return The clusterCaCertificate. + */ + @java.lang.Override + public java.lang.String getClusterCaCertificate() { + java.lang.Object ref = clusterCaCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCaCertificate_ = s; + return s; + } + } + /** + * string cluster_ca_certificate = 100; + * + * @return The bytes for clusterCaCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterCaCertificateBytes() { + java.lang.Object ref = clusterCaCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 101; + private volatile java.lang.Object clientCertificate_; + /** + * + * + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + * + * @return The clientCertificate. + */ + @java.lang.Override + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + * + * @return The bytes for clientCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_KEY_FIELD_NUMBER = 102; + private volatile java.lang.Object clientKey_; + /** + * + * + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + * + * @return The clientKey. + */ + @java.lang.Override + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + * + * @return The bytes for clientKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); + } + if (!getPasswordBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + if (clientCertificateConfig_ != null) { + output.writeMessage(3, getClientCertificateConfig()); + } + if (!getClusterCaCertificateBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, clusterCaCertificate_); + } + if (!getClientCertificateBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, clientCertificate_); + } + if (!getClientKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, clientKey_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); + } + if (!getPasswordBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + if (clientCertificateConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getClientCertificateConfig()); + } + if (!getClusterCaCertificateBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, clusterCaCertificate_); + } + if (!getClientCertificateBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, clientCertificate_); + } + if (!getClientKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, clientKey_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.MasterAuth)) { + return super.equals(obj); + } + com.google.container.v1beta1.MasterAuth other = (com.google.container.v1beta1.MasterAuth) obj; + + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (hasClientCertificateConfig() != other.hasClientCertificateConfig()) return false; + if (hasClientCertificateConfig()) { + if (!getClientCertificateConfig().equals(other.getClientCertificateConfig())) return false; + } + if (!getClusterCaCertificate().equals(other.getClusterCaCertificate())) return false; + if (!getClientCertificate().equals(other.getClientCertificate())) return false; + if (!getClientKey().equals(other.getClientKey())) 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) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + if (hasClientCertificateConfig()) { + hash = (37 * hash) + CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getClientCertificateConfig().hashCode(); + } + hash = (37 * hash) + CLUSTER_CA_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getClusterCaCertificate().hashCode(); + hash = (37 * hash) + CLIENT_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getClientCertificate().hashCode(); + hash = (37 * hash) + CLIENT_KEY_FIELD_NUMBER; + hash = (53 * hash) + getClientKey().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MasterAuth parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MasterAuth parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MasterAuth parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MasterAuth parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MasterAuth parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuth parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MasterAuth parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuth parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MasterAuth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.MasterAuth prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The authentication information for accessing the master endpoint.
+   * Authentication can be done using HTTP basic auth or using client
+   * certificates.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuth} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MasterAuth) + com.google.container.v1beta1.MasterAuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuth.class, + com.google.container.v1beta1.MasterAuth.Builder.class); + } + + // Construct using com.google.container.v1beta1.MasterAuth.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + username_ = ""; + + password_ = ""; + + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = null; + } else { + clientCertificateConfig_ = null; + clientCertificateConfigBuilder_ = null; + } + clusterCaCertificate_ = ""; + + clientCertificate_ = ""; + + clientKey_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuth_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuth getDefaultInstanceForType() { + return com.google.container.v1beta1.MasterAuth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuth build() { + com.google.container.v1beta1.MasterAuth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuth buildPartial() { + com.google.container.v1beta1.MasterAuth result = + new com.google.container.v1beta1.MasterAuth(this); + result.username_ = username_; + result.password_ = password_; + if (clientCertificateConfigBuilder_ == null) { + result.clientCertificateConfig_ = clientCertificateConfig_; + } else { + result.clientCertificateConfig_ = clientCertificateConfigBuilder_.build(); + } + result.clusterCaCertificate_ = clusterCaCertificate_; + result.clientCertificate_ = clientCertificate_; + result.clientKey_ = clientKey_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.MasterAuth) { + return mergeFrom((com.google.container.v1beta1.MasterAuth) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MasterAuth other) { + if (other == com.google.container.v1beta1.MasterAuth.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (other.hasClientCertificateConfig()) { + mergeClientCertificateConfig(other.getClientCertificateConfig()); + } + if (!other.getClusterCaCertificate().isEmpty()) { + clusterCaCertificate_ = other.clusterCaCertificate_; + onChanged(); + } + if (!other.getClientCertificate().isEmpty()) { + clientCertificate_ = other.clientCertificate_; + onChanged(); + } + if (!other.getClientKey().isEmpty()) { + clientKey_ = other.clientKey_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MasterAuth parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.MasterAuth) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object username_ = ""; + /** + * + * + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string username = 1 [deprecated = true]; + * + * @return The username. + */ + @java.lang.Deprecated + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string username = 1 [deprecated = true]; + * + * @return The bytes for username. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string username = 1 [deprecated = true]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string username = 1 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearUsername() { + + username_ = getDefaultInstance().getUsername(); + onChanged(); + return this; + } + /** + * + * + *
+     * The username to use for HTTP basic authentication to the master endpoint.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string username = 1 [deprecated = true]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * + * + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string password = 2 [deprecated = true]; + * + * @return The password. + */ + @java.lang.Deprecated + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string password = 2 [deprecated = true]; + * + * @return The bytes for password. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string password = 2 [deprecated = true]; + * + * @param value The password to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string password = 2 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * + * + *
+     * The password to use for HTTP basic authentication to the master endpoint.
+     * Because the master endpoint is open to the Internet, you should create a
+     * strong password.  If a password is provided for cluster creation, username
+     * must be non-empty.
+     * Warning: basic authentication is deprecated, and will be removed in GKE
+     * control plane versions 1.19 and newer. For a list of recommended
+     * authentication methods, see:
+     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+     * 
+ * + * string password = 2 [deprecated = true]; + * + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ClientCertificateConfig clientCertificateConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClientCertificateConfig, + com.google.container.v1beta1.ClientCertificateConfig.Builder, + com.google.container.v1beta1.ClientCertificateConfigOrBuilder> + clientCertificateConfigBuilder_; + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + * + * @return Whether the clientCertificateConfig field is set. + */ + public boolean hasClientCertificateConfig() { + return clientCertificateConfigBuilder_ != null || clientCertificateConfig_ != null; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + * + * @return The clientCertificateConfig. + */ + public com.google.container.v1beta1.ClientCertificateConfig getClientCertificateConfig() { + if (clientCertificateConfigBuilder_ == null) { + return clientCertificateConfig_ == null + ? com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() + : clientCertificateConfig_; + } else { + return clientCertificateConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder setClientCertificateConfig( + com.google.container.v1beta1.ClientCertificateConfig value) { + if (clientCertificateConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientCertificateConfig_ = value; + onChanged(); + } else { + clientCertificateConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder setClientCertificateConfig( + com.google.container.v1beta1.ClientCertificateConfig.Builder builderForValue) { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = builderForValue.build(); + onChanged(); + } else { + clientCertificateConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder mergeClientCertificateConfig( + com.google.container.v1beta1.ClientCertificateConfig value) { + if (clientCertificateConfigBuilder_ == null) { + if (clientCertificateConfig_ != null) { + clientCertificateConfig_ = + com.google.container.v1beta1.ClientCertificateConfig.newBuilder( + clientCertificateConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + clientCertificateConfig_ = value; + } + onChanged(); + } else { + clientCertificateConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder clearClientCertificateConfig() { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = null; + onChanged(); + } else { + clientCertificateConfig_ = null; + clientCertificateConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1beta1.ClientCertificateConfig.Builder + getClientCertificateConfigBuilder() { + + onChanged(); + return getClientCertificateConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1beta1.ClientCertificateConfigOrBuilder + getClientCertificateConfigOrBuilder() { + if (clientCertificateConfigBuilder_ != null) { + return clientCertificateConfigBuilder_.getMessageOrBuilder(); + } else { + return clientCertificateConfig_ == null + ? com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() + : clientCertificateConfig_; + } + } + /** + * + * + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClientCertificateConfig, + com.google.container.v1beta1.ClientCertificateConfig.Builder, + com.google.container.v1beta1.ClientCertificateConfigOrBuilder> + getClientCertificateConfigFieldBuilder() { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClientCertificateConfig, + com.google.container.v1beta1.ClientCertificateConfig.Builder, + com.google.container.v1beta1.ClientCertificateConfigOrBuilder>( + getClientCertificateConfig(), getParentForChildren(), isClean()); + clientCertificateConfig_ = null; + } + return clientCertificateConfigBuilder_; + } + + private java.lang.Object clusterCaCertificate_ = ""; + /** + * string cluster_ca_certificate = 100; + * + * @return The clusterCaCertificate. + */ + public java.lang.String getClusterCaCertificate() { + java.lang.Object ref = clusterCaCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterCaCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cluster_ca_certificate = 100; + * + * @return The bytes for clusterCaCertificate. + */ + public com.google.protobuf.ByteString getClusterCaCertificateBytes() { + java.lang.Object ref = clusterCaCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterCaCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cluster_ca_certificate = 100; + * + * @param value The clusterCaCertificate to set. + * @return This builder for chaining. + */ + public Builder setClusterCaCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterCaCertificate_ = value; + onChanged(); + return this; + } + /** + * string cluster_ca_certificate = 100; + * + * @return This builder for chaining. + */ + public Builder clearClusterCaCertificate() { + + clusterCaCertificate_ = getDefaultInstance().getClusterCaCertificate(); + onChanged(); + return this; + } + /** + * string cluster_ca_certificate = 100; + * + * @param value The bytes for clusterCaCertificate to set. + * @return This builder for chaining. + */ + public Builder setClusterCaCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterCaCertificate_ = value; + onChanged(); + return this; + } + + private java.lang.Object clientCertificate_ = ""; + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @return The clientCertificate. + */ + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @return The bytes for clientCertificate. + */ + public com.google.protobuf.ByteString getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @param value The clientCertificate to set. + * @return This builder for chaining. + */ + public Builder setClientCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientCertificate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @return This builder for chaining. + */ + public Builder clearClientCertificate() { + + clientCertificate_ = getDefaultInstance().getClientCertificate(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Base64-encoded public certificate used by clients to
+     * authenticate to the cluster endpoint.
+     * 
+ * + * string client_certificate = 101; + * + * @param value The bytes for clientCertificate to set. + * @return This builder for chaining. + */ + public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientCertificate_ = value; + onChanged(); + return this; + } + + private java.lang.Object clientKey_ = ""; + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @return The clientKey. + */ + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @return The bytes for clientKey. + */ + public com.google.protobuf.ByteString getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @param value The clientKey to set. + * @return This builder for chaining. + */ + public Builder setClientKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @return This builder for chaining. + */ + public Builder clearClientKey() { + + clientKey_ = getDefaultInstance().getClientKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Base64-encoded private key used by clients to authenticate
+     * to the cluster endpoint.
+     * 
+ * + * string client_key = 102; + * + * @param value The bytes for clientKey to set. + * @return This builder for chaining. + */ + public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientKey_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.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.MasterAuth) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MasterAuth) + private static final com.google.container.v1beta1.MasterAuth DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MasterAuth(); + } + + public static com.google.container.v1beta1.MasterAuth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MasterAuth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MasterAuth(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java new file mode 100644 index 00000000..daf6694f --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java @@ -0,0 +1,214 @@ +/* + * 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 MasterAuthOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MasterAuth) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, basic authentication can be disabled by
+   * leaving username unspecified (or setting it to the empty string).
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string username = 1 [deprecated = true]; + * + * @return The username. + */ + @java.lang.Deprecated + java.lang.String getUsername(); + /** + * + * + *
+   * The username to use for HTTP basic authentication to the master endpoint.
+   * For clusters v1.6.0 and later, basic authentication can be disabled by
+   * leaving username unspecified (or setting it to the empty string).
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string username = 1 [deprecated = true]; + * + * @return The bytes for username. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string password = 2 [deprecated = true]; + * + * @return The password. + */ + @java.lang.Deprecated + java.lang.String getPassword(); + /** + * + * + *
+   * The password to use for HTTP basic authentication to the master endpoint.
+   * Because the master endpoint is open to the Internet, you should create a
+   * strong password.  If a password is provided for cluster creation, username
+   * must be non-empty.
+   * Warning: basic authentication is deprecated, and will be removed in GKE
+   * control plane versions 1.19 and newer. For a list of recommended
+   * authentication methods, see:
+   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
+   * 
+ * + * string password = 2 [deprecated = true]; + * + * @return The bytes for password. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getPasswordBytes(); + + /** + * + * + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + * + * @return Whether the clientCertificateConfig field is set. + */ + boolean hasClientCertificateConfig(); + /** + * + * + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + * + * @return The clientCertificateConfig. + */ + com.google.container.v1beta1.ClientCertificateConfig getClientCertificateConfig(); + /** + * + * + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1beta1.ClientCertificateConfig client_certificate_config = 3; + */ + com.google.container.v1beta1.ClientCertificateConfigOrBuilder + getClientCertificateConfigOrBuilder(); + + /** + * string cluster_ca_certificate = 100; + * + * @return The clusterCaCertificate. + */ + java.lang.String getClusterCaCertificate(); + /** + * string cluster_ca_certificate = 100; + * + * @return The bytes for clusterCaCertificate. + */ + com.google.protobuf.ByteString getClusterCaCertificateBytes(); + + /** + * + * + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + * + * @return The clientCertificate. + */ + java.lang.String getClientCertificate(); + /** + * + * + *
+   * [Output only] Base64-encoded public certificate used by clients to
+   * authenticate to the cluster endpoint.
+   * 
+ * + * string client_certificate = 101; + * + * @return The bytes for clientCertificate. + */ + com.google.protobuf.ByteString getClientCertificateBytes(); + + /** + * + * + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + * + * @return The clientKey. + */ + java.lang.String getClientKey(); + /** + * + * + *
+   * [Output only] Base64-encoded private key used by clients to authenticate
+   * to the cluster endpoint.
+   * 
+ * + * string client_key = 102; + * + * @return The bytes for clientKey. + */ + com.google.protobuf.ByteString getClientKeyBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java new file mode 100644 index 00000000..718c3eda --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java @@ -0,0 +1,2024 @@ +/* + * 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 options for the master authorized networks feature. Enabled
+ * master authorized networks will disallow all external traffic to access
+ * Kubernetes master through HTTPS except traffic from the given CIDR blocks,
+ * Google Compute Engine Public IPs and Google Prod IPs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuthorizedNetworksConfig} + */ +public final class MasterAuthorizedNetworksConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MasterAuthorizedNetworksConfig) + MasterAuthorizedNetworksConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MasterAuthorizedNetworksConfig.newBuilder() to construct. + private MasterAuthorizedNetworksConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MasterAuthorizedNetworksConfig() { + cidrBlocks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MasterAuthorizedNetworksConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MasterAuthorizedNetworksConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + cidrBlocks_ = + new java.util.ArrayList< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock>(); + mutable_bitField0_ |= 0x00000001; + } + cidrBlocks_.add( + input.readMessage( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + .parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.class, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder.class); + } + + public interface CidrBlockOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + * + * @return The cidrBlock. + */ + java.lang.String getCidrBlock(); + /** + * + * + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + * + * @return The bytes for cidrBlock. + */ + com.google.protobuf.ByteString getCidrBlockBytes(); + } + /** + * + * + *
+   * CidrBlock contains an optional name and one CIDR block.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class CidrBlock extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + CidrBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use CidrBlock.newBuilder() to construct. + private CidrBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CidrBlock() { + displayName_ = ""; + cidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CidrBlock(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CidrBlock( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + cidrBlock_ = s; + break; + } + default: + { + if (!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_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.class, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object displayName_; + /** + * + * + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+     * display_name is an optional field for users to identify CIDR blocks.
+     * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CIDR_BLOCK_FIELD_NUMBER = 2; + private volatile java.lang.Object cidrBlock_; + /** + * + * + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + * + * @return The cidrBlock. + */ + @java.lang.Override + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } + } + /** + * + * + *
+     * cidr_block must be specified in CIDR notation.
+     * 
+ * + * string cidr_block = 2; + * + * @return The bytes for cidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!getCidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cidrBlock_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!getCidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cidrBlock_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock)) { + return super.equals(obj); + } + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock other = + (com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getCidrBlock().equals(other.getCidrBlock())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getCidrBlock().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * CidrBlock contains an optional name and one CIDR block.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.class, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + .class); + } + + // Construct using + // com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + displayName_ = ""; + + cidrBlock_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + getDefaultInstanceForType() { + return com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock build() { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock buildPartial() { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock result = + new com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock(this); + result.displayName_ = displayName_; + result.cidrBlock_ = cidrBlock_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.MasterAuthorizedNetworksConfig.CidrBlock) { + return mergeFrom( + (com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock other) { + if (other + == com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getCidrBlock().isEmpty()) { + cidrBlock_ = other.cidrBlock_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+       * display_name is an optional field for users to identify CIDR blocks.
+       * 
+ * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object cidrBlock_ = ""; + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @return The cidrBlock. + */ + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @return The bytes for cidrBlock. + */ + public com.google.protobuf.ByteString getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @param value The cidrBlock to set. + * @return This builder for chaining. + */ + public Builder setCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @return This builder for chaining. + */ + public Builder clearCidrBlock() { + + cidrBlock_ = getDefaultInstance().getCidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+       * cidr_block must be specified in CIDR notation.
+       * 
+ * + * string cidr_block = 2; + * + * @param value The bytes for cidrBlock to set. + * @return This builder for chaining. + */ + public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cidrBlock_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.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.MasterAuthorizedNetworksConfig.CidrBlock) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock) + private static final com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock(); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CidrBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CidrBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether or not master authorized networks is enabled.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int CIDR_BLOCKS_FIELD_NUMBER = 2; + private java.util.List + cidrBlocks_; + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + @java.lang.Override + public java.util.List + getCidrBlocksList() { + return cidrBlocks_; + } + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksOrBuilderList() { + return cidrBlocks_; + } + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + @java.lang.Override + public int getCidrBlocksCount() { + return cidrBlocks_.size(); + } + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks( + int index) { + return cidrBlocks_.get(index); + } + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder + getCidrBlocksOrBuilder(int index) { + return cidrBlocks_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + for (int i = 0; i < cidrBlocks_.size(); i++) { + output.writeMessage(2, cidrBlocks_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + for (int i = 0; i < cidrBlocks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, cidrBlocks_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.MasterAuthorizedNetworksConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.MasterAuthorizedNetworksConfig other = + (com.google.container.v1beta1.MasterAuthorizedNetworksConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getCidrBlocksList().equals(other.getCidrBlocksList())) 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()); + if (getCidrBlocksCount() > 0) { + hash = (37 * hash) + CIDR_BLOCKS_FIELD_NUMBER; + hash = (53 * hash) + getCidrBlocksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration options for the master authorized networks feature. Enabled
+   * master authorized networks will disallow all external traffic to access
+   * Kubernetes master through HTTPS except traffic from the given CIDR blocks,
+   * Google Compute Engine Public IPs and Google Prod IPs.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MasterAuthorizedNetworksConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MasterAuthorizedNetworksConfig) + com.google.container.v1beta1.MasterAuthorizedNetworksConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.class, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.MasterAuthorizedNetworksConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCidrBlocksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + cidrBlocksBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig build() { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig buildPartial() { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig result = + new com.google.container.v1beta1.MasterAuthorizedNetworksConfig(this); + int from_bitField0_ = bitField0_; + result.enabled_ = enabled_; + if (cidrBlocksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cidrBlocks_ = cidrBlocks_; + } else { + result.cidrBlocks_ = cidrBlocksBuilder_.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.MasterAuthorizedNetworksConfig) { + return mergeFrom((com.google.container.v1beta1.MasterAuthorizedNetworksConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MasterAuthorizedNetworksConfig other) { + if (other == com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (cidrBlocksBuilder_ == null) { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocks_.isEmpty()) { + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCidrBlocksIsMutable(); + cidrBlocks_.addAll(other.cidrBlocks_); + } + onChanged(); + } + } else { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocksBuilder_.isEmpty()) { + cidrBlocksBuilder_.dispose(); + cidrBlocksBuilder_ = null; + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000001); + cidrBlocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCidrBlocksFieldBuilder() + : null; + } else { + cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.MasterAuthorizedNetworksConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private boolean enabled_; + /** + * + * + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * 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 or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.util.List + cidrBlocks_ = java.util.Collections.emptyList(); + + private void ensureCidrBlocksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cidrBlocks_ = + new java.util.ArrayList< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock>(cidrBlocks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + cidrBlocksBuilder_; + + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public java.util.List + getCidrBlocksList() { + if (cidrBlocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } else { + return cidrBlocksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public int getCidrBlocksCount() { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.size(); + } else { + return cidrBlocksBuilder_.getCount(); + } + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks( + int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); + } else { + return cidrBlocksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder setCidrBlocks( + int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder setCidrBlocks( + int index, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder addCidrBlocks( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder addCidrBlocks( + int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder addCidrBlocks( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder addCidrBlocks( + int index, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder addAllCidrBlocks( + java.lang.Iterable< + ? extends com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock> + values) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cidrBlocks_); + onChanged(); + } else { + cidrBlocksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder clearCidrBlocks() { + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cidrBlocksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public Builder removeCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.remove(index); + onChanged(); + } else { + cidrBlocksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + getCidrBlocksBuilder(int index) { + return getCidrBlocksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder + getCidrBlocksOrBuilder(int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); + } else { + return cidrBlocksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public java.util.List< + ? extends + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksOrBuilderList() { + if (cidrBlocksBuilder_ != null) { + return cidrBlocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + addCidrBlocksBuilder() { + return getCidrBlocksFieldBuilder() + .addBuilder( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance()); + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder + addCidrBlocksBuilder(int index) { + return getCidrBlocksFieldBuilder() + .addBuilder( + index, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock + .getDefaultInstance()); + } + /** + * + * + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + public java.util.List< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder> + getCidrBlocksBuilderList() { + return getCidrBlocksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksFieldBuilder() { + if (cidrBlocksBuilder_ == null) { + cidrBlocksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder>( + cidrBlocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cidrBlocks_ = null; + } + return cidrBlocksBuilder_; + } + + @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.MasterAuthorizedNetworksConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MasterAuthorizedNetworksConfig) + private static final com.google.container.v1beta1.MasterAuthorizedNetworksConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MasterAuthorizedNetworksConfig(); + } + + public static com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MasterAuthorizedNetworksConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MasterAuthorizedNetworksConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java new file mode 100644 index 00000000..847e1fe3 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 MasterAuthorizedNetworksConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MasterAuthorizedNetworksConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether or not master authorized networks is enabled.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + java.util.List + getCidrBlocksList(); + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index); + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + int getCidrBlocksCount(); + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + java.util.List< + ? extends com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksOrBuilderList(); + /** + * + * + *
+   * cidr_blocks define up to 10 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + * + */ + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder + getCidrBlocksOrBuilder(int index); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterOrBuilder.java new file mode 100644 index 00000000..85a303c7 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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 MasterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Master) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java new file mode 100644 index 00000000..b33b607a --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java @@ -0,0 +1,544 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Constraints applied to pods.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MaxPodsConstraint} + */ +public final class MaxPodsConstraint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaxPodsConstraint) + MaxPodsConstraintOrBuilder { + private static final long serialVersionUID = 0L; + // Use MaxPodsConstraint.newBuilder() to construct. + private MaxPodsConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaxPodsConstraint() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaxPodsConstraint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MaxPodsConstraint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxPodsPerNode_ = input.readInt64(); + break; + } + default: + { + if (!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_MaxPodsConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaxPodsConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaxPodsConstraint.class, + com.google.container.v1beta1.MaxPodsConstraint.Builder.class); + } + + public static final int MAX_PODS_PER_NODE_FIELD_NUMBER = 1; + private long maxPodsPerNode_; + /** + * + * + *
+   * Constraint enforced on the max num of pods per node.
+   * 
+ * + * int64 max_pods_per_node = 1; + * + * @return The maxPodsPerNode. + */ + @java.lang.Override + public long getMaxPodsPerNode() { + return maxPodsPerNode_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (maxPodsPerNode_ != 0L) { + output.writeInt64(1, maxPodsPerNode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxPodsPerNode_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxPodsPerNode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.MaxPodsConstraint)) { + return super.equals(obj); + } + com.google.container.v1beta1.MaxPodsConstraint other = + (com.google.container.v1beta1.MaxPodsConstraint) obj; + + if (getMaxPodsPerNode() != other.getMaxPodsPerNode()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_PODS_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxPodsPerNode()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaxPodsConstraint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.MaxPodsConstraint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Constraints applied to pods.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MaxPodsConstraint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MaxPodsConstraint) + com.google.container.v1beta1.MaxPodsConstraintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaxPodsConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaxPodsConstraint.class, + com.google.container.v1beta1.MaxPodsConstraint.Builder.class); + } + + // Construct using com.google.container.v1beta1.MaxPodsConstraint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + maxPodsPerNode_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_MaxPodsConstraint_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint getDefaultInstanceForType() { + return com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint build() { + com.google.container.v1beta1.MaxPodsConstraint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint buildPartial() { + com.google.container.v1beta1.MaxPodsConstraint result = + new com.google.container.v1beta1.MaxPodsConstraint(this); + result.maxPodsPerNode_ = maxPodsPerNode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.MaxPodsConstraint) { + return mergeFrom((com.google.container.v1beta1.MaxPodsConstraint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MaxPodsConstraint other) { + if (other == com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance()) return this; + if (other.getMaxPodsPerNode() != 0L) { + setMaxPodsPerNode(other.getMaxPodsPerNode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.MaxPodsConstraint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.MaxPodsConstraint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxPodsPerNode_; + /** + * + * + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + * + * @return The maxPodsPerNode. + */ + @java.lang.Override + public long getMaxPodsPerNode() { + return maxPodsPerNode_; + } + /** + * + * + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + * + * @param value The maxPodsPerNode to set. + * @return This builder for chaining. + */ + public Builder setMaxPodsPerNode(long value) { + + maxPodsPerNode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaxPodsPerNode() { + + maxPodsPerNode_ = 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.MaxPodsConstraint) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaxPodsConstraint) + private static final com.google.container.v1beta1.MaxPodsConstraint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MaxPodsConstraint(); + } + + public static com.google.container.v1beta1.MaxPodsConstraint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaxPodsConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaxPodsConstraint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java new file mode 100644 index 00000000..13ada716 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.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 MaxPodsConstraintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaxPodsConstraint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Constraint enforced on the max num of pods per node.
+   * 
+ * + * int64 max_pods_per_node = 1; + * + * @return The maxPodsPerNode. + */ + long getMaxPodsPerNode(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java new file mode 100644 index 00000000..bb07043c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java @@ -0,0 +1,1424 @@ +/* + * 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; + +/** + * + * + *
+ * NetworkConfig reports the relative names of network & subnetwork.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkConfig} + */ +public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkConfig) + NetworkConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkConfig.newBuilder() to construct. + private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkConfig() { + network_ = ""; + subnetwork_ = ""; + datapathProvider_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NetworkConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + subnetwork_ = s; + break; + } + case 40: + { + enableIntraNodeVisibility_ = input.readBool(); + break; + } + case 58: + { + com.google.container.v1beta1.DefaultSnatStatus.Builder subBuilder = null; + if (defaultSnatStatus_ != null) { + subBuilder = defaultSnatStatus_.toBuilder(); + } + defaultSnatStatus_ = + input.readMessage( + com.google.container.v1beta1.DefaultSnatStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultSnatStatus_); + defaultSnatStatus_ = subBuilder.buildPartial(); + } + + break; + } + case 88: + { + int rawValue = input.readEnum(); + + datapathProvider_ = 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_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkConfig.class, + com.google.container.v1beta1.NetworkConfig.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + private volatile java.lang.Object network_; + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBNETWORK_FIELD_NUMBER = 2; + private volatile java.lang.Object subnetwork_; + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + * + * @return The subnetwork. + */ + @java.lang.Override + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + * + * @return The bytes for subnetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER = 5; + private boolean enableIntraNodeVisibility_; + /** + * + * + *
+   * Whether Intra-node visibility is enabled for this cluster.
+   * This makes same node pod to pod traffic visible for VPC network.
+   * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @return The enableIntraNodeVisibility. + */ + @java.lang.Override + public boolean getEnableIntraNodeVisibility() { + return enableIntraNodeVisibility_; + } + + public static final int DEFAULT_SNAT_STATUS_FIELD_NUMBER = 7; + private com.google.container.v1beta1.DefaultSnatStatus defaultSnatStatus_; + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + * + * @return Whether the defaultSnatStatus field is set. + */ + @java.lang.Override + public boolean hasDefaultSnatStatus() { + return defaultSnatStatus_ != null; + } + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + * + * @return The defaultSnatStatus. + */ + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatus getDefaultSnatStatus() { + return defaultSnatStatus_ == null + ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() + : defaultSnatStatus_; + } + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + @java.lang.Override + public com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { + return getDefaultSnatStatus(); + } + + 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.v1beta1.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.v1beta1.DatapathProvider datapath_provider = 11; + * + * @return The datapathProvider. + */ + @java.lang.Override + public com.google.container.v1beta1.DatapathProvider getDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DatapathProvider result = + com.google.container.v1beta1.DatapathProvider.valueOf(datapathProvider_); + return result == null ? com.google.container.v1beta1.DatapathProvider.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 (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!getSubnetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); + } + if (enableIntraNodeVisibility_ != false) { + output.writeBool(5, enableIntraNodeVisibility_); + } + if (defaultSnatStatus_ != null) { + output.writeMessage(7, getDefaultSnatStatus()); + } + if (datapathProvider_ + != com.google.container.v1beta1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, datapathProvider_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!getSubnetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); + } + if (enableIntraNodeVisibility_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableIntraNodeVisibility_); + } + if (defaultSnatStatus_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDefaultSnatStatus()); + } + if (datapathProvider_ + != com.google.container.v1beta1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, datapathProvider_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.NetworkConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NetworkConfig other = + (com.google.container.v1beta1.NetworkConfig) obj; + + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnetwork().equals(other.getSubnetwork())) return false; + if (getEnableIntraNodeVisibility() != other.getEnableIntraNodeVisibility()) return false; + if (hasDefaultSnatStatus() != other.hasDefaultSnatStatus()) return false; + if (hasDefaultSnatStatus()) { + if (!getDefaultSnatStatus().equals(other.getDefaultSnatStatus())) return false; + } + if (datapathProvider_ != other.datapathProvider_) 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) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetwork().hashCode(); + hash = (37 * hash) + ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntraNodeVisibility()); + if (hasDefaultSnatStatus()) { + hash = (37 * hash) + DEFAULT_SNAT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getDefaultSnatStatus().hashCode(); + } + hash = (37 * hash) + DATAPATH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + datapathProvider_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NetworkConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NetworkConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NetworkConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NetworkConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NetworkConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NetworkConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.NetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * NetworkConfig reports the relative names of network & subnetwork.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NetworkConfig) + com.google.container.v1beta1.NetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkConfig.class, + com.google.container.v1beta1.NetworkConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.NetworkConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + network_ = ""; + + subnetwork_ = ""; + + enableIntraNodeVisibility_ = false; + + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = null; + } else { + defaultSnatStatus_ = null; + defaultSnatStatusBuilder_ = null; + } + datapathProvider_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig build() { + com.google.container.v1beta1.NetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig buildPartial() { + com.google.container.v1beta1.NetworkConfig result = + new com.google.container.v1beta1.NetworkConfig(this); + result.network_ = network_; + result.subnetwork_ = subnetwork_; + result.enableIntraNodeVisibility_ = enableIntraNodeVisibility_; + if (defaultSnatStatusBuilder_ == null) { + result.defaultSnatStatus_ = defaultSnatStatus_; + } else { + result.defaultSnatStatus_ = defaultSnatStatusBuilder_.build(); + } + result.datapathProvider_ = datapathProvider_; + 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.NetworkConfig) { + return mergeFrom((com.google.container.v1beta1.NetworkConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NetworkConfig other) { + if (other == com.google.container.v1beta1.NetworkConfig.getDefaultInstance()) return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + if (other.getEnableIntraNodeVisibility() != false) { + setEnableIntraNodeVisibility(other.getEnableIntraNodeVisibility()); + } + if (other.hasDefaultSnatStatus()) { + mergeDefaultSnatStatus(other.getDefaultSnatStatus()); + } + if (other.datapathProvider_ != 0) { + setDatapathProviderValue(other.getDatapathProviderValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NetworkConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NetworkConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object subnetwork_ = ""; + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @return The subnetwork. + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @return The bytes for subnetwork. + */ + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @param value The subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The relative name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+     * cluster is connected. Example:
+     * projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 2; + * + * @param value The bytes for subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private boolean enableIntraNodeVisibility_; + /** + * + * + *
+     * Whether Intra-node visibility is enabled for this cluster.
+     * This makes same node pod to pod traffic visible for VPC network.
+     * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @return The enableIntraNodeVisibility. + */ + @java.lang.Override + public boolean getEnableIntraNodeVisibility() { + return enableIntraNodeVisibility_; + } + /** + * + * + *
+     * Whether Intra-node visibility is enabled for this cluster.
+     * This makes same node pod to pod traffic visible for VPC network.
+     * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @param value The enableIntraNodeVisibility to set. + * @return This builder for chaining. + */ + public Builder setEnableIntraNodeVisibility(boolean value) { + + enableIntraNodeVisibility_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Intra-node visibility is enabled for this cluster.
+     * This makes same node pod to pod traffic visible for VPC network.
+     * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @return This builder for chaining. + */ + public Builder clearEnableIntraNodeVisibility() { + + enableIntraNodeVisibility_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.DefaultSnatStatus defaultSnatStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DefaultSnatStatus, + com.google.container.v1beta1.DefaultSnatStatus.Builder, + com.google.container.v1beta1.DefaultSnatStatusOrBuilder> + defaultSnatStatusBuilder_; + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + * + * @return Whether the defaultSnatStatus field is set. + */ + public boolean hasDefaultSnatStatus() { + return defaultSnatStatusBuilder_ != null || defaultSnatStatus_ != null; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + * + * @return The defaultSnatStatus. + */ + public com.google.container.v1beta1.DefaultSnatStatus getDefaultSnatStatus() { + if (defaultSnatStatusBuilder_ == null) { + return defaultSnatStatus_ == null + ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() + : defaultSnatStatus_; + } else { + return defaultSnatStatusBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder setDefaultSnatStatus(com.google.container.v1beta1.DefaultSnatStatus value) { + if (defaultSnatStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultSnatStatus_ = value; + onChanged(); + } else { + defaultSnatStatusBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder setDefaultSnatStatus( + com.google.container.v1beta1.DefaultSnatStatus.Builder builderForValue) { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = builderForValue.build(); + onChanged(); + } else { + defaultSnatStatusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder mergeDefaultSnatStatus(com.google.container.v1beta1.DefaultSnatStatus value) { + if (defaultSnatStatusBuilder_ == null) { + if (defaultSnatStatus_ != null) { + defaultSnatStatus_ = + com.google.container.v1beta1.DefaultSnatStatus.newBuilder(defaultSnatStatus_) + .mergeFrom(value) + .buildPartial(); + } else { + defaultSnatStatus_ = value; + } + onChanged(); + } else { + defaultSnatStatusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder clearDefaultSnatStatus() { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = null; + onChanged(); + } else { + defaultSnatStatus_ = null; + defaultSnatStatusBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + public com.google.container.v1beta1.DefaultSnatStatus.Builder getDefaultSnatStatusBuilder() { + + onChanged(); + return getDefaultSnatStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + public com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { + if (defaultSnatStatusBuilder_ != null) { + return defaultSnatStatusBuilder_.getMessageOrBuilder(); + } else { + return defaultSnatStatus_ == null + ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() + : defaultSnatStatus_; + } + } + /** + * + * + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DefaultSnatStatus, + com.google.container.v1beta1.DefaultSnatStatus.Builder, + com.google.container.v1beta1.DefaultSnatStatusOrBuilder> + getDefaultSnatStatusFieldBuilder() { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DefaultSnatStatus, + com.google.container.v1beta1.DefaultSnatStatus.Builder, + com.google.container.v1beta1.DefaultSnatStatusOrBuilder>( + getDefaultSnatStatus(), getParentForChildren(), isClean()); + defaultSnatStatus_ = null; + } + return defaultSnatStatusBuilder_; + } + + private int datapathProvider_ = 0; + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1beta1.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.v1beta1.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.v1beta1.DatapathProvider datapath_provider = 11; + * + * @return The datapathProvider. + */ + @java.lang.Override + public com.google.container.v1beta1.DatapathProvider getDatapathProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.DatapathProvider result = + com.google.container.v1beta1.DatapathProvider.valueOf(datapathProvider_); + return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1beta1.DatapathProvider datapath_provider = 11; + * + * @param value The datapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDatapathProvider(com.google.container.v1beta1.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.v1beta1.DatapathProvider datapath_provider = 11; + * + * @return This builder for chaining. + */ + public Builder clearDatapathProvider() { + + datapathProvider_ = 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.NetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkConfig) + private static final com.google.container.v1beta1.NetworkConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkConfig(); + } + + public static com.google.container.v1beta1.NetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java new file mode 100644 index 00000000..a33eafcc --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java @@ -0,0 +1,172 @@ +/* + * 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 NetworkConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + * + * @return The subnetwork. + */ + java.lang.String getSubnetwork(); + /** + * + * + *
+   * Output only. The relative name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
+   * cluster is connected. Example:
+   * projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 2; + * + * @return The bytes for subnetwork. + */ + com.google.protobuf.ByteString getSubnetworkBytes(); + + /** + * + * + *
+   * Whether Intra-node visibility is enabled for this cluster.
+   * This makes same node pod to pod traffic visible for VPC network.
+   * 
+ * + * bool enable_intra_node_visibility = 5; + * + * @return The enableIntraNodeVisibility. + */ + boolean getEnableIntraNodeVisibility(); + + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + * + * @return Whether the defaultSnatStatus field is set. + */ + boolean hasDefaultSnatStatus(); + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + * + * @return The defaultSnatStatus. + */ + com.google.container.v1beta1.DefaultSnatStatus getDefaultSnatStatus(); + /** + * + * + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1beta1.DefaultSnatStatus default_snat_status = 7; + */ + com.google.container.v1beta1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder(); + + /** + * + * + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.DatapathProvider datapath_provider = 11; + * + * @return The datapathProvider. + */ + com.google.container.v1beta1.DatapathProvider getDatapathProvider(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java new file mode 100644 index 00000000..cddbd685 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java @@ -0,0 +1,838 @@ +/* + * 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 options for the NetworkPolicy feature.
+ * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkPolicy} + */ +public final class NetworkPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkPolicy) + NetworkPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkPolicy.newBuilder() to construct. + private NetworkPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkPolicy() { + provider_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkPolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NetworkPolicy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + provider_ = rawValue; + break; + } + case 16: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!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_NetworkPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkPolicy.class, + com.google.container.v1beta1.NetworkPolicy.Builder.class); + } + + /** + * + * + *
+   * Allowed Network Policy providers.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.NetworkPolicy.Provider} + */ + public enum Provider implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + PROVIDER_UNSPECIFIED(0), + /** + * + * + *
+     * Tigera (Calico Felix).
+     * 
+ * + * CALICO = 1; + */ + CALICO(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + public static final int PROVIDER_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Tigera (Calico Felix).
+     * 
+ * + * CALICO = 1; + */ + public static final int CALICO_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @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 CALICO; + 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.v1beta1.NetworkPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final Provider[] VALUES = values(); + + public static Provider valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Provider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NetworkPolicy.Provider) + } + + public static final int PROVIDER_FIELD_NUMBER = 1; + private int provider_; + /** + * + * + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return The enum numeric value on the wire for provider. + */ + @java.lang.Override + public int getProviderValue() { + return provider_; + } + /** + * + * + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return The provider. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy.Provider getProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NetworkPolicy.Provider result = + com.google.container.v1beta1.NetworkPolicy.Provider.valueOf(provider_); + return result == null + ? com.google.container.v1beta1.NetworkPolicy.Provider.UNRECOGNIZED + : result; + } + + public static final int ENABLED_FIELD_NUMBER = 2; + private boolean enabled_; + /** + * + * + *
+   * Whether network policy is enabled on the cluster.
+   * 
+ * + * bool enabled = 2; + * + * @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 (provider_ + != com.google.container.v1beta1.NetworkPolicy.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(1, provider_); + } + if (enabled_ != false) { + output.writeBool(2, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (provider_ + != com.google.container.v1beta1.NetworkPolicy.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, provider_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.NetworkPolicy)) { + return super.equals(obj); + } + com.google.container.v1beta1.NetworkPolicy other = + (com.google.container.v1beta1.NetworkPolicy) obj; + + if (provider_ != other.provider_) return false; + 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) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + provider_; + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NetworkPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NetworkPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NetworkPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.NetworkPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration options for the NetworkPolicy feature.
+   * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NetworkPolicy) + com.google.container.v1beta1.NetworkPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkPolicy.class, + com.google.container.v1beta1.NetworkPolicy.Builder.class); + } + + // Construct using com.google.container.v1beta1.NetworkPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + provider_ = 0; + + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.NetworkPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy build() { + com.google.container.v1beta1.NetworkPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy buildPartial() { + com.google.container.v1beta1.NetworkPolicy result = + new com.google.container.v1beta1.NetworkPolicy(this); + result.provider_ = provider_; + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.NetworkPolicy) { + return mergeFrom((com.google.container.v1beta1.NetworkPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NetworkPolicy other) { + if (other == com.google.container.v1beta1.NetworkPolicy.getDefaultInstance()) return this; + if (other.provider_ != 0) { + setProviderValue(other.getProviderValue()); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NetworkPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NetworkPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int provider_ = 0; + /** + * + * + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return The enum numeric value on the wire for provider. + */ + @java.lang.Override + public int getProviderValue() { + return provider_; + } + /** + * + * + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @param value The enum numeric value on the wire for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderValue(int value) { + + provider_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return The provider. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy.Provider getProvider() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NetworkPolicy.Provider result = + com.google.container.v1beta1.NetworkPolicy.Provider.valueOf(provider_); + return result == null + ? com.google.container.v1beta1.NetworkPolicy.Provider.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider(com.google.container.v1beta1.NetworkPolicy.Provider value) { + if (value == null) { + throw new NullPointerException(); + } + + provider_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return This builder for chaining. + */ + public Builder clearProvider() { + + provider_ = 0; + onChanged(); + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + * + * @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.NetworkPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkPolicy) + private static final com.google.container.v1beta1.NetworkPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkPolicy(); + } + + public static com.google.container.v1beta1.NetworkPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java new file mode 100644 index 00000000..ef544ed7 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java @@ -0,0 +1,549 @@ +/* + * 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 NetworkPolicy. This only tracks whether the addon
+ * is enabled or not on the Master, it does not track whether network policy
+ * is enabled for the nodes.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkPolicyConfig} + */ +public final class NetworkPolicyConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkPolicyConfig) + NetworkPolicyConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkPolicyConfig.newBuilder() to construct. + private NetworkPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkPolicyConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkPolicyConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NetworkPolicyConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkPolicyConfig.class, + com.google.container.v1beta1.NetworkPolicyConfig.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_; + /** + * + * + *
+   * Whether NetworkPolicy is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.NetworkPolicyConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NetworkPolicyConfig other = + (com.google.container.v1beta1.NetworkPolicyConfig) obj; + + if (getDisabled() != other.getDisabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.NetworkPolicyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for NetworkPolicy. This only tracks whether the addon
+   * is enabled or not on the Master, it does not track whether network policy
+   * is enabled for the nodes.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkPolicyConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NetworkPolicyConfig) + com.google.container.v1beta1.NetworkPolicyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkPolicyConfig.class, + com.google.container.v1beta1.NetworkPolicyConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.NetworkPolicyConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig build() { + com.google.container.v1beta1.NetworkPolicyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig buildPartial() { + com.google.container.v1beta1.NetworkPolicyConfig result = + new com.google.container.v1beta1.NetworkPolicyConfig(this); + result.disabled_ = disabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.NetworkPolicyConfig) { + return mergeFrom((com.google.container.v1beta1.NetworkPolicyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NetworkPolicyConfig other) { + if (other == com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance()) + return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NetworkPolicyConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NetworkPolicyConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_; + /** + * + * + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NetworkPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkPolicyConfig) + private static final com.google.container.v1beta1.NetworkPolicyConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkPolicyConfig(); + } + + public static com.google.container.v1beta1.NetworkPolicyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkPolicyConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java new file mode 100644 index 00000000..cb3a02dc --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.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 NetworkPolicyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether NetworkPolicy is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java new file mode 100644 index 00000000..4e977659 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java @@ -0,0 +1,63 @@ +/* + * 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 NetworkPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return The enum numeric value on the wire for provider. + */ + int getProviderValue(); + /** + * + * + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1beta1.NetworkPolicy.Provider provider = 1; + * + * @return The provider. + */ + com.google.container.v1beta1.NetworkPolicy.Provider getProvider(); + + /** + * + * + *
+   * Whether network policy is enabled on the cluster.
+   * 
+ * + * bool enabled = 2; + * + * @return The enabled. + */ + boolean getEnabled(); +} 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 new file mode 100644 index 00000000..91366d04 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java @@ -0,0 +1,7014 @@ +/* + * 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; + +/** + * + * + *
+ * Parameters that describe the nodes in a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeConfig} + */ +public final class NodeConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeConfig) + NodeConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeConfig.newBuilder() to construct. + private NodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeConfig() { + machineType_ = ""; + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + serviceAccount_ = ""; + imageType_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + accelerators_ = java.util.Collections.emptyList(); + nodeGroup_ = ""; + diskType_ = ""; + minCpuPlatform_ = ""; + taints_ = java.util.Collections.emptyList(); + bootDiskKmsKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NodeConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + machineType_ = s; + break; + } + case 16: + { + diskSizeGb_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + oauthScopes_.add(s); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + metadata_ = + com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + imageType_ = s; + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 56: + { + localSsdCount_ = input.readInt32(); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + tags_.add(s); + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccount_ = s; + break; + } + case 80: + { + preemptible_ = input.readBool(); + break; + } + case 90: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + accelerators_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + accelerators_.add( + input.readMessage( + com.google.container.v1beta1.AcceleratorConfig.parser(), extensionRegistry)); + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + diskType_ = s; + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + minCpuPlatform_ = s; + break; + } + case 114: + { + com.google.container.v1beta1.WorkloadMetadataConfig.Builder subBuilder = null; + if (workloadMetadataConfig_ != null) { + subBuilder = workloadMetadataConfig_.toBuilder(); + } + workloadMetadataConfig_ = + input.readMessage( + com.google.container.v1beta1.WorkloadMetadataConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workloadMetadataConfig_); + workloadMetadataConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 122: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + taints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + taints_.add( + input.readMessage( + com.google.container.v1beta1.NodeTaint.parser(), extensionRegistry)); + break; + } + case 138: + { + com.google.container.v1beta1.SandboxConfig.Builder subBuilder = null; + if (sandboxConfig_ != null) { + subBuilder = sandboxConfig_.toBuilder(); + } + sandboxConfig_ = + input.readMessage( + com.google.container.v1beta1.SandboxConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sandboxConfig_); + sandboxConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodeGroup_ = s; + break; + } + case 154: + { + com.google.container.v1beta1.ReservationAffinity.Builder subBuilder = null; + if (reservationAffinity_ != null) { + subBuilder = reservationAffinity_.toBuilder(); + } + reservationAffinity_ = + input.readMessage( + com.google.container.v1beta1.ReservationAffinity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(reservationAffinity_); + reservationAffinity_ = subBuilder.buildPartial(); + } + + break; + } + case 162: + { + com.google.container.v1beta1.ShieldedInstanceConfig.Builder subBuilder = null; + if (shieldedInstanceConfig_ != null) { + subBuilder = shieldedInstanceConfig_.toBuilder(); + } + shieldedInstanceConfig_ = + input.readMessage( + com.google.container.v1beta1.ShieldedInstanceConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(shieldedInstanceConfig_); + shieldedInstanceConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 170: + { + com.google.container.v1beta1.LinuxNodeConfig.Builder subBuilder = null; + if (linuxNodeConfig_ != null) { + subBuilder = linuxNodeConfig_.toBuilder(); + } + linuxNodeConfig_ = + input.readMessage( + com.google.container.v1beta1.LinuxNodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(linuxNodeConfig_); + linuxNodeConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 178: + { + com.google.container.v1beta1.NodeKubeletConfig.Builder subBuilder = null; + if (kubeletConfig_ != null) { + subBuilder = kubeletConfig_.toBuilder(); + } + kubeletConfig_ = + input.readMessage( + com.google.container.v1beta1.NodeKubeletConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kubeletConfig_); + kubeletConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 186: + { + java.lang.String s = input.readStringRequireUtf8(); + + bootDiskKmsKey_ = s; + break; + } + case 194: + { + com.google.container.v1beta1.EphemeralStorageConfig.Builder subBuilder = null; + if (ephemeralStorageConfig_ != null) { + subBuilder = ephemeralStorageConfig_.toBuilder(); + } + ephemeralStorageConfig_ = + input.readMessage( + com.google.container.v1beta1.EphemeralStorageConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ephemeralStorageConfig_); + ephemeralStorageConfig_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = oauthScopes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + } + if (((mutable_bitField0_ & 0x00000020) != 0)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetMetadata(); + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeConfig.class, + com.google.container.v1beta1.NodeConfig.Builder.class); + } + + public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object machineType_; + /** + * + * + *
+   * The name of a Google Compute Engine [machine
+   * type](https://cloud.google.com/compute/docs/machine-types).
+   * If unspecified, the default machine type is
+   * `e2-medium`.
+   * 
+ * + * string machine_type = 1; + * + * @return The machineType. + */ + @java.lang.Override + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + /** + * + * + *
+   * The name of a Google Compute Engine [machine
+   * type](https://cloud.google.com/compute/docs/machine-types).
+   * If unspecified, the default machine type is
+   * `e2-medium`.
+   * 
+ * + * string machine_type = 1; + * + * @return The bytes for machineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_SIZE_GB_FIELD_NUMBER = 2; + private int diskSizeGb_; + /** + * + * + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int OAUTH_SCOPES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList oauthScopes_; + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @return A list containing the oauthScopes. + */ + public com.google.protobuf.ProtocolStringList getOauthScopesList() { + return oauthScopes_; + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @return The count of oauthScopes. + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + public com.google.protobuf.ByteString getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9; + private volatile java.lang.Object serviceAccount_; + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 4; + + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * + * + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-oslogin"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + @java.lang.Override + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetMetadata().getMap().containsKey(key); + } + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + * + * + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-oslogin"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * + * + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-oslogin"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + @java.lang.Override + public java.lang.String getMetadataOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-oslogin"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int IMAGE_TYPE_FIELD_NUMBER = 5; + private volatile java.lang.Object imageType_; + /** + * + * + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + * + * @return The imageType. + */ + @java.lang.Override + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } + } + /** + * + * + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + * + * @return The bytes for imageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 7; + private int localSsdCount_; + /** + * + * + *
+   * The number of local SSD disks to be attached to the node.
+   * The limit for this value is dependent upon the maximum number of
+   * disks available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   * 
+ * + * int32 local_ssd_count = 7; + * + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + + public static final int TAGS_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList tags_; + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + return tags_; + } + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int PREEMPTIBLE_FIELD_NUMBER = 10; + private boolean preemptible_; + /** + * + * + *
+   * Whether the nodes are created as preemptible VM instances. See:
+   * https://cloud.google.com/compute/docs/instances/preemptible for more
+   * inforamtion about preemptible VM instances.
+   * 
+ * + * bool preemptible = 10; + * + * @return The preemptible. + */ + @java.lang.Override + public boolean getPreemptible() { + return preemptible_; + } + + public static final int ACCELERATORS_FIELD_NUMBER = 11; + private java.util.List accelerators_; + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + @java.lang.Override + public java.util.List getAcceleratorsList() { + return accelerators_; + } + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + @java.lang.Override + public java.util.List + getAcceleratorsOrBuilderList() { + return accelerators_; + } + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + @java.lang.Override + public int getAcceleratorsCount() { + return accelerators_.size(); + } + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + @java.lang.Override + public com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index) { + return accelerators_.get(index); + } + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + @java.lang.Override + public com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index) { + return accelerators_.get(index); + } + + public static final int SANDBOX_CONFIG_FIELD_NUMBER = 17; + private com.google.container.v1beta1.SandboxConfig sandboxConfig_; + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + * + * @return Whether the sandboxConfig field is set. + */ + @java.lang.Override + public boolean hasSandboxConfig() { + return sandboxConfig_ != null; + } + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + * + * @return The sandboxConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig getSandboxConfig() { + return sandboxConfig_ == null + ? com.google.container.v1beta1.SandboxConfig.getDefaultInstance() + : sandboxConfig_; + } + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + @java.lang.Override + public com.google.container.v1beta1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { + return getSandboxConfig(); + } + + public static final int NODE_GROUP_FIELD_NUMBER = 18; + private volatile java.lang.Object nodeGroup_; + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The nodeGroup. + */ + @java.lang.Override + public java.lang.String getNodeGroup() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroup_ = s; + return s; + } + } + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The bytes for nodeGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeGroupBytes() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 19; + private com.google.container.v1beta1.ReservationAffinity reservationAffinity_; + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + * + * @return Whether the reservationAffinity field is set. + */ + @java.lang.Override + public boolean hasReservationAffinity() { + return reservationAffinity_ != null; + } + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + * + * @return The reservationAffinity. + */ + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity getReservationAffinity() { + return reservationAffinity_ == null + ? com.google.container.v1beta1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; + } + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinityOrBuilder + getReservationAffinityOrBuilder() { + return getReservationAffinity(); + } + + public static final int DISK_TYPE_FIELD_NUMBER = 12; + private volatile java.lang.Object diskType_; + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + * + * @return The diskType. + */ + @java.lang.Override + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } + } + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + * + * @return The bytes for diskType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; + private volatile java.lang.Object minCpuPlatform_; + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + * + * @return The minCpuPlatform. + */ + @java.lang.Override + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } + } + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + * + * @return The bytes for minCpuPlatform. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfig_ != null; + } + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + return workloadMetadataConfig_ == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + return getWorkloadMetadataConfig(); + } + + public static final int TAINTS_FIELD_NUMBER = 15; + private java.util.List taints_; + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + @java.lang.Override + public java.util.List getTaintsList() { + return taints_; + } + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + @java.lang.Override + public java.util.List + getTaintsOrBuilderList() { + return taints_; + } + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + @java.lang.Override + public int getTaintsCount() { + return taints_.size(); + } + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeTaint getTaints(int index) { + return taints_.get(index); + } + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder(int index) { + return taints_.get(index); + } + + public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 23; + private volatile java.lang.Object bootDiskKmsKey_; + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bootDiskKmsKey. + */ + @java.lang.Override + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } + } + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bytes for bootDiskKmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 20; + private com.google.container.v1beta1.ShieldedInstanceConfig shieldedInstanceConfig_; + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfig_ != null; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return The shieldedInstanceConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null + ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return getShieldedInstanceConfig(); + } + + public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1beta1.LinuxNodeConfig linuxNodeConfig_; + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.LinuxNodeConfig linux_node_config = 21; + * + * @return The linuxNodeConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig() { + return linuxNodeConfig_ == null + ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + @java.lang.Override + public com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + return getLinuxNodeConfig(); + } + + public static final int KUBELET_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1beta1.NodeKubeletConfig kubeletConfig_; + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.NodeKubeletConfig kubelet_config = 22; + * + * @return The kubeletConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig() { + return kubeletConfig_ == null + ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + return getKubeletConfig(); + } + + public static final int EPHEMERAL_STORAGE_CONFIG_FIELD_NUMBER = 24; + private com.google.container.v1beta1.EphemeralStorageConfig ephemeralStorageConfig_; + /** + * + * + *
+   * Parameters for the ephemeral storage filesystem.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + * + * @return Whether the ephemeralStorageConfig field is set. + */ + @java.lang.Override + public boolean hasEphemeralStorageConfig() { + return ephemeralStorageConfig_ != null; + } + /** + * + * + *
+   * Parameters for the ephemeral storage filesystem.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + * + * @return The ephemeralStorageConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageConfig getEphemeralStorageConfig() { + return ephemeralStorageConfig_ == null + ? com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance() + : ephemeralStorageConfig_; + } + /** + * + * + *
+   * Parameters for the ephemeral storage filesystem.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageConfigOrBuilder + getEphemeralStorageConfigOrBuilder() { + return getEphemeralStorageConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getMachineTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); + } + if (diskSizeGb_ != 0) { + output.writeInt32(2, diskSizeGb_); + } + for (int i = 0; i < oauthScopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauthScopes_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 4); + if (!getImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, imageType_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + if (localSsdCount_ != 0) { + output.writeInt32(7, localSsdCount_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, tags_.getRaw(i)); + } + if (!getServiceAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccount_); + } + if (preemptible_ != false) { + output.writeBool(10, preemptible_); + } + for (int i = 0; i < accelerators_.size(); i++) { + output.writeMessage(11, accelerators_.get(i)); + } + if (!getDiskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, diskType_); + } + if (!getMinCpuPlatformBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); + } + if (workloadMetadataConfig_ != null) { + output.writeMessage(14, getWorkloadMetadataConfig()); + } + for (int i = 0; i < taints_.size(); i++) { + output.writeMessage(15, taints_.get(i)); + } + if (sandboxConfig_ != null) { + output.writeMessage(17, getSandboxConfig()); + } + if (!getNodeGroupBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, nodeGroup_); + } + if (reservationAffinity_ != null) { + output.writeMessage(19, getReservationAffinity()); + } + if (shieldedInstanceConfig_ != null) { + output.writeMessage(20, getShieldedInstanceConfig()); + } + if (linuxNodeConfig_ != null) { + output.writeMessage(21, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + output.writeMessage(22, getKubeletConfig()); + } + if (!getBootDiskKmsKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, bootDiskKmsKey_); + } + if (ephemeralStorageConfig_ != null) { + output.writeMessage(24, getEphemeralStorageConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMachineTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineType_); + } + if (diskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, diskSizeGb_); + } + { + int dataSize = 0; + for (int i = 0; i < oauthScopes_.size(); i++) { + dataSize += computeStringSizeNoTag(oauthScopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getOauthScopesList().size(); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, metadata__); + } + if (!getImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, imageType_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + } + if (localSsdCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, localSsdCount_); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + if (!getServiceAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); + } + if (preemptible_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, preemptible_); + } + for (int i = 0; i < accelerators_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, accelerators_.get(i)); + } + if (!getDiskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, diskType_); + } + if (!getMinCpuPlatformBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); + } + if (workloadMetadataConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, getWorkloadMetadataConfig()); + } + for (int i = 0; i < taints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, taints_.get(i)); + } + if (sandboxConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getSandboxConfig()); + } + if (!getNodeGroupBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, nodeGroup_); + } + if (reservationAffinity_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(19, getReservationAffinity()); + } + if (shieldedInstanceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(20, getShieldedInstanceConfig()); + } + if (linuxNodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getKubeletConfig()); + } + if (!getBootDiskKmsKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, bootDiskKmsKey_); + } + if (ephemeralStorageConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(24, getEphemeralStorageConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.NodeConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodeConfig other = (com.google.container.v1beta1.NodeConfig) obj; + + if (!getMachineType().equals(other.getMachineType())) return false; + if (getDiskSizeGb() != other.getDiskSizeGb()) return false; + if (!getOauthScopesList().equals(other.getOauthScopesList())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!getImageType().equals(other.getImageType())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getLocalSsdCount() != other.getLocalSsdCount()) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (getPreemptible() != other.getPreemptible()) return false; + if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; + if (hasSandboxConfig() != other.hasSandboxConfig()) return false; + if (hasSandboxConfig()) { + if (!getSandboxConfig().equals(other.getSandboxConfig())) return false; + } + if (!getNodeGroup().equals(other.getNodeGroup())) return false; + if (hasReservationAffinity() != other.hasReservationAffinity()) return false; + if (hasReservationAffinity()) { + if (!getReservationAffinity().equals(other.getReservationAffinity())) return false; + } + if (!getDiskType().equals(other.getDiskType())) return false; + if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; + if (hasWorkloadMetadataConfig() != other.hasWorkloadMetadataConfig()) return false; + if (hasWorkloadMetadataConfig()) { + if (!getWorkloadMetadataConfig().equals(other.getWorkloadMetadataConfig())) return false; + } + if (!getTaintsList().equals(other.getTaintsList())) return false; + if (!getBootDiskKmsKey().equals(other.getBootDiskKmsKey())) return false; + if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; + 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 (hasEphemeralStorageConfig() != other.hasEphemeralStorageConfig()) return false; + if (hasEphemeralStorageConfig()) { + if (!getEphemeralStorageConfig().equals(other.getEphemeralStorageConfig())) 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) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getDiskSizeGb(); + if (getOauthScopesCount() > 0) { + hash = (37 * hash) + OAUTH_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getOauthScopesList().hashCode(); + } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getImageType().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + LOCAL_SSD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getLocalSsdCount(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (37 * hash) + PREEMPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreemptible()); + if (getAcceleratorsCount() > 0) { + hash = (37 * hash) + ACCELERATORS_FIELD_NUMBER; + hash = (53 * hash) + getAcceleratorsList().hashCode(); + } + if (hasSandboxConfig()) { + hash = (37 * hash) + SANDBOX_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSandboxConfig().hashCode(); + } + hash = (37 * hash) + NODE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getNodeGroup().hashCode(); + if (hasReservationAffinity()) { + hash = (37 * hash) + RESERVATION_AFFINITY_FIELD_NUMBER; + hash = (53 * hash) + getReservationAffinity().hashCode(); + } + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDiskType().hashCode(); + hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getMinCpuPlatform().hashCode(); + if (hasWorkloadMetadataConfig()) { + hash = (37 * hash) + WORKLOAD_METADATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadMetadataConfig().hashCode(); + } + if (getTaintsCount() > 0) { + hash = (37 * hash) + TAINTS_FIELD_NUMBER; + hash = (53 * hash) + getTaintsList().hashCode(); + } + hash = (37 * hash) + BOOT_DISK_KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getBootDiskKmsKey().hashCode(); + if (hasShieldedInstanceConfig()) { + 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(); + } + if (hasEphemeralStorageConfig()) { + hash = (37 * hash) + EPHEMERAL_STORAGE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEphemeralStorageConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodeConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodeConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodeConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodeConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.NodeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Parameters that describe the nodes in a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeConfig) + com.google.container.v1beta1.NodeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetMetadata(); + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableMetadata(); + case 6: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeConfig.class, + com.google.container.v1beta1.NodeConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodeConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAcceleratorsFieldBuilder(); + getTaintsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + machineType_ = ""; + + diskSizeGb_ = 0; + + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + serviceAccount_ = ""; + + internalGetMutableMetadata().clear(); + imageType_ = ""; + + internalGetMutableLabels().clear(); + localSsdCount_ = 0; + + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + preemptible_ = false; + + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + acceleratorsBuilder_.clear(); + } + if (sandboxConfigBuilder_ == null) { + sandboxConfig_ = null; + } else { + sandboxConfig_ = null; + sandboxConfigBuilder_ = null; + } + nodeGroup_ = ""; + + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = null; + } else { + reservationAffinity_ = null; + reservationAffinityBuilder_ = null; + } + diskType_ = ""; + + minCpuPlatform_ = ""; + + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + taintsBuilder_.clear(); + } + bootDiskKmsKey_ = ""; + + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + if (ephemeralStorageConfigBuilder_ == null) { + ephemeralStorageConfig_ = null; + } else { + ephemeralStorageConfig_ = null; + ephemeralStorageConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfig build() { + com.google.container.v1beta1.NodeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfig buildPartial() { + com.google.container.v1beta1.NodeConfig result = + new com.google.container.v1beta1.NodeConfig(this); + int from_bitField0_ = bitField0_; + result.machineType_ = machineType_; + result.diskSizeGb_ = diskSizeGb_; + if (((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = oauthScopes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.oauthScopes_ = oauthScopes_; + result.serviceAccount_ = serviceAccount_; + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + result.imageType_ = imageType_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.localSsdCount_ = localSsdCount_; + if (((bitField0_ & 0x00000008) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tags_ = tags_; + result.preemptible_ = preemptible_; + if (acceleratorsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.accelerators_ = accelerators_; + } else { + result.accelerators_ = acceleratorsBuilder_.build(); + } + if (sandboxConfigBuilder_ == null) { + result.sandboxConfig_ = sandboxConfig_; + } else { + result.sandboxConfig_ = sandboxConfigBuilder_.build(); + } + result.nodeGroup_ = nodeGroup_; + if (reservationAffinityBuilder_ == null) { + result.reservationAffinity_ = reservationAffinity_; + } else { + result.reservationAffinity_ = reservationAffinityBuilder_.build(); + } + result.diskType_ = diskType_; + result.minCpuPlatform_ = minCpuPlatform_; + if (workloadMetadataConfigBuilder_ == null) { + result.workloadMetadataConfig_ = workloadMetadataConfig_; + } else { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); + } + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + result.bootDiskKmsKey_ = bootDiskKmsKey_; + if (shieldedInstanceConfigBuilder_ == null) { + result.shieldedInstanceConfig_ = shieldedInstanceConfig_; + } 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(); + } + if (ephemeralStorageConfigBuilder_ == null) { + result.ephemeralStorageConfig_ = ephemeralStorageConfig_; + } else { + result.ephemeralStorageConfig_ = ephemeralStorageConfigBuilder_.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.NodeConfig) { + return mergeFrom((com.google.container.v1beta1.NodeConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeConfig other) { + if (other == com.google.container.v1beta1.NodeConfig.getDefaultInstance()) return this; + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.oauthScopes_.isEmpty()) { + if (oauthScopes_.isEmpty()) { + oauthScopes_ = other.oauthScopes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOauthScopesIsMutable(); + oauthScopes_.addAll(other.oauthScopes_); + } + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.getPreemptible() != false) { + setPreemptible(other.getPreemptible()); + } + if (acceleratorsBuilder_ == null) { + if (!other.accelerators_.isEmpty()) { + if (accelerators_.isEmpty()) { + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAcceleratorsIsMutable(); + accelerators_.addAll(other.accelerators_); + } + onChanged(); + } + } else { + if (!other.accelerators_.isEmpty()) { + if (acceleratorsBuilder_.isEmpty()) { + acceleratorsBuilder_.dispose(); + acceleratorsBuilder_ = null; + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000010); + acceleratorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAcceleratorsFieldBuilder() + : null; + } else { + acceleratorsBuilder_.addAllMessages(other.accelerators_); + } + } + } + if (other.hasSandboxConfig()) { + mergeSandboxConfig(other.getSandboxConfig()); + } + if (!other.getNodeGroup().isEmpty()) { + nodeGroup_ = other.nodeGroup_; + onChanged(); + } + if (other.hasReservationAffinity()) { + mergeReservationAffinity(other.getReservationAffinity()); + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + onChanged(); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + onChanged(); + } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } + if (taintsBuilder_ == null) { + if (!other.taints_.isEmpty()) { + if (taints_.isEmpty()) { + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTaintsIsMutable(); + taints_.addAll(other.taints_); + } + onChanged(); + } + } else { + if (!other.taints_.isEmpty()) { + if (taintsBuilder_.isEmpty()) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00000020); + taintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTaintsFieldBuilder() + : null; + } else { + taintsBuilder_.addAllMessages(other.taints_); + } + } + } + if (!other.getBootDiskKmsKey().isEmpty()) { + bootDiskKmsKey_ = other.bootDiskKmsKey_; + onChanged(); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } + if (other.hasLinuxNodeConfig()) { + mergeLinuxNodeConfig(other.getLinuxNodeConfig()); + } + if (other.hasKubeletConfig()) { + mergeKubeletConfig(other.getKubeletConfig()); + } + if (other.hasEphemeralStorageConfig()) { + mergeEphemeralStorageConfig(other.getEphemeralStorageConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NodeConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NodeConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object machineType_ = ""; + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * If unspecified, the default machine type is
+     * `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @return The machineType. + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * If unspecified, the default machine type is
+     * `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @return The bytes for machineType. + */ + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * If unspecified, the default machine type is
+     * `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + machineType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * If unspecified, the default machine type is
+     * `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearMachineType() { + + machineType_ = getDefaultInstance().getMachineType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of a Google Compute Engine [machine
+     * type](https://cloud.google.com/compute/docs/machine-types).
+     * If unspecified, the default machine type is
+     * `e2-medium`.
+     * 
+ * + * string machine_type = 1; + * + * @param value The bytes for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + machineType_ = value; + onChanged(); + return this; + } + + private int diskSizeGb_; + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public int getDiskSizeGb() { + return diskSizeGb_; + } + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + * + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(int value) { + + diskSizeGb_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Size of the disk attached to each node, specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * If unspecified, the default disk size is 100GB.
+     * 
+ * + * int32 disk_size_gb = 2; + * + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureOauthScopesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @return A list containing the oauthScopes. + */ + public com.google.protobuf.ProtocolStringList getOauthScopesList() { + return oauthScopes_.getUnmodifiableView(); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @return The count of oauthScopes. + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + public java.lang.String getOauthScopes(int index) { + return oauthScopes_.get(index); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + public com.google.protobuf.ByteString getOauthScopesBytes(int index) { + return oauthScopes_.getByteString(index); + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index to set the value at. + * @param value The oauthScopes to set. + * @return This builder for chaining. + */ + public Builder setOauthScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param value The oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addOauthScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param values The oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addAllOauthScopes(java.lang.Iterable values) { + ensureOauthScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oauthScopes_); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @return This builder for chaining. + */ + public Builder clearOauthScopes() { + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](https://cloud.google.com/container-registry/)).
+     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+     * Monitoring are enabled, in which case their required scopes will be added.
+     * 
+ * + * repeated string oauth_scopes = 3; + * + * @param value The bytes of the oauthScopes to add. + * @return This builder for chaining. + */ + public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOauthScopesIsMutable(); + oauthScopes_.add(value); + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * Specify the email address of the Service Account; otherwise, if no Service
+     * Account is specified, the "default" service account is used.
+     * 
+ * + * string service_account = 9; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged(); + ; + if (metadata_ == null) { + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * + * + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-oslogin"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + @java.lang.Override + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetMetadata().getMap().containsKey(key); + } + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + * + * + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-oslogin"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * + * + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-oslogin"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + @java.lang.Override + public java.lang.String getMetadataOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-oslogin"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-oslogin"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMetadata().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + * + * + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-oslogin"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + public Builder putMetadata(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMetadata().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The metadata key/value pairs assigned to instances in the cluster.
+     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+     * in length. These are reflected as part of a URL in the metadata server.
+     * Additionally, to avoid ambiguity, keys must not conflict with any other
+     * metadata keys for the project or be one of the reserved keys:
+     *  - "cluster-location"
+     *  - "cluster-name"
+     *  - "cluster-uid"
+     *  - "configure-sh"
+     *  - "containerd-configure-sh"
+     *  - "enable-oslogin"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     * The following keys are reserved for Windows nodes:
+     *  - "serial-port-logging-enable"
+     * Values are free-form strings, and only have meaning as interpreted by
+     * the image running in the instance. The only restriction placed on them is
+     * that each value's size must be less than or equal to 32 KB.
+     * The total size of all keys and values must be less than 512 KB.
+     * 
+ * + * map<string, string> metadata = 4; + */ + public Builder putAllMetadata(java.util.Map values) { + internalGetMutableMetadata().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @return The imageType. + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @return The bytes for imageType. + */ + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @param value The imageType to set. + * @return This builder for chaining. + */ + public Builder setImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @return This builder for chaining. + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The image type to use for this node. Note that for a given image type,
+     * the latest version of it will be used.
+     * 
+ * + * string image_type = 5; + * + * @param value The bytes for imageType to set. + * @return This builder for chaining. + */ + public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged(); + ; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public java.lang.String getLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+     * These will added in addition to any default label(s) that
+     * Kubernetes may apply to the node.
+     * In case of conflict in label keys, the applied set may differ depending on
+     * the Kubernetes version -- it's best to assume the behavior is undefined
+     * and conflicts should be avoided.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * 
+ * + * map<string, string> labels = 6; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + return this; + } + + private int localSsdCount_; + /** + * + * + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependent upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + * + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + /** + * + * + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependent upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + * + * @param value The localSsdCount to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of local SSD disks to be attached to the node.
+     * The limit for this value is dependent upon the maximum number of
+     * disks available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 
+ * + * int32 local_ssd_count = 7; + * + * @return This builder for chaining. + */ + public Builder clearLocalSsdCount() { + + localSsdCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags(java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private boolean preemptible_; + /** + * + * + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * inforamtion about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + * + * @return The preemptible. + */ + @java.lang.Override + public boolean getPreemptible() { + return preemptible_; + } + /** + * + * + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * inforamtion about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + * + * @param value The preemptible to set. + * @return This builder for chaining. + */ + public Builder setPreemptible(boolean value) { + + preemptible_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * inforamtion about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + * + * @return This builder for chaining. + */ + public Builder clearPreemptible() { + + preemptible_ = false; + onChanged(); + return this; + } + + private java.util.List accelerators_ = + java.util.Collections.emptyList(); + + private void ensureAcceleratorsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + accelerators_ = + new java.util.ArrayList(accelerators_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AcceleratorConfig, + com.google.container.v1beta1.AcceleratorConfig.Builder, + com.google.container.v1beta1.AcceleratorConfigOrBuilder> + acceleratorsBuilder_; + + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List getAcceleratorsList() { + if (acceleratorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accelerators_); + } else { + return acceleratorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public int getAcceleratorsCount() { + if (acceleratorsBuilder_ == null) { + return accelerators_.size(); + } else { + return acceleratorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); + } else { + return acceleratorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder setAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.set(index, value); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder setAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.set(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators(com.google.container.v1beta1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(index, value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAllAccelerators( + java.lang.Iterable values) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accelerators_); + onChanged(); + } else { + acceleratorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder clearAccelerators() { + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + acceleratorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder removeAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.remove(index); + onChanged(); + } else { + acceleratorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig.Builder getAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); + } else { + return acceleratorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsOrBuilderList() { + if (acceleratorsBuilder_ != null) { + return acceleratorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accelerators_); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig.Builder addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder() + .addBuilder(com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()); + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig.Builder addAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()); + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsBuilderList() { + return getAcceleratorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AcceleratorConfig, + com.google.container.v1beta1.AcceleratorConfig.Builder, + com.google.container.v1beta1.AcceleratorConfigOrBuilder> + getAcceleratorsFieldBuilder() { + if (acceleratorsBuilder_ == null) { + acceleratorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AcceleratorConfig, + com.google.container.v1beta1.AcceleratorConfig.Builder, + com.google.container.v1beta1.AcceleratorConfigOrBuilder>( + accelerators_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + accelerators_ = null; + } + return acceleratorsBuilder_; + } + + private com.google.container.v1beta1.SandboxConfig sandboxConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SandboxConfig, + com.google.container.v1beta1.SandboxConfig.Builder, + com.google.container.v1beta1.SandboxConfigOrBuilder> + sandboxConfigBuilder_; + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + * + * @return Whether the sandboxConfig field is set. + */ + public boolean hasSandboxConfig() { + return sandboxConfigBuilder_ != null || sandboxConfig_ != null; + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + * + * @return The sandboxConfig. + */ + public com.google.container.v1beta1.SandboxConfig getSandboxConfig() { + if (sandboxConfigBuilder_ == null) { + return sandboxConfig_ == null + ? com.google.container.v1beta1.SandboxConfig.getDefaultInstance() + : sandboxConfig_; + } else { + return sandboxConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public Builder setSandboxConfig(com.google.container.v1beta1.SandboxConfig value) { + if (sandboxConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sandboxConfig_ = value; + onChanged(); + } else { + sandboxConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public Builder setSandboxConfig( + com.google.container.v1beta1.SandboxConfig.Builder builderForValue) { + if (sandboxConfigBuilder_ == null) { + sandboxConfig_ = builderForValue.build(); + onChanged(); + } else { + sandboxConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public Builder mergeSandboxConfig(com.google.container.v1beta1.SandboxConfig value) { + if (sandboxConfigBuilder_ == null) { + if (sandboxConfig_ != null) { + sandboxConfig_ = + com.google.container.v1beta1.SandboxConfig.newBuilder(sandboxConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sandboxConfig_ = value; + } + onChanged(); + } else { + sandboxConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public Builder clearSandboxConfig() { + if (sandboxConfigBuilder_ == null) { + sandboxConfig_ = null; + onChanged(); + } else { + sandboxConfig_ = null; + sandboxConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public com.google.container.v1beta1.SandboxConfig.Builder getSandboxConfigBuilder() { + + onChanged(); + return getSandboxConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public com.google.container.v1beta1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { + if (sandboxConfigBuilder_ != null) { + return sandboxConfigBuilder_.getMessageOrBuilder(); + } else { + return sandboxConfig_ == null + ? com.google.container.v1beta1.SandboxConfig.getDefaultInstance() + : sandboxConfig_; + } + } + /** + * + * + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SandboxConfig, + com.google.container.v1beta1.SandboxConfig.Builder, + com.google.container.v1beta1.SandboxConfigOrBuilder> + getSandboxConfigFieldBuilder() { + if (sandboxConfigBuilder_ == null) { + sandboxConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SandboxConfig, + com.google.container.v1beta1.SandboxConfig.Builder, + com.google.container.v1beta1.SandboxConfigOrBuilder>( + getSandboxConfig(), getParentForChildren(), isClean()); + sandboxConfig_ = null; + } + return sandboxConfigBuilder_; + } + + private java.lang.Object nodeGroup_ = ""; + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @return The nodeGroup. + */ + public java.lang.String getNodeGroup() { + java.lang.Object ref = nodeGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @return The bytes for nodeGroup. + */ + public com.google.protobuf.ByteString getNodeGroupBytes() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @param value The nodeGroup to set. + * @return This builder for chaining. + */ + public Builder setNodeGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeGroup_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @return This builder for chaining. + */ + public Builder clearNodeGroup() { + + nodeGroup_ = getDefaultInstance().getNodeGroup(); + onChanged(); + return this; + } + /** + * + * + *
+     * Setting this field will assign instances of this
+     * pool to run on the specified node group. This is useful for running
+     * workloads on [sole tenant
+     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+     * 
+ * + * string node_group = 18; + * + * @param value The bytes for nodeGroup to set. + * @return This builder for chaining. + */ + public Builder setNodeGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeGroup_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ReservationAffinity reservationAffinity_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReservationAffinity, + com.google.container.v1beta1.ReservationAffinity.Builder, + com.google.container.v1beta1.ReservationAffinityOrBuilder> + reservationAffinityBuilder_; + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + * + * @return Whether the reservationAffinity field is set. + */ + public boolean hasReservationAffinity() { + return reservationAffinityBuilder_ != null || reservationAffinity_ != null; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + * + * @return The reservationAffinity. + */ + public com.google.container.v1beta1.ReservationAffinity getReservationAffinity() { + if (reservationAffinityBuilder_ == null) { + return reservationAffinity_ == null + ? com.google.container.v1beta1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; + } else { + return reservationAffinityBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + public Builder setReservationAffinity(com.google.container.v1beta1.ReservationAffinity value) { + if (reservationAffinityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reservationAffinity_ = value; + onChanged(); + } else { + reservationAffinityBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + public Builder setReservationAffinity( + com.google.container.v1beta1.ReservationAffinity.Builder builderForValue) { + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = builderForValue.build(); + onChanged(); + } else { + reservationAffinityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + public Builder mergeReservationAffinity( + com.google.container.v1beta1.ReservationAffinity value) { + if (reservationAffinityBuilder_ == null) { + if (reservationAffinity_ != null) { + reservationAffinity_ = + com.google.container.v1beta1.ReservationAffinity.newBuilder(reservationAffinity_) + .mergeFrom(value) + .buildPartial(); + } else { + reservationAffinity_ = value; + } + onChanged(); + } else { + reservationAffinityBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + public Builder clearReservationAffinity() { + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = null; + onChanged(); + } else { + reservationAffinity_ = null; + reservationAffinityBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + public com.google.container.v1beta1.ReservationAffinity.Builder + getReservationAffinityBuilder() { + + onChanged(); + return getReservationAffinityFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + public com.google.container.v1beta1.ReservationAffinityOrBuilder + getReservationAffinityOrBuilder() { + if (reservationAffinityBuilder_ != null) { + return reservationAffinityBuilder_.getMessageOrBuilder(); + } else { + return reservationAffinity_ == null + ? com.google.container.v1beta1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; + } + } + /** + * + * + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReservationAffinity, + com.google.container.v1beta1.ReservationAffinity.Builder, + com.google.container.v1beta1.ReservationAffinityOrBuilder> + getReservationAffinityFieldBuilder() { + if (reservationAffinityBuilder_ == null) { + reservationAffinityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ReservationAffinity, + com.google.container.v1beta1.ReservationAffinity.Builder, + com.google.container.v1beta1.ReservationAffinityOrBuilder>( + getReservationAffinity(), getParentForChildren(), isClean()); + reservationAffinity_ = null; + } + return reservationAffinityBuilder_; + } + + private java.lang.Object diskType_ = ""; + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + * + * @return The diskType. + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + * + * @return The bytes for diskType. + */ + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + diskType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + + diskType_ = getDefaultInstance().getDiskType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced')
+     * If unspecified, the default disk type is 'pd-standard'
+     * 
+ * + * string disk_type = 12; + * + * @param value The bytes for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + diskType_ = value; + onChanged(); + return this; + } + + private java.lang.Object minCpuPlatform_ = ""; + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + * + * @return The minCpuPlatform. + */ + public java.lang.String getMinCpuPlatform() { + java.lang.Object ref = minCpuPlatform_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minCpuPlatform_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + * + * @return The bytes for minCpuPlatform. + */ + public com.google.protobuf.ByteString getMinCpuPlatformBytes() { + java.lang.Object ref = minCpuPlatform_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minCpuPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + * + * @param value The minCpuPlatform to set. + * @return This builder for chaining. + */ + public Builder setMinCpuPlatform(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + minCpuPlatform_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + * + * @return This builder for chaining. + */ + public Builder clearMinCpuPlatform() { + + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum CPU platform to be used by this instance. The instance may be
+     * scheduled on the specified or newer CPU platform. Applicable values are the
+     * friendly names of CPU platforms, such as
+     * `minCpuPlatform: "Intel Haswell"` or
+     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+     * 
+ * + * string min_cpu_platform = 13; + * + * @param value The bytes for minCpuPlatform to set. + * @return This builder for chaining. + */ + public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + minCpuPlatform_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder, + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> + workloadMetadataConfigBuilder_; + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + return workloadMetadataConfig_ == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } else { + return workloadMetadataConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadMetadataConfig_ = value; + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig.Builder builderForValue) { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder mergeWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (workloadMetadataConfig_ != null) { + workloadMetadataConfig_ = + com.google.container.v1beta1.WorkloadMetadataConfig.newBuilder( + workloadMetadataConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadMetadataConfig_ = value; + } + onChanged(); + } else { + workloadMetadataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder clearWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + onChanged(); + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfig.Builder + getWorkloadMetadataConfigBuilder() { + + onChanged(); + return getWorkloadMetadataConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + if (workloadMetadataConfigBuilder_ != null) { + return workloadMetadataConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadMetadataConfig_ == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + } + /** + * + * + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder, + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> + getWorkloadMetadataConfigFieldBuilder() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder, + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder>( + getWorkloadMetadataConfig(), getParentForChildren(), isClean()); + workloadMetadataConfig_ = null; + } + return workloadMetadataConfigBuilder_; + } + + private java.util.List taints_ = + java.util.Collections.emptyList(); + + private void ensureTaintsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + taints_ = new java.util.ArrayList(taints_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodeTaint, + com.google.container.v1beta1.NodeTaint.Builder, + com.google.container.v1beta1.NodeTaintOrBuilder> + taintsBuilder_; + + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public java.util.List getTaintsList() { + if (taintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taints_); + } else { + return taintsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public int getTaintsCount() { + if (taintsBuilder_ == null) { + return taints_.size(); + } else { + return taintsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint getTaints(int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); + } else { + return taintsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder setTaints(int index, com.google.container.v1beta1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.set(index, value); + onChanged(); + } else { + taintsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder setTaints( + int index, com.google.container.v1beta1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.set(index, builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addTaints(com.google.container.v1beta1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.add(value); + onChanged(); + } else { + taintsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addTaints(int index, com.google.container.v1beta1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.add(index, value); + onChanged(); + } else { + taintsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addTaints(com.google.container.v1beta1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addTaints( + int index, com.google.container.v1beta1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(index, builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder addAllTaints( + java.lang.Iterable values) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taints_); + onChanged(); + } else { + taintsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder clearTaints() { + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + taintsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public Builder removeTaints(int index) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.remove(index); + onChanged(); + } else { + taintsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint.Builder getTaintsBuilder(int index) { + return getTaintsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder(int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); + } else { + return taintsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public java.util.List + getTaintsOrBuilderList() { + if (taintsBuilder_ != null) { + return taintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taints_); + } + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint.Builder addTaintsBuilder() { + return getTaintsFieldBuilder() + .addBuilder(com.google.container.v1beta1.NodeTaint.getDefaultInstance()); + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public com.google.container.v1beta1.NodeTaint.Builder addTaintsBuilder(int index) { + return getTaintsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.NodeTaint.getDefaultInstance()); + } + /** + * + * + *
+     * List of kubernetes taints to be applied to each node.
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + public java.util.List getTaintsBuilderList() { + return getTaintsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodeTaint, + com.google.container.v1beta1.NodeTaint.Builder, + com.google.container.v1beta1.NodeTaintOrBuilder> + getTaintsFieldBuilder() { + if (taintsBuilder_ == null) { + taintsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodeTaint, + com.google.container.v1beta1.NodeTaint.Builder, + com.google.container.v1beta1.NodeTaintOrBuilder>( + taints_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + taints_ = null; + } + return taintsBuilder_; + } + + private java.lang.Object bootDiskKmsKey_ = ""; + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bootDiskKmsKey. + */ + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bytes for bootDiskKmsKey. + */ + public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @param value The bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @return This builder for chaining. + */ + public Builder clearBootDiskKmsKey() { + + bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * + * @param value The bytes for bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bootDiskKmsKey_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedInstanceConfig, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder, + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return The shieldedInstanceConfig. + */ + public com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null + ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1beta1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1beta1.ShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + onChanged(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder mergeShieldedInstanceConfig( + com.google.container.v1beta1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (shieldedInstanceConfig_ != null) { + shieldedInstanceConfig_ = + com.google.container.v1beta1.ShieldedInstanceConfig.newBuilder( + shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + shieldedInstanceConfig_ = value; + } + onChanged(); + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder clearShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + onChanged(); + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public com.google.container.v1beta1.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null + ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; + } + } + /** + * + * + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedInstanceConfig, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder, + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ShieldedInstanceConfig, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder, + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + + private com.google.container.v1beta1.LinuxNodeConfig linuxNodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LinuxNodeConfig, + com.google.container.v1beta1.LinuxNodeConfig.Builder, + com.google.container.v1beta1.LinuxNodeConfigOrBuilder> + linuxNodeConfigBuilder_; + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + * + * @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.v1beta1.LinuxNodeConfig linux_node_config = 21; + * + * @return The linuxNodeConfig. + */ + public com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + return linuxNodeConfig_ == null + ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } else { + return linuxNodeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder setLinuxNodeConfig(com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder setLinuxNodeConfig( + com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder mergeLinuxNodeConfig(com.google.container.v1beta1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (linuxNodeConfig_ != null) { + linuxNodeConfig_ = + com.google.container.v1beta1.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.v1beta1.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.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + public com.google.container.v1beta1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { + + onChanged(); + return getLinuxNodeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + public com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + if (linuxNodeConfigBuilder_ != null) { + return linuxNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return linuxNodeConfig_ == null + ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LinuxNodeConfig, + com.google.container.v1beta1.LinuxNodeConfig.Builder, + com.google.container.v1beta1.LinuxNodeConfigOrBuilder> + getLinuxNodeConfigFieldBuilder() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LinuxNodeConfig, + com.google.container.v1beta1.LinuxNodeConfig.Builder, + com.google.container.v1beta1.LinuxNodeConfigOrBuilder>( + getLinuxNodeConfig(), getParentForChildren(), isClean()); + linuxNodeConfig_ = null; + } + return linuxNodeConfigBuilder_; + } + + private com.google.container.v1beta1.NodeKubeletConfig kubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeKubeletConfig, + com.google.container.v1beta1.NodeKubeletConfig.Builder, + com.google.container.v1beta1.NodeKubeletConfigOrBuilder> + kubeletConfigBuilder_; + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + * + * @return Whether the kubeletConfig field is set. + */ + public boolean hasKubeletConfig() { + return kubeletConfigBuilder_ != null || kubeletConfig_ != null; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + * + * @return The kubeletConfig. + */ + public com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + return kubeletConfig_ == null + ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } else { + return kubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder setKubeletConfig(com.google.container.v1beta1.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.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder setKubeletConfig( + com.google.container.v1beta1.NodeKubeletConfig.Builder builderForValue) { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = builderForValue.build(); + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder mergeKubeletConfig(com.google.container.v1beta1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (kubeletConfig_ != null) { + kubeletConfig_ = + com.google.container.v1beta1.NodeKubeletConfig.newBuilder(kubeletConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + kubeletConfig_ = value; + } + onChanged(); + } else { + kubeletConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.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.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public com.google.container.v1beta1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { + + onChanged(); + return getKubeletConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + if (kubeletConfigBuilder_ != null) { + return kubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return kubeletConfig_ == null + ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeKubeletConfig, + com.google.container.v1beta1.NodeKubeletConfig.Builder, + com.google.container.v1beta1.NodeKubeletConfigOrBuilder> + getKubeletConfigFieldBuilder() { + if (kubeletConfigBuilder_ == null) { + kubeletConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeKubeletConfig, + com.google.container.v1beta1.NodeKubeletConfig.Builder, + com.google.container.v1beta1.NodeKubeletConfigOrBuilder>( + getKubeletConfig(), getParentForChildren(), isClean()); + kubeletConfig_ = null; + } + return kubeletConfigBuilder_; + } + + private com.google.container.v1beta1.EphemeralStorageConfig ephemeralStorageConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.EphemeralStorageConfig, + com.google.container.v1beta1.EphemeralStorageConfig.Builder, + com.google.container.v1beta1.EphemeralStorageConfigOrBuilder> + ephemeralStorageConfigBuilder_; + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + * + * @return Whether the ephemeralStorageConfig field is set. + */ + public boolean hasEphemeralStorageConfig() { + return ephemeralStorageConfigBuilder_ != null || ephemeralStorageConfig_ != null; + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + * + * @return The ephemeralStorageConfig. + */ + public com.google.container.v1beta1.EphemeralStorageConfig getEphemeralStorageConfig() { + if (ephemeralStorageConfigBuilder_ == null) { + return ephemeralStorageConfig_ == null + ? com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance() + : ephemeralStorageConfig_; + } else { + return ephemeralStorageConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + public Builder setEphemeralStorageConfig( + com.google.container.v1beta1.EphemeralStorageConfig value) { + if (ephemeralStorageConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ephemeralStorageConfig_ = value; + onChanged(); + } else { + ephemeralStorageConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + public Builder setEphemeralStorageConfig( + com.google.container.v1beta1.EphemeralStorageConfig.Builder builderForValue) { + if (ephemeralStorageConfigBuilder_ == null) { + ephemeralStorageConfig_ = builderForValue.build(); + onChanged(); + } else { + ephemeralStorageConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + public Builder mergeEphemeralStorageConfig( + com.google.container.v1beta1.EphemeralStorageConfig value) { + if (ephemeralStorageConfigBuilder_ == null) { + if (ephemeralStorageConfig_ != null) { + ephemeralStorageConfig_ = + com.google.container.v1beta1.EphemeralStorageConfig.newBuilder( + ephemeralStorageConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + ephemeralStorageConfig_ = value; + } + onChanged(); + } else { + ephemeralStorageConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + public Builder clearEphemeralStorageConfig() { + if (ephemeralStorageConfigBuilder_ == null) { + ephemeralStorageConfig_ = null; + onChanged(); + } else { + ephemeralStorageConfig_ = null; + ephemeralStorageConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + public com.google.container.v1beta1.EphemeralStorageConfig.Builder + getEphemeralStorageConfigBuilder() { + + onChanged(); + return getEphemeralStorageConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + public com.google.container.v1beta1.EphemeralStorageConfigOrBuilder + getEphemeralStorageConfigOrBuilder() { + if (ephemeralStorageConfigBuilder_ != null) { + return ephemeralStorageConfigBuilder_.getMessageOrBuilder(); + } else { + return ephemeralStorageConfig_ == null + ? com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance() + : ephemeralStorageConfig_; + } + } + /** + * + * + *
+     * Parameters for the ephemeral storage filesystem.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.EphemeralStorageConfig, + com.google.container.v1beta1.EphemeralStorageConfig.Builder, + com.google.container.v1beta1.EphemeralStorageConfigOrBuilder> + getEphemeralStorageConfigFieldBuilder() { + if (ephemeralStorageConfigBuilder_ == null) { + ephemeralStorageConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.EphemeralStorageConfig, + com.google.container.v1beta1.EphemeralStorageConfig.Builder, + com.google.container.v1beta1.EphemeralStorageConfigOrBuilder>( + getEphemeralStorageConfig(), getParentForChildren(), isClean()); + ephemeralStorageConfig_ = null; + } + return ephemeralStorageConfigBuilder_; + } + + @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.NodeConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeConfig) + private static final com.google.container.v1beta1.NodeConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeConfig(); + } + + public static com.google.container.v1beta1.NodeConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/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 new file mode 100644 index 00000000..46b7fabc --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java @@ -0,0 +1,1118 @@ +/* + * 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 NodeConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of a Google Compute Engine [machine
+   * type](https://cloud.google.com/compute/docs/machine-types).
+   * If unspecified, the default machine type is
+   * `e2-medium`.
+   * 
+ * + * string machine_type = 1; + * + * @return The machineType. + */ + java.lang.String getMachineType(); + /** + * + * + *
+   * The name of a Google Compute Engine [machine
+   * type](https://cloud.google.com/compute/docs/machine-types).
+   * If unspecified, the default machine type is
+   * `e2-medium`.
+   * 
+ * + * string machine_type = 1; + * + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString getMachineTypeBytes(); + + /** + * + * + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + int getDiskSizeGb(); + + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @return A list containing the oauthScopes. + */ + java.util.List getOauthScopesList(); + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @return The count of oauthScopes. + */ + int getOauthScopesCount(); + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the element to return. + * @return The oauthScopes at the given index. + */ + java.lang.String getOauthScopes(int index); + /** + * + * + *
+   * The set of Google API scopes to be made available on all of the
+   * node VMs under the "default" service account.
+   * The following scopes are recommended, but not required, and by default are
+   * not included:
+   * * `https://www.googleapis.com/auth/compute` is required for mounting
+   * persistent storage on your nodes.
+   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+   * communicating with **gcr.io**
+   * (the [Google Container
+   * Registry](https://cloud.google.com/container-registry/)).
+   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
+   * Monitoring are enabled, in which case their required scopes will be added.
+   * 
+ * + * repeated string oauth_scopes = 3; + * + * @param index The index of the value to return. + * @return The bytes of the oauthScopes at the given index. + */ + com.google.protobuf.ByteString getOauthScopesBytes(int index); + + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * Specify the email address of the Service Account; otherwise, if no Service
+   * Account is specified, the "default" service account is used.
+   * 
+ * + * string service_account = 9; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-oslogin"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + int getMetadataCount(); + /** + * + * + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-oslogin"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + boolean containsMetadata(java.lang.String key); + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Deprecated + java.util.Map getMetadata(); + /** + * + * + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-oslogin"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + java.util.Map getMetadataMap(); + /** + * + * + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-oslogin"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-oslogin"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   * The following keys are reserved for Windows nodes:
+   *  - "serial-port-logging-enable"
+   * Values are free-form strings, and only have meaning as interpreted by
+   * the image running in the instance. The only restriction placed on them is
+   * that each value's size must be less than or equal to 32 KB.
+   * The total size of all keys and values must be less than 512 KB.
+   * 
+ * + * map<string, string> metadata = 4; + */ + java.lang.String getMetadataOrThrow(java.lang.String key); + + /** + * + * + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + * + * @return The imageType. + */ + java.lang.String getImageType(); + /** + * + * + *
+   * The image type to use for this node. Note that for a given image type,
+   * the latest version of it will be used.
+   * 
+ * + * string image_type = 5; + * + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString getImageTypeBytes(); + + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + int getLabelsCount(); + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * The number of local SSD disks to be attached to the node.
+   * The limit for this value is dependent upon the maximum number of
+   * disks available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   * 
+ * + * int32 local_ssd_count = 7; + * + * @return The localSsdCount. + */ + int getLocalSsdCount(); + + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @return A list containing the tags. + */ + java.util.List getTagsList(); + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @return The count of tags. + */ + int getTagsCount(); + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + /** + * + * + *
+   * The list of instance tags applied to all nodes. Tags are used to identify
+   * valid sources or targets for network firewalls and are specified by
+   * the client during cluster or node pool creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * repeated string tags = 8; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString getTagsBytes(int index); + + /** + * + * + *
+   * Whether the nodes are created as preemptible VM instances. See:
+   * https://cloud.google.com/compute/docs/instances/preemptible for more
+   * inforamtion about preemptible VM instances.
+   * 
+ * + * bool preemptible = 10; + * + * @return The preemptible. + */ + boolean getPreemptible(); + + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + java.util.List getAcceleratorsList(); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + int getAcceleratorsCount(); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + java.util.List + getAcceleratorsOrBuilderList(); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index); + + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + * + * @return Whether the sandboxConfig field is set. + */ + boolean hasSandboxConfig(); + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + * + * @return The sandboxConfig. + */ + com.google.container.v1beta1.SandboxConfig getSandboxConfig(); + /** + * + * + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + com.google.container.v1beta1.SandboxConfigOrBuilder getSandboxConfigOrBuilder(); + + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The nodeGroup. + */ + java.lang.String getNodeGroup(); + /** + * + * + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * + * @return The bytes for nodeGroup. + */ + com.google.protobuf.ByteString getNodeGroupBytes(); + + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + * + * @return Whether the reservationAffinity field is set. + */ + boolean hasReservationAffinity(); + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + * + * @return The reservationAffinity. + */ + com.google.container.v1beta1.ReservationAffinity getReservationAffinity(); + /** + * + * + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity reservation_affinity = 19; + */ + com.google.container.v1beta1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); + + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + * + * @return The diskType. + */ + java.lang.String getDiskType(); + /** + * + * + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 12; + * + * @return The bytes for diskType. + */ + com.google.protobuf.ByteString getDiskTypeBytes(); + + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + * + * @return The minCpuPlatform. + */ + java.lang.String getMinCpuPlatform(); + /** + * + * + *
+   * Minimum CPU platform to be used by this instance. The instance may be
+   * scheduled on the specified or newer CPU platform. Applicable values are the
+   * friendly names of CPU platforms, such as
+   * `minCpuPlatform: "Intel Haswell"` or
+   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
+   * 
+ * + * string min_cpu_platform = 13; + * + * @return The bytes for minCpuPlatform. + */ + com.google.protobuf.ByteString getMinCpuPlatformBytes(); + + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + boolean hasWorkloadMetadataConfig(); + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig(); + /** + * + * + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); + + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + java.util.List getTaintsList(); + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + com.google.container.v1beta1.NodeTaint getTaints(int index); + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + int getTaintsCount(); + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + java.util.List + getTaintsOrBuilderList(); + /** + * + * + *
+   * List of kubernetes taints to be applied to each node.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 15; + */ + com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder(int index); + + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bootDiskKmsKey. + */ + java.lang.String getBootDiskKmsKey(); + /** + * + * + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 23; + * + * @return The bytes for bootDiskKmsKey. + */ + com.google.protobuf.ByteString getBootDiskKmsKeyBytes(); + + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return Whether the shieldedInstanceConfig field is set. + */ + boolean hasShieldedInstanceConfig(); + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return The shieldedInstanceConfig. + */ + com.google.container.v1beta1.ShieldedInstanceConfig getShieldedInstanceConfig(); + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + * + * @return Whether the linuxNodeConfig field is set. + */ + boolean hasLinuxNodeConfig(); + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + * + * @return The linuxNodeConfig. + */ + com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig(); + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder(); + + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + * + * @return Whether the kubeletConfig field is set. + */ + boolean hasKubeletConfig(); + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + * + * @return The kubeletConfig. + */ + com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig(); + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder(); + + /** + * + * + *
+   * Parameters for the ephemeral storage filesystem.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + * + * @return Whether the ephemeralStorageConfig field is set. + */ + boolean hasEphemeralStorageConfig(); + /** + * + * + *
+   * Parameters for the ephemeral storage filesystem.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + * + * @return The ephemeralStorageConfig. + */ + com.google.container.v1beta1.EphemeralStorageConfig getEphemeralStorageConfig(); + /** + * + * + *
+   * Parameters for the ephemeral storage filesystem.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24; + */ + com.google.container.v1beta1.EphemeralStorageConfigOrBuilder getEphemeralStorageConfigOrBuilder(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfig.java new file mode 100644 index 00000000..ea6fd58c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Node kubelet configs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeKubeletConfig} + */ +public final class NodeKubeletConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeKubeletConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeKubeletConfig.class, + com.google.container.v1beta1.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 (!getCpuManagerPolicyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpuManagerPolicy_); + } + if (cpuCfsQuota_ != null) { + output.writeMessage(2, getCpuCfsQuota()); + } + if (!getCpuCfsQuotaPeriodBytes().isEmpty()) { + 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 (!getCpuManagerPolicyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpuManagerPolicy_); + } + if (cpuCfsQuota_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCpuCfsQuota()); + } + if (!getCpuCfsQuotaPeriodBytes().isEmpty()) { + 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.v1beta1.NodeKubeletConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodeKubeletConfig other = + (com.google.container.v1beta1.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.v1beta1.NodeKubeletConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.NodeKubeletConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.NodeKubeletConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodeKubeletConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeKubeletConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.NodeKubeletConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.NodeKubeletConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.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.v1beta1.NodeKubeletConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeKubeletConfig) + com.google.container.v1beta1.NodeKubeletConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeKubeletConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeKubeletConfig.class, + com.google.container.v1beta1.NodeKubeletConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfig build() { + com.google.container.v1beta1.NodeKubeletConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfig buildPartial() { + com.google.container.v1beta1.NodeKubeletConfig result = + new com.google.container.v1beta1.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.v1beta1.NodeKubeletConfig) { + return mergeFrom((com.google.container.v1beta1.NodeKubeletConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeKubeletConfig other) { + if (other == com.google.container.v1beta1.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.v1beta1.NodeKubeletConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.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.v1beta1.NodeKubeletConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeKubeletConfig) + private static final com.google.container.v1beta1.NodeKubeletConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeKubeletConfig(); + } + + public static com.google.container.v1beta1.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.v1beta1.NodeKubeletConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfigOrBuilder.java new file mode 100644 index 00000000..875166f4 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodeKubeletConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.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-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagement.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagement.java new file mode 100644 index 00000000..4369c60e --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagement.java @@ -0,0 +1,914 @@ +/* + * 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; + +/** + * + * + *
+ * NodeManagement defines the set of node management services turned on for the
+ * node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeManagement} + */ +public final class NodeManagement extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeManagement) + NodeManagementOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeManagement.newBuilder() to construct. + private NodeManagement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeManagement() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeManagement(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NodeManagement( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + autoUpgrade_ = input.readBool(); + break; + } + case 16: + { + autoRepair_ = input.readBool(); + break; + } + case 82: + { + com.google.container.v1beta1.AutoUpgradeOptions.Builder subBuilder = null; + if (upgradeOptions_ != null) { + subBuilder = upgradeOptions_.toBuilder(); + } + upgradeOptions_ = + input.readMessage( + com.google.container.v1beta1.AutoUpgradeOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(upgradeOptions_); + upgradeOptions_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!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_NodeManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeManagement.class, + com.google.container.v1beta1.NodeManagement.Builder.class); + } + + public static final int AUTO_UPGRADE_FIELD_NUMBER = 1; + private boolean autoUpgrade_; + /** + * + * + *
+   * Whether the nodes will be automatically upgraded.
+   * 
+ * + * bool auto_upgrade = 1; + * + * @return The autoUpgrade. + */ + @java.lang.Override + public boolean getAutoUpgrade() { + return autoUpgrade_; + } + + public static final int AUTO_REPAIR_FIELD_NUMBER = 2; + private boolean autoRepair_; + /** + * + * + *
+   * Whether the nodes will be automatically repaired.
+   * 
+ * + * bool auto_repair = 2; + * + * @return The autoRepair. + */ + @java.lang.Override + public boolean getAutoRepair() { + return autoRepair_; + } + + public static final int UPGRADE_OPTIONS_FIELD_NUMBER = 10; + private com.google.container.v1beta1.AutoUpgradeOptions upgradeOptions_; + /** + * + * + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + * + * @return Whether the upgradeOptions field is set. + */ + @java.lang.Override + public boolean hasUpgradeOptions() { + return upgradeOptions_ != null; + } + /** + * + * + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + * + * @return The upgradeOptions. + */ + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptions getUpgradeOptions() { + return upgradeOptions_ == null + ? com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() + : upgradeOptions_; + } + /** + * + * + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + @java.lang.Override + public com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { + return getUpgradeOptions(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (autoUpgrade_ != false) { + output.writeBool(1, autoUpgrade_); + } + if (autoRepair_ != false) { + output.writeBool(2, autoRepair_); + } + if (upgradeOptions_ != null) { + output.writeMessage(10, getUpgradeOptions()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (autoUpgrade_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, autoUpgrade_); + } + if (autoRepair_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, autoRepair_); + } + if (upgradeOptions_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpgradeOptions()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.NodeManagement)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodeManagement other = + (com.google.container.v1beta1.NodeManagement) obj; + + if (getAutoUpgrade() != other.getAutoUpgrade()) return false; + if (getAutoRepair() != other.getAutoRepair()) return false; + if (hasUpgradeOptions() != other.hasUpgradeOptions()) return false; + if (hasUpgradeOptions()) { + if (!getUpgradeOptions().equals(other.getUpgradeOptions())) 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) + AUTO_UPGRADE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoUpgrade()); + hash = (37 * hash) + AUTO_REPAIR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoRepair()); + if (hasUpgradeOptions()) { + hash = (37 * hash) + UPGRADE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodeManagement parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodeManagement parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeManagement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodeManagement parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeManagement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodeManagement parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeManagement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeManagement parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeManagement parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeManagement parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeManagement parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeManagement parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.NodeManagement prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * NodeManagement defines the set of node management services turned on for the
+   * node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeManagement} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeManagement) + com.google.container.v1beta1.NodeManagementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeManagement.class, + com.google.container.v1beta1.NodeManagement.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodeManagement.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + autoUpgrade_ = false; + + autoRepair_ = false; + + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = null; + } else { + upgradeOptions_ = null; + upgradeOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeManagement_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeManagement getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeManagement.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeManagement build() { + com.google.container.v1beta1.NodeManagement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeManagement buildPartial() { + com.google.container.v1beta1.NodeManagement result = + new com.google.container.v1beta1.NodeManagement(this); + result.autoUpgrade_ = autoUpgrade_; + result.autoRepair_ = autoRepair_; + if (upgradeOptionsBuilder_ == null) { + result.upgradeOptions_ = upgradeOptions_; + } else { + result.upgradeOptions_ = upgradeOptionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.NodeManagement) { + return mergeFrom((com.google.container.v1beta1.NodeManagement) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeManagement other) { + if (other == com.google.container.v1beta1.NodeManagement.getDefaultInstance()) return this; + if (other.getAutoUpgrade() != false) { + setAutoUpgrade(other.getAutoUpgrade()); + } + if (other.getAutoRepair() != false) { + setAutoRepair(other.getAutoRepair()); + } + if (other.hasUpgradeOptions()) { + mergeUpgradeOptions(other.getUpgradeOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NodeManagement parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NodeManagement) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean autoUpgrade_; + /** + * + * + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + * + * @return The autoUpgrade. + */ + @java.lang.Override + public boolean getAutoUpgrade() { + return autoUpgrade_; + } + /** + * + * + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + * + * @param value The autoUpgrade to set. + * @return This builder for chaining. + */ + public Builder setAutoUpgrade(boolean value) { + + autoUpgrade_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + * + * @return This builder for chaining. + */ + public Builder clearAutoUpgrade() { + + autoUpgrade_ = false; + onChanged(); + return this; + } + + private boolean autoRepair_; + /** + * + * + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + * + * @return The autoRepair. + */ + @java.lang.Override + public boolean getAutoRepair() { + return autoRepair_; + } + /** + * + * + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + * + * @param value The autoRepair to set. + * @return This builder for chaining. + */ + public Builder setAutoRepair(boolean value) { + + autoRepair_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + * + * @return This builder for chaining. + */ + public Builder clearAutoRepair() { + + autoRepair_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AutoUpgradeOptions upgradeOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoUpgradeOptions, + com.google.container.v1beta1.AutoUpgradeOptions.Builder, + com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder> + upgradeOptionsBuilder_; + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + * + * @return Whether the upgradeOptions field is set. + */ + public boolean hasUpgradeOptions() { + return upgradeOptionsBuilder_ != null || upgradeOptions_ != null; + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + * + * @return The upgradeOptions. + */ + public com.google.container.v1beta1.AutoUpgradeOptions getUpgradeOptions() { + if (upgradeOptionsBuilder_ == null) { + return upgradeOptions_ == null + ? com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() + : upgradeOptions_; + } else { + return upgradeOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder setUpgradeOptions(com.google.container.v1beta1.AutoUpgradeOptions value) { + if (upgradeOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeOptions_ = value; + onChanged(); + } else { + upgradeOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder setUpgradeOptions( + com.google.container.v1beta1.AutoUpgradeOptions.Builder builderForValue) { + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = builderForValue.build(); + onChanged(); + } else { + upgradeOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder mergeUpgradeOptions(com.google.container.v1beta1.AutoUpgradeOptions value) { + if (upgradeOptionsBuilder_ == null) { + if (upgradeOptions_ != null) { + upgradeOptions_ = + com.google.container.v1beta1.AutoUpgradeOptions.newBuilder(upgradeOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeOptions_ = value; + } + onChanged(); + } else { + upgradeOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder clearUpgradeOptions() { + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = null; + onChanged(); + } else { + upgradeOptions_ = null; + upgradeOptionsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1beta1.AutoUpgradeOptions.Builder getUpgradeOptionsBuilder() { + + onChanged(); + return getUpgradeOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { + if (upgradeOptionsBuilder_ != null) { + return upgradeOptionsBuilder_.getMessageOrBuilder(); + } else { + return upgradeOptions_ == null + ? com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() + : upgradeOptions_; + } + } + /** + * + * + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoUpgradeOptions, + com.google.container.v1beta1.AutoUpgradeOptions.Builder, + com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder> + getUpgradeOptionsFieldBuilder() { + if (upgradeOptionsBuilder_ == null) { + upgradeOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutoUpgradeOptions, + com.google.container.v1beta1.AutoUpgradeOptions.Builder, + com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder>( + getUpgradeOptions(), getParentForChildren(), isClean()); + upgradeOptions_ = null; + } + return upgradeOptionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.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.NodeManagement) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeManagement) + private static final com.google.container.v1beta1.NodeManagement DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeManagement(); + } + + public static com.google.container.v1beta1.NodeManagement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeManagement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeManagement(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeManagement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java new file mode 100644 index 00000000..6588c33e --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java @@ -0,0 +1,86 @@ +/* + * 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 NodeManagementOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeManagement) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the nodes will be automatically upgraded.
+   * 
+ * + * bool auto_upgrade = 1; + * + * @return The autoUpgrade. + */ + boolean getAutoUpgrade(); + + /** + * + * + *
+   * Whether the nodes will be automatically repaired.
+   * 
+ * + * bool auto_repair = 2; + * + * @return The autoRepair. + */ + boolean getAutoRepair(); + + /** + * + * + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + * + * @return Whether the upgradeOptions field is set. + */ + boolean hasUpgradeOptions(); + /** + * + * + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + * + * @return The upgradeOptions. + */ + com.google.container.v1beta1.AutoUpgradeOptions getUpgradeOptions(); + /** + * + * + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + com.google.container.v1beta1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder(); +} diff --git a/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 new file mode 100644 index 00000000..008937c0 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java @@ -0,0 +1,5084 @@ +/* + * 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; + +/** + * + * + *
+ * NodePool contains the name and configuration for a cluster's node pool.
+ * Node pools are a set of nodes (i.e. VM's), with a common configuration and
+ * specification, under the control of the cluster master. They may have a set
+ * of Kubernetes labels applied to them, which may be used to reference them
+ * during pod scheduling. They may also be resized up or down, to accommodate
+ * the workload.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool} + */ +public final class NodePool extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool) + NodePoolOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodePool.newBuilder() to construct. + private NodePool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodePool() { + name_ = ""; + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + selfLink_ = ""; + version_ = ""; + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + status_ = 0; + statusMessage_ = ""; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodePool(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NodePool( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.container.v1beta1.NodeConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = + input.readMessage( + com.google.container.v1beta1.NodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + initialNodeCount_ = input.readInt32(); + break; + } + case 34: + { + com.google.container.v1beta1.NodePoolAutoscaling.Builder subBuilder = null; + if (autoscaling_ != null) { + subBuilder = autoscaling_.toBuilder(); + } + autoscaling_ = + input.readMessage( + com.google.container.v1beta1.NodePoolAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaling_); + autoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.container.v1beta1.NodeManagement.Builder subBuilder = null; + if (management_ != null) { + subBuilder = management_.toBuilder(); + } + management_ = + input.readMessage( + com.google.container.v1beta1.NodeManagement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(management_); + management_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.container.v1beta1.MaxPodsConstraint.Builder subBuilder = null; + if (maxPodsConstraint_ != null) { + subBuilder = maxPodsConstraint_.toBuilder(); + } + maxPodsConstraint_ = + input.readMessage( + com.google.container.v1beta1.MaxPodsConstraint.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxPodsConstraint_); + maxPodsConstraint_ = subBuilder.buildPartial(); + } + + break; + } + case 56: + { + podIpv4CidrSize_ = input.readInt32(); + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add(s); + break; + } + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + + selfLink_ = s; + break; + } + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 818: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + instanceGroupUrls_.add(s); + break; + } + case 824: + { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 834: + { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 842: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + conditions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + conditions_.add( + input.readMessage( + com.google.container.v1beta1.StatusCondition.parser(), extensionRegistry)); + break; + } + case 858: + { + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder subBuilder = null; + if (upgradeSettings_ != null) { + subBuilder = upgradeSettings_.toBuilder(); + } + upgradeSettings_ = + input.readMessage( + com.google.container.v1beta1.NodePool.UpgradeSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(upgradeSettings_); + upgradeSettings_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.class, + com.google.container.v1beta1.NodePool.Builder.class); + } + + /** + * + * + *
+   * The current status of the node pool instance.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodePool.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * The PROVISIONING state indicates the node pool is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + PROVISIONING(1), + /** + * + * + *
+     * The RUNNING state indicates the node pool has been created
+     * and is fully usable.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * The RUNNING_WITH_ERROR state indicates the node pool has been created
+     * and is partially usable. Some error state has occurred and some
+     * functionality may be impaired. Customer may need to reissue a request
+     * or trigger a new update.
+     * 
+ * + * RUNNING_WITH_ERROR = 3; + */ + RUNNING_WITH_ERROR(3), + /** + * + * + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the node pool, such as upgrading node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 4; + */ + RECONCILING(4), + /** + * + * + *
+     * The STOPPING state indicates the node pool is being deleted.
+     * 
+ * + * STOPPING = 5; + */ + STOPPING(5), + /** + * + * + *
+     * The ERROR state indicates the node pool may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 6; + */ + ERROR(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The PROVISIONING state indicates the node pool is being created.
+     * 
+ * + * PROVISIONING = 1; + */ + public static final int PROVISIONING_VALUE = 1; + /** + * + * + *
+     * The RUNNING state indicates the node pool has been created
+     * and is fully usable.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * + * + *
+     * The RUNNING_WITH_ERROR state indicates the node pool has been created
+     * and is partially usable. Some error state has occurred and some
+     * functionality may be impaired. Customer may need to reissue a request
+     * or trigger a new update.
+     * 
+ * + * RUNNING_WITH_ERROR = 3; + */ + public static final int RUNNING_WITH_ERROR_VALUE = 3; + /** + * + * + *
+     * The RECONCILING state indicates that some work is actively being done on
+     * the node pool, such as upgrading node software. Details can
+     * be found in the `statusMessage` field.
+     * 
+ * + * RECONCILING = 4; + */ + public static final int RECONCILING_VALUE = 4; + /** + * + * + *
+     * The STOPPING state indicates the node pool is being deleted.
+     * 
+ * + * STOPPING = 5; + */ + public static final int STOPPING_VALUE = 5; + /** + * + * + *
+     * The ERROR state indicates the node pool may be unusable. Details
+     * can be found in the `statusMessage` field.
+     * 
+ * + * ERROR = 6; + */ + public static final int ERROR_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return PROVISIONING; + case 2: + return RUNNING; + case 3: + return RUNNING_WITH_ERROR; + case 4: + return RECONCILING; + case 5: + return STOPPING; + case 6: + return ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.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.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodePool.Status) + } + + public interface UpgradeSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool.UpgradeSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The maximum number of nodes that can be created beyond the current size
+     * of the node pool during the upgrade process.
+     * 
+ * + * int32 max_surge = 1; + * + * @return The maxSurge. + */ + int getMaxSurge(); + + /** + * + * + *
+     * The maximum number of nodes that can be simultaneously unavailable during
+     * the upgrade process. A node is considered available if its status is
+     * Ready.
+     * 
+ * + * int32 max_unavailable = 2; + * + * @return The maxUnavailable. + */ + int getMaxUnavailable(); + } + /** + * + * + *
+   * These upgrade settings control the level of parallelism and the level of
+   * disruption caused by an upgrade.
+   * maxUnavailable controls the number of nodes that can be simultaneously
+   * unavailable.
+   * maxSurge controls the number of additional nodes that can be added to the
+   * node pool temporarily for the time of the upgrade to increase the number of
+   * available nodes.
+   * (maxUnavailable + maxSurge) determines the level of parallelism (how many
+   * nodes are being upgraded at the same time).
+   * Note: upgrades inevitably introduce some disruption since workloads need to
+   * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
+   * this holds true. (Disruption stays within the limits of
+   * PodDisruptionBudget, if it is configured.)
+   * Consider a hypothetical node pool with 5 nodes having maxSurge=2,
+   * maxUnavailable=1. This means the upgrade process upgrades 3 nodes
+   * simultaneously. It creates 2 additional (upgraded) nodes, then it brings
+   * down 3 old (not yet upgraded) nodes at the same time. This ensures that
+   * there are always at least 4 nodes available.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.UpgradeSettings} + */ + public static final class UpgradeSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool.UpgradeSettings) + UpgradeSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpgradeSettings.newBuilder() to construct. + private UpgradeSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeSettings() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeSettings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpgradeSettings( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxSurge_ = input.readInt32(); + break; + } + case 16: + { + maxUnavailable_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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); + } + + public static final int MAX_SURGE_FIELD_NUMBER = 1; + private int maxSurge_; + /** + * + * + *
+     * The maximum number of nodes that can be created beyond the current size
+     * of the node pool during the upgrade process.
+     * 
+ * + * int32 max_surge = 1; + * + * @return The maxSurge. + */ + @java.lang.Override + public int getMaxSurge() { + return maxSurge_; + } + + public static final int MAX_UNAVAILABLE_FIELD_NUMBER = 2; + private int maxUnavailable_; + /** + * + * + *
+     * The maximum number of nodes that can be simultaneously unavailable during
+     * the upgrade process. A node is considered available if its status is
+     * Ready.
+     * 
+ * + * int32 max_unavailable = 2; + * + * @return The maxUnavailable. + */ + @java.lang.Override + public int getMaxUnavailable() { + return maxUnavailable_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (maxSurge_ != 0) { + output.writeInt32(1, maxSurge_); + } + if (maxUnavailable_ != 0) { + output.writeInt32(2, maxUnavailable_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxSurge_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxSurge_); + } + if (maxUnavailable_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxUnavailable_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.NodePool.UpgradeSettings)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePool.UpgradeSettings other = + (com.google.container.v1beta1.NodePool.UpgradeSettings) obj; + + if (getMaxSurge() != other.getMaxSurge()) return false; + if (getMaxUnavailable() != other.getMaxUnavailable()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_SURGE_FIELD_NUMBER; + hash = (53 * hash) + getMaxSurge(); + hash = (37 * hash) + MAX_UNAVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + getMaxUnavailable(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodePool.UpgradeSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodePool.UpgradeSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool.UpgradeSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodePool.UpgradeSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool.UpgradeSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodePool.UpgradeSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool.UpgradeSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool.UpgradeSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool.UpgradeSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool.UpgradeSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool.UpgradeSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool.UpgradeSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.NodePool.UpgradeSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * These upgrade settings control the level of parallelism and the level of
+     * disruption caused by an upgrade.
+     * maxUnavailable controls the number of nodes that can be simultaneously
+     * unavailable.
+     * maxSurge controls the number of additional nodes that can be added to the
+     * node pool temporarily for the time of the upgrade to increase the number of
+     * available nodes.
+     * (maxUnavailable + maxSurge) determines the level of parallelism (how many
+     * nodes are being upgraded at the same time).
+     * Note: upgrades inevitably introduce some disruption since workloads need to
+     * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
+     * this holds true. (Disruption stays within the limits of
+     * PodDisruptionBudget, if it is configured.)
+     * Consider a hypothetical node pool with 5 nodes having maxSurge=2,
+     * maxUnavailable=1. This means the upgrade process upgrades 3 nodes
+     * simultaneously. It creates 2 additional (upgraded) nodes, then it brings
+     * down 3 old (not yet upgraded) nodes at the same time. This ensures that
+     * there are always at least 4 nodes available.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.UpgradeSettings} + */ + 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 { + 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 static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1beta1.NodeConfig config_; + /** + * + * + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return config_ != null; + } + /** + * + * + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + * + * @return The config. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeConfig getConfig() { + return config_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : config_; + } + /** + * + * + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeConfigOrBuilder getConfigOrBuilder() { + return getConfig(); + } + + public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; + private int initialNodeCount_; + /** + * + * + *
+   * The initial node count for the pool. You must ensure that your
+   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * 
+ * + * int32 initial_node_count = 3; + * + * @return The initialNodeCount. + */ + @java.lang.Override + public int getInitialNodeCount() { + return initialNodeCount_; + } + + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + private volatile java.lang.Object selfLink_; + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 101; + private volatile java.lang.Object version_; + /** + * + * + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + * + * @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 version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + * + * @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 INSTANCE_GROUP_URLS_FIELD_NUMBER = 102; + private com.google.protobuf.LazyStringList instanceGroupUrls_; + /** + * + * + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + * + * @return A list containing the instanceGroupUrls. + */ + public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { + return instanceGroupUrls_; + } + /** + * + * + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + * + * @return The count of instanceGroupUrls. + */ + public int getInstanceGroupUrlsCount() { + return instanceGroupUrls_.size(); + } + /** + * + * + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + * + * @param index The index of the element to return. + * @return The instanceGroupUrls at the given index. + */ + public java.lang.String getInstanceGroupUrls(int index) { + return instanceGroupUrls_.get(index); + } + /** + * + * + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + * + * @param index The index of the value to return. + * @return The bytes of the instanceGroupUrls at the given index. + */ + public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + + public static final int STATUS_FIELD_NUMBER = 103; + private int status_; + /** + * + * + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePool.Status result = + com.google.container.v1beta1.NodePool.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.NodePool.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; + private volatile java.lang.Object statusMessage_; + /** + * + * + *
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
+   * node pool instance, if available.
+   * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @return The statusMessage. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
+   * node pool instance, if available.
+   * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTOSCALING_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; + /** + * + * + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + * + * @return Whether the autoscaling field is set. + */ + @java.lang.Override + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + * + * + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + * + * @return The autoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { + return autoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : autoscaling_; + } + /** + * + * + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + public static final int MANAGEMENT_FIELD_NUMBER = 5; + private com.google.container.v1beta1.NodeManagement management_; + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + * + * @return Whether the management field is set. + */ + @java.lang.Override + public boolean hasManagement() { + return management_ != null; + } + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + * + * @return The management. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeManagement getManagement() { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + return getManagement(); + } + + public static final int MAX_PODS_CONSTRAINT_FIELD_NUMBER = 6; + private com.google.container.v1beta1.MaxPodsConstraint maxPodsConstraint_; + /** + * + * + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + * + * @return Whether the maxPodsConstraint field is set. + */ + @java.lang.Override + public boolean hasMaxPodsConstraint() { + return maxPodsConstraint_ != null; + } + /** + * + * + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + * + * @return The maxPodsConstraint. + */ + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsConstraint() { + return maxPodsConstraint_ == null + ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() + : maxPodsConstraint_; + } + /** + * + * + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { + return getMaxPodsConstraint(); + } + + public static final int CONDITIONS_FIELD_NUMBER = 105; + private java.util.List conditions_; + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + @java.lang.Override + public java.util.List getConditionsList() { + return conditions_; + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + @java.lang.Override + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + @java.lang.Override + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + return conditions_.get(index); + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + @java.lang.Override + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { + return conditions_.get(index); + } + + public static final int POD_IPV4_CIDR_SIZE_FIELD_NUMBER = 7; + private int podIpv4CidrSize_; + /** + * + * + *
+   * [Output only] The pod CIDR block size per node in this node pool.
+   * 
+ * + * int32 pod_ipv4_cidr_size = 7; + * + * @return The podIpv4CidrSize. + */ + @java.lang.Override + public int getPodIpv4CidrSize() { + return podIpv4CidrSize_; + } + + public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 107; + private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return upgradeSettings_ != null; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder + getUpgradeSettingsOrBuilder() { + return getUpgradeSettings(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (config_ != null) { + output.writeMessage(2, getConfig()); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (autoscaling_ != null) { + output.writeMessage(4, getAutoscaling()); + } + if (management_ != null) { + output.writeMessage(5, getManagement()); + } + if (maxPodsConstraint_ != null) { + output.writeMessage(6, getMaxPodsConstraint()); + } + if (podIpv4CidrSize_ != 0) { + output.writeInt32(7, podIpv4CidrSize_); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (!getSelfLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, version_); + } + for (int i = 0; i < instanceGroupUrls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, instanceGroupUrls_.getRaw(i)); + } + if (status_ != com.google.container.v1beta1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(103, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 104, statusMessage_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(105, conditions_.get(i)); + } + if (upgradeSettings_ != null) { + output.writeMessage(107, getUpgradeSettings()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (config_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); + } + if (initialNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, initialNodeCount_); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscaling()); + } + if (management_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagement()); + } + if (maxPodsConstraint_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMaxPodsConstraint()); + } + if (podIpv4CidrSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, podIpv4CidrSize_); + } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + if (!getSelfLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, version_); + } + { + int dataSize = 0; + for (int i = 0; i < instanceGroupUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(instanceGroupUrls_.getRaw(i)); + } + size += dataSize; + size += 2 * getInstanceGroupUrlsList().size(); + } + if (status_ != com.google.container.v1beta1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(103, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, statusMessage_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(105, conditions_.get(i)); + } + if (upgradeSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(107, getUpgradeSettings()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.NodePool)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePool other = (com.google.container.v1beta1.NodePool) obj; + + if (!getName().equals(other.getName())) return false; + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) return false; + } + if (getInitialNodeCount() != other.getInitialNodeCount()) return false; + if (!getLocationsList().equals(other.getLocationsList())) return false; + if (!getSelfLink().equals(other.getSelfLink())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getInstanceGroupUrlsList().equals(other.getInstanceGroupUrlsList())) return false; + if (status_ != other.status_) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (hasAutoscaling() != other.hasAutoscaling()) return false; + if (hasAutoscaling()) { + if (!getAutoscaling().equals(other.getAutoscaling())) return false; + } + if (hasManagement() != other.hasManagement()) return false; + if (hasManagement()) { + if (!getManagement().equals(other.getManagement())) return false; + } + if (hasMaxPodsConstraint() != other.hasMaxPodsConstraint()) return false; + if (hasMaxPodsConstraint()) { + if (!getMaxPodsConstraint().equals(other.getMaxPodsConstraint())) return false; + } + if (!getConditionsList().equals(other.getConditionsList())) return false; + if (getPodIpv4CidrSize() != other.getPodIpv4CidrSize()) return false; + if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; + if (hasUpgradeSettings()) { + if (!getUpgradeSettings().equals(other.getUpgradeSettings())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (37 * hash) + INITIAL_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getInitialNodeCount(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + if (getInstanceGroupUrlsCount() > 0) { + hash = (37 * hash) + INSTANCE_GROUP_URLS_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupUrlsList().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + if (hasAutoscaling()) { + hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaling().hashCode(); + } + if (hasManagement()) { + hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getManagement().hashCode(); + } + if (hasMaxPodsConstraint()) { + hash = (37 * hash) + MAX_PODS_CONSTRAINT_FIELD_NUMBER; + hash = (53 * hash) + getMaxPodsConstraint().hashCode(); + } + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (37 * hash) + POD_IPV4_CIDR_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPodIpv4CidrSize(); + if (hasUpgradeSettings()) { + hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeSettings().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodePool parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodePool parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodePool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodePool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.NodePool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * NodePool contains the name and configuration for a cluster's node pool.
+   * Node pools are a set of nodes (i.e. VM's), with a common configuration and
+   * specification, under the control of the cluster master. They may have a set
+   * of Kubernetes labels applied to them, which may be used to reference them
+   * during pod scheduling. They may also be resized up or down, to accommodate
+   * the workload.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool) + com.google.container.v1beta1.NodePoolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.class, + com.google.container.v1beta1.NodePool.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodePool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConditionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (configBuilder_ == null) { + config_ = null; + } else { + config_ = null; + configBuilder_ = null; + } + initialNodeCount_ = 0; + + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + selfLink_ = ""; + + version_ = ""; + + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + status_ = 0; + + statusMessage_ = ""; + + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = null; + } else { + maxPodsConstraint_ = null; + maxPodsConstraintBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + conditionsBuilder_.clear(); + } + podIpv4CidrSize_ = 0; + + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePool_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool build() { + com.google.container.v1beta1.NodePool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool buildPartial() { + com.google.container.v1beta1.NodePool result = + new com.google.container.v1beta1.NodePool(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (configBuilder_ == null) { + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + result.initialNodeCount_ = initialNodeCount_; + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + result.selfLink_ = selfLink_; + result.version_ = version_; + if (((bitField0_ & 0x00000002) != 0)) { + instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.instanceGroupUrls_ = instanceGroupUrls_; + result.status_ = status_; + result.statusMessage_ = statusMessage_; + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + if (maxPodsConstraintBuilder_ == null) { + result.maxPodsConstraint_ = maxPodsConstraint_; + } else { + result.maxPodsConstraint_ = maxPodsConstraintBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.podIpv4CidrSize_ = podIpv4CidrSize_; + if (upgradeSettingsBuilder_ == null) { + result.upgradeSettings_ = upgradeSettings_; + } else { + result.upgradeSettings_ = upgradeSettingsBuilder_.build(); + } + onBuilt(); + return result; + } + + @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) { + return mergeFrom((com.google.container.v1beta1.NodePool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePool other) { + if (other == com.google.container.v1beta1.NodePool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (other.getInitialNodeCount() != 0) { + setInitialNodeCount(other.getInitialNodeCount()); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (other.hasMaxPodsConstraint()) { + mergeMaxPodsConstraint(other.getMaxPodsConstraint()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConditionsFieldBuilder() + : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.getPodIpv4CidrSize() != 0) { + setPodIpv4CidrSize(other.getPodIpv4CidrSize()); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NodePool parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NodePool) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodeConfig config_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, + com.google.container.v1beta1.NodeConfig.Builder, + com.google.container.v1beta1.NodeConfigOrBuilder> + configBuilder_; + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return configBuilder_ != null || config_ != null; + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + * + * @return The config. + */ + public com.google.container.v1beta1.NodeConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder setConfig(com.google.container.v1beta1.NodeConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + configBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder setConfig(com.google.container.v1beta1.NodeConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder mergeConfig(com.google.container.v1beta1.NodeConfig value) { + if (configBuilder_ == null) { + if (config_ != null) { + config_ = + com.google.container.v1beta1.NodeConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + configBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = null; + onChanged(); + } else { + config_ = null; + configBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public com.google.container.v1beta1.NodeConfig.Builder getConfigBuilder() { + + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public com.google.container.v1beta1.NodeConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() + : config_; + } + } + /** + * + * + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, + com.google.container.v1beta1.NodeConfig.Builder, + com.google.container.v1beta1.NodeConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfig, + com.google.container.v1beta1.NodeConfig.Builder, + com.google.container.v1beta1.NodeConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + private int initialNodeCount_; + /** + * + * + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + * + * @return The initialNodeCount. + */ + @java.lang.Override + public int getInitialNodeCount() { + return initialNodeCount_; + } + /** + * + * + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + * + * @param value The initialNodeCount to set. + * @return This builder for chaining. + */ + public Builder setInitialNodeCount(int value) { + + initialNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The initial node count for the pool. You must ensure that your
+     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+     * is sufficient for this number of instances. You must also have available
+     * firewall and routes quota.
+     * 
+ * + * int32 initial_node_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearInitialNodeCount() { + + initialNodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * NodePool's nodes should be located.
+     * If this value is unspecified during node pool creation, the
+     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+     * value will be used, instead.
+     * Warning: changing node pool locations will result in nodes being added
+     * and/or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + selfLink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Server-defined URL for the resource.
+     * 
+ * + * string self_link = 100; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @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 version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @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 version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @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 version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The version of the Kubernetes of this node.
+     * 
+ * + * string version = 101; + * + * @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 com.google.protobuf.LazyStringList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureInstanceGroupUrlsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + * + * @return A list containing the instanceGroupUrls. + */ + public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { + return instanceGroupUrls_.getUnmodifiableView(); + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + * + * @return The count of instanceGroupUrls. + */ + public int getInstanceGroupUrlsCount() { + return instanceGroupUrls_.size(); + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + * + * @param index The index of the element to return. + * @return The instanceGroupUrls at the given index. + */ + public java.lang.String getInstanceGroupUrls(int index) { + return instanceGroupUrls_.get(index); + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + * + * @param index The index of the value to return. + * @return The bytes of the instanceGroupUrls at the given index. + */ + public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + * + * @param index The index to set the value at. + * @param value The instanceGroupUrls to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + * + * @param value The instanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addInstanceGroupUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + * + * @param values The instanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addAllInstanceGroupUrls(java.lang.Iterable values) { + ensureInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceGroupUrls_); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The resource URLs of the [managed instance
+     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+     * associated with this node pool.
+     * 
+ * + * repeated string instance_group_urls = 102; + * + * @param value The bytes of the instanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @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; + } + /** + * + * + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodePool.Status result = + com.google.container.v1beta1.NodePool.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.NodePool.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1beta1.NodePool.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @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
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @return The statusMessage. + */ + @java.lang.Deprecated + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + 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
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @return The bytes for statusMessage. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + 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
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] Deprecated. Use conditions instead.
+     * Additional information about the current status of this
+     * node pool instance, if available.
+     * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + autoscalingBuilder_; + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + * + * @return Whether the autoscaling field is set. + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + * + * @return The autoscaling. + */ + public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder setAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder setAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder mergeAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1beta1.NodePoolAutoscaling.newBuilder(autoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1beta1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : autoscaling_; + } + } + /** + * + * + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder>( + getAutoscaling(), getParentForChildren(), isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private com.google.container.v1beta1.NodeManagement management_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder> + managementBuilder_; + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + * + * @return Whether the management field is set. + */ + public boolean hasManagement() { + return managementBuilder_ != null || management_ != null; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + * + * @return The management. + */ + public com.google.container.v1beta1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder setManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder setManagement( + com.google.container.v1beta1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder mergeManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (management_ != null) { + management_ = + com.google.container.v1beta1.NodeManagement.newBuilder(management_) + .mergeFrom(value) + .buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { + + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } + } + /** + * + * + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder>( + getManagement(), getParentForChildren(), isClean()); + management_ = null; + } + return managementBuilder_; + } + + private com.google.container.v1beta1.MaxPodsConstraint maxPodsConstraint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, + com.google.container.v1beta1.MaxPodsConstraint.Builder, + com.google.container.v1beta1.MaxPodsConstraintOrBuilder> + maxPodsConstraintBuilder_; + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + * + * @return Whether the maxPodsConstraint field is set. + */ + public boolean hasMaxPodsConstraint() { + return maxPodsConstraintBuilder_ != null || maxPodsConstraint_ != null; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + * + * @return The maxPodsConstraint. + */ + public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsConstraint() { + if (maxPodsConstraintBuilder_ == null) { + return maxPodsConstraint_ == null + ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() + : maxPodsConstraint_; + } else { + return maxPodsConstraintBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder setMaxPodsConstraint(com.google.container.v1beta1.MaxPodsConstraint value) { + if (maxPodsConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxPodsConstraint_ = value; + onChanged(); + } else { + maxPodsConstraintBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder setMaxPodsConstraint( + com.google.container.v1beta1.MaxPodsConstraint.Builder builderForValue) { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = builderForValue.build(); + onChanged(); + } else { + maxPodsConstraintBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder mergeMaxPodsConstraint(com.google.container.v1beta1.MaxPodsConstraint value) { + if (maxPodsConstraintBuilder_ == null) { + if (maxPodsConstraint_ != null) { + maxPodsConstraint_ = + com.google.container.v1beta1.MaxPodsConstraint.newBuilder(maxPodsConstraint_) + .mergeFrom(value) + .buildPartial(); + } else { + maxPodsConstraint_ = value; + } + onChanged(); + } else { + maxPodsConstraintBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder clearMaxPodsConstraint() { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = null; + onChanged(); + } else { + maxPodsConstraint_ = null; + maxPodsConstraintBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public com.google.container.v1beta1.MaxPodsConstraint.Builder getMaxPodsConstraintBuilder() { + + onChanged(); + return getMaxPodsConstraintFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { + if (maxPodsConstraintBuilder_ != null) { + return maxPodsConstraintBuilder_.getMessageOrBuilder(); + } else { + return maxPodsConstraint_ == null + ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() + : maxPodsConstraint_; + } + } + /** + * + * + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, + com.google.container.v1beta1.MaxPodsConstraint.Builder, + com.google.container.v1beta1.MaxPodsConstraintOrBuilder> + getMaxPodsConstraintFieldBuilder() { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, + com.google.container.v1beta1.MaxPodsConstraint.Builder, + com.google.container.v1beta1.MaxPodsConstraintOrBuilder>( + getMaxPodsConstraint(), getParentForChildren(), isClean()); + maxPodsConstraint_ = null; + } + return maxPodsConstraintBuilder_; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + conditions_ = + new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + conditionsBuilder_; + + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder setConditions(int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder setConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addConditions(com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addConditions(int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition.Builder getConditionsBuilder(int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder() + .addBuilder(com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder>( + conditions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private int podIpv4CidrSize_; + /** + * + * + *
+     * [Output only] The pod CIDR block size per node in this node pool.
+     * 
+ * + * int32 pod_ipv4_cidr_size = 7; + * + * @return The podIpv4CidrSize. + */ + @java.lang.Override + public int getPodIpv4CidrSize() { + return podIpv4CidrSize_; + } + /** + * + * + *
+     * [Output only] The pod CIDR block size per node in this node pool.
+     * 
+ * + * int32 pod_ipv4_cidr_size = 7; + * + * @param value The podIpv4CidrSize to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrSize(int value) { + + podIpv4CidrSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The pod CIDR block size per node in this node pool.
+     * 
+ * + * int32 pod_ipv4_cidr_size = 7; + * + * @return This builder for chaining. + */ + public Builder clearPodIpv4CidrSize() { + + podIpv4CidrSize_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> + upgradeSettingsBuilder_; + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return The upgradeSettings. + */ + public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder setUpgradeSettings(com.google.container.v1beta1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder setUpgradeSettings( + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder mergeUpgradeSettings( + com.google.container.v1beta1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (upgradeSettings_ != null) { + upgradeSettings_ = + com.google.container.v1beta1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeSettings_ = value; + } + onChanged(); + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder clearUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + onChanged(); + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public com.google.container.v1beta1.NodePool.UpgradeSettings.Builder + getUpgradeSettingsBuilder() { + + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder + getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), getParentForChildren(), isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodePool) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool) + private static final com.google.container.v1beta1.NodePool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool(); + } + + public static com.google.container.v1beta1.NodePool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodePool(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/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 new file mode 100644 index 00000000..9207dbc3 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java @@ -0,0 +1,825 @@ +/* + * 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; + +/** + * + * + *
+ * NodePoolAutoscaling contains information required by cluster autoscaler to
+ * adjust the size of the node pool to the current cluster usage.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePoolAutoscaling} + */ +public final class NodePoolAutoscaling extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePoolAutoscaling) + NodePoolAutoscalingOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodePoolAutoscaling.newBuilder() to construct. + private NodePoolAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodePoolAutoscaling() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodePoolAutoscaling(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NodePoolAutoscaling( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + case 16: + { + minNodeCount_ = input.readInt32(); + break; + } + case 24: + { + maxNodeCount_ = input.readInt32(); + break; + } + case 32: + { + autoprovisioned_ = input.readBool(); + break; + } + default: + { + if (!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_NodePoolAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePoolAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePoolAutoscaling.class, + com.google.container.v1beta1.NodePoolAutoscaling.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Is autoscaling enabled for this node pool.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2; + private int minNodeCount_; + /** + * + * + *
+   * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+   * max_node_count.
+   * 
+ * + * int32 min_node_count = 2; + * + * @return The minNodeCount. + */ + @java.lang.Override + public int getMinNodeCount() { + return minNodeCount_; + } + + public static final int MAX_NODE_COUNT_FIELD_NUMBER = 3; + private int maxNodeCount_; + /** + * + * + *
+   * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+   * has to enough quota to scale up the cluster.
+   * 
+ * + * int32 max_node_count = 3; + * + * @return The maxNodeCount. + */ + @java.lang.Override + public int getMaxNodeCount() { + return maxNodeCount_; + } + + public static final int AUTOPROVISIONED_FIELD_NUMBER = 4; + private boolean autoprovisioned_; + /** + * + * + *
+   * Can this node pool be deleted automatically.
+   * 
+ * + * bool autoprovisioned = 4; + * + * @return The autoprovisioned. + */ + @java.lang.Override + public boolean getAutoprovisioned() { + return autoprovisioned_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (minNodeCount_ != 0) { + output.writeInt32(2, minNodeCount_); + } + if (maxNodeCount_ != 0) { + output.writeInt32(3, maxNodeCount_); + } + if (autoprovisioned_ != false) { + output.writeBool(4, autoprovisioned_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (minNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minNodeCount_); + } + if (maxNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxNodeCount_); + } + if (autoprovisioned_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, autoprovisioned_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.NodePoolAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePoolAutoscaling other = + (com.google.container.v1beta1.NodePoolAutoscaling) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (getMinNodeCount() != other.getMinNodeCount()) return false; + if (getMaxNodeCount() != other.getMaxNodeCount()) return false; + if (getAutoprovisioned() != other.getAutoprovisioned()) 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) + MIN_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMinNodeCount(); + hash = (37 * hash) + MAX_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxNodeCount(); + hash = (37 * hash) + AUTOPROVISIONED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoprovisioned()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.NodePoolAutoscaling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * NodePoolAutoscaling contains information required by cluster autoscaler to
+   * adjust the size of the node pool to the current cluster usage.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePoolAutoscaling} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePoolAutoscaling) + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePoolAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePoolAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePoolAutoscaling.class, + com.google.container.v1beta1.NodePoolAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodePoolAutoscaling.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + minNodeCount_ = 0; + + maxNodeCount_ = 0; + + autoprovisioned_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodePoolAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling build() { + com.google.container.v1beta1.NodePoolAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling buildPartial() { + com.google.container.v1beta1.NodePoolAutoscaling result = + new com.google.container.v1beta1.NodePoolAutoscaling(this); + result.enabled_ = enabled_; + result.minNodeCount_ = minNodeCount_; + result.maxNodeCount_ = maxNodeCount_; + result.autoprovisioned_ = autoprovisioned_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.NodePoolAutoscaling) { + return mergeFrom((com.google.container.v1beta1.NodePoolAutoscaling) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePoolAutoscaling other) { + if (other == com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getMinNodeCount() != 0) { + setMinNodeCount(other.getMinNodeCount()); + } + if (other.getMaxNodeCount() != 0) { + setMaxNodeCount(other.getMaxNodeCount()); + } + if (other.getAutoprovisioned() != false) { + setAutoprovisioned(other.getAutoprovisioned()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NodePoolAutoscaling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NodePoolAutoscaling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Is autoscaling enabled for this 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; + } + /** + * + * + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private int minNodeCount_; + /** + * + * + *
+     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+     * max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + * + * @return The minNodeCount. + */ + @java.lang.Override + public int getMinNodeCount() { + return minNodeCount_; + } + /** + * + * + *
+     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+     * max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + * + * @param value The minNodeCount to set. + * @return This builder for chaining. + */ + public Builder setMinNodeCount(int value) { + + minNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+     * max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearMinNodeCount() { + + minNodeCount_ = 0; + onChanged(); + return this; + } + + private int maxNodeCount_; + /** + * + * + *
+     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+     * has to enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + * + * @return The maxNodeCount. + */ + @java.lang.Override + public int getMaxNodeCount() { + return maxNodeCount_; + } + /** + * + * + *
+     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+     * has to enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + * + * @param value The maxNodeCount to set. + * @return This builder for chaining. + */ + public Builder setMaxNodeCount(int value) { + + maxNodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+     * has to enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxNodeCount() { + + maxNodeCount_ = 0; + onChanged(); + return this; + } + + private boolean autoprovisioned_; + /** + * + * + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * + * @return The autoprovisioned. + */ + @java.lang.Override + public boolean getAutoprovisioned() { + return autoprovisioned_; + } + /** + * + * + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * + * @param value The autoprovisioned to set. + * @return This builder for chaining. + */ + public Builder setAutoprovisioned(boolean value) { + + autoprovisioned_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * + * @return This builder for chaining. + */ + public Builder clearAutoprovisioned() { + + autoprovisioned_ = 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.NodePoolAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePoolAutoscaling) + private static final com.google.container.v1beta1.NodePoolAutoscaling DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePoolAutoscaling(); + } + + public static com.google.container.v1beta1.NodePoolAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePoolAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodePoolAutoscaling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/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 new file mode 100644 index 00000000..a0118fb1 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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 NodePoolAutoscalingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePoolAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Is autoscaling enabled for this node pool.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+   * Minimum number of nodes in the NodePool. Must be >= 1 and <=
+   * max_node_count.
+   * 
+ * + * int32 min_node_count = 2; + * + * @return The minNodeCount. + */ + int getMinNodeCount(); + + /** + * + * + *
+   * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
+   * has to enough quota to scale up the cluster.
+   * 
+ * + * int32 max_node_count = 3; + * + * @return The maxNodeCount. + */ + int getMaxNodeCount(); + + /** + * + * + *
+   * Can this node pool be deleted automatically.
+   * 
+ * + * bool autoprovisioned = 4; + * + * @return The autoprovisioned. + */ + boolean getAutoprovisioned(); +} 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 new file mode 100644 index 00000000..92ff5a7f --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java @@ -0,0 +1,556 @@ +/* + * 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 NodePoolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the node pool.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + * + * @return The config. + */ + com.google.container.v1beta1.NodeConfig getConfig(); + /** + * + * + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + com.google.container.v1beta1.NodeConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
+   * The initial node count for the pool. You must ensure that your
+   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
+   * is sufficient for this number of instances. You must also have available
+   * firewall and routes quota.
+   * 
+ * + * int32 initial_node_count = 3; + * + * @return The initialNodeCount. + */ + int getInitialNodeCount(); + + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + java.util.List getLocationsList(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + int getLocationsCount(); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + java.lang.String getLocations(int index); + /** + * + * + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * NodePool's nodes should be located.
+   * If this value is unspecified during node pool creation, the
+   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
+   * value will be used, instead.
+   * Warning: changing node pool locations will result in nodes being added
+   * and/or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + com.google.protobuf.ByteString getLocationsBytes(int index); + + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + /** + * + * + *
+   * [Output only] Server-defined URL for the resource.
+   * 
+ * + * string self_link = 100; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+   * The version of the Kubernetes of this node.
+   * 
+ * + * string version = 101; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + * + * @return A list containing the instanceGroupUrls. + */ + java.util.List getInstanceGroupUrlsList(); + /** + * + * + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + * + * @return The count of instanceGroupUrls. + */ + int getInstanceGroupUrlsCount(); + /** + * + * + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + * + * @param index The index of the element to return. + * @return The instanceGroupUrls at the given index. + */ + java.lang.String getInstanceGroupUrls(int index); + /** + * + * + *
+   * [Output only] The resource URLs of the [managed instance
+   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
+   * associated with this node pool.
+   * 
+ * + * repeated string instance_group_urls = 102; + * + * @param index The index of the value to return. + * @return The bytes of the instanceGroupUrls at the given index. + */ + com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index); + + /** + * + * + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1beta1.NodePool.Status status = 103; + * + * @return The status. + */ + com.google.container.v1beta1.NodePool.Status getStatus(); + + /** + * + * + *
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
+   * node pool instance, if available.
+   * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @return The statusMessage. + */ + @java.lang.Deprecated + java.lang.String getStatusMessage(); + /** + * + * + *
+   * [Output only] Deprecated. Use conditions instead.
+   * Additional information about the current status of this
+   * node pool instance, if available.
+   * 
+ * + * string status_message = 104 [deprecated = true]; + * + * @return The bytes for statusMessage. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + * + * @return Whether the autoscaling field is set. + */ + boolean hasAutoscaling(); + /** + * + * + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + * + * @return The autoscaling. + */ + com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling(); + /** + * + * + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 4; + */ + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + * + * @return Whether the management field is set. + */ + boolean hasManagement(); + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + * + * @return The management. + */ + com.google.container.v1beta1.NodeManagement getManagement(); + /** + * + * + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + * + * + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + * + * @return Whether the maxPodsConstraint field is set. + */ + boolean hasMaxPodsConstraint(); + /** + * + * + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + * + * @return The maxPodsConstraint. + */ + com.google.container.v1beta1.MaxPodsConstraint getMaxPodsConstraint(); + /** + * + * + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1beta1.MaxPodsConstraint max_pods_constraint = 6; + */ + com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder(); + + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + java.util.List getConditionsList(); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + com.google.container.v1beta1.StatusCondition getConditions(int index); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + int getConditionsCount(); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + java.util.List + getConditionsOrBuilderList(); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 105; + */ + com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder(int index); + + /** + * + * + *
+   * [Output only] The pod CIDR block size per node in this node pool.
+   * 
+ * + * int32 pod_ipv4_cidr_size = 7; + * + * @return The podIpv4CidrSize. + */ + int getPodIpv4CidrSize(); + + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return Whether the upgradeSettings field is set. + */ + boolean hasUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + * + * @return The upgradeSettings. + */ + com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaint.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaint.java new file mode 100644 index 00000000..634443fa --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaint.java @@ -0,0 +1,1149 @@ +/* + * 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; + +/** + * + * + *
+ * Kubernetes taint is comprised of three fields: key, value, and effect. Effect
+ * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
+ * See
+ * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
+ * for more information, including usage and the valid values.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeTaint} + */ +public final class NodeTaint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeTaint) + NodeTaintOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeTaint.newBuilder() to construct. + private NodeTaint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeTaint() { + key_ = ""; + value_ = ""; + effect_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeTaint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NodeTaint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + effect_ = rawValue; + break; + } + default: + { + if (!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_NodeTaint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeTaint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeTaint.class, + com.google.container.v1beta1.NodeTaint.Builder.class); + } + + /** + * + * + *
+   * Possible values for Effect in taint.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodeTaint.Effect} + */ + public enum Effect implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set
+     * 
+ * + * EFFECT_UNSPECIFIED = 0; + */ + EFFECT_UNSPECIFIED(0), + /** + * + * + *
+     * NoSchedule
+     * 
+ * + * NO_SCHEDULE = 1; + */ + NO_SCHEDULE(1), + /** + * + * + *
+     * PreferNoSchedule
+     * 
+ * + * PREFER_NO_SCHEDULE = 2; + */ + PREFER_NO_SCHEDULE(2), + /** + * + * + *
+     * NoExecute
+     * 
+ * + * NO_EXECUTE = 3; + */ + NO_EXECUTE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set
+     * 
+ * + * EFFECT_UNSPECIFIED = 0; + */ + public static final int EFFECT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * NoSchedule
+     * 
+ * + * NO_SCHEDULE = 1; + */ + public static final int NO_SCHEDULE_VALUE = 1; + /** + * + * + *
+     * PreferNoSchedule
+     * 
+ * + * PREFER_NO_SCHEDULE = 2; + */ + public static final int PREFER_NO_SCHEDULE_VALUE = 2; + /** + * + * + *
+     * NoExecute
+     * 
+ * + * NO_EXECUTE = 3; + */ + public static final int NO_EXECUTE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @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 Effect 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 Effect forNumber(int value) { + switch (value) { + case 0: + return EFFECT_UNSPECIFIED; + case 1: + return NO_SCHEDULE; + case 2: + return PREFER_NO_SCHEDULE; + case 3: + return NO_EXECUTE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Effect findValueByNumber(int number) { + return Effect.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.NodeTaint.getDescriptor().getEnumTypes().get(0); + } + + private static final Effect[] VALUES = values(); + + public static Effect valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Effect(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodeTaint.Effect) + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * + * + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * + * + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + * + * + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECT_FIELD_NUMBER = 3; + private int effect_; + /** + * + * + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return The enum numeric value on the wire for effect. + */ + @java.lang.Override + public int getEffectValue() { + return effect_; + } + /** + * + * + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return The effect. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeTaint.Effect getEffect() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodeTaint.Effect result = + com.google.container.v1beta1.NodeTaint.Effect.valueOf(effect_); + return result == null ? com.google.container.v1beta1.NodeTaint.Effect.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (effect_ != com.google.container.v1beta1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { + output.writeEnum(3, effect_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (effect_ != com.google.container.v1beta1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, effect_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.NodeTaint)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodeTaint other = (com.google.container.v1beta1.NodeTaint) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) return false; + if (effect_ != other.effect_) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + EFFECT_FIELD_NUMBER; + hash = (53 * hash) + effect_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodeTaint parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodeTaint parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeTaint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodeTaint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeTaint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NodeTaint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeTaint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeTaint parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeTaint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeTaint parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeTaint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeTaint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.NodeTaint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Kubernetes taint is comprised of three fields: key, value, and effect. Effect
+   * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
+   * See
+   * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
+   * for more information, including usage and the valid values.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeTaint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeTaint) + com.google.container.v1beta1.NodeTaintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeTaint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeTaint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeTaint.class, + com.google.container.v1beta1.NodeTaint.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodeTaint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + effect_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NodeTaint_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaint getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeTaint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaint build() { + com.google.container.v1beta1.NodeTaint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaint buildPartial() { + com.google.container.v1beta1.NodeTaint result = + new com.google.container.v1beta1.NodeTaint(this); + result.key_ = key_; + result.value_ = value_; + result.effect_ = effect_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.NodeTaint) { + return mergeFrom((com.google.container.v1beta1.NodeTaint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeTaint other) { + if (other == com.google.container.v1beta1.NodeTaint.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (other.effect_ != 0) { + setEffectValue(other.getEffectValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.NodeTaint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NodeTaint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private int effect_ = 0; + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return The enum numeric value on the wire for effect. + */ + @java.lang.Override + public int getEffectValue() { + return effect_; + } + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @param value The enum numeric value on the wire for effect to set. + * @return This builder for chaining. + */ + public Builder setEffectValue(int value) { + + effect_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return The effect. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeTaint.Effect getEffect() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.NodeTaint.Effect result = + com.google.container.v1beta1.NodeTaint.Effect.valueOf(effect_); + return result == null ? com.google.container.v1beta1.NodeTaint.Effect.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @param value The effect to set. + * @return This builder for chaining. + */ + public Builder setEffect(com.google.container.v1beta1.NodeTaint.Effect value) { + if (value == null) { + throw new NullPointerException(); + } + + effect_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return This builder for chaining. + */ + public Builder clearEffect() { + + effect_ = 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.NodeTaint) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeTaint) + private static final com.google.container.v1beta1.NodeTaint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeTaint(); + } + + public static com.google.container.v1beta1.NodeTaint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeTaint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeTaint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java new file mode 100644 index 00000000..63015cdf --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NodeTaintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeTaint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
+   * Key for taint.
+   * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * Value for taint.
+   * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return The enum numeric value on the wire for effect. + */ + int getEffectValue(); + /** + * + * + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * + * @return The effect. + */ + com.google.container.v1beta1.NodeTaint.Effect getEffect(); +} 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 new file mode 100644 index 00000000..46e13762 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java @@ -0,0 +1,1499 @@ +/* + * 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; + +/** + * + * + *
+ * NotificationConfig is the configuration of notifications.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NotificationConfig} + */ +public final class NotificationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.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.v1beta1.NotificationConfig.PubSub.Builder subBuilder = null; + if (pubsub_ != null) { + subBuilder = pubsub_.toBuilder(); + } + pubsub_ = + input.readMessage( + com.google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NotificationConfig.class, + com.google.container.v1beta1.NotificationConfig.Builder.class); + } + + public interface PubSubOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.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(); + } + /** + * + * + *
+   * Pub/Sub specific notification config.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NotificationConfig.PubSub} + */ + public static final class PubSub extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.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; + } + 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_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_PubSub_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NotificationConfig.PubSub.class, + com.google.container.v1beta1.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; + } + } + + 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 (!getTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); + } + 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 (!getTopicBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); + } + 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.PubSub)) { + return super.equals(obj); + } + com.google.container.v1beta1.NotificationConfig.PubSub other = + (com.google.container.v1beta1.NotificationConfig.PubSub) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getTopic().equals(other.getTopic())) 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(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NotificationConfig.PubSub parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.NotificationConfig.PubSub parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.NotificationConfig.PubSub parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.NotificationConfig.PubSub parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.NotificationConfig.PubSub parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.NotificationConfig.PubSub} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NotificationConfig.PubSub) + com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_PubSub_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NotificationConfig.PubSub.class, + com.google.container.v1beta1.NotificationConfig.PubSub.Builder.class); + } + + // Construct using com.google.container.v1beta1.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_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.PubSub getDefaultInstanceForType() { + return com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.PubSub build() { + com.google.container.v1beta1.NotificationConfig.PubSub result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.PubSub buildPartial() { + com.google.container.v1beta1.NotificationConfig.PubSub result = + new com.google.container.v1beta1.NotificationConfig.PubSub(this); + result.enabled_ = enabled_; + result.topic_ = topic_; + 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.PubSub) { + return mergeFrom((com.google.container.v1beta1.NotificationConfig.PubSub) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NotificationConfig.PubSub other) { + if (other == com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + 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.PubSub parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.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; + } + + @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() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.PubSub getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int PUBSUB_FIELD_NUMBER = 1; + private com.google.container.v1beta1.NotificationConfig.PubSub pubsub_; + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.NotificationConfig.PubSub pubsub = 1; + * + * @return The pubsub. + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.PubSub getPubsub() { + return pubsub_ == null + ? com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance() + : pubsub_; + } + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.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.v1beta1.NotificationConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NotificationConfig other = + (com.google.container.v1beta1.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.v1beta1.NotificationConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.NotificationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.NotificationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.NotificationConfig 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 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.NotificationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.NotificationConfig 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 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 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.v1beta1.NotificationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NotificationConfig) + com.google.container.v1beta1.NotificationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NotificationConfig.class, + com.google.container.v1beta1.NotificationConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_NotificationConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NotificationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig build() { + com.google.container.v1beta1.NotificationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig buildPartial() { + com.google.container.v1beta1.NotificationConfig result = + new com.google.container.v1beta1.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.v1beta1.NotificationConfig) { + return mergeFrom((com.google.container.v1beta1.NotificationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NotificationConfig other) { + if (other == com.google.container.v1beta1.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.v1beta1.NotificationConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.NotificationConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1beta1.NotificationConfig.PubSub pubsub_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.PubSub, + com.google.container.v1beta1.NotificationConfig.PubSub.Builder, + com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder> + pubsubBuilder_; + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.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.v1beta1.NotificationConfig.PubSub pubsub = 1; + * + * @return The pubsub. + */ + public com.google.container.v1beta1.NotificationConfig.PubSub getPubsub() { + if (pubsubBuilder_ == null) { + return pubsub_ == null + ? com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance() + : pubsub_; + } else { + return pubsubBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder setPubsub(com.google.container.v1beta1.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.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder setPubsub( + com.google.container.v1beta1.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.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder mergePubsub(com.google.container.v1beta1.NotificationConfig.PubSub value) { + if (pubsubBuilder_ == null) { + if (pubsub_ != null) { + pubsub_ = + com.google.container.v1beta1.NotificationConfig.PubSub.newBuilder(pubsub_) + .mergeFrom(value) + .buildPartial(); + } else { + pubsub_ = value; + } + onChanged(); + } else { + pubsubBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.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.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public com.google.container.v1beta1.NotificationConfig.PubSub.Builder getPubsubBuilder() { + + onChanged(); + return getPubsubFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { + if (pubsubBuilder_ != null) { + return pubsubBuilder_.getMessageOrBuilder(); + } else { + return pubsub_ == null + ? com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance() + : pubsub_; + } + } + /** + * + * + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.PubSub, + com.google.container.v1beta1.NotificationConfig.PubSub.Builder, + com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder> + getPubsubFieldBuilder() { + if (pubsubBuilder_ == null) { + pubsubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.PubSub, + com.google.container.v1beta1.NotificationConfig.PubSub.Builder, + com.google.container.v1beta1.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.v1beta1.NotificationConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NotificationConfig) + private static final com.google.container.v1beta1.NotificationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NotificationConfig(); + } + + public static com.google.container.v1beta1.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.v1beta1.NotificationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfigOrBuilder.java new file mode 100644 index 00000000..391cc1eb --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface NotificationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NotificationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + * + * @return Whether the pubsub field is set. + */ + boolean hasPubsub(); + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + * + * @return The pubsub. + */ + com.google.container.v1beta1.NotificationConfig.PubSub getPubsub(); + /** + * + * + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + com.google.container.v1beta1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java new file mode 100644 index 00000000..59ab291e --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java @@ -0,0 +1,4881 @@ +/* + * 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; + +/** + * + * + *
+ * This operation resource represents operations that may have happened or are
+ * happening on the cluster. All fields are output only.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Operation} + */ +public final class Operation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Operation) + OperationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Operation.newBuilder() to construct. + private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Operation() { + name_ = ""; + zone_ = ""; + operationType_ = 0; + status_ = 0; + detail_ = ""; + statusMessage_ = ""; + selfLink_ = ""; + targetLink_ = ""; + location_ = ""; + startTime_ = ""; + endTime_ = ""; + clusterConditions_ = java.util.Collections.emptyList(); + nodepoolConditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Operation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Operation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + operationType_ = rawValue; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + selfLink_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + targetLink_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + detail_ = s; + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + location_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + startTime_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + + endTime_ = s; + break; + } + case 98: + { + com.google.container.v1beta1.OperationProgress.Builder subBuilder = null; + if (progress_ != null) { + subBuilder = progress_.toBuilder(); + } + progress_ = + input.readMessage( + com.google.container.v1beta1.OperationProgress.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(progress_); + progress_ = subBuilder.buildPartial(); + } + + break; + } + case 106: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + clusterConditions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + clusterConditions_.add( + input.readMessage( + com.google.container.v1beta1.StatusCondition.parser(), extensionRegistry)); + break; + } + case 114: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + nodepoolConditions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + nodepoolConditions_.add( + input.readMessage( + com.google.container.v1beta1.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)) { + 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)) { + clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Operation.class, + com.google.container.v1beta1.Operation.Builder.class); + } + + /** + * + * + *
+   * Current status of the operation.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Operation.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * The operation has been created.
+     * 
+ * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
+     * The operation is currently running.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * The operation is done, either cancelled or completed.
+     * 
+ * + * DONE = 3; + */ + DONE(3), + /** + * + * + *
+     * The operation is aborting.
+     * 
+ * + * ABORTING = 4; + */ + ABORTING(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The operation has been created.
+     * 
+ * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + /** + * + * + *
+     * The operation is currently running.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * + * + *
+     * The operation is done, either cancelled or completed.
+     * 
+ * + * DONE = 3; + */ + public static final int DONE_VALUE = 3; + /** + * + * + *
+     * The operation is aborting.
+     * 
+ * + * ABORTING = 4; + */ + public static final int ABORTING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return RUNNING; + case 3: + return DONE; + case 4: + return ABORTING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.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.Operation.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.Operation.Status) + } + + /** + * + * + *
+   * Operation type.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Operation.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Cluster create.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + CREATE_CLUSTER(1), + /** + * + * + *
+     * Cluster delete.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + DELETE_CLUSTER(2), + /** + * + * + *
+     * A master upgrade.
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + UPGRADE_MASTER(3), + /** + * + * + *
+     * A node upgrade.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + UPGRADE_NODES(4), + /** + * + * + *
+     * Cluster repair.
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + REPAIR_CLUSTER(5), + /** + * + * + *
+     * Cluster update.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + UPDATE_CLUSTER(6), + /** + * + * + *
+     * Node pool create.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + CREATE_NODE_POOL(7), + /** + * + * + *
+     * Node pool delete.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + DELETE_NODE_POOL(8), + /** + * + * + *
+     * Set node pool management.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + SET_NODE_POOL_MANAGEMENT(9), + /** + * + * + *
+     * Automatic node pool repair.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + AUTO_REPAIR_NODES(10), + /** + * + * + *
+     * Automatic node upgrade.
+     * 
+ * + * AUTO_UPGRADE_NODES = 11; + */ + AUTO_UPGRADE_NODES(11), + /** + * + * + *
+     * Set labels.
+     * 
+ * + * SET_LABELS = 12; + */ + SET_LABELS(12), + /** + * + * + *
+     * Set/generate master auth materials
+     * 
+ * + * SET_MASTER_AUTH = 13; + */ + SET_MASTER_AUTH(13), + /** + * + * + *
+     * Set node pool size.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + SET_NODE_POOL_SIZE(14), + /** + * + * + *
+     * Updates network policy for a cluster.
+     * 
+ * + * SET_NETWORK_POLICY = 15; + */ + SET_NETWORK_POLICY(15), + /** + * + * + *
+     * Set the maintenance policy.
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16; + */ + SET_MAINTENANCE_POLICY(16), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Cluster create.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + public static final int CREATE_CLUSTER_VALUE = 1; + /** + * + * + *
+     * Cluster delete.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + public static final int DELETE_CLUSTER_VALUE = 2; + /** + * + * + *
+     * A master upgrade.
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + public static final int UPGRADE_MASTER_VALUE = 3; + /** + * + * + *
+     * A node upgrade.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + public static final int UPGRADE_NODES_VALUE = 4; + /** + * + * + *
+     * Cluster repair.
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + public static final int REPAIR_CLUSTER_VALUE = 5; + /** + * + * + *
+     * Cluster update.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + public static final int UPDATE_CLUSTER_VALUE = 6; + /** + * + * + *
+     * Node pool create.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + public static final int CREATE_NODE_POOL_VALUE = 7; + /** + * + * + *
+     * Node pool delete.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + public static final int DELETE_NODE_POOL_VALUE = 8; + /** + * + * + *
+     * Set node pool management.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9; + /** + * + * + *
+     * Automatic node pool repair.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + public static final int AUTO_REPAIR_NODES_VALUE = 10; + /** + * + * + *
+     * Automatic node upgrade.
+     * 
+ * + * AUTO_UPGRADE_NODES = 11; + */ + public static final int AUTO_UPGRADE_NODES_VALUE = 11; + /** + * + * + *
+     * Set labels.
+     * 
+ * + * SET_LABELS = 12; + */ + public static final int SET_LABELS_VALUE = 12; + /** + * + * + *
+     * Set/generate master auth materials
+     * 
+ * + * SET_MASTER_AUTH = 13; + */ + public static final int SET_MASTER_AUTH_VALUE = 13; + /** + * + * + *
+     * Set node pool size.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + public static final int SET_NODE_POOL_SIZE_VALUE = 14; + /** + * + * + *
+     * Updates network policy for a cluster.
+     * 
+ * + * SET_NETWORK_POLICY = 15; + */ + public static final int SET_NETWORK_POLICY_VALUE = 15; + /** + * + * + *
+     * Set the maintenance policy.
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16; + */ + public static final int SET_MAINTENANCE_POLICY_VALUE = 16; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @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 CREATE_CLUSTER; + case 2: + return DELETE_CLUSTER; + case 3: + return UPGRADE_MASTER; + case 4: + return UPGRADE_NODES; + case 5: + return REPAIR_CLUSTER; + case 6: + return UPDATE_CLUSTER; + case 7: + return CREATE_NODE_POOL; + case 8: + return DELETE_NODE_POOL; + case 9: + return SET_NODE_POOL_MANAGEMENT; + case 10: + return AUTO_REPAIR_NODES; + case 11: + return AUTO_UPGRADE_NODES; + case 12: + return SET_LABELS; + case 13: + return SET_MASTER_AUTH; + case 14: + return SET_NODE_POOL_SIZE; + case 15: + return SET_NETWORK_POLICY; + case 16: + return SET_MAINTENANCE_POLICY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap 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.Operation.getDescriptor().getEnumTypes().get(1); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.Operation.Type) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation is taking place. This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation is taking place. This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 3; + private int operationType_; + /** + * + * + *
+   * The operation type.
+   * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @return The enum numeric value on the wire for operationType. + */ + @java.lang.Override + public int getOperationTypeValue() { + return operationType_; + } + /** + * + * + *
+   * The operation type.
+   * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @return The operationType. + */ + @java.lang.Override + public com.google.container.v1beta1.Operation.Type getOperationType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Type result = + com.google.container.v1beta1.Operation.Type.valueOf(operationType_); + return result == null ? com.google.container.v1beta1.Operation.Type.UNRECOGNIZED : result; + } + + public static final int STATUS_FIELD_NUMBER = 4; + private int status_; + /** + * + * + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Status result = + com.google.container.v1beta1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int DETAIL_FIELD_NUMBER = 8; + private volatile java.lang.Object detail_; + /** + * + * + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + * + * @return The detail. + */ + @java.lang.Override + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } + } + /** + * + * + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + * + * @return The bytes for detail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object statusMessage_; + /** + * + * + *
+   * 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]; + * + * + * @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) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. 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]; + * + * + * @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) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELF_LINK_FIELD_NUMBER = 6; + private volatile java.lang.Object selfLink_; + /** + * + * + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + * + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } + } + /** + * + * + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + * + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_LINK_FIELD_NUMBER = 7; + private volatile java.lang.Object targetLink_; + /** + * + * + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + * + * @return The targetLink. + */ + @java.lang.Override + public java.lang.String getTargetLink() { + java.lang.Object ref = targetLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLink_ = s; + return s; + } + } + /** + * + * + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + * + * @return The bytes for targetLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetLinkBytes() { + java.lang.Object ref = targetLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 9; + private volatile java.lang.Object location_; + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 9; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 9; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 10; + private volatile java.lang.Object startTime_; + /** + * + * + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + * + * @return The startTime. + */ + @java.lang.Override + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + * + * @return The bytes for startTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int END_TIME_FIELD_NUMBER = 11; + private volatile java.lang.Object endTime_; + /** + * + * + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + * + * @return The endTime. + */ + @java.lang.Override + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endTime_ = s; + return s; + } + } + /** + * + * + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + * + * @return The bytes for endTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROGRESS_FIELD_NUMBER = 12; + private com.google.container.v1beta1.OperationProgress progress_; + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + @java.lang.Override + public boolean hasProgress() { + return progress_ != null; + } + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + @java.lang.Override + public com.google.container.v1beta1.OperationProgress getProgress() { + return progress_ == null + ? com.google.container.v1beta1.OperationProgress.getDefaultInstance() + : progress_; + } + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuilder() { + return getProgress(); + } + + public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; + private java.util.List clusterConditions_; + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List getClusterConditionsList() { + return clusterConditions_; + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List + getClusterConditionsOrBuilderList() { + return clusterConditions_; + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getClusterConditionsCount() { + return clusterConditions_.size(); + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition getClusterConditions(int index) { + return clusterConditions_.get(index); + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index) { + return clusterConditions_.get(index); + } + + public static final int NODEPOOL_CONDITIONS_FIELD_NUMBER = 14; + private java.util.List nodepoolConditions_; + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List getNodepoolConditionsList() { + return nodepoolConditions_; + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List + getNodepoolConditionsOrBuilderList() { + return nodepoolConditions_; + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getNodepoolConditionsCount() { + return nodepoolConditions_.size(); + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition getNodepoolConditions(int index) { + return nodepoolConditions_.get(index); + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (operationType_ + != com.google.container.v1beta1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, operationType_); + } + if (status_ != com.google.container.v1beta1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(4, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (!getSelfLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, selfLink_); + } + if (!getTargetLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetLink_); + } + if (!getDetailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, detail_); + } + if (!getLocationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, location_); + } + if (!getStartTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_); + } + if (!getEndTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endTime_); + } + if (progress_ != null) { + output.writeMessage(12, getProgress()); + } + for (int i = 0; i < clusterConditions_.size(); i++) { + output.writeMessage(13, clusterConditions_.get(i)); + } + for (int i = 0; i < nodepoolConditions_.size(); i++) { + output.writeMessage(14, nodepoolConditions_.get(i)); + } + if (error_ != null) { + output.writeMessage(15, getError()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (operationType_ + != com.google.container.v1beta1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, operationType_); + } + if (status_ != com.google.container.v1beta1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, status_); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (!getSelfLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, selfLink_); + } + if (!getTargetLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, targetLink_); + } + if (!getDetailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, detail_); + } + if (!getLocationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, location_); + } + if (!getStartTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_); + } + if (!getEndTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endTime_); + } + if (progress_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getProgress()); + } + for (int i = 0; i < clusterConditions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, clusterConditions_.get(i)); + } + for (int i = 0; i < nodepoolConditions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, nodepoolConditions_.get(i)); + } + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getError()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.Operation)) { + return super.equals(obj); + } + com.google.container.v1beta1.Operation other = (com.google.container.v1beta1.Operation) obj; + + if (!getName().equals(other.getName())) return false; + if (!getZone().equals(other.getZone())) return false; + if (operationType_ != other.operationType_) return false; + if (status_ != other.status_) return false; + if (!getDetail().equals(other.getDetail())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (!getSelfLink().equals(other.getSelfLink())) return false; + if (!getTargetLink().equals(other.getTargetLink())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + if (hasProgress() != other.hasProgress()) return false; + if (hasProgress()) { + if (!getProgress().equals(other.getProgress())) return false; + } + if (!getClusterConditionsList().equals(other.getClusterConditionsList())) return false; + if (!getNodepoolConditionsList().equals(other.getNodepoolConditionsList())) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + operationType_; + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getDetail().hashCode(); + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + TARGET_LINK_FIELD_NUMBER; + hash = (53 * hash) + getTargetLink().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + if (hasProgress()) { + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + getProgress().hashCode(); + } + if (getClusterConditionsCount() > 0) { + hash = (37 * hash) + CLUSTER_CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getClusterConditionsList().hashCode(); + } + if (getNodepoolConditionsCount() > 0) { + hash = (37 * hash) + NODEPOOL_CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getNodepoolConditionsList().hashCode(); + } + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.Operation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Operation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Operation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Operation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Operation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.Operation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.Operation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Operation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.Operation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Operation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.Operation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Operation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.Operation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * This operation resource represents operations that may have happened or are
+   * happening on the cluster. All fields are output only.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.Operation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.Operation) + com.google.container.v1beta1.OperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Operation.class, + com.google.container.v1beta1.Operation.Builder.class); + } + + // Construct using com.google.container.v1beta1.Operation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getClusterConditionsFieldBuilder(); + getNodepoolConditionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + zone_ = ""; + + operationType_ = 0; + + status_ = 0; + + detail_ = ""; + + statusMessage_ = ""; + + selfLink_ = ""; + + targetLink_ = ""; + + location_ = ""; + + startTime_ = ""; + + endTime_ = ""; + + if (progressBuilder_ == null) { + progress_ = null; + } else { + progress_ = null; + progressBuilder_ = null; + } + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + clusterConditionsBuilder_.clear(); + } + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + nodepoolConditionsBuilder_.clear(); + } + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_Operation_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Operation getDefaultInstanceForType() { + return com.google.container.v1beta1.Operation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Operation build() { + com.google.container.v1beta1.Operation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Operation buildPartial() { + com.google.container.v1beta1.Operation result = + new com.google.container.v1beta1.Operation(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.zone_ = zone_; + result.operationType_ = operationType_; + result.status_ = status_; + result.detail_ = detail_; + result.statusMessage_ = statusMessage_; + result.selfLink_ = selfLink_; + result.targetLink_ = targetLink_; + result.location_ = location_; + result.startTime_ = startTime_; + result.endTime_ = endTime_; + if (progressBuilder_ == null) { + result.progress_ = progress_; + } else { + result.progress_ = progressBuilder_.build(); + } + if (clusterConditionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clusterConditions_ = clusterConditions_; + } else { + result.clusterConditions_ = clusterConditionsBuilder_.build(); + } + if (nodepoolConditionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.nodepoolConditions_ = nodepoolConditions_; + } else { + result.nodepoolConditions_ = nodepoolConditionsBuilder_.build(); + } + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.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.Operation) { + return mergeFrom((com.google.container.v1beta1.Operation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Operation other) { + if (other == com.google.container.v1beta1.Operation.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getDetail().isEmpty()) { + detail_ = other.detail_; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + onChanged(); + } + if (!other.getTargetLink().isEmpty()) { + targetLink_ = other.targetLink_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (!other.getStartTime().isEmpty()) { + startTime_ = other.startTime_; + onChanged(); + } + if (!other.getEndTime().isEmpty()) { + endTime_ = other.endTime_; + onChanged(); + } + if (other.hasProgress()) { + mergeProgress(other.getProgress()); + } + if (clusterConditionsBuilder_ == null) { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditions_.isEmpty()) { + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureClusterConditionsIsMutable(); + clusterConditions_.addAll(other.clusterConditions_); + } + onChanged(); + } + } else { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditionsBuilder_.isEmpty()) { + clusterConditionsBuilder_.dispose(); + clusterConditionsBuilder_ = null; + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00000001); + clusterConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClusterConditionsFieldBuilder() + : null; + } else { + clusterConditionsBuilder_.addAllMessages(other.clusterConditions_); + } + } + } + if (nodepoolConditionsBuilder_ == null) { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditions_.isEmpty()) { + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.addAll(other.nodepoolConditions_); + } + onChanged(); + } + } else { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditionsBuilder_.isEmpty()) { + nodepoolConditionsBuilder_.dispose(); + nodepoolConditionsBuilder_ = null; + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00000002); + nodepoolConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodepoolConditionsFieldBuilder() + : null; + } else { + nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_); + } + } + } + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.Operation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.Operation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * operation is taking place. This field is deprecated, use location instead.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private int operationType_ = 0; + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @return The enum numeric value on the wire for operationType. + */ + @java.lang.Override + public int getOperationTypeValue() { + return operationType_; + } + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @param value The enum numeric value on the wire for operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationTypeValue(int value) { + + operationType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @return The operationType. + */ + @java.lang.Override + public com.google.container.v1beta1.Operation.Type getOperationType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Type result = + com.google.container.v1beta1.Operation.Type.valueOf(operationType_); + return result == null ? com.google.container.v1beta1.Operation.Type.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @param value The operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationType(com.google.container.v1beta1.Operation.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + operationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type.
+     * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearOperationType() { + + operationType_ = 0; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @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; + } + /** + * + * + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Status result = + com.google.container.v1beta1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1beta1.Operation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object detail_ = ""; + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @return The detail. + */ + public java.lang.String getDetail() { + java.lang.Object ref = detail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @return The bytes for detail. + */ + public com.google.protobuf.ByteString getDetailBytes() { + java.lang.Object ref = detail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + detail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @param value The detail to set. + * @return This builder for chaining. + */ + public Builder setDetail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + detail_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @return This builder for chaining. + */ + public Builder clearDetail() { + + detail_ = getDefaultInstance().getDetail(); + onChanged(); + return this; + } + /** + * + * + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * + * @param value The bytes for detail to set. + * @return This builder for chaining. + */ + public Builder setDetailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + detail_ = value; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The statusMessage. + */ + @java.lang.Deprecated + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. 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]; + * + * + * @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. 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]; + * + * + * @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; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @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(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + selfLink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + + selfLink_ = getDefaultInstance().getSelfLink(); + onChanged(); + return this; + } + /** + * + * + *
+     * Server-defined URL for the resource.
+     * 
+ * + * string self_link = 6; + * + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + selfLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetLink_ = ""; + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @return The targetLink. + */ + public java.lang.String getTargetLink() { + java.lang.Object ref = targetLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @return The bytes for targetLink. + */ + public com.google.protobuf.ByteString getTargetLinkBytes() { + java.lang.Object ref = targetLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @param value The targetLink to set. + * @return This builder for chaining. + */ + public Builder setTargetLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetLink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @return This builder for chaining. + */ + public Builder clearTargetLink() { + + targetLink_ = getDefaultInstance().getTargetLink(); + onChanged(); + return this; + } + /** + * + * + *
+     * Server-defined URL for the target of the operation.
+     * 
+ * + * string target_link = 7; + * + * @param value The bytes for targetLink to set. + * @return This builder for chaining. + */ + public Builder setTargetLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetLink_ = value; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * or
+     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+     * in which the cluster resides.
+     * 
+ * + * string location = 9; + * + * @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 = 9; + * + * @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 = 9; + * + * @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 = 9; + * + * @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 = 9; + * + * @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 java.lang.Object startTime_ = ""; + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @return The startTime. + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @return The bytes for startTime. + */ + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + startTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @return This builder for chaining. + */ + public Builder clearStartTime() { + + startTime_ = getDefaultInstance().getStartTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the operation started, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string start_time = 10; + * + * @param value The bytes for startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + startTime_ = value; + onChanged(); + return this; + } + + private java.lang.Object endTime_ = ""; + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @return The endTime. + */ + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @return The bytes for endTime. + */ + public com.google.protobuf.ByteString getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @param value The endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @return This builder for chaining. + */ + public Builder clearEndTime() { + + endTime_ = getDefaultInstance().getEndTime(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The time the operation completed, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * 
+ * + * string end_time = 11; + * + * @param value The bytes for endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endTime_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.OperationProgress progress_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, + com.google.container.v1beta1.OperationProgress.Builder, + com.google.container.v1beta1.OperationProgressOrBuilder> + progressBuilder_; + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + public boolean hasProgress() { + return progressBuilder_ != null || progress_ != null; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + public com.google.container.v1beta1.OperationProgress getProgress() { + if (progressBuilder_ == null) { + return progress_ == null + ? com.google.container.v1beta1.OperationProgress.getDefaultInstance() + : progress_; + } else { + return progressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProgress(com.google.container.v1beta1.OperationProgress value) { + if (progressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progress_ = value; + onChanged(); + } else { + progressBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProgress( + com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (progressBuilder_ == null) { + progress_ = builderForValue.build(); + onChanged(); + } else { + progressBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeProgress(com.google.container.v1beta1.OperationProgress value) { + if (progressBuilder_ == null) { + if (progress_ != null) { + progress_ = + com.google.container.v1beta1.OperationProgress.newBuilder(progress_) + .mergeFrom(value) + .buildPartial(); + } else { + progress_ = value; + } + onChanged(); + } else { + progressBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProgress() { + if (progressBuilder_ == null) { + progress_ = null; + onChanged(); + } else { + progress_ = null; + progressBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.container.v1beta1.OperationProgress.Builder getProgressBuilder() { + + onChanged(); + return getProgressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuilder() { + if (progressBuilder_ != null) { + return progressBuilder_.getMessageOrBuilder(); + } else { + return progress_ == null + ? com.google.container.v1beta1.OperationProgress.getDefaultInstance() + : progress_; + } + } + /** + * + * + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, + com.google.container.v1beta1.OperationProgress.Builder, + com.google.container.v1beta1.OperationProgressOrBuilder> + getProgressFieldBuilder() { + if (progressBuilder_ == null) { + progressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, + com.google.container.v1beta1.OperationProgress.Builder, + com.google.container.v1beta1.OperationProgressOrBuilder>( + getProgress(), getParentForChildren(), isClean()); + progress_ = null; + } + return progressBuilder_; + } + + private java.util.List clusterConditions_ = + java.util.Collections.emptyList(); + + private void ensureClusterConditionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + clusterConditions_ = + new java.util.ArrayList( + clusterConditions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + clusterConditionsBuilder_; + + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List getClusterConditionsList() { + if (clusterConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusterConditions_); + } else { + return clusterConditionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public int getClusterConditionsCount() { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.size(); + } else { + return clusterConditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition getClusterConditions(int index) { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.get(index); + } else { + return clusterConditionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setClusterConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterConditionsIsMutable(); + clusterConditions_.set(index, value); + onChanged(); + } else { + clusterConditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setClusterConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.set(index, builderForValue.build()); + onChanged(); + } else { + clusterConditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addClusterConditions(com.google.container.v1beta1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterConditionsIsMutable(); + clusterConditions_.add(value); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addClusterConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterConditionsIsMutable(); + clusterConditions_.add(index, value); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addClusterConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.add(builderForValue.build()); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addClusterConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + clusterConditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAllClusterConditions( + java.lang.Iterable values) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterConditions_); + onChanged(); + } else { + clusterConditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearClusterConditions() { + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + clusterConditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder removeClusterConditions(int index) { + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.remove(index); + onChanged(); + } else { + clusterConditionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Builder getClusterConditionsBuilder( + int index) { + return getClusterConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index) { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.get(index); + } else { + return clusterConditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getClusterConditionsOrBuilderList() { + if (clusterConditionsBuilder_ != null) { + return clusterConditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusterConditions_); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Builder addClusterConditionsBuilder() { + return getClusterConditionsFieldBuilder() + .addBuilder(com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Builder addClusterConditionsBuilder( + int index) { + return getClusterConditionsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getClusterConditionsBuilderList() { + return getClusterConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + getClusterConditionsFieldBuilder() { + if (clusterConditionsBuilder_ == null) { + clusterConditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder>( + clusterConditions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + clusterConditions_ = null; + } + return clusterConditionsBuilder_; + } + + private java.util.List nodepoolConditions_ = + java.util.Collections.emptyList(); + + private void ensureNodepoolConditionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + nodepoolConditions_ = + new java.util.ArrayList( + nodepoolConditions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + nodepoolConditionsBuilder_; + + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getNodepoolConditionsList() { + if (nodepoolConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodepoolConditions_); + } else { + return nodepoolConditionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public int getNodepoolConditionsCount() { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.size(); + } else { + return nodepoolConditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition getNodepoolConditions(int index) { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.get(index); + } else { + return nodepoolConditionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setNodepoolConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.set(index, value); + onChanged(); + } else { + nodepoolConditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setNodepoolConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.set(index, builderForValue.build()); + onChanged(); + } else { + nodepoolConditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addNodepoolConditions(com.google.container.v1beta1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(value); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addNodepoolConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(index, value); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addNodepoolConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(builderForValue.build()); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addNodepoolConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + nodepoolConditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAllNodepoolConditions( + java.lang.Iterable values) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodepoolConditions_); + onChanged(); + } else { + nodepoolConditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearNodepoolConditions() { + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + nodepoolConditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder removeNodepoolConditions(int index) { + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.remove(index); + onChanged(); + } else { + nodepoolConditionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Builder getNodepoolConditionsBuilder( + int index) { + return getNodepoolConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( + int index) { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.get(index); + } else { + return nodepoolConditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getNodepoolConditionsOrBuilderList() { + if (nodepoolConditionsBuilder_ != null) { + return nodepoolConditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodepoolConditions_); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Builder addNodepoolConditionsBuilder() { + return getNodepoolConditionsFieldBuilder() + .addBuilder(com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Builder addNodepoolConditionsBuilder( + int index) { + return getNodepoolConditionsFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List + getNodepoolConditionsBuilderList() { + return getNodepoolConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder> + getNodepoolConditionsFieldBuilder() { + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, + com.google.container.v1beta1.StatusCondition.Builder, + com.google.container.v1beta1.StatusConditionOrBuilder>( + nodepoolConditions_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + nodepoolConditions_ = null; + } + 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); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.Operation) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Operation) + private static final com.google.container.v1beta1.Operation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Operation(); + } + + public static com.google.container.v1beta1.Operation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Operation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Operation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.Operation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java new file mode 100644 index 00000000..d9b59a67 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.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; + +public interface OperationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Operation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The server-assigned ID for the operation.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation is taking place. This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation is taking place. This field is deprecated, use location instead.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * The operation type.
+   * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @return The enum numeric value on the wire for operationType. + */ + int getOperationTypeValue(); + /** + * + * + *
+   * The operation type.
+   * 
+ * + * .google.container.v1beta1.Operation.Type operation_type = 3; + * + * @return The operationType. + */ + com.google.container.v1beta1.Operation.Type getOperationType(); + + /** + * + * + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 4; + * + * @return The status. + */ + com.google.container.v1beta1.Operation.Status getStatus(); + + /** + * + * + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + * + * @return The detail. + */ + java.lang.String getDetail(); + /** + * + * + *
+   * Detailed operation progress, if available.
+   * 
+ * + * string detail = 8; + * + * @return The bytes for detail. + */ + com.google.protobuf.ByteString getDetailBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @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 field error instead.
+   * 
+ * + * + * 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(); + + /** + * + * + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + * + * @return The selfLink. + */ + java.lang.String getSelfLink(); + /** + * + * + *
+   * Server-defined URL for the resource.
+   * 
+ * + * string self_link = 6; + * + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + * + * + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + * + * @return The targetLink. + */ + java.lang.String getTargetLink(); + /** + * + * + *
+   * Server-defined URL for the target of the operation.
+   * 
+ * + * string target_link = 7; + * + * @return The bytes for targetLink. + */ + com.google.protobuf.ByteString getTargetLinkBytes(); + + /** + * + * + *
+   * [Output only] The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * or
+   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
+   * in which the cluster resides.
+   * 
+ * + * string location = 9; + * + * @return The location. + */ + 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.
+   * 
+ * + * string location = 9; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + * + * @return The startTime. + */ + java.lang.String getStartTime(); + /** + * + * + *
+   * [Output only] The time the operation started, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string start_time = 10; + * + * @return The bytes for startTime. + */ + com.google.protobuf.ByteString getStartTimeBytes(); + + /** + * + * + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + * + * @return The endTime. + */ + java.lang.String getEndTime(); + /** + * + * + *
+   * [Output only] The time the operation completed, in
+   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+   * 
+ * + * string end_time = 11; + * + * @return The bytes for endTime. + */ + com.google.protobuf.ByteString getEndTimeBytes(); + + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + boolean hasProgress(); + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + com.google.container.v1beta1.OperationProgress getProgress(); + /** + * + * + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * + * .google.container.v1beta1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.container.v1beta1.OperationProgressOrBuilder getProgressOrBuilder(); + + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.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.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.container.v1beta1.StatusCondition getClusterConditions(int index); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.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.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + java.util.List + getClusterConditionsOrBuilderList(); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition cluster_conditions = 13 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.container.v1beta1.StatusConditionOrBuilder getClusterConditionsOrBuilder(int index); + + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.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.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.container.v1beta1.StatusCondition getNodepoolConditions(int index); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.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.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + java.util.List + getNodepoolConditionsOrBuilderList(); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * + * repeated .google.container.v1beta1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.container.v1beta1.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-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgress.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgress.java new file mode 100644 index 00000000..9638e2e3 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgress.java @@ -0,0 +1,3235 @@ +/* + * 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; + +/** + * + * + *
+ * Information about operation (or operation stage) progress.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.OperationProgress} + */ +public final class OperationProgress extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.OperationProgress) + OperationProgressOrBuilder { + private static final long serialVersionUID = 0L; + // Use OperationProgress.newBuilder() to construct. + private OperationProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OperationProgress() { + name_ = ""; + status_ = 0; + metrics_ = java.util.Collections.emptyList(); + stages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperationProgress(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private OperationProgress( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + metrics_ = + new java.util.ArrayList< + com.google.container.v1beta1.OperationProgress.Metric>(); + mutable_bitField0_ |= 0x00000001; + } + metrics_.add( + input.readMessage( + com.google.container.v1beta1.OperationProgress.Metric.parser(), + extensionRegistry)); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + stages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + stages_.add( + input.readMessage( + com.google.container.v1beta1.OperationProgress.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.OperationProgress.class, + com.google.container.v1beta1.OperationProgress.Builder.class); + } + + public interface MetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.OperationProgress.Metric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + * + * @return Whether the intValue field is set. + */ + boolean hasIntValue(); + /** + * + * + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + * + * @return The intValue. + */ + long getIntValue(); + + /** + * + * + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + * + * @return Whether the doubleValue field is set. + */ + boolean hasDoubleValue(); + /** + * + * + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + * + * @return The doubleValue. + */ + double getDoubleValue(); + + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return Whether the stringValue field is set. + */ + boolean hasStringValue(); + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return The stringValue. + */ + java.lang.String getStringValue(); + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return The bytes for stringValue. + */ + com.google.protobuf.ByteString getStringValueBytes(); + + public com.google.container.v1beta1.OperationProgress.Metric.ValueCase getValueCase(); + } + /** + * + * + *
+   * Progress metric is (string, int|float|string) pair.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.OperationProgress.Metric} + */ + public static final class Metric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.OperationProgress.Metric) + MetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metric.newBuilder() to construct. + private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Metric() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Metric(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Metric( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + valueCase_ = 2; + value_ = input.readInt64(); + break; + } + case 25: + { + valueCase_ = 3; + value_ = input.readDouble(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 4; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.OperationProgress.Metric.class, + com.google.container.v1beta1.OperationProgress.Metric.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public enum ValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INT_VALUE(2), + DOUBLE_VALUE(3), + STRING_VALUE(4), + VALUE_NOT_SET(0); + private final int value; + + private ValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 2: + return INT_VALUE; + case 3: + return DOUBLE_VALUE; + case 4: + return STRING_VALUE; + case 0: + return VALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INT_VALUE_FIELD_NUMBER = 2; + /** + * + * + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + * + * @return Whether the intValue field is set. + */ + @java.lang.Override + public boolean hasIntValue() { + return valueCase_ == 2; + } + /** + * + * + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + * + * @return The intValue. + */ + @java.lang.Override + public long getIntValue() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; + /** + * + * + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + * + * @return Whether the doubleValue field is set. + */ + @java.lang.Override + public boolean hasDoubleValue() { + return valueCase_ == 3; + } + /** + * + * + *
+     * For metrics with floating point value.
+     * 
+ * + * double double_value = 3; + * + * @return The doubleValue. + */ + @java.lang.Override + public double getDoubleValue() { + if (valueCase_ == 3) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 4; + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return Whether the stringValue field is set. + */ + public boolean hasStringValue() { + return valueCase_ == 4; + } + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return The stringValue. + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 4) { + value_ = s; + } + return s; + } + } + /** + * + * + *
+     * For metrics with custom values (ratios, visual progress, etc.).
+     * 
+ * + * string string_value = 4; + * + * @return The bytes for stringValue. + */ + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 4) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (valueCase_ == 2) { + output.writeInt64(2, (long) ((java.lang.Long) value_)); + } + if (valueCase_ == 3) { + output.writeDouble(3, (double) ((java.lang.Double) value_)); + } + if (valueCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (valueCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 2, (long) ((java.lang.Long) value_)); + } + if (valueCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 3, (double) ((java.lang.Double) value_)); + } + if (valueCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.OperationProgress.Metric)) { + return super.equals(obj); + } + com.google.container.v1beta1.OperationProgress.Metric other = + (com.google.container.v1beta1.OperationProgress.Metric) obj; + + if (!getName().equals(other.getName())) return false; + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 2: + if (getIntValue() != other.getIntValue()) return false; + break; + case 3: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; + break; + case 4: + if (!getStringValue().equals(other.getStringValue())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + switch (valueCase_) { + case 2: + hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIntValue()); + break; + case 3: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 4: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.OperationProgress.Metric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.OperationProgress.Metric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Progress metric is (string, int|float|string) pair.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.OperationProgress.Metric} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.OperationProgress.Metric) + com.google.container.v1beta1.OperationProgress.MetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.OperationProgress.Metric.class, + com.google.container.v1beta1.OperationProgress.Metric.Builder.class); + } + + // Construct using com.google.container.v1beta1.OperationProgress.Metric.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric getDefaultInstanceForType() { + return com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric build() { + com.google.container.v1beta1.OperationProgress.Metric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric buildPartial() { + com.google.container.v1beta1.OperationProgress.Metric result = + new com.google.container.v1beta1.OperationProgress.Metric(this); + result.name_ = name_; + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 3) { + result.value_ = value_; + } + if (valueCase_ == 4) { + result.value_ = value_; + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.OperationProgress.Metric) { + return mergeFrom((com.google.container.v1beta1.OperationProgress.Metric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.OperationProgress.Metric other) { + if (other == com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + switch (other.getValueCase()) { + case INT_VALUE: + { + setIntValue(other.getIntValue()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case STRING_VALUE: + { + valueCase_ = 4; + value_ = other.value_; + onChanged(); + break; + } + case VALUE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.OperationProgress.Metric parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.OperationProgress.Metric) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int valueCase_ = 0; + private java.lang.Object value_; + + public ValueCase getValueCase() { + return ValueCase.forNumber(valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Metric name, e.g., "nodes total", "percent done".
+       * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @return Whether the intValue field is set. + */ + public boolean hasIntValue() { + return valueCase_ == 2; + } + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @return The intValue. + */ + public long getIntValue() { + if (valueCase_ == 2) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @param value The intValue to set. + * @return This builder for chaining. + */ + public Builder setIntValue(long value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * For metrics with integer value.
+       * 
+ * + * int64 int_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearIntValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return valueCase_ == 3; + } + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @return The doubleValue. + */ + public double getDoubleValue() { + if (valueCase_ == 3) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * For metrics with floating point value.
+       * 
+ * + * double double_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return valueCase_ == 4; + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 4) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @return The bytes for stringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 4) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (valueCase_ == 4) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @param value The stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * For metrics with custom values (ratios, visual progress, etc.).
+       * 
+ * + * string string_value = 4; + * + * @param value The bytes for stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.OperationProgress.Metric) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.OperationProgress.Metric) + private static final com.google.container.v1beta1.OperationProgress.Metric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.OperationProgress.Metric(); + } + + public static com.google.container.v1beta1.OperationProgress.Metric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Metric(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Status result = + com.google.container.v1beta1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int METRICS_FIELD_NUMBER = 3; + private java.util.List metrics_; + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index) { + return metrics_.get(index); + } + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index) { + return metrics_.get(index); + } + + public static final int STAGES_FIELD_NUMBER = 4; + private java.util.List stages_; + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + @java.lang.Override + public java.util.List getStagesList() { + return stages_; + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + @java.lang.Override + public java.util.List + getStagesOrBuilderList() { + return stages_; + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + @java.lang.Override + public int getStagesCount() { + return stages_.size(); + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + @java.lang.Override + public com.google.container.v1beta1.OperationProgress getStages(int index) { + return stages_.get(index); + } + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + @java.lang.Override + public com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder(int index) { + return stages_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (status_ != com.google.container.v1beta1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(2, status_); + } + for (int i = 0; i < metrics_.size(); i++) { + output.writeMessage(3, metrics_.get(i)); + } + for (int i = 0; i < stages_.size(); i++) { + output.writeMessage(4, stages_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (status_ != com.google.container.v1beta1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_); + } + for (int i = 0; i < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metrics_.get(i)); + } + for (int i = 0; i < stages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, stages_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.OperationProgress)) { + return super.equals(obj); + } + com.google.container.v1beta1.OperationProgress other = + (com.google.container.v1beta1.OperationProgress) obj; + + if (!getName().equals(other.getName())) return false; + if (status_ != other.status_) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getStagesList().equals(other.getStagesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + if (getStagesCount() > 0) { + hash = (37 * hash) + STAGES_FIELD_NUMBER; + hash = (53 * hash) + getStagesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.OperationProgress parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.OperationProgress parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.OperationProgress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.OperationProgress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.OperationProgress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.OperationProgress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.OperationProgress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.OperationProgress parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.OperationProgress parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.OperationProgress parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.OperationProgress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.OperationProgress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.OperationProgress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Information about operation (or operation stage) progress.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.OperationProgress} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.OperationProgress) + com.google.container.v1beta1.OperationProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.OperationProgress.class, + com.google.container.v1beta1.OperationProgress.Builder.class); + } + + // Construct using com.google.container.v1beta1.OperationProgress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMetricsFieldBuilder(); + getStagesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + status_ = 0; + + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + metricsBuilder_.clear(); + } + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + stagesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_OperationProgress_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress getDefaultInstanceForType() { + return com.google.container.v1beta1.OperationProgress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress build() { + com.google.container.v1beta1.OperationProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress buildPartial() { + com.google.container.v1beta1.OperationProgress result = + new com.google.container.v1beta1.OperationProgress(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.status_ = status_; + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (stagesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.stages_ = stages_; + } else { + result.stages_ = stagesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.OperationProgress) { + return mergeFrom((com.google.container.v1beta1.OperationProgress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.OperationProgress other) { + if (other == com.google.container.v1beta1.OperationProgress.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000001); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (stagesBuilder_ == null) { + if (!other.stages_.isEmpty()) { + if (stages_.isEmpty()) { + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureStagesIsMutable(); + stages_.addAll(other.stages_); + } + onChanged(); + } + } else { + if (!other.stages_.isEmpty()) { + if (stagesBuilder_.isEmpty()) { + stagesBuilder_.dispose(); + stagesBuilder_ = null; + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000002); + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStagesFieldBuilder() + : null; + } else { + stagesBuilder_.addAllMessages(other.stages_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.OperationProgress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.OperationProgress) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * A non-parameterized string describing an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.Operation.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.Operation.Status result = + com.google.container.v1beta1.Operation.Status.valueOf(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1beta1.Operation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + metrics_ = + new java.util.ArrayList( + metrics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress.Metric, + com.google.container.v1beta1.OperationProgress.Metric.Builder, + com.google.container.v1beta1.OperationProgress.MetricOrBuilder> + metricsBuilder_; + + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics(com.google.container.v1beta1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addAllMetrics( + java.lang.Iterable + values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric.Builder getMetricsBuilder( + int index) { + return getMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric.Builder addMetricsBuilder() { + return getMetricsFieldBuilder() + .addBuilder(com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()); + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric.Builder addMetricsBuilder( + int index) { + return getMetricsFieldBuilder() + .addBuilder( + index, com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()); + } + /** + * + * + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress.Metric, + com.google.container.v1beta1.OperationProgress.Metric.Builder, + com.google.container.v1beta1.OperationProgress.MetricOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress.Metric, + com.google.container.v1beta1.OperationProgress.Metric.Builder, + com.google.container.v1beta1.OperationProgress.MetricOrBuilder>( + metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List stages_ = + java.util.Collections.emptyList(); + + private void ensureStagesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + stages_ = new java.util.ArrayList(stages_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, + com.google.container.v1beta1.OperationProgress.Builder, + com.google.container.v1beta1.OperationProgressOrBuilder> + stagesBuilder_; + + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List getStagesList() { + if (stagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stages_); + } else { + return stagesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public int getStagesCount() { + if (stagesBuilder_ == null) { + return stages_.size(); + } else { + return stagesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress getStages(int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder setStages(int index, com.google.container.v1beta1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.set(index, value); + onChanged(); + } else { + stagesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder setStages( + int index, com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.set(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages(com.google.container.v1beta1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(value); + onChanged(); + } else { + stagesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages(int index, com.google.container.v1beta1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(index, value); + onChanged(); + } else { + stagesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages( + com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages( + int index, com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addAllStages( + java.lang.Iterable values) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stages_); + onChanged(); + } else { + stagesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder clearStages() { + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + stagesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder removeStages(int index) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.remove(index); + onChanged(); + } else { + stagesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress.Builder getStagesBuilder(int index) { + return getStagesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder(int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List + getStagesOrBuilderList() { + if (stagesBuilder_ != null) { + return stagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stages_); + } + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress.Builder addStagesBuilder() { + return getStagesFieldBuilder() + .addBuilder(com.google.container.v1beta1.OperationProgress.getDefaultInstance()); + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress.Builder addStagesBuilder(int index) { + return getStagesFieldBuilder() + .addBuilder(index, com.google.container.v1beta1.OperationProgress.getDefaultInstance()); + } + /** + * + * + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List + getStagesBuilderList() { + return getStagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, + com.google.container.v1beta1.OperationProgress.Builder, + com.google.container.v1beta1.OperationProgressOrBuilder> + getStagesFieldBuilder() { + if (stagesBuilder_ == null) { + stagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, + com.google.container.v1beta1.OperationProgress.Builder, + com.google.container.v1beta1.OperationProgressOrBuilder>( + stages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + stages_ = null; + } + return stagesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.OperationProgress) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.OperationProgress) + private static final com.google.container.v1beta1.OperationProgress DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.OperationProgress(); + } + + public static com.google.container.v1beta1.OperationProgress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationProgress(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.OperationProgress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java new file mode 100644 index 00000000..e8750c66 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface OperationProgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.OperationProgress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1beta1.Operation.Status status = 2; + * + * @return The status. + */ + com.google.container.v1beta1.Operation.Status getStatus(); + + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + java.util.List getMetricsList(); + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index); + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + int getMetricsCount(); + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + java.util.List + getMetricsOrBuilderList(); + /** + * + * + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder(int index); + + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + java.util.List getStagesList(); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + com.google.container.v1beta1.OperationProgress getStages(int index); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + int getStagesCount(); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + java.util.List + getStagesOrBuilderList(); + /** + * + * + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder(int index); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java new file mode 100644 index 00000000..7a8abd91 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration for the PodSecurityPolicy feature.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.PodSecurityPolicyConfig} + */ +public final class PodSecurityPolicyConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.PodSecurityPolicyConfig) + PodSecurityPolicyConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PodSecurityPolicyConfig.newBuilder() to construct. + private PodSecurityPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PodSecurityPolicyConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PodSecurityPolicyConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PodSecurityPolicyConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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_PodSecurityPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PodSecurityPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PodSecurityPolicyConfig.class, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+   * must be valid under a PodSecurityPolicy to be created.
+   * 
+ * + * bool enabled = 1; + * + * @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.PodSecurityPolicyConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.PodSecurityPolicyConfig other = + (com.google.container.v1beta1.PodSecurityPolicyConfig) 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.PodSecurityPolicyConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.PodSecurityPolicyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for the PodSecurityPolicy feature.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.PodSecurityPolicyConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.PodSecurityPolicyConfig) + com.google.container.v1beta1.PodSecurityPolicyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PodSecurityPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PodSecurityPolicyConfig.class, + com.google.container.v1beta1.PodSecurityPolicyConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.PodSecurityPolicyConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PodSecurityPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig build() { + com.google.container.v1beta1.PodSecurityPolicyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig buildPartial() { + com.google.container.v1beta1.PodSecurityPolicyConfig result = + new com.google.container.v1beta1.PodSecurityPolicyConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.PodSecurityPolicyConfig) { + return mergeFrom((com.google.container.v1beta1.PodSecurityPolicyConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.PodSecurityPolicyConfig other) { + if (other == com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance()) + return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.PodSecurityPolicyConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.PodSecurityPolicyConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+     * must be valid under a PodSecurityPolicy to be created.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+     * must be valid under a PodSecurityPolicy to be created.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+     * must be valid under a PodSecurityPolicy to be created.
+     * 
+ * + * bool enabled = 1; + * + * @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.PodSecurityPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.PodSecurityPolicyConfig) + private static final com.google.container.v1beta1.PodSecurityPolicyConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.PodSecurityPolicyConfig(); + } + + public static com.google.container.v1beta1.PodSecurityPolicyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PodSecurityPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PodSecurityPolicyConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.PodSecurityPolicyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java new file mode 100644 index 00000000..ce6bf7f0 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface PodSecurityPolicyConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PodSecurityPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
+   * must be valid under a PodSecurityPolicy to be created.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java new file mode 100644 index 00000000..2f2cac94 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java @@ -0,0 +1,1701 @@ +/* + * 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 options for private clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.PrivateClusterConfig} + */ +public final class PrivateClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.PrivateClusterConfig) + PrivateClusterConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateClusterConfig.newBuilder() to construct. + private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateClusterConfig() { + masterIpv4CidrBlock_ = ""; + privateEndpoint_ = ""; + publicEndpoint_ = ""; + peeringName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateClusterConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PrivateClusterConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enablePrivateNodes_ = input.readBool(); + break; + } + case 16: + { + enablePrivateEndpoint_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + masterIpv4CidrBlock_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + privateEndpoint_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + publicEndpoint_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + peeringName_ = s; + break; + } + case 66: + { + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder + subBuilder = null; + if (masterGlobalAccessConfig_ != null) { + subBuilder = masterGlobalAccessConfig_.toBuilder(); + } + masterGlobalAccessConfig_ = + input.readMessage( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(masterGlobalAccessConfig_); + masterGlobalAccessConfig_ = 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_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PrivateClusterConfig.class, + com.google.container.v1beta1.PrivateClusterConfig.Builder.class); + } + + public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 1; + private boolean enablePrivateNodes_; + /** + * + * + *
+   * Whether nodes have internal IP addresses only. If enabled, all nodes are
+   * given only RFC 1918 private addresses and communicate with the master via
+   * private networking.
+   * 
+ * + * bool enable_private_nodes = 1; + * + * @return The enablePrivateNodes. + */ + @java.lang.Override + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + + public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 2; + private boolean enablePrivateEndpoint_; + /** + * + * + *
+   * Whether the master's internal IP address is used as the cluster endpoint.
+   * 
+ * + * bool enable_private_endpoint = 2; + * + * @return The enablePrivateEndpoint. + */ + @java.lang.Override + public boolean getEnablePrivateEndpoint() { + return enablePrivateEndpoint_; + } + + public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; + private volatile java.lang.Object masterIpv4CidrBlock_; + /** + * + * + *
+   * The IP range in CIDR notation to use for the hosted master network. This
+   * range will be used for assigning internal IP addresses to the master or
+   * set of masters, as well as the ILB VIP. This range must not overlap with
+   * any other ranges in use within the cluster's network.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The masterIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * The IP range in CIDR notation to use for the hosted master network. This
+   * range will be used for assigning internal IP addresses to the master or
+   * set of masters, as well as the ILB VIP. This range must not overlap with
+   * any other ranges in use within the cluster's network.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The bytes for masterIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_ENDPOINT_FIELD_NUMBER = 4; + private volatile java.lang.Object privateEndpoint_; + /** + * + * + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + * + * @return The privateEndpoint. + */ + @java.lang.Override + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + * + * @return The bytes for privateEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLIC_ENDPOINT_FIELD_NUMBER = 5; + private volatile java.lang.Object publicEndpoint_; + /** + * + * + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + * + * @return The publicEndpoint. + */ + @java.lang.Override + public java.lang.String getPublicEndpoint() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + * + * @return The bytes for publicEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublicEndpointBytes() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PEERING_NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object peeringName_; + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The peeringName. + */ + @java.lang.Override + public java.lang.String getPeeringName() { + java.lang.Object ref = peeringName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peeringName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The bytes for peeringName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPeeringNameBytes() { + java.lang.Object ref = peeringName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peeringName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + masterGlobalAccessConfig_; + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return Whether the masterGlobalAccessConfig field is set. + */ + @java.lang.Override + public boolean hasMasterGlobalAccessConfig() { + return masterGlobalAccessConfig_ != null; + } + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return The masterGlobalAccessConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + getMasterGlobalAccessConfig() { + return masterGlobalAccessConfig_ == null + ? com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() + : masterGlobalAccessConfig_; + } + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder + getMasterGlobalAccessConfigOrBuilder() { + return getMasterGlobalAccessConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enablePrivateNodes_ != false) { + output.writeBool(1, enablePrivateNodes_); + } + if (enablePrivateEndpoint_ != false) { + output.writeBool(2, enablePrivateEndpoint_); + } + if (!getMasterIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, masterIpv4CidrBlock_); + } + if (!getPrivateEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, privateEndpoint_); + } + if (!getPublicEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicEndpoint_); + } + if (!getPeeringNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, peeringName_); + } + if (masterGlobalAccessConfig_ != null) { + output.writeMessage(8, getMasterGlobalAccessConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enablePrivateNodes_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateNodes_); + } + if (enablePrivateEndpoint_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enablePrivateEndpoint_); + } + if (!getMasterIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, masterIpv4CidrBlock_); + } + if (!getPrivateEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, privateEndpoint_); + } + if (!getPublicEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicEndpoint_); + } + if (!getPeeringNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, peeringName_); + } + if (masterGlobalAccessConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getMasterGlobalAccessConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.PrivateClusterConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.PrivateClusterConfig other = + (com.google.container.v1beta1.PrivateClusterConfig) obj; + + if (getEnablePrivateNodes() != other.getEnablePrivateNodes()) return false; + if (getEnablePrivateEndpoint() != other.getEnablePrivateEndpoint()) return false; + if (!getMasterIpv4CidrBlock().equals(other.getMasterIpv4CidrBlock())) return false; + if (!getPrivateEndpoint().equals(other.getPrivateEndpoint())) return false; + if (!getPublicEndpoint().equals(other.getPublicEndpoint())) return false; + if (!getPeeringName().equals(other.getPeeringName())) return false; + if (hasMasterGlobalAccessConfig() != other.hasMasterGlobalAccessConfig()) return false; + if (hasMasterGlobalAccessConfig()) { + if (!getMasterGlobalAccessConfig().equals(other.getMasterGlobalAccessConfig())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_PRIVATE_NODES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateNodes()); + hash = (37 * hash) + ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateEndpoint()); + hash = (37 * hash) + MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getMasterIpv4CidrBlock().hashCode(); + hash = (37 * hash) + PRIVATE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getPrivateEndpoint().hashCode(); + hash = (37 * hash) + PUBLIC_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getPublicEndpoint().hashCode(); + hash = (37 * hash) + PEERING_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPeeringName().hashCode(); + if (hasMasterGlobalAccessConfig()) { + hash = (37 * hash) + MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMasterGlobalAccessConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.PrivateClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.PrivateClusterConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration options for private clusters.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.PrivateClusterConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.PrivateClusterConfig) + com.google.container.v1beta1.PrivateClusterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PrivateClusterConfig.class, + com.google.container.v1beta1.PrivateClusterConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.PrivateClusterConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enablePrivateNodes_ = false; + + enablePrivateEndpoint_ = false; + + masterIpv4CidrBlock_ = ""; + + privateEndpoint_ = ""; + + publicEndpoint_ = ""; + + peeringName_ = ""; + + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = null; + } else { + masterGlobalAccessConfig_ = null; + masterGlobalAccessConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfig build() { + com.google.container.v1beta1.PrivateClusterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfig buildPartial() { + com.google.container.v1beta1.PrivateClusterConfig result = + new com.google.container.v1beta1.PrivateClusterConfig(this); + result.enablePrivateNodes_ = enablePrivateNodes_; + result.enablePrivateEndpoint_ = enablePrivateEndpoint_; + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + result.privateEndpoint_ = privateEndpoint_; + result.publicEndpoint_ = publicEndpoint_; + result.peeringName_ = peeringName_; + if (masterGlobalAccessConfigBuilder_ == null) { + result.masterGlobalAccessConfig_ = masterGlobalAccessConfig_; + } else { + result.masterGlobalAccessConfig_ = masterGlobalAccessConfigBuilder_.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.PrivateClusterConfig) { + return mergeFrom((com.google.container.v1beta1.PrivateClusterConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.PrivateClusterConfig other) { + if (other == com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance()) + return this; + if (other.getEnablePrivateNodes() != false) { + setEnablePrivateNodes(other.getEnablePrivateNodes()); + } + if (other.getEnablePrivateEndpoint() != false) { + setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); + } + if (!other.getMasterIpv4CidrBlock().isEmpty()) { + masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; + onChanged(); + } + if (!other.getPrivateEndpoint().isEmpty()) { + privateEndpoint_ = other.privateEndpoint_; + onChanged(); + } + if (!other.getPublicEndpoint().isEmpty()) { + publicEndpoint_ = other.publicEndpoint_; + onChanged(); + } + if (!other.getPeeringName().isEmpty()) { + peeringName_ = other.peeringName_; + onChanged(); + } + if (other.hasMasterGlobalAccessConfig()) { + mergeMasterGlobalAccessConfig(other.getMasterGlobalAccessConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.PrivateClusterConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.PrivateClusterConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enablePrivateNodes_; + /** + * + * + *
+     * Whether nodes have internal IP addresses only. If enabled, all nodes are
+     * given only RFC 1918 private addresses and communicate with the master via
+     * private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + * + * @return The enablePrivateNodes. + */ + @java.lang.Override + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + /** + * + * + *
+     * Whether nodes have internal IP addresses only. If enabled, all nodes are
+     * given only RFC 1918 private addresses and communicate with the master via
+     * private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + * + * @param value The enablePrivateNodes to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateNodes(boolean value) { + + enablePrivateNodes_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether nodes have internal IP addresses only. If enabled, all nodes are
+     * given only RFC 1918 private addresses and communicate with the master via
+     * private networking.
+     * 
+ * + * bool enable_private_nodes = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnablePrivateNodes() { + + enablePrivateNodes_ = false; + onChanged(); + return this; + } + + private boolean enablePrivateEndpoint_; + /** + * + * + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + * + * @return The enablePrivateEndpoint. + */ + @java.lang.Override + public boolean getEnablePrivateEndpoint() { + return enablePrivateEndpoint_; + } + /** + * + * + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + * + * @param value The enablePrivateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateEndpoint(boolean value) { + + enablePrivateEndpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the master's internal IP address is used as the cluster endpoint.
+     * 
+ * + * bool enable_private_endpoint = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnablePrivateEndpoint() { + + enablePrivateEndpoint_ = false; + onChanged(); + return this; + } + + private java.lang.Object masterIpv4CidrBlock_ = ""; + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The masterIpv4CidrBlock. + */ + public java.lang.String getMasterIpv4CidrBlock() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The bytes for masterIpv4CidrBlock. + */ + public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { + java.lang.Object ref = masterIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @param value The masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return This builder for chaining. + */ + public Builder clearMasterIpv4CidrBlock() { + + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IP range in CIDR notation to use for the hosted master network. This
+     * range will be used for assigning internal IP addresses to the master or
+     * set of masters, as well as the ILB VIP. This range must not overlap with
+     * any other ranges in use within the cluster's network.
+     * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @param value The bytes for masterIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterIpv4CidrBlock_ = value; + onChanged(); + return this; + } + + private java.lang.Object privateEndpoint_ = ""; + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @return The privateEndpoint. + */ + public java.lang.String getPrivateEndpoint() { + java.lang.Object ref = privateEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @return The bytes for privateEndpoint. + */ + public com.google.protobuf.ByteString getPrivateEndpointBytes() { + java.lang.Object ref = privateEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + privateEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @param value The privateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + privateEndpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @return This builder for chaining. + */ + public Builder clearPrivateEndpoint() { + + privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The internal IP address of this cluster's master endpoint.
+     * 
+ * + * string private_endpoint = 4; + * + * @param value The bytes for privateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object publicEndpoint_ = ""; + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @return The publicEndpoint. + */ + public java.lang.String getPublicEndpoint() { + java.lang.Object ref = publicEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @return The bytes for publicEndpoint. + */ + public com.google.protobuf.ByteString getPublicEndpointBytes() { + java.lang.Object ref = publicEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @param value The publicEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPublicEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + publicEndpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @return This builder for chaining. + */ + public Builder clearPublicEndpoint() { + + publicEndpoint_ = getDefaultInstance().getPublicEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The external IP address of this cluster's master endpoint.
+     * 
+ * + * string public_endpoint = 5; + * + * @param value The bytes for publicEndpoint to set. + * @return This builder for chaining. + */ + public Builder setPublicEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + publicEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object peeringName_ = ""; + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @return The peeringName. + */ + public java.lang.String getPeeringName() { + java.lang.Object ref = peeringName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peeringName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @return The bytes for peeringName. + */ + public com.google.protobuf.ByteString getPeeringNameBytes() { + java.lang.Object ref = peeringName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + peeringName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @param value The peeringName to set. + * @return This builder for chaining. + */ + public Builder setPeeringName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + peeringName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearPeeringName() { + + peeringName_ = getDefaultInstance().getPeeringName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The peering name in the customer VPC used by this cluster.
+     * 
+ * + * string peering_name = 7; + * + * @param value The bytes for peeringName to set. + * @return This builder for chaining. + */ + public Builder setPeeringNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + peeringName_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + masterGlobalAccessConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder> + masterGlobalAccessConfigBuilder_; + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return Whether the masterGlobalAccessConfig field is set. + */ + public boolean hasMasterGlobalAccessConfig() { + return masterGlobalAccessConfigBuilder_ != null || masterGlobalAccessConfig_ != null; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return The masterGlobalAccessConfig. + */ + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + getMasterGlobalAccessConfig() { + if (masterGlobalAccessConfigBuilder_ == null) { + return masterGlobalAccessConfig_ == null + ? com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + .getDefaultInstance() + : masterGlobalAccessConfig_; + } else { + return masterGlobalAccessConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder setMasterGlobalAccessConfig( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig value) { + if (masterGlobalAccessConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterGlobalAccessConfig_ = value; + onChanged(); + } else { + masterGlobalAccessConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder setMasterGlobalAccessConfig( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder + builderForValue) { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = builderForValue.build(); + onChanged(); + } else { + masterGlobalAccessConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder mergeMasterGlobalAccessConfig( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig value) { + if (masterGlobalAccessConfigBuilder_ == null) { + if (masterGlobalAccessConfig_ != null) { + masterGlobalAccessConfig_ = + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.newBuilder( + masterGlobalAccessConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + masterGlobalAccessConfig_ = value; + } + onChanged(); + } else { + masterGlobalAccessConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public Builder clearMasterGlobalAccessConfig() { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = null; + onChanged(); + } else { + masterGlobalAccessConfig_ = null; + masterGlobalAccessConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder + getMasterGlobalAccessConfigBuilder() { + + onChanged(); + return getMasterGlobalAccessConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder + getMasterGlobalAccessConfigOrBuilder() { + if (masterGlobalAccessConfigBuilder_ != null) { + return masterGlobalAccessConfigBuilder_.getMessageOrBuilder(); + } else { + return masterGlobalAccessConfig_ == null + ? com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + .getDefaultInstance() + : masterGlobalAccessConfig_; + } + } + /** + * + * + *
+     * Controls master global access settings.
+     * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder> + getMasterGlobalAccessConfigFieldBuilder() { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder>( + getMasterGlobalAccessConfig(), getParentForChildren(), isClean()); + masterGlobalAccessConfig_ = null; + } + return masterGlobalAccessConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.PrivateClusterConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.PrivateClusterConfig) + private static final com.google.container.v1beta1.PrivateClusterConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.PrivateClusterConfig(); + } + + public static com.google.container.v1beta1.PrivateClusterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrivateClusterConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java new file mode 100644 index 00000000..e6d947e6 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java @@ -0,0 +1,201 @@ +/* + * 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 PrivateClusterConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PrivateClusterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether nodes have internal IP addresses only. If enabled, all nodes are
+   * given only RFC 1918 private addresses and communicate with the master via
+   * private networking.
+   * 
+ * + * bool enable_private_nodes = 1; + * + * @return The enablePrivateNodes. + */ + boolean getEnablePrivateNodes(); + + /** + * + * + *
+   * Whether the master's internal IP address is used as the cluster endpoint.
+   * 
+ * + * bool enable_private_endpoint = 2; + * + * @return The enablePrivateEndpoint. + */ + boolean getEnablePrivateEndpoint(); + + /** + * + * + *
+   * The IP range in CIDR notation to use for the hosted master network. This
+   * range will be used for assigning internal IP addresses to the master or
+   * set of masters, as well as the ILB VIP. This range must not overlap with
+   * any other ranges in use within the cluster's network.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The masterIpv4CidrBlock. + */ + java.lang.String getMasterIpv4CidrBlock(); + /** + * + * + *
+   * The IP range in CIDR notation to use for the hosted master network. This
+   * range will be used for assigning internal IP addresses to the master or
+   * set of masters, as well as the ILB VIP. This range must not overlap with
+   * any other ranges in use within the cluster's network.
+   * 
+ * + * string master_ipv4_cidr_block = 3; + * + * @return The bytes for masterIpv4CidrBlock. + */ + com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes(); + + /** + * + * + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + * + * @return The privateEndpoint. + */ + java.lang.String getPrivateEndpoint(); + /** + * + * + *
+   * Output only. The internal IP address of this cluster's master endpoint.
+   * 
+ * + * string private_endpoint = 4; + * + * @return The bytes for privateEndpoint. + */ + com.google.protobuf.ByteString getPrivateEndpointBytes(); + + /** + * + * + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + * + * @return The publicEndpoint. + */ + java.lang.String getPublicEndpoint(); + /** + * + * + *
+   * Output only. The external IP address of this cluster's master endpoint.
+   * 
+ * + * string public_endpoint = 5; + * + * @return The bytes for publicEndpoint. + */ + com.google.protobuf.ByteString getPublicEndpointBytes(); + + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The peeringName. + */ + java.lang.String getPeeringName(); + /** + * + * + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * + * @return The bytes for peeringName. + */ + com.google.protobuf.ByteString getPeeringNameBytes(); + + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return Whether the masterGlobalAccessConfig field is set. + */ + boolean hasMasterGlobalAccessConfig(); + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + * + * @return The masterGlobalAccessConfig. + */ + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig(); + /** + * + * + *
+   * Controls master global access settings.
+   * 
+ * + * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * + */ + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder + getMasterGlobalAccessConfigOrBuilder(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfig.java new file mode 100644 index 00000000..be088a1a --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfig.java @@ -0,0 +1,560 @@ +/* + * 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 controlling master global access settings.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig} + */ +public final class PrivateClusterMasterGlobalAccessConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) + PrivateClusterMasterGlobalAccessConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateClusterMasterGlobalAccessConfig.newBuilder() to construct. + private PrivateClusterMasterGlobalAccessConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateClusterMasterGlobalAccessConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateClusterMasterGlobalAccessConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PrivateClusterMasterGlobalAccessConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.class, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whenever master is accessible globally or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig other = + (com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for controlling master global access settings.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.class, + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder.class); + } + + // Construct using + // com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + getDefaultInstanceForType() { + return com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig build() { + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig buildPartial() { + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig result = + new com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) { + return mergeFrom( + (com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig other) { + if (other + == com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + .getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) + private static final com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig(); + } + + public static com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterMasterGlobalAccessConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrivateClusterMasterGlobalAccessConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java new file mode 100644 index 00000000..e1eeb7fc --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface PrivateClusterMasterGlobalAccessConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whenever master is accessible globally or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java new file mode 100644 index 00000000..914ada67 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java @@ -0,0 +1,1085 @@ +/* + * 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 an arbitrary window of time that recurs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.RecurringTimeWindow} + */ +public final class RecurringTimeWindow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.RecurringTimeWindow) + RecurringTimeWindowOrBuilder { + private static final long serialVersionUID = 0L; + // Use RecurringTimeWindow.newBuilder() to construct. + private RecurringTimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RecurringTimeWindow() { + recurrence_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RecurringTimeWindow(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RecurringTimeWindow( + 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.v1beta1.TimeWindow.Builder subBuilder = null; + if (window_ != null) { + subBuilder = window_.toBuilder(); + } + window_ = + input.readMessage( + com.google.container.v1beta1.TimeWindow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(window_); + window_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + recurrence_ = 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RecurringTimeWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RecurringTimeWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RecurringTimeWindow.class, + com.google.container.v1beta1.RecurringTimeWindow.Builder.class); + } + + public static final int WINDOW_FIELD_NUMBER = 1; + private com.google.container.v1beta1.TimeWindow window_; + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + * + * @return Whether the window field is set. + */ + @java.lang.Override + public boolean hasWindow() { + return window_ != null; + } + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + * + * @return The window. + */ + @java.lang.Override + public com.google.container.v1beta1.TimeWindow getWindow() { + return window_ == null ? com.google.container.v1beta1.TimeWindow.getDefaultInstance() : window_; + } + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.TimeWindowOrBuilder getWindowOrBuilder() { + return getWindow(); + } + + public static final int RECURRENCE_FIELD_NUMBER = 2; + private volatile java.lang.Object recurrence_; + /** + * + * + *
+   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+   * this window reccurs. They go on for the span of time between the start and
+   * end time.
+   * For example, to have something repeat every weekday, you'd use:
+   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   * `FREQ=DAILY`
+   * For the first weekend of every month:
+   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * ```
+   * start time = 2019-01-01T09:00:00-0400
+   * end time = 2019-01-01T17:00:00-0400
+   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * ```
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * ```
+   * start time = 2019-01-05T00:00:00Z
+   * end time = 2019-01-07T23:59:00Z
+   * recurrence = FREQ=WEEKLY;BYDAY=SA
+   * ```
+   * Note the start and end time's specific dates are largely arbitrary except
+   * to specify duration of the window and when it first starts.
+   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+   * 
+ * + * string recurrence = 2; + * + * @return The recurrence. + */ + @java.lang.Override + public java.lang.String getRecurrence() { + java.lang.Object ref = recurrence_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recurrence_ = s; + return s; + } + } + /** + * + * + *
+   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+   * this window reccurs. They go on for the span of time between the start and
+   * end time.
+   * For example, to have something repeat every weekday, you'd use:
+   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   * `FREQ=DAILY`
+   * For the first weekend of every month:
+   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * ```
+   * start time = 2019-01-01T09:00:00-0400
+   * end time = 2019-01-01T17:00:00-0400
+   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * ```
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * ```
+   * start time = 2019-01-05T00:00:00Z
+   * end time = 2019-01-07T23:59:00Z
+   * recurrence = FREQ=WEEKLY;BYDAY=SA
+   * ```
+   * Note the start and end time's specific dates are largely arbitrary except
+   * to specify duration of the window and when it first starts.
+   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+   * 
+ * + * string recurrence = 2; + * + * @return The bytes for recurrence. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRecurrenceBytes() { + java.lang.Object ref = recurrence_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + recurrence_ = 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 (window_ != null) { + output.writeMessage(1, getWindow()); + } + if (!getRecurrenceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recurrence_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (window_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); + } + if (!getRecurrenceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recurrence_); + } + 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.RecurringTimeWindow)) { + return super.equals(obj); + } + com.google.container.v1beta1.RecurringTimeWindow other = + (com.google.container.v1beta1.RecurringTimeWindow) obj; + + if (hasWindow() != other.hasWindow()) return false; + if (hasWindow()) { + if (!getWindow().equals(other.getWindow())) return false; + } + if (!getRecurrence().equals(other.getRecurrence())) 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 (hasWindow()) { + hash = (37 * hash) + WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getWindow().hashCode(); + } + hash = (37 * hash) + RECURRENCE_FIELD_NUMBER; + hash = (53 * hash) + getRecurrence().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.RecurringTimeWindow parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RecurringTimeWindow 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.RecurringTimeWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RecurringTimeWindow 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.RecurringTimeWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RecurringTimeWindow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RecurringTimeWindow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RecurringTimeWindow 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.RecurringTimeWindow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RecurringTimeWindow 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.RecurringTimeWindow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RecurringTimeWindow 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.RecurringTimeWindow 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 an arbitrary window of time that recurs.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.RecurringTimeWindow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.RecurringTimeWindow) + com.google.container.v1beta1.RecurringTimeWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RecurringTimeWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RecurringTimeWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RecurringTimeWindow.class, + com.google.container.v1beta1.RecurringTimeWindow.Builder.class); + } + + // Construct using com.google.container.v1beta1.RecurringTimeWindow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (windowBuilder_ == null) { + window_ = null; + } else { + window_ = null; + windowBuilder_ = null; + } + recurrence_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RecurringTimeWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.RecurringTimeWindow getDefaultInstanceForType() { + return com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.RecurringTimeWindow build() { + com.google.container.v1beta1.RecurringTimeWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.RecurringTimeWindow buildPartial() { + com.google.container.v1beta1.RecurringTimeWindow result = + new com.google.container.v1beta1.RecurringTimeWindow(this); + if (windowBuilder_ == null) { + result.window_ = window_; + } else { + result.window_ = windowBuilder_.build(); + } + result.recurrence_ = recurrence_; + 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.RecurringTimeWindow) { + return mergeFrom((com.google.container.v1beta1.RecurringTimeWindow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.RecurringTimeWindow other) { + if (other == com.google.container.v1beta1.RecurringTimeWindow.getDefaultInstance()) + return this; + if (other.hasWindow()) { + mergeWindow(other.getWindow()); + } + if (!other.getRecurrence().isEmpty()) { + recurrence_ = other.recurrence_; + 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.RecurringTimeWindow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.RecurringTimeWindow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1beta1.TimeWindow window_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TimeWindow, + com.google.container.v1beta1.TimeWindow.Builder, + com.google.container.v1beta1.TimeWindowOrBuilder> + windowBuilder_; + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + * + * @return Whether the window field is set. + */ + public boolean hasWindow() { + return windowBuilder_ != null || window_ != null; + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + * + * @return The window. + */ + public com.google.container.v1beta1.TimeWindow getWindow() { + if (windowBuilder_ == null) { + return window_ == null + ? com.google.container.v1beta1.TimeWindow.getDefaultInstance() + : window_; + } else { + return windowBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public Builder setWindow(com.google.container.v1beta1.TimeWindow value) { + if (windowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + window_ = value; + onChanged(); + } else { + windowBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public Builder setWindow(com.google.container.v1beta1.TimeWindow.Builder builderForValue) { + if (windowBuilder_ == null) { + window_ = builderForValue.build(); + onChanged(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public Builder mergeWindow(com.google.container.v1beta1.TimeWindow value) { + if (windowBuilder_ == null) { + if (window_ != null) { + window_ = + com.google.container.v1beta1.TimeWindow.newBuilder(window_) + .mergeFrom(value) + .buildPartial(); + } else { + window_ = value; + } + onChanged(); + } else { + windowBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public Builder clearWindow() { + if (windowBuilder_ == null) { + window_ = null; + onChanged(); + } else { + window_ = null; + windowBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public com.google.container.v1beta1.TimeWindow.Builder getWindowBuilder() { + + onChanged(); + return getWindowFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public com.google.container.v1beta1.TimeWindowOrBuilder getWindowOrBuilder() { + if (windowBuilder_ != null) { + return windowBuilder_.getMessageOrBuilder(); + } else { + return window_ == null + ? com.google.container.v1beta1.TimeWindow.getDefaultInstance() + : window_; + } + } + /** + * + * + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TimeWindow, + com.google.container.v1beta1.TimeWindow.Builder, + com.google.container.v1beta1.TimeWindowOrBuilder> + getWindowFieldBuilder() { + if (windowBuilder_ == null) { + windowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.TimeWindow, + com.google.container.v1beta1.TimeWindow.Builder, + com.google.container.v1beta1.TimeWindowOrBuilder>( + getWindow(), getParentForChildren(), isClean()); + window_ = null; + } + return windowBuilder_; + } + + private java.lang.Object recurrence_ = ""; + /** + * + * + *
+     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+     * this window reccurs. They go on for the span of time between the start and
+     * end time.
+     * For example, to have something repeat every weekday, you'd use:
+     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     * `FREQ=DAILY`
+     * For the first weekend of every month:
+     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * ```
+     * start time = 2019-01-01T09:00:00-0400
+     * end time = 2019-01-01T17:00:00-0400
+     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * ```
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * ```
+     * start time = 2019-01-05T00:00:00Z
+     * end time = 2019-01-07T23:59:00Z
+     * recurrence = FREQ=WEEKLY;BYDAY=SA
+     * ```
+     * Note the start and end time's specific dates are largely arbitrary except
+     * to specify duration of the window and when it first starts.
+     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+     * 
+ * + * string recurrence = 2; + * + * @return The recurrence. + */ + public java.lang.String getRecurrence() { + java.lang.Object ref = recurrence_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + recurrence_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+     * this window reccurs. They go on for the span of time between the start and
+     * end time.
+     * For example, to have something repeat every weekday, you'd use:
+     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     * `FREQ=DAILY`
+     * For the first weekend of every month:
+     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * ```
+     * start time = 2019-01-01T09:00:00-0400
+     * end time = 2019-01-01T17:00:00-0400
+     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * ```
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * ```
+     * start time = 2019-01-05T00:00:00Z
+     * end time = 2019-01-07T23:59:00Z
+     * recurrence = FREQ=WEEKLY;BYDAY=SA
+     * ```
+     * Note the start and end time's specific dates are largely arbitrary except
+     * to specify duration of the window and when it first starts.
+     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+     * 
+ * + * string recurrence = 2; + * + * @return The bytes for recurrence. + */ + public com.google.protobuf.ByteString getRecurrenceBytes() { + java.lang.Object ref = recurrence_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + recurrence_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+     * this window reccurs. They go on for the span of time between the start and
+     * end time.
+     * For example, to have something repeat every weekday, you'd use:
+     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     * `FREQ=DAILY`
+     * For the first weekend of every month:
+     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * ```
+     * start time = 2019-01-01T09:00:00-0400
+     * end time = 2019-01-01T17:00:00-0400
+     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * ```
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * ```
+     * start time = 2019-01-05T00:00:00Z
+     * end time = 2019-01-07T23:59:00Z
+     * recurrence = FREQ=WEEKLY;BYDAY=SA
+     * ```
+     * Note the start and end time's specific dates are largely arbitrary except
+     * to specify duration of the window and when it first starts.
+     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+     * 
+ * + * string recurrence = 2; + * + * @param value The recurrence to set. + * @return This builder for chaining. + */ + public Builder setRecurrence(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + recurrence_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+     * this window reccurs. They go on for the span of time between the start and
+     * end time.
+     * For example, to have something repeat every weekday, you'd use:
+     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     * `FREQ=DAILY`
+     * For the first weekend of every month:
+     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * ```
+     * start time = 2019-01-01T09:00:00-0400
+     * end time = 2019-01-01T17:00:00-0400
+     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * ```
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * ```
+     * start time = 2019-01-05T00:00:00Z
+     * end time = 2019-01-07T23:59:00Z
+     * recurrence = FREQ=WEEKLY;BYDAY=SA
+     * ```
+     * Note the start and end time's specific dates are largely arbitrary except
+     * to specify duration of the window and when it first starts.
+     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+     * 
+ * + * string recurrence = 2; + * + * @return This builder for chaining. + */ + public Builder clearRecurrence() { + + recurrence_ = getDefaultInstance().getRecurrence(); + onChanged(); + return this; + } + /** + * + * + *
+     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+     * this window reccurs. They go on for the span of time between the start and
+     * end time.
+     * For example, to have something repeat every weekday, you'd use:
+     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     * `FREQ=DAILY`
+     * For the first weekend of every month:
+     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * ```
+     * start time = 2019-01-01T09:00:00-0400
+     * end time = 2019-01-01T17:00:00-0400
+     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * ```
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * ```
+     * start time = 2019-01-05T00:00:00Z
+     * end time = 2019-01-07T23:59:00Z
+     * recurrence = FREQ=WEEKLY;BYDAY=SA
+     * ```
+     * Note the start and end time's specific dates are largely arbitrary except
+     * to specify duration of the window and when it first starts.
+     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+     * 
+ * + * string recurrence = 2; + * + * @param value The bytes for recurrence to set. + * @return This builder for chaining. + */ + public Builder setRecurrenceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + recurrence_ = 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.RecurringTimeWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.RecurringTimeWindow) + private static final com.google.container.v1beta1.RecurringTimeWindow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.RecurringTimeWindow(); + } + + public static com.google.container.v1beta1.RecurringTimeWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecurringTimeWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecurringTimeWindow(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.RecurringTimeWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindowOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindowOrBuilder.java new file mode 100644 index 00000000..6c783419 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindowOrBuilder.java @@ -0,0 +1,135 @@ +/* + * 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 RecurringTimeWindowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.RecurringTimeWindow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + * + * @return Whether the window field is set. + */ + boolean hasWindow(); + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + * + * @return The window. + */ + com.google.container.v1beta1.TimeWindow getWindow(); + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + com.google.container.v1beta1.TimeWindowOrBuilder getWindowOrBuilder(); + + /** + * + * + *
+   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+   * this window reccurs. They go on for the span of time between the start and
+   * end time.
+   * For example, to have something repeat every weekday, you'd use:
+   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   * `FREQ=DAILY`
+   * For the first weekend of every month:
+   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * ```
+   * start time = 2019-01-01T09:00:00-0400
+   * end time = 2019-01-01T17:00:00-0400
+   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * ```
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * ```
+   * start time = 2019-01-05T00:00:00Z
+   * end time = 2019-01-07T23:59:00Z
+   * recurrence = FREQ=WEEKLY;BYDAY=SA
+   * ```
+   * Note the start and end time's specific dates are largely arbitrary except
+   * to specify duration of the window and when it first starts.
+   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+   * 
+ * + * string recurrence = 2; + * + * @return The recurrence. + */ + java.lang.String getRecurrence(); + /** + * + * + *
+   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
+   * this window reccurs. They go on for the span of time between the start and
+   * end time.
+   * For example, to have something repeat every weekday, you'd use:
+   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   * `FREQ=DAILY`
+   * For the first weekend of every month:
+   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * ```
+   * start time = 2019-01-01T09:00:00-0400
+   * end time = 2019-01-01T17:00:00-0400
+   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * ```
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * ```
+   * start time = 2019-01-05T00:00:00Z
+   * end time = 2019-01-07T23:59:00Z
+   * recurrence = FREQ=WEEKLY;BYDAY=SA
+   * ```
+   * Note the start and end time's specific dates are largely arbitrary except
+   * to specify duration of the window and when it first starts.
+   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+   * 
+ * + * string recurrence = 2; + * + * @return The bytes for recurrence. + */ + com.google.protobuf.ByteString getRecurrenceBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannel.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannel.java new file mode 100644 index 00000000..cd5f487b --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannel.java @@ -0,0 +1,810 @@ +/* + * 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; + +/** + * + * + *
+ * ReleaseChannel indicates which release channel a cluster is
+ * subscribed to. Release channels are arranged in order of risk.
+ * When a cluster is subscribed to a release channel, Google maintains
+ * both the master version and the node version. Node auto-upgrade
+ * defaults to true and cannot be disabled.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ReleaseChannel} + */ +public final class ReleaseChannel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ReleaseChannel) + ReleaseChannelOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseChannel.newBuilder() to construct. + private ReleaseChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReleaseChannel() { + channel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReleaseChannel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReleaseChannel( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + channel_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReleaseChannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReleaseChannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ReleaseChannel.class, + com.google.container.v1beta1.ReleaseChannel.Builder.class); + } + + /** + * + * + *
+   * Possible values for 'channel'.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.ReleaseChannel.Channel} + */ + public enum Channel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * No channel specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * RAPID channel is offered on an early access basis for customers who want
+     * to test new releases.
+     * WARNING: Versions available in the RAPID Channel may be subject to
+     * unresolved issues with no known workaround and are not subject to any
+     * SLAs.
+     * 
+ * + * RAPID = 1; + */ + RAPID(1), + /** + * + * + *
+     * Clusters subscribed to REGULAR receive versions that are considered GA
+     * quality. REGULAR is intended for production users who want to take
+     * advantage of new features.
+     * 
+ * + * REGULAR = 2; + */ + REGULAR(2), + /** + * + * + *
+     * Clusters subscribed to STABLE receive versions that are known to be
+     * stable and reliable in production.
+     * 
+ * + * STABLE = 3; + */ + STABLE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * No channel specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * RAPID channel is offered on an early access basis for customers who want
+     * to test new releases.
+     * WARNING: Versions available in the RAPID Channel may be subject to
+     * unresolved issues with no known workaround and are not subject to any
+     * SLAs.
+     * 
+ * + * RAPID = 1; + */ + public static final int RAPID_VALUE = 1; + /** + * + * + *
+     * Clusters subscribed to REGULAR receive versions that are considered GA
+     * quality. REGULAR is intended for production users who want to take
+     * advantage of new features.
+     * 
+ * + * REGULAR = 2; + */ + public static final int REGULAR_VALUE = 2; + /** + * + * + *
+     * Clusters subscribed to STABLE receive versions that are known to be
+     * stable and reliable in production.
+     * 
+ * + * STABLE = 3; + */ + public static final int STABLE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Channel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Channel forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return RAPID; + case 2: + return REGULAR; + case 3: + return STABLE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Channel findValueByNumber(int number) { + return Channel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.ReleaseChannel.getDescriptor().getEnumTypes().get(0); + } + + private static final Channel[] VALUES = values(); + + public static Channel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Channel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.ReleaseChannel.Channel) + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private int channel_; + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ReleaseChannel.Channel result = + com.google.container.v1beta1.ReleaseChannel.Channel.valueOf(channel_); + return result == null + ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (channel_ != com.google.container.v1beta1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + output.writeEnum(1, channel_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (channel_ != com.google.container.v1beta1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, channel_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ReleaseChannel)) { + return super.equals(obj); + } + com.google.container.v1beta1.ReleaseChannel other = + (com.google.container.v1beta1.ReleaseChannel) obj; + + if (channel_ != other.channel_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + channel_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ReleaseChannel parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ReleaseChannel parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ReleaseChannel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ReleaseChannel parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ReleaseChannel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ReleaseChannel parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ReleaseChannel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ReleaseChannel parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ReleaseChannel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ReleaseChannel parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ReleaseChannel parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ReleaseChannel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ReleaseChannel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ReleaseChannel indicates which release channel a cluster is
+   * subscribed to. Release channels are arranged in order of risk.
+   * When a cluster is subscribed to a release channel, Google maintains
+   * both the master version and the node version. Node auto-upgrade
+   * defaults to true and cannot be disabled.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ReleaseChannel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ReleaseChannel) + com.google.container.v1beta1.ReleaseChannelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReleaseChannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReleaseChannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ReleaseChannel.class, + com.google.container.v1beta1.ReleaseChannel.Builder.class); + } + + // Construct using com.google.container.v1beta1.ReleaseChannel.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + channel_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReleaseChannel_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel getDefaultInstanceForType() { + return com.google.container.v1beta1.ReleaseChannel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel build() { + com.google.container.v1beta1.ReleaseChannel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel buildPartial() { + com.google.container.v1beta1.ReleaseChannel result = + new com.google.container.v1beta1.ReleaseChannel(this); + result.channel_ = channel_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ReleaseChannel) { + return mergeFrom((com.google.container.v1beta1.ReleaseChannel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ReleaseChannel other) { + if (other == com.google.container.v1beta1.ReleaseChannel.getDefaultInstance()) return this; + if (other.channel_ != 0) { + setChannelValue(other.getChannelValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ReleaseChannel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ReleaseChannel) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int channel_ = 0; + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @param value The enum numeric value on the wire for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelValue(int value) { + + channel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ReleaseChannel.Channel result = + com.google.container.v1beta1.ReleaseChannel.Channel.valueOf(channel_); + return result == null + ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.container.v1beta1.ReleaseChannel.Channel value) { + if (value == null) { + throw new NullPointerException(); + } + + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + + channel_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ReleaseChannel) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ReleaseChannel) + private static final com.google.container.v1beta1.ReleaseChannel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ReleaseChannel(); + } + + public static com.google.container.v1beta1.ReleaseChannel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseChannel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReleaseChannel(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannelOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannelOrBuilder.java new file mode 100644 index 00000000..c86f79ef --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannelOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ReleaseChannelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ReleaseChannel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + int getChannelValue(); + /** + * + * + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + com.google.container.v1beta1.ReleaseChannel.Channel getChannel(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinity.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinity.java new file mode 100644 index 00000000..d8cadb3d --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinity.java @@ -0,0 +1,1271 @@ +/* + * 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; + +/** + * + * + *
+ * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+ * is the configuration of desired reservation which instances could take
+ * capacity from.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ReservationAffinity} + */ +public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ReservationAffinity) + ReservationAffinityOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReservationAffinity.newBuilder() to construct. + private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReservationAffinity() { + consumeReservationType_ = 0; + key_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReservationAffinity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReservationAffinity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + consumeReservationType_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReservationAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReservationAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ReservationAffinity.class, + com.google.container.v1beta1.ReservationAffinity.Builder.class); + } + + /** + * + * + *
+   * Indicates whether to consume capacity from a reservation or not.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.ReservationAffinity.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * Do not consume from any reserved capacity.
+     * 
+ * + * NO_RESERVATION = 1; + */ + NO_RESERVATION(1), + /** + * + * + *
+     * Consume any reservation available.
+     * 
+ * + * ANY_RESERVATION = 2; + */ + ANY_RESERVATION(2), + /** + * + * + *
+     * Must consume from a specific reservation. Must specify key value fields
+     * for specifying the reservations.
+     * 
+ * + * SPECIFIC_RESERVATION = 3; + */ + SPECIFIC_RESERVATION(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Do not consume from any reserved capacity.
+     * 
+ * + * NO_RESERVATION = 1; + */ + public static final int NO_RESERVATION_VALUE = 1; + /** + * + * + *
+     * Consume any reservation available.
+     * 
+ * + * ANY_RESERVATION = 2; + */ + public static final int ANY_RESERVATION_VALUE = 2; + /** + * + * + *
+     * Must consume from a specific reservation. Must specify key value fields
+     * for specifying the reservations.
+     * 
+ * + * SPECIFIC_RESERVATION = 3; + */ + public static final int SPECIFIC_RESERVATION_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return NO_RESERVATION; + case 2: + return ANY_RESERVATION; + case 3: + return SPECIFIC_RESERVATION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.ReservationAffinity.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.ReservationAffinity.Type) + } + + public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1; + private int consumeReservationType_; + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The enum numeric value on the wire for consumeReservationType. + */ + @java.lang.Override + public int getConsumeReservationTypeValue() { + return consumeReservationType_; + } + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The consumeReservationType. + */ + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity.Type getConsumeReservationType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ReservationAffinity.Type result = + com.google.container.v1beta1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null + ? com.google.container.v1beta1.ReservationAffinity.Type.UNRECOGNIZED + : result; + } + + public static final int KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object key_; + /** + * + * + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+   * the key and specify the name of your reservation as its value.
+   * 
+ * + * string key = 2; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * + * + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+   * the key and specify the name of your reservation as its value.
+   * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList values_; + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (consumeReservationType_ + != com.google.container.v1beta1.ReservationAffinity.Type.UNSPECIFIED.getNumber()) { + output.writeEnum(1, consumeReservationType_); + } + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); + } + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (consumeReservationType_ + != com.google.container.v1beta1.ReservationAffinity.Type.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumeReservationType_); + } + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); + } + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ReservationAffinity)) { + return super.equals(obj); + } + com.google.container.v1beta1.ReservationAffinity other = + (com.google.container.v1beta1.ReservationAffinity) obj; + + if (consumeReservationType_ != other.consumeReservationType_) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONSUME_RESERVATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + consumeReservationType_; + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ReservationAffinity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ReservationAffinity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ReservationAffinity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ReservationAffinity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ReservationAffinity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ReservationAffinity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ReservationAffinity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ReservationAffinity parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ReservationAffinity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ReservationAffinity parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ReservationAffinity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ReservationAffinity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ReservationAffinity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * is the configuration of desired reservation which instances could take
+   * capacity from.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ReservationAffinity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ReservationAffinity) + com.google.container.v1beta1.ReservationAffinityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReservationAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReservationAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ReservationAffinity.class, + com.google.container.v1beta1.ReservationAffinity.Builder.class); + } + + // Construct using com.google.container.v1beta1.ReservationAffinity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + consumeReservationType_ = 0; + + key_ = ""; + + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ReservationAffinity_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity getDefaultInstanceForType() { + return com.google.container.v1beta1.ReservationAffinity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity build() { + com.google.container.v1beta1.ReservationAffinity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity buildPartial() { + com.google.container.v1beta1.ReservationAffinity result = + new com.google.container.v1beta1.ReservationAffinity(this); + int from_bitField0_ = bitField0_; + result.consumeReservationType_ = consumeReservationType_; + result.key_ = key_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ReservationAffinity) { + return mergeFrom((com.google.container.v1beta1.ReservationAffinity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ReservationAffinity other) { + if (other == com.google.container.v1beta1.ReservationAffinity.getDefaultInstance()) + return this; + if (other.consumeReservationType_ != 0) { + setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ReservationAffinity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ReservationAffinity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int consumeReservationType_ = 0; + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The enum numeric value on the wire for consumeReservationType. + */ + @java.lang.Override + public int getConsumeReservationTypeValue() { + return consumeReservationType_; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @param value The enum numeric value on the wire for consumeReservationType to set. + * @return This builder for chaining. + */ + public Builder setConsumeReservationTypeValue(int value) { + + consumeReservationType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The consumeReservationType. + */ + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity.Type getConsumeReservationType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ReservationAffinity.Type result = + com.google.container.v1beta1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null + ? com.google.container.v1beta1.ReservationAffinity.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @param value The consumeReservationType to set. + * @return This builder for chaining. + */ + public Builder setConsumeReservationType( + com.google.container.v1beta1.ReservationAffinity.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + consumeReservationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearConsumeReservationType() { + + consumeReservationType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+     * the key and specify the name of your reservation as its value.
+     * 
+ * + * string key = 2; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+     * the key and specify the name of your reservation as its value.
+     * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+     * the key and specify the name of your reservation as its value.
+     * 
+ * + * string key = 2; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+     * the key and specify the name of your reservation as its value.
+     * 
+ * + * string key = 2; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+     * the key and specify the name of your reservation as its value.
+     * 
+ * + * string key = 2; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponds to the label value(s) of reservation resource(s).
+     * 
+ * + * repeated string values = 3; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ReservationAffinity) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ReservationAffinity) + private static final com.google.container.v1beta1.ReservationAffinity DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ReservationAffinity(); + } + + public static com.google.container.v1beta1.ReservationAffinity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReservationAffinity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ReservationAffinity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinityOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinityOrBuilder.java new file mode 100644 index 00000000..1ba1e4a4 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinityOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ReservationAffinityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ReservationAffinity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The enum numeric value on the wire for consumeReservationType. + */ + int getConsumeReservationTypeValue(); + /** + * + * + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1beta1.ReservationAffinity.Type consume_reservation_type = 1; + * + * @return The consumeReservationType. + */ + com.google.container.v1beta1.ReservationAffinity.Type getConsumeReservationType(); + + /** + * + * + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+   * the key and specify the name of your reservation as its value.
+   * 
+ * + * string key = 2; + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
+   * the key and specify the name of your reservation as its value.
+   * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimit.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimit.java new file mode 100644 index 00000000..385781c2 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimit.java @@ -0,0 +1,816 @@ +/* + * 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; + +/** + * + * + *
+ * Contains information about amount of some resource in the cluster.
+ * For memory, value should be in GB.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceLimit} + */ +public final class ResourceLimit extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceLimit) + ResourceLimitOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceLimit.newBuilder() to construct. + private ResourceLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceLimit() { + resourceType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceLimit(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ResourceLimit( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceType_ = s; + break; + } + case 16: + { + minimum_ = input.readInt64(); + break; + } + case 24: + { + maximum_ = input.readInt64(); + break; + } + default: + { + if (!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_ResourceLimit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceLimit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceLimit.class, + com.google.container.v1beta1.ResourceLimit.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceType_; + /** + * + * + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + * + * @return The resourceType. + */ + @java.lang.Override + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + * + * @return The bytes for resourceType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MINIMUM_FIELD_NUMBER = 2; + private long minimum_; + /** + * + * + *
+   * Minimum amount of the resource in the cluster.
+   * 
+ * + * int64 minimum = 2; + * + * @return The minimum. + */ + @java.lang.Override + public long getMinimum() { + return minimum_; + } + + public static final int MAXIMUM_FIELD_NUMBER = 3; + private long maximum_; + /** + * + * + *
+   * Maximum amount of the resource in the cluster.
+   * 
+ * + * int64 maximum = 3; + * + * @return The maximum. + */ + @java.lang.Override + public long getMaximum() { + return maximum_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getResourceTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); + } + if (minimum_ != 0L) { + output.writeInt64(2, minimum_); + } + if (maximum_ != 0L) { + output.writeInt64(3, maximum_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceType_); + } + if (minimum_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, minimum_); + } + if (maximum_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, maximum_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ResourceLimit)) { + return super.equals(obj); + } + com.google.container.v1beta1.ResourceLimit other = + (com.google.container.v1beta1.ResourceLimit) obj; + + if (!getResourceType().equals(other.getResourceType())) return false; + if (getMinimum() != other.getMinimum()) return false; + if (getMaximum() != other.getMaximum()) 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) + getResourceType().hashCode(); + hash = (37 * hash) + MINIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinimum()); + hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaximum()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ResourceLimit parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ResourceLimit parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ResourceLimit parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ResourceLimit parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ResourceLimit parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ResourceLimit parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ResourceLimit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceLimit parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ResourceLimit parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceLimit parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ResourceLimit parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceLimit parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ResourceLimit prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Contains information about amount of some resource in the cluster.
+   * For memory, value should be in GB.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceLimit} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ResourceLimit) + com.google.container.v1beta1.ResourceLimitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceLimit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceLimit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceLimit.class, + com.google.container.v1beta1.ResourceLimit.Builder.class); + } + + // Construct using com.google.container.v1beta1.ResourceLimit.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = ""; + + minimum_ = 0L; + + maximum_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceLimit_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit getDefaultInstanceForType() { + return com.google.container.v1beta1.ResourceLimit.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit build() { + com.google.container.v1beta1.ResourceLimit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit buildPartial() { + com.google.container.v1beta1.ResourceLimit result = + new com.google.container.v1beta1.ResourceLimit(this); + result.resourceType_ = resourceType_; + result.minimum_ = minimum_; + result.maximum_ = maximum_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.ResourceLimit) { + return mergeFrom((com.google.container.v1beta1.ResourceLimit) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ResourceLimit other) { + if (other == com.google.container.v1beta1.ResourceLimit.getDefaultInstance()) return this; + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + onChanged(); + } + if (other.getMinimum() != 0L) { + setMinimum(other.getMinimum()); + } + if (other.getMaximum() != 0L) { + setMaximum(other.getMaximum()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ResourceLimit parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ResourceLimit) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceType_ = ""; + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @return The resourceType. + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @return The bytes for resourceType. + */ + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + + resourceType_ = getDefaultInstance().getResourceType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceType_ = value; + onChanged(); + return this; + } + + private long minimum_; + /** + * + * + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + * + * @return The minimum. + */ + @java.lang.Override + public long getMinimum() { + return minimum_; + } + /** + * + * + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + * + * @param value The minimum to set. + * @return This builder for chaining. + */ + public Builder setMinimum(long value) { + + minimum_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + * + * @return This builder for chaining. + */ + public Builder clearMinimum() { + + minimum_ = 0L; + onChanged(); + return this; + } + + private long maximum_; + /** + * + * + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + * + * @return The maximum. + */ + @java.lang.Override + public long getMaximum() { + return maximum_; + } + /** + * + * + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + * + * @param value The maximum to set. + * @return This builder for chaining. + */ + public Builder setMaximum(long value) { + + maximum_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaximum() { + + maximum_ = 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.ResourceLimit) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceLimit) + private static final com.google.container.v1beta1.ResourceLimit DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceLimit(); + } + + public static com.google.container.v1beta1.ResourceLimit getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceLimit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceLimit(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLimit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java new file mode 100644 index 00000000..d20ff61b --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java @@ -0,0 +1,76 @@ +/* + * 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 ResourceLimitOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceLimit) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + * + * @return The resourceType. + */ + java.lang.String getResourceType(); + /** + * + * + *
+   * Resource name "cpu", "memory" or gpu-specific string.
+   * 
+ * + * string resource_type = 1; + * + * @return The bytes for resourceType. + */ + com.google.protobuf.ByteString getResourceTypeBytes(); + + /** + * + * + *
+   * Minimum amount of the resource in the cluster.
+   * 
+ * + * int64 minimum = 2; + * + * @return The minimum. + */ + long getMinimum(); + + /** + * + * + *
+   * Maximum amount of the resource in the cluster.
+   * 
+ * + * int64 maximum = 3; + * + * @return The maximum. + */ + long getMaximum(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfig.java new file mode 100644 index 00000000..e25b70bc --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfig.java @@ -0,0 +1,2474 @@ +/* + * 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 exporting cluster resource usages.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceUsageExportConfig} + */ +public final class ResourceUsageExportConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceUsageExportConfig) + ResourceUsageExportConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceUsageExportConfig.newBuilder() to construct. + private ResourceUsageExportConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResourceUsageExportConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResourceUsageExportConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ResourceUsageExportConfig( + 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.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder + subBuilder = null; + if (bigqueryDestination_ != null) { + subBuilder = bigqueryDestination_.toBuilder(); + } + bigqueryDestination_ = + input.readMessage( + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bigqueryDestination_); + bigqueryDestination_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + enableNetworkEgressMetering_ = input.readBool(); + break; + } + case 26: + { + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .Builder + subBuilder = null; + if (consumptionMeteringConfig_ != null) { + subBuilder = consumptionMeteringConfig_.toBuilder(); + } + consumptionMeteringConfig_ = + input.readMessage( + com.google.container.v1beta1.ResourceUsageExportConfig + .ConsumptionMeteringConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(consumptionMeteringConfig_); + consumptionMeteringConfig_ = 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_ResourceUsageExportConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceUsageExportConfig.class, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder.class); + } + + public interface BigQueryDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The ID of a BigQuery Dataset.
+     * 
+ * + * string dataset_id = 1; + * + * @return The datasetId. + */ + java.lang.String getDatasetId(); + /** + * + * + *
+     * The ID of a BigQuery Dataset.
+     * 
+ * + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + com.google.protobuf.ByteString getDatasetIdBytes(); + } + /** + * + * + *
+   * Parameters for using BigQuery as the destination of resource usage export.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination} + */ + public static final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) + BigQueryDestinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryDestination.newBuilder() to construct. + private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryDestination() { + datasetId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryDestination(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BigQueryDestination( + 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(); + + datasetId_ = 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.class, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder + .class); + } + + public static final int DATASET_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object datasetId_; + /** + * + * + *
+     * The ID of a BigQuery Dataset.
+     * 
+ * + * string dataset_id = 1; + * + * @return The datasetId. + */ + @java.lang.Override + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } + } + /** + * + * + *
+     * The ID of a BigQuery Dataset.
+     * 
+ * + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = 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 (!getDatasetIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDatasetIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datasetId_); + } + 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.ResourceUsageExportConfig.BigQueryDestination)) { + return super.equals(obj); + } + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination other = + (com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) obj; + + if (!getDatasetId().equals(other.getDatasetId())) 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) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + 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.ResourceUsageExportConfig.BigQueryDestination + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + 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.ResourceUsageExportConfig.BigQueryDestination + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + 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.ResourceUsageExportConfig.BigQueryDestination + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + 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.ResourceUsageExportConfig.BigQueryDestination + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + 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.ResourceUsageExportConfig.BigQueryDestination 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 using BigQuery as the destination of resource usage export.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.class, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder + .class); + } + + // Construct using + // com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.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(); + datasetId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_BigQueryDestination_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + getDefaultInstanceForType() { + return com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination build() { + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + buildPartial() { + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination result = + new com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination(this); + result.datasetId_ = datasetId_; + 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.ResourceUsageExportConfig.BigQueryDestination) { + return mergeFrom( + (com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination other) { + if (other + == com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + .getDefaultInstance()) return this; + if (!other.getDatasetId().isEmpty()) { + datasetId_ = other.datasetId_; + 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.ResourceUsageExportConfig.BigQueryDestination parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object datasetId_ = ""; + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @return The datasetId. + */ + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @param value The datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + datasetId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearDatasetId() { + + datasetId_ = getDefaultInstance().getDatasetId(); + onChanged(); + return this; + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @param value The bytes for datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + datasetId_ = 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.ResourceUsageExportConfig.BigQueryDestination) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination) + private static final com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination(); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQueryDestination(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.ResourceUsageExportConfig.BigQueryDestination + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConsumptionMeteringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Whether to enable consumption metering for this cluster. If enabled, a
+     * second BigQuery table will be created to hold resource consumption
+     * records.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + } + /** + * + * + *
+   * Parameters for controlling consumption metering.
+   * 
+ * + * Protobuf type {@code + * google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig} + */ + public static final class ConsumptionMeteringConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + ConsumptionMeteringConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConsumptionMeteringConfig.newBuilder() to construct. + private ConsumptionMeteringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConsumptionMeteringConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConsumptionMeteringConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ConsumptionMeteringConfig( + 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_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .class, + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+     * Whether to enable consumption metering for this cluster. If enabled, a
+     * second BigQuery table will be created to hold resource consumption
+     * records.
+     * 
+ * + * 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.ResourceUsageExportConfig.ConsumptionMeteringConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig other = + (com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) 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.ResourceUsageExportConfig.ConsumptionMeteringConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + 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.ResourceUsageExportConfig.ConsumptionMeteringConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + 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.ResourceUsageExportConfig.ConsumptionMeteringConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + 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.ResourceUsageExportConfig.ConsumptionMeteringConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + 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.ResourceUsageExportConfig.ConsumptionMeteringConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + 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.ResourceUsageExportConfig.ConsumptionMeteringConfig + 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 controlling consumption metering.
+     * 
+ * + * Protobuf type {@code + * google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .class, + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .Builder.class); + } + + // Construct using + // com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.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_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + getDefaultInstanceForType() { + return com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + build() { + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + buildPartial() { + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig result = + new com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig( + 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.ResourceUsageExportConfig.ConsumptionMeteringConfig) { + return mergeFrom( + (com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig other) { + if (other + == com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .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.ResourceUsageExportConfig.ConsumptionMeteringConfig + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+       * Whether to enable consumption metering for this cluster. If enabled, a
+       * second BigQuery table will be created to hold resource consumption
+       * records.
+       * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+       * Whether to enable consumption metering for this cluster. If enabled, a
+       * second BigQuery table will be created to hold resource consumption
+       * records.
+       * 
+ * + * 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 enable consumption metering for this cluster. If enabled, a
+       * second BigQuery table will be created to hold resource consumption
+       * records.
+       * 
+ * + * 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.ResourceUsageExportConfig.ConsumptionMeteringConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + private static final com.google.container.v1beta1.ResourceUsageExportConfig + .ConsumptionMeteringConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConsumptionMeteringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConsumptionMeteringConfig(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.ResourceUsageExportConfig.ConsumptionMeteringConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 1; + private com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + bigqueryDestination_; + /** + * + * + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return Whether the bigqueryDestination field is set. + */ + @java.lang.Override + public boolean hasBigqueryDestination() { + return bigqueryDestination_ != null; + } + /** + * + * + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return The bigqueryDestination. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + getBigqueryDestination() { + return bigqueryDestination_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + .getDefaultInstance() + : bigqueryDestination_; + } + /** + * + * + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + return getBigqueryDestination(); + } + + public static final int ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER = 2; + private boolean enableNetworkEgressMetering_; + /** + * + * + *
+   * Whether to enable network egress metering for this cluster. If enabled, a
+   * daemonset will be created in the cluster to meter network egress traffic.
+   * 
+ * + * bool enable_network_egress_metering = 2; + * + * @return The enableNetworkEgressMetering. + */ + @java.lang.Override + public boolean getEnableNetworkEgressMetering() { + return enableNetworkEgressMetering_; + } + + public static final int CONSUMPTION_METERING_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + consumptionMeteringConfig_; + /** + * + * + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + * + * @return Whether the consumptionMeteringConfig field is set. + */ + @java.lang.Override + public boolean hasConsumptionMeteringConfig() { + return consumptionMeteringConfig_ != null; + } + /** + * + * + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + * + * @return The consumptionMeteringConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + getConsumptionMeteringConfig() { + return consumptionMeteringConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .getDefaultInstance() + : consumptionMeteringConfig_; + } + /** + * + * + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder + getConsumptionMeteringConfigOrBuilder() { + return getConsumptionMeteringConfig(); + } + + 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 (bigqueryDestination_ != null) { + output.writeMessage(1, getBigqueryDestination()); + } + if (enableNetworkEgressMetering_ != false) { + output.writeBool(2, enableNetworkEgressMetering_); + } + if (consumptionMeteringConfig_ != null) { + output.writeMessage(3, getConsumptionMeteringConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (bigqueryDestination_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryDestination()); + } + if (enableNetworkEgressMetering_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableNetworkEgressMetering_); + } + if (consumptionMeteringConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getConsumptionMeteringConfig()); + } + 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.ResourceUsageExportConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ResourceUsageExportConfig other = + (com.google.container.v1beta1.ResourceUsageExportConfig) obj; + + if (hasBigqueryDestination() != other.hasBigqueryDestination()) return false; + if (hasBigqueryDestination()) { + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; + } + if (getEnableNetworkEgressMetering() != other.getEnableNetworkEgressMetering()) return false; + if (hasConsumptionMeteringConfig() != other.hasConsumptionMeteringConfig()) return false; + if (hasConsumptionMeteringConfig()) { + if (!getConsumptionMeteringConfig().equals(other.getConsumptionMeteringConfig())) + 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 (hasBigqueryDestination()) { + hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryDestination().hashCode(); + } + hash = (37 * hash) + ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNetworkEgressMetering()); + if (hasConsumptionMeteringConfig()) { + hash = (37 * hash) + CONSUMPTION_METERING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConsumptionMeteringConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig 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.ResourceUsageExportConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig 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.ResourceUsageExportConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig 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.ResourceUsageExportConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig 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.ResourceUsageExportConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig 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.ResourceUsageExportConfig 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 exporting cluster resource usages.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceUsageExportConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ResourceUsageExportConfig) + com.google.container.v1beta1.ResourceUsageExportConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceUsageExportConfig.class, + com.google.container.v1beta1.ResourceUsageExportConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ResourceUsageExportConfig.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 (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = null; + } else { + bigqueryDestination_ = null; + bigqueryDestinationBuilder_ = null; + } + enableNetworkEgressMetering_ = false; + + if (consumptionMeteringConfigBuilder_ == null) { + consumptionMeteringConfig_ = null; + } else { + consumptionMeteringConfig_ = null; + consumptionMeteringConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ResourceUsageExportConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig build() { + com.google.container.v1beta1.ResourceUsageExportConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceUsageExportConfig buildPartial() { + com.google.container.v1beta1.ResourceUsageExportConfig result = + new com.google.container.v1beta1.ResourceUsageExportConfig(this); + if (bigqueryDestinationBuilder_ == null) { + result.bigqueryDestination_ = bigqueryDestination_; + } else { + result.bigqueryDestination_ = bigqueryDestinationBuilder_.build(); + } + result.enableNetworkEgressMetering_ = enableNetworkEgressMetering_; + if (consumptionMeteringConfigBuilder_ == null) { + result.consumptionMeteringConfig_ = consumptionMeteringConfig_; + } else { + result.consumptionMeteringConfig_ = consumptionMeteringConfigBuilder_.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.ResourceUsageExportConfig) { + return mergeFrom((com.google.container.v1beta1.ResourceUsageExportConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ResourceUsageExportConfig other) { + if (other == com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance()) + return this; + if (other.hasBigqueryDestination()) { + mergeBigqueryDestination(other.getBigqueryDestination()); + } + if (other.getEnableNetworkEgressMetering() != false) { + setEnableNetworkEgressMetering(other.getEnableNetworkEgressMetering()); + } + if (other.hasConsumptionMeteringConfig()) { + mergeConsumptionMeteringConfig(other.getConsumptionMeteringConfig()); + } + 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.ResourceUsageExportConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ResourceUsageExportConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + bigqueryDestination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return Whether the bigqueryDestination field is set. + */ + public boolean hasBigqueryDestination() { + return bigqueryDestinationBuilder_ != null || bigqueryDestination_ != null; + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return The bigqueryDestination. + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + getBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + return bigqueryDestination_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + .getDefaultInstance() + : bigqueryDestination_; + } else { + return bigqueryDestinationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public Builder setBigqueryDestination( + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigqueryDestination_ = value; + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public Builder setBigqueryDestination( + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder + builderForValue) { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = builderForValue.build(); + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public Builder mergeBigqueryDestination( + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (bigqueryDestination_ != null) { + bigqueryDestination_ = + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.newBuilder( + bigqueryDestination_) + .mergeFrom(value) + .buildPartial(); + } else { + bigqueryDestination_ = value; + } + onChanged(); + } else { + bigqueryDestinationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public Builder clearBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = null; + onChanged(); + } else { + bigqueryDestination_ = null; + bigqueryDestinationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { + + onChanged(); + return getBigqueryDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if (bigqueryDestinationBuilder_ != null) { + return bigqueryDestinationBuilder_.getMessageOrBuilder(); + } else { + return bigqueryDestination_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + .getDefaultInstance() + : bigqueryDestination_; + } + } + /** + * + * + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder> + getBigqueryDestinationFieldBuilder() { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination, + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.Builder, + com.google.container.v1beta1.ResourceUsageExportConfig + .BigQueryDestinationOrBuilder>( + getBigqueryDestination(), getParentForChildren(), isClean()); + bigqueryDestination_ = null; + } + return bigqueryDestinationBuilder_; + } + + private boolean enableNetworkEgressMetering_; + /** + * + * + *
+     * Whether to enable network egress metering for this cluster. If enabled, a
+     * daemonset will be created in the cluster to meter network egress traffic.
+     * 
+ * + * bool enable_network_egress_metering = 2; + * + * @return The enableNetworkEgressMetering. + */ + @java.lang.Override + public boolean getEnableNetworkEgressMetering() { + return enableNetworkEgressMetering_; + } + /** + * + * + *
+     * Whether to enable network egress metering for this cluster. If enabled, a
+     * daemonset will be created in the cluster to meter network egress traffic.
+     * 
+ * + * bool enable_network_egress_metering = 2; + * + * @param value The enableNetworkEgressMetering to set. + * @return This builder for chaining. + */ + public Builder setEnableNetworkEgressMetering(boolean value) { + + enableNetworkEgressMetering_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to enable network egress metering for this cluster. If enabled, a
+     * daemonset will be created in the cluster to meter network egress traffic.
+     * 
+ * + * bool enable_network_egress_metering = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnableNetworkEgressMetering() { + + enableNetworkEgressMetering_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + consumptionMeteringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .Builder, + com.google.container.v1beta1.ResourceUsageExportConfig + .ConsumptionMeteringConfigOrBuilder> + consumptionMeteringConfigBuilder_; + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + * + * @return Whether the consumptionMeteringConfig field is set. + */ + public boolean hasConsumptionMeteringConfig() { + return consumptionMeteringConfigBuilder_ != null || consumptionMeteringConfig_ != null; + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + * + * @return The consumptionMeteringConfig. + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + getConsumptionMeteringConfig() { + if (consumptionMeteringConfigBuilder_ == null) { + return consumptionMeteringConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .getDefaultInstance() + : consumptionMeteringConfig_; + } else { + return consumptionMeteringConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public Builder setConsumptionMeteringConfig( + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig value) { + if (consumptionMeteringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + consumptionMeteringConfig_ = value; + onChanged(); + } else { + consumptionMeteringConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public Builder setConsumptionMeteringConfig( + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder + builderForValue) { + if (consumptionMeteringConfigBuilder_ == null) { + consumptionMeteringConfig_ = builderForValue.build(); + onChanged(); + } else { + consumptionMeteringConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public Builder mergeConsumptionMeteringConfig( + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig value) { + if (consumptionMeteringConfigBuilder_ == null) { + if (consumptionMeteringConfig_ != null) { + consumptionMeteringConfig_ = + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .newBuilder(consumptionMeteringConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + consumptionMeteringConfig_ = value; + } + onChanged(); + } else { + consumptionMeteringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public Builder clearConsumptionMeteringConfig() { + if (consumptionMeteringConfigBuilder_ == null) { + consumptionMeteringConfig_ = null; + onChanged(); + } else { + consumptionMeteringConfig_ = null; + consumptionMeteringConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder + getConsumptionMeteringConfigBuilder() { + + onChanged(); + return getConsumptionMeteringConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + public com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder + getConsumptionMeteringConfigOrBuilder() { + if (consumptionMeteringConfigBuilder_ != null) { + return consumptionMeteringConfigBuilder_.getMessageOrBuilder(); + } else { + return consumptionMeteringConfig_ == null + ? com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .getDefaultInstance() + : consumptionMeteringConfig_; + } + } + /** + * + * + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .Builder, + com.google.container.v1beta1.ResourceUsageExportConfig + .ConsumptionMeteringConfigOrBuilder> + getConsumptionMeteringConfigFieldBuilder() { + if (consumptionMeteringConfigBuilder_ == null) { + consumptionMeteringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig, + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .Builder, + com.google.container.v1beta1.ResourceUsageExportConfig + .ConsumptionMeteringConfigOrBuilder>( + getConsumptionMeteringConfig(), getParentForChildren(), isClean()); + consumptionMeteringConfig_ = null; + } + return consumptionMeteringConfigBuilder_; + } + + @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.ResourceUsageExportConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceUsageExportConfig) + private static final com.google.container.v1beta1.ResourceUsageExportConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceUsageExportConfig(); + } + + public static com.google.container.v1beta1.ResourceUsageExportConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceUsageExportConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceUsageExportConfig(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.ResourceUsageExportConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfigOrBuilder.java new file mode 100644 index 00000000..0fa24e57 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfigOrBuilder.java @@ -0,0 +1,125 @@ +/* + * 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 ResourceUsageExportConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceUsageExportConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return Whether the bigqueryDestination field is set. + */ + boolean hasBigqueryDestination(); + /** + * + * + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + * + * @return The bigqueryDestination. + */ + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination + getBigqueryDestination(); + /** + * + * + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * + */ + com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder(); + + /** + * + * + *
+   * Whether to enable network egress metering for this cluster. If enabled, a
+   * daemonset will be created in the cluster to meter network egress traffic.
+   * 
+ * + * bool enable_network_egress_metering = 2; + * + * @return The enableNetworkEgressMetering. + */ + boolean getEnableNetworkEgressMetering(); + + /** + * + * + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + * + * @return Whether the consumptionMeteringConfig field is set. + */ + boolean hasConsumptionMeteringConfig(); + /** + * + * + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + * + * @return The consumptionMeteringConfig. + */ + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig + getConsumptionMeteringConfig(); + /** + * + * + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * + */ + com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder + getConsumptionMeteringConfigOrBuilder(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java new file mode 100644 index 00000000..8de6fe49 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java @@ -0,0 +1,1470 @@ +/* + * 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; + +/** + * + * + *
+ * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
+ * NodePool upgrade. This will be an no-op if the last upgrade successfully
+ * completed.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.RollbackNodePoolUpgradeRequest} + */ +public final class RollbackNodePoolUpgradeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.RollbackNodePoolUpgradeRequest) + RollbackNodePoolUpgradeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RollbackNodePoolUpgradeRequest.newBuilder() to construct. + private RollbackNodePoolUpgradeRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RollbackNodePoolUpgradeRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RollbackNodePoolUpgradeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RollbackNodePoolUpgradeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.class, + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.RollbackNodePoolUpgradeRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest other = + (com.google.container.v1beta1.RollbackNodePoolUpgradeRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getNodePoolId().equals(other.getNodePoolId())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
+   * NodePool upgrade. This will be an no-op if the last upgrade successfully
+   * completed.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.RollbackNodePoolUpgradeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.RollbackNodePoolUpgradeRequest) + com.google.container.v1beta1.RollbackNodePoolUpgradeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.class, + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.RollbackNodePoolUpgradeRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.RollbackNodePoolUpgradeRequest build() { + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.RollbackNodePoolUpgradeRequest buildPartial() { + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest result = + new com.google.container.v1beta1.RollbackNodePoolUpgradeRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.RollbackNodePoolUpgradeRequest) { + return mergeFrom((com.google.container.v1beta1.RollbackNodePoolUpgradeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.RollbackNodePoolUpgradeRequest other) { + if (other == com.google.container.v1beta1.RollbackNodePoolUpgradeRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.RollbackNodePoolUpgradeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node poll to
+     * rollback upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.RollbackNodePoolUpgradeRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.RollbackNodePoolUpgradeRequest) + private static final com.google.container.v1beta1.RollbackNodePoolUpgradeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.RollbackNodePoolUpgradeRequest(); + } + + public static com.google.container.v1beta1.RollbackNodePoolUpgradeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollbackNodePoolUpgradeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RollbackNodePoolUpgradeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.RollbackNodePoolUpgradeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java new file mode 100644 index 00000000..43271a67 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -0,0 +1,182 @@ +/* + * 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 RollbackNodePoolUpgradeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.RollbackNodePoolUpgradeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + java.lang.String getNodePoolId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getNodePoolIdBytes(); + + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node poll to
+   * rollback upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java new file mode 100644 index 00000000..90745018 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java @@ -0,0 +1,926 @@ +/* + * 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; + +/** + * + * + *
+ * SandboxConfig contains configurations of the sandbox to use for the node.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SandboxConfig} + */ +public final class SandboxConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SandboxConfig) + SandboxConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SandboxConfig.newBuilder() to construct. + private SandboxConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SandboxConfig() { + sandboxType_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SandboxConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SandboxConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + sandboxType_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SandboxConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SandboxConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SandboxConfig.class, + com.google.container.v1beta1.SandboxConfig.Builder.class); + } + + /** + * + * + *
+   * Possible types of sandboxes.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.SandboxConfig.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * Run sandbox using gvisor.
+     * 
+ * + * GVISOR = 1; + */ + GVISOR(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Run sandbox using gvisor.
+     * 
+ * + * GVISOR = 1; + */ + public static final int GVISOR_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return GVISOR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.SandboxConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.SandboxConfig.Type) + } + + public static final int SANDBOX_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object sandboxType_; + /** + * + * + *
+   * Type of the sandbox to use for the node (e.g. 'gvisor')
+   * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * + * @return The sandboxType. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getSandboxType() { + java.lang.Object ref = sandboxType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sandboxType_ = s; + return s; + } + } + /** + * + * + *
+   * Type of the sandbox to use for the node (e.g. 'gvisor')
+   * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * + * @return The bytes for sandboxType. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getSandboxTypeBytes() { + java.lang.Object ref = sandboxType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sandboxType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.SandboxConfig.Type result = + com.google.container.v1beta1.SandboxConfig.Type.valueOf(type_); + return result == null ? com.google.container.v1beta1.SandboxConfig.Type.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSandboxTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sandboxType_); + } + if (type_ != com.google.container.v1beta1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSandboxTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sandboxType_); + } + if (type_ != com.google.container.v1beta1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SandboxConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.SandboxConfig other = + (com.google.container.v1beta1.SandboxConfig) obj; + + if (!getSandboxType().equals(other.getSandboxType())) return false; + 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) + SANDBOX_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getSandboxType().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.SandboxConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SandboxConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SandboxConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SandboxConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SandboxConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SandboxConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SandboxConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SandboxConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SandboxConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SandboxConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SandboxConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SandboxConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.SandboxConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SandboxConfig contains configurations of the sandbox to use for the node.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SandboxConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SandboxConfig) + com.google.container.v1beta1.SandboxConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SandboxConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SandboxConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SandboxConfig.class, + com.google.container.v1beta1.SandboxConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.SandboxConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + sandboxType_ = ""; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SandboxConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.SandboxConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig build() { + com.google.container.v1beta1.SandboxConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig buildPartial() { + com.google.container.v1beta1.SandboxConfig result = + new com.google.container.v1beta1.SandboxConfig(this); + result.sandboxType_ = sandboxType_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SandboxConfig) { + return mergeFrom((com.google.container.v1beta1.SandboxConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SandboxConfig other) { + if (other == com.google.container.v1beta1.SandboxConfig.getDefaultInstance()) return this; + if (!other.getSandboxType().isEmpty()) { + sandboxType_ = other.sandboxType_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SandboxConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SandboxConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object sandboxType_ = ""; + /** + * + * + *
+     * Type of the sandbox to use for the node (e.g. 'gvisor')
+     * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * + * @return The sandboxType. + */ + @java.lang.Deprecated + public java.lang.String getSandboxType() { + java.lang.Object ref = sandboxType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sandboxType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Type of the sandbox to use for the node (e.g. 'gvisor')
+     * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * + * @return The bytes for sandboxType. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getSandboxTypeBytes() { + java.lang.Object ref = sandboxType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sandboxType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Type of the sandbox to use for the node (e.g. 'gvisor')
+     * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * + * @param value The sandboxType to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSandboxType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sandboxType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the sandbox to use for the node (e.g. 'gvisor')
+     * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearSandboxType() { + + sandboxType_ = getDefaultInstance().getSandboxType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the sandbox to use for the node (e.g. 'gvisor')
+     * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * + * @param value The bytes for sandboxType to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setSandboxTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sandboxType_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig.Type getType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.SandboxConfig.Type result = + com.google.container.v1beta1.SandboxConfig.Type.valueOf(type_); + return result == null ? com.google.container.v1beta1.SandboxConfig.Type.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.container.v1beta1.SandboxConfig.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SandboxConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SandboxConfig) + private static final com.google.container.v1beta1.SandboxConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SandboxConfig(); + } + + public static com.google.container.v1beta1.SandboxConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SandboxConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SandboxConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SandboxConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java new file mode 100644 index 00000000..0c00dac6 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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 SandboxConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SandboxConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Type of the sandbox to use for the node (e.g. 'gvisor')
+   * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * + * @return The sandboxType. + */ + @java.lang.Deprecated + java.lang.String getSandboxType(); + /** + * + * + *
+   * Type of the sandbox to use for the node (e.g. 'gvisor')
+   * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * + * @return The bytes for sandboxType. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getSandboxTypeBytes(); + + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1beta1.SandboxConfig.Type type = 2; + * + * @return The type. + */ + com.google.container.v1beta1.SandboxConfig.Type getType(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfig.java new file mode 100644 index 00000000..ac44b716 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfig.java @@ -0,0 +1,4989 @@ +/* + * 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; + +/** + * + * + *
+ * Kubernetes Engine service configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ServerConfig} + */ +public final class ServerConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ServerConfig) + ServerConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServerConfig.newBuilder() to construct. + private ServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServerConfig() { + defaultClusterVersion_ = ""; + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + defaultImageType_ = ""; + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + channels_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServerConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ServerConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + defaultClusterVersion_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + validNodeVersions_.add(s); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + defaultImageType_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + validImageTypes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + validImageTypes_.add(s); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + validMasterVersions_.add(s); + break; + } + case 74: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + channels_ = + new java.util.ArrayList< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig>(); + mutable_bitField0_ |= 0x00000008; + } + channels_.add( + input.readMessage( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + validImageTypes_ = validImageTypes_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + channels_ = java.util.Collections.unmodifiableList(channels_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ServerConfig.class, + com.google.container.v1beta1.ServerConfig.Builder.class); + } + + public interface ReleaseChannelConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ServerConfig.ReleaseChannelConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + int getChannelValue(); + /** + * + * + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + com.google.container.v1beta1.ReleaseChannel.Channel getChannel(); + + /** + * + * + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * + * @return The defaultVersion. + */ + java.lang.String getDefaultVersion(); + /** + * + * + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * + * @return The bytes for defaultVersion. + */ + com.google.protobuf.ByteString getDefaultVersionBytes(); + + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + java.util.List + getAvailableVersionsList(); + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + getAvailableVersions(int index); + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + int getAvailableVersionsCount(); + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + java.util.List< + ? extends + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder> + getAvailableVersionsOrBuilderList(); + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersionOrBuilder + getAvailableVersionsOrBuilder(int index); + + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @return A list containing the validVersions. + */ + java.util.List getValidVersionsList(); + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @return The count of validVersions. + */ + int getValidVersionsCount(); + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the element to return. + * @return The validVersions at the given index. + */ + java.lang.String getValidVersions(int index); + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the validVersions at the given index. + */ + com.google.protobuf.ByteString getValidVersionsBytes(int index); + } + /** + * + * + *
+   * ReleaseChannelConfig exposes configuration for a release channel.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ServerConfig.ReleaseChannelConfig} + */ + public static final class ReleaseChannelConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ServerConfig.ReleaseChannelConfig) + ReleaseChannelConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseChannelConfig.newBuilder() to construct. + private ReleaseChannelConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReleaseChannelConfig() { + channel_ = 0; + defaultVersion_ = ""; + availableVersions_ = java.util.Collections.emptyList(); + validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReleaseChannelConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReleaseChannelConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + channel_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + defaultVersion_ = s; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + availableVersions_ = + new java.util.ArrayList< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersion>(); + mutable_bitField0_ |= 0x00000001; + } + availableVersions_.add( + input.readMessage( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersion.parser(), + extensionRegistry)); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + validVersions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + validVersions_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + availableVersions_ = java.util.Collections.unmodifiableList(availableVersions_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + validVersions_ = validVersions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.class, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder.class); + } + + @java.lang.Deprecated + public interface AvailableVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Kubernetes version.
+       * 
+ * + * string version = 1; + * + * @return The version. + */ + java.lang.String getVersion(); + /** + * + * + *
+       * Kubernetes version.
+       * 
+ * + * string version = 1; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+       * Reason for availability.
+       * 
+ * + * string reason = 2; + * + * @return The reason. + */ + java.lang.String getReason(); + /** + * + * + *
+       * Reason for availability.
+       * 
+ * + * string reason = 2; + * + * @return The bytes for reason. + */ + com.google.protobuf.ByteString getReasonBytes(); + } + /** + * + * + *
+     * Deprecated.
+     * 
+ * + * Protobuf type {@code + * google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion} + */ + @java.lang.Deprecated + public static final class AvailableVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) + AvailableVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AvailableVersion.newBuilder() to construct. + private AvailableVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AvailableVersion() { + version_ = ""; + reason_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AvailableVersion(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AvailableVersion( + 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 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + reason_ = 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .class, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + * + * + *
+       * Kubernetes version.
+       * 
+ * + * 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; + } + } + /** + * + * + *
+       * Kubernetes version.
+       * 
+ * + * 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 REASON_FIELD_NUMBER = 2; + private volatile java.lang.Object reason_; + /** + * + * + *
+       * Reason for availability.
+       * 
+ * + * string reason = 2; + * + * @return The reason. + */ + @java.lang.Override + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } + } + /** + * + * + *
+       * Reason for availability.
+       * 
+ * + * string reason = 2; + * + * @return The bytes for reason. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = 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 (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (!getReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reason_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (!getReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reason_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion)) { + return super.equals(obj); + } + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion other = + (com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) obj; + + if (!getVersion().equals(other.getVersion())) return false; + if (!getReason().equals(other.getReason())) 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) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + 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; + } + /** + * + * + *
+       * Deprecated.
+       * 
+ * + * Protobuf type {@code + * google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .class, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .Builder.class); + } + + // Construct using + // com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.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_ = ""; + + reason_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_AvailableVersion_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + getDefaultInstanceForType() { + return com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + build() { + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + buildPartial() { + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion result = + new com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion( + this); + result.version_ = version_; + result.reason_ = reason_; + 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.ServerConfig.ReleaseChannelConfig.AvailableVersion) { + return mergeFrom( + (com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion other) { + if (other + == com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object version_ = ""; + /** + * + * + *
+         * Kubernetes version.
+         * 
+ * + * 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; + } + } + /** + * + * + *
+         * Kubernetes version.
+         * 
+ * + * 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; + } + } + /** + * + * + *
+         * Kubernetes version.
+         * 
+ * + * 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; + } + /** + * + * + *
+         * Kubernetes version.
+         * 
+ * + * string version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * + * + *
+         * Kubernetes version.
+         * 
+ * + * 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 java.lang.Object reason_ = ""; + /** + * + * + *
+         * Reason for availability.
+         * 
+ * + * string reason = 2; + * + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Reason for availability.
+         * 
+ * + * string reason = 2; + * + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Reason for availability.
+         * 
+ * + * string reason = 2; + * + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Reason for availability.
+         * 
+ * + * string reason = 2; + * + * @return This builder for chaining. + */ + public Builder clearReason() { + + reason_ = getDefaultInstance().getReason(); + onChanged(); + return this; + } + /** + * + * + *
+         * Reason for availability.
+         * 
+ * + * string reason = 2; + * + * @param value The bytes for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reason_ = 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.ServerConfig.ReleaseChannelConfig.AvailableVersion) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion) + private static final com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion(); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvailableVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AvailableVersion(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private int channel_; + /** + * + * + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ReleaseChannel.Channel result = + com.google.container.v1beta1.ReleaseChannel.Channel.valueOf(channel_); + return result == null + ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED + : result; + } + + public static final int DEFAULT_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object defaultVersion_; + /** + * + * + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * + * @return The defaultVersion. + */ + @java.lang.Override + public java.lang.String getDefaultVersion() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultVersion_ = s; + return s; + } + } + /** + * + * + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * + * @return The bytes for defaultVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultVersionBytes() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AVAILABLE_VERSIONS_FIELD_NUMBER = 3; + private java.util.List< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion> + availableVersions_; + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion> + getAvailableVersionsList() { + return availableVersions_; + } + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder> + getAvailableVersionsOrBuilderList() { + return availableVersions_; + } + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getAvailableVersionsCount() { + return availableVersions_.size(); + } + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + getAvailableVersions(int index) { + return availableVersions_.get(index); + } + /** + * + * + *
+     * Deprecated.
+     * This field has been deprecated and replaced with the valid_versions
+     * field.
+     * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersionOrBuilder + getAvailableVersionsOrBuilder(int index) { + return availableVersions_.get(index); + } + + public static final int VALID_VERSIONS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList validVersions_; + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @return A list containing the validVersions. + */ + public com.google.protobuf.ProtocolStringList getValidVersionsList() { + return validVersions_; + } + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @return The count of validVersions. + */ + public int getValidVersionsCount() { + return validVersions_.size(); + } + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the element to return. + * @return The validVersions at the given index. + */ + public java.lang.String getValidVersions(int index) { + return validVersions_.get(index); + } + /** + * + * + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the validVersions at the given index. + */ + public com.google.protobuf.ByteString getValidVersionsBytes(int index) { + return validVersions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (channel_ != com.google.container.v1beta1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + output.writeEnum(1, channel_); + } + if (!getDefaultVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultVersion_); + } + for (int i = 0; i < availableVersions_.size(); i++) { + output.writeMessage(3, availableVersions_.get(i)); + } + for (int i = 0; i < validVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, validVersions_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (channel_ != com.google.container.v1beta1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, channel_); + } + if (!getDefaultVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultVersion_); + } + for (int i = 0; i < availableVersions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, availableVersions_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < validVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(validVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getValidVersionsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig other = + (com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig) obj; + + if (channel_ != other.channel_) return false; + if (!getDefaultVersion().equals(other.getDefaultVersion())) return false; + if (!getAvailableVersionsList().equals(other.getAvailableVersionsList())) return false; + if (!getValidVersionsList().equals(other.getValidVersionsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + channel_; + hash = (37 * hash) + DEFAULT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDefaultVersion().hashCode(); + if (getAvailableVersionsCount() > 0) { + hash = (37 * hash) + AVAILABLE_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getAvailableVersionsList().hashCode(); + } + if (getValidVersionsCount() > 0) { + hash = (37 * hash) + VALID_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getValidVersionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * ReleaseChannelConfig exposes configuration for a release channel.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.ServerConfig.ReleaseChannelConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ServerConfig.ReleaseChannelConfig) + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.class, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAvailableVersionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + channel_ = 0; + + defaultVersion_ = ""; + + if (availableVersionsBuilder_ == null) { + availableVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + availableVersionsBuilder_.clear(); + } + validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + getDefaultInstanceForType() { + return com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig build() { + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig buildPartial() { + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig result = + new com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig(this); + int from_bitField0_ = bitField0_; + result.channel_ = channel_; + result.defaultVersion_ = defaultVersion_; + if (availableVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + availableVersions_ = java.util.Collections.unmodifiableList(availableVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.availableVersions_ = availableVersions_; + } else { + result.availableVersions_ = availableVersionsBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + validVersions_ = validVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.validVersions_ = validVersions_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig) { + return mergeFrom((com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig other) { + if (other + == com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()) + return this; + if (other.channel_ != 0) { + setChannelValue(other.getChannelValue()); + } + if (!other.getDefaultVersion().isEmpty()) { + defaultVersion_ = other.defaultVersion_; + onChanged(); + } + if (availableVersionsBuilder_ == null) { + if (!other.availableVersions_.isEmpty()) { + if (availableVersions_.isEmpty()) { + availableVersions_ = other.availableVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAvailableVersionsIsMutable(); + availableVersions_.addAll(other.availableVersions_); + } + onChanged(); + } + } else { + if (!other.availableVersions_.isEmpty()) { + if (availableVersionsBuilder_.isEmpty()) { + availableVersionsBuilder_.dispose(); + availableVersionsBuilder_ = null; + availableVersions_ = other.availableVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + availableVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAvailableVersionsFieldBuilder() + : null; + } else { + availableVersionsBuilder_.addAllMessages(other.availableVersions_); + } + } + } + if (!other.validVersions_.isEmpty()) { + if (validVersions_.isEmpty()) { + validVersions_ = other.validVersions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValidVersionsIsMutable(); + validVersions_.addAll(other.validVersions_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int channel_ = 0; + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override + public int getChannelValue() { + return channel_; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @param value The enum numeric value on the wire for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelValue(int value) { + + channel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.ReleaseChannel.Channel result = + com.google.container.v1beta1.ReleaseChannel.Channel.valueOf(channel_); + return result == null + ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.container.v1beta1.ReleaseChannel.Channel value) { + if (value == null) { + throw new NullPointerException(); + } + + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1beta1.ReleaseChannel.Channel channel = 1; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + + channel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object defaultVersion_ = ""; + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @return The defaultVersion. + */ + public java.lang.String getDefaultVersion() { + java.lang.Object ref = defaultVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @return The bytes for defaultVersion. + */ + public com.google.protobuf.ByteString getDefaultVersionBytes() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @param value The defaultVersion to set. + * @return This builder for chaining. + */ + public Builder setDefaultVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @return This builder for chaining. + */ + public Builder clearDefaultVersion() { + + defaultVersion_ = getDefaultInstance().getDefaultVersion(); + onChanged(); + return this; + } + /** + * + * + *
+       * The default version for newly created clusters on the channel.
+       * 
+ * + * string default_version = 2; + * + * @param value The bytes for defaultVersion to set. + * @return This builder for chaining. + */ + public Builder setDefaultVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultVersion_ = value; + onChanged(); + return this; + } + + private java.util.List< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion> + availableVersions_ = java.util.Collections.emptyList(); + + private void ensureAvailableVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + availableVersions_ = + new java.util.ArrayList< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion>( + availableVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .Builder, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder> + availableVersionsBuilder_; + + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion> + getAvailableVersionsList() { + if (availableVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(availableVersions_); + } else { + return availableVersionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public int getAvailableVersionsCount() { + if (availableVersionsBuilder_ == null) { + return availableVersions_.size(); + } else { + return availableVersionsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + getAvailableVersions(int index) { + if (availableVersionsBuilder_ == null) { + return availableVersions_.get(index); + } else { + return availableVersionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setAvailableVersions( + int index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion value) { + if (availableVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvailableVersionsIsMutable(); + availableVersions_.set(index, value); + onChanged(); + } else { + availableVersionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setAvailableVersions( + int index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder + builderForValue) { + if (availableVersionsBuilder_ == null) { + ensureAvailableVersionsIsMutable(); + availableVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + availableVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAvailableVersions( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion value) { + if (availableVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvailableVersionsIsMutable(); + availableVersions_.add(value); + onChanged(); + } else { + availableVersionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAvailableVersions( + int index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion value) { + if (availableVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAvailableVersionsIsMutable(); + availableVersions_.add(index, value); + onChanged(); + } else { + availableVersionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAvailableVersions( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder + builderForValue) { + if (availableVersionsBuilder_ == null) { + ensureAvailableVersionsIsMutable(); + availableVersions_.add(builderForValue.build()); + onChanged(); + } else { + availableVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAvailableVersions( + int index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder + builderForValue) { + if (availableVersionsBuilder_ == null) { + ensureAvailableVersionsIsMutable(); + availableVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + availableVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder addAllAvailableVersions( + java.lang.Iterable< + ? extends + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersion> + values) { + if (availableVersionsBuilder_ == null) { + ensureAvailableVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, availableVersions_); + onChanged(); + } else { + availableVersionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearAvailableVersions() { + if (availableVersionsBuilder_ == null) { + availableVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + availableVersionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder removeAvailableVersions(int index) { + if (availableVersionsBuilder_ == null) { + ensureAvailableVersionsIsMutable(); + availableVersions_.remove(index); + onChanged(); + } else { + availableVersionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder + getAvailableVersionsBuilder(int index) { + return getAvailableVersionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder + getAvailableVersionsOrBuilder(int index) { + if (availableVersionsBuilder_ == null) { + return availableVersions_.get(index); + } else { + return availableVersionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List< + ? extends + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder> + getAvailableVersionsOrBuilderList() { + if (availableVersionsBuilder_ != null) { + return availableVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(availableVersions_); + } + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder + addAvailableVersionsBuilder() { + return getAvailableVersionsFieldBuilder() + .addBuilder( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .getDefaultInstance()); + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.Builder + addAvailableVersionsBuilder(int index) { + return getAvailableVersionsFieldBuilder() + .addBuilder( + index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .getDefaultInstance()); + } + /** + * + * + *
+       * Deprecated.
+       * This field has been deprecated and replaced with the valid_versions
+       * field.
+       * 
+ * + * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion available_versions = 3 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .Builder> + getAvailableVersionsBuilderList() { + return getAvailableVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .Builder, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder> + getAvailableVersionsFieldBuilder() { + if (availableVersionsBuilder_ == null) { + availableVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion + .Builder, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + .AvailableVersionOrBuilder>( + availableVersions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + availableVersions_ = null; + } + return availableVersionsBuilder_; + } + + private com.google.protobuf.LazyStringList validVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidVersionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + validVersions_ = new com.google.protobuf.LazyStringArrayList(validVersions_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @return A list containing the validVersions. + */ + public com.google.protobuf.ProtocolStringList getValidVersionsList() { + return validVersions_.getUnmodifiableView(); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @return The count of validVersions. + */ + public int getValidVersionsCount() { + return validVersions_.size(); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the element to return. + * @return The validVersions at the given index. + */ + public java.lang.String getValidVersions(int index) { + return validVersions_.get(index); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index of the value to return. + * @return The bytes of the validVersions at the given index. + */ + public com.google.protobuf.ByteString getValidVersionsBytes(int index) { + return validVersions_.getByteString(index); + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param index The index to set the value at. + * @param value The validVersions to set. + * @return This builder for chaining. + */ + public Builder setValidVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidVersionsIsMutable(); + validVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param value The validVersions to add. + * @return This builder for chaining. + */ + public Builder addValidVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidVersionsIsMutable(); + validVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param values The validVersions to add. + * @return This builder for chaining. + */ + public Builder addAllValidVersions(java.lang.Iterable values) { + ensureValidVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validVersions_); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @return This builder for chaining. + */ + public Builder clearValidVersions() { + validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * + * @param value The bytes of the validVersions to add. + * @return This builder for chaining. + */ + public Builder addValidVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidVersionsIsMutable(); + validVersions_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ServerConfig.ReleaseChannelConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ServerConfig.ReleaseChannelConfig) + private static final com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig(); + } + + public static com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseChannelConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReleaseChannelConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object defaultClusterVersion_; + /** + * + * + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + * + * @return The defaultClusterVersion. + */ + @java.lang.Override + public java.lang.String getDefaultClusterVersion() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultClusterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + * + * @return The bytes for defaultClusterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultClusterVersionBytes() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_NODE_VERSIONS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList validNodeVersions_; + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @return A list containing the validNodeVersions. + */ + public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { + return validNodeVersions_; + } + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @return The count of validNodeVersions. + */ + public int getValidNodeVersionsCount() { + return validNodeVersions_.size(); + } + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the element to return. + * @return The validNodeVersions at the given index. + */ + public java.lang.String getValidNodeVersions(int index) { + return validNodeVersions_.get(index); + } + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the value to return. + * @return The bytes of the validNodeVersions at the given index. + */ + public com.google.protobuf.ByteString getValidNodeVersionsBytes(int index) { + return validNodeVersions_.getByteString(index); + } + + public static final int DEFAULT_IMAGE_TYPE_FIELD_NUMBER = 4; + private volatile java.lang.Object defaultImageType_; + /** + * + * + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + * + * @return The defaultImageType. + */ + @java.lang.Override + public java.lang.String getDefaultImageType() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultImageType_ = s; + return s; + } + } + /** + * + * + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + * + * @return The bytes for defaultImageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultImageTypeBytes() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_IMAGE_TYPES_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList validImageTypes_; + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @return A list containing the validImageTypes. + */ + public com.google.protobuf.ProtocolStringList getValidImageTypesList() { + return validImageTypes_; + } + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @return The count of validImageTypes. + */ + public int getValidImageTypesCount() { + return validImageTypes_.size(); + } + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the element to return. + * @return The validImageTypes at the given index. + */ + public java.lang.String getValidImageTypes(int index) { + return validImageTypes_.get(index); + } + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the validImageTypes at the given index. + */ + public com.google.protobuf.ByteString getValidImageTypesBytes(int index) { + return validImageTypes_.getByteString(index); + } + + public static final int VALID_MASTER_VERSIONS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList validMasterVersions_; + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @return A list containing the validMasterVersions. + */ + public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { + return validMasterVersions_; + } + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @return The count of validMasterVersions. + */ + public int getValidMasterVersionsCount() { + return validMasterVersions_.size(); + } + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the element to return. + * @return The validMasterVersions at the given index. + */ + public java.lang.String getValidMasterVersions(int index) { + return validMasterVersions_.get(index); + } + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the value to return. + * @return The bytes of the validMasterVersions at the given index. + */ + public com.google.protobuf.ByteString getValidMasterVersionsBytes(int index) { + return validMasterVersions_.getByteString(index); + } + + public static final int CHANNELS_FIELD_NUMBER = 9; + private java.util.List channels_; + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public java.util.List + getChannelsList() { + return channels_; + } + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder> + getChannelsOrBuilderList() { + return channels_; + } + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public int getChannelsCount() { + return channels_.size(); + } + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig getChannels(int index) { + return channels_.get(index); + } + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder + getChannelsOrBuilder(int index) { + return channels_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDefaultClusterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultClusterVersion_); + } + for (int i = 0; i < validNodeVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validNodeVersions_.getRaw(i)); + } + if (!getDefaultImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultImageType_); + } + for (int i = 0; i < validImageTypes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validImageTypes_.getRaw(i)); + } + for (int i = 0; i < validMasterVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, validMasterVersions_.getRaw(i)); + } + for (int i = 0; i < channels_.size(); i++) { + output.writeMessage(9, channels_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDefaultClusterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, defaultClusterVersion_); + } + { + int dataSize = 0; + for (int i = 0; i < validNodeVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(validNodeVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getValidNodeVersionsList().size(); + } + if (!getDefaultImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultImageType_); + } + { + int dataSize = 0; + for (int i = 0; i < validImageTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(validImageTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getValidImageTypesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < validMasterVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(validMasterVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getValidMasterVersionsList().size(); + } + for (int i = 0; i < channels_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, channels_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ServerConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ServerConfig other = + (com.google.container.v1beta1.ServerConfig) obj; + + if (!getDefaultClusterVersion().equals(other.getDefaultClusterVersion())) return false; + if (!getValidNodeVersionsList().equals(other.getValidNodeVersionsList())) return false; + if (!getDefaultImageType().equals(other.getDefaultImageType())) return false; + if (!getValidImageTypesList().equals(other.getValidImageTypesList())) return false; + if (!getValidMasterVersionsList().equals(other.getValidMasterVersionsList())) return false; + if (!getChannelsList().equals(other.getChannelsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEFAULT_CLUSTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDefaultClusterVersion().hashCode(); + if (getValidNodeVersionsCount() > 0) { + hash = (37 * hash) + VALID_NODE_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getValidNodeVersionsList().hashCode(); + } + hash = (37 * hash) + DEFAULT_IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultImageType().hashCode(); + if (getValidImageTypesCount() > 0) { + hash = (37 * hash) + VALID_IMAGE_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getValidImageTypesList().hashCode(); + } + if (getValidMasterVersionsCount() > 0) { + hash = (37 * hash) + VALID_MASTER_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getValidMasterVersionsList().hashCode(); + } + if (getChannelsCount() > 0) { + hash = (37 * hash) + CHANNELS_FIELD_NUMBER; + hash = (53 * hash) + getChannelsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ServerConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ServerConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ServerConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ServerConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ServerConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ServerConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ServerConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ServerConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ServerConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Kubernetes Engine service configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ServerConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ServerConfig) + com.google.container.v1beta1.ServerConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ServerConfig.class, + com.google.container.v1beta1.ServerConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ServerConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getChannelsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + defaultClusterVersion_ = ""; + + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + defaultImageType_ = ""; + + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + channelsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ServerConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ServerConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig build() { + com.google.container.v1beta1.ServerConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig buildPartial() { + com.google.container.v1beta1.ServerConfig result = + new com.google.container.v1beta1.ServerConfig(this); + int from_bitField0_ = bitField0_; + result.defaultClusterVersion_ = defaultClusterVersion_; + if (((bitField0_ & 0x00000001) != 0)) { + validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.validNodeVersions_ = validNodeVersions_; + result.defaultImageType_ = defaultImageType_; + if (((bitField0_ & 0x00000002) != 0)) { + validImageTypes_ = validImageTypes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.validImageTypes_ = validImageTypes_; + if (((bitField0_ & 0x00000004) != 0)) { + validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.validMasterVersions_ = validMasterVersions_; + if (channelsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + channels_ = java.util.Collections.unmodifiableList(channels_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.channels_ = channels_; + } else { + result.channels_ = channelsBuilder_.build(); + } + onBuilt(); + return result; + } + + @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.ServerConfig) { + return mergeFrom((com.google.container.v1beta1.ServerConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ServerConfig other) { + if (other == com.google.container.v1beta1.ServerConfig.getDefaultInstance()) return this; + if (!other.getDefaultClusterVersion().isEmpty()) { + defaultClusterVersion_ = other.defaultClusterVersion_; + onChanged(); + } + if (!other.validNodeVersions_.isEmpty()) { + if (validNodeVersions_.isEmpty()) { + validNodeVersions_ = other.validNodeVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.addAll(other.validNodeVersions_); + } + onChanged(); + } + if (!other.getDefaultImageType().isEmpty()) { + defaultImageType_ = other.defaultImageType_; + onChanged(); + } + if (!other.validImageTypes_.isEmpty()) { + if (validImageTypes_.isEmpty()) { + validImageTypes_ = other.validImageTypes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValidImageTypesIsMutable(); + validImageTypes_.addAll(other.validImageTypes_); + } + onChanged(); + } + if (!other.validMasterVersions_.isEmpty()) { + if (validMasterVersions_.isEmpty()) { + validMasterVersions_ = other.validMasterVersions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.addAll(other.validMasterVersions_); + } + onChanged(); + } + if (channelsBuilder_ == null) { + if (!other.channels_.isEmpty()) { + if (channels_.isEmpty()) { + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureChannelsIsMutable(); + channels_.addAll(other.channels_); + } + onChanged(); + } + } else { + if (!other.channels_.isEmpty()) { + if (channelsBuilder_.isEmpty()) { + channelsBuilder_.dispose(); + channelsBuilder_ = null; + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000008); + channelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChannelsFieldBuilder() + : null; + } else { + channelsBuilder_.addAllMessages(other.channels_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ServerConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ServerConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object defaultClusterVersion_ = ""; + /** + * + * + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + * + * @return The defaultClusterVersion. + */ + public java.lang.String getDefaultClusterVersion() { + java.lang.Object ref = defaultClusterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultClusterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + * + * @return The bytes for defaultClusterVersion. + */ + public com.google.protobuf.ByteString getDefaultClusterVersionBytes() { + java.lang.Object ref = defaultClusterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + * + * @param value The defaultClusterVersion to set. + * @return This builder for chaining. + */ + public Builder setDefaultClusterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultClusterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + * + * @return This builder for chaining. + */ + public Builder clearDefaultClusterVersion() { + + defaultClusterVersion_ = getDefaultInstance().getDefaultClusterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Version of Kubernetes the service deploys by default.
+     * 
+ * + * string default_cluster_version = 1; + * + * @param value The bytes for defaultClusterVersion to set. + * @return This builder for chaining. + */ + public Builder setDefaultClusterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultClusterVersion_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validNodeVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidNodeVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @return A list containing the validNodeVersions. + */ + public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { + return validNodeVersions_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @return The count of validNodeVersions. + */ + public int getValidNodeVersionsCount() { + return validNodeVersions_.size(); + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the element to return. + * @return The validNodeVersions at the given index. + */ + public java.lang.String getValidNodeVersions(int index) { + return validNodeVersions_.get(index); + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the value to return. + * @return The bytes of the validNodeVersions at the given index. + */ + public com.google.protobuf.ByteString getValidNodeVersionsBytes(int index) { + return validNodeVersions_.getByteString(index); + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index to set the value at. + * @param value The validNodeVersions to set. + * @return This builder for chaining. + */ + public Builder setValidNodeVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param value The validNodeVersions to add. + * @return This builder for chaining. + */ + public Builder addValidNodeVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param values The validNodeVersions to add. + * @return This builder for chaining. + */ + public Builder addAllValidNodeVersions(java.lang.Iterable values) { + ensureValidNodeVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validNodeVersions_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @return This builder for chaining. + */ + public Builder clearValidNodeVersions() { + validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid node upgrade target versions, in descending order.
+     * 
+ * + * repeated string valid_node_versions = 3; + * + * @param value The bytes of the validNodeVersions to add. + * @return This builder for chaining. + */ + public Builder addValidNodeVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(value); + onChanged(); + return this; + } + + private java.lang.Object defaultImageType_ = ""; + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @return The defaultImageType. + */ + public java.lang.String getDefaultImageType() { + java.lang.Object ref = defaultImageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultImageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @return The bytes for defaultImageType. + */ + public com.google.protobuf.ByteString getDefaultImageTypeBytes() { + java.lang.Object ref = defaultImageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultImageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @param value The defaultImageType to set. + * @return This builder for chaining. + */ + public Builder setDefaultImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + defaultImageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearDefaultImageType() { + + defaultImageType_ = getDefaultInstance().getDefaultImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * + * @param value The bytes for defaultImageType to set. + * @return This builder for chaining. + */ + public Builder setDefaultImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + defaultImageType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validImageTypes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidImageTypesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @return A list containing the validImageTypes. + */ + public com.google.protobuf.ProtocolStringList getValidImageTypesList() { + return validImageTypes_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @return The count of validImageTypes. + */ + public int getValidImageTypesCount() { + return validImageTypes_.size(); + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the element to return. + * @return The validImageTypes at the given index. + */ + public java.lang.String getValidImageTypes(int index) { + return validImageTypes_.get(index); + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the validImageTypes at the given index. + */ + public com.google.protobuf.ByteString getValidImageTypesBytes(int index) { + return validImageTypes_.getByteString(index); + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index to set the value at. + * @param value The validImageTypes to set. + * @return This builder for chaining. + */ + public Builder setValidImageTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidImageTypesIsMutable(); + validImageTypes_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param value The validImageTypes to add. + * @return This builder for chaining. + */ + public Builder addValidImageTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidImageTypesIsMutable(); + validImageTypes_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param values The validImageTypes to add. + * @return This builder for chaining. + */ + public Builder addAllValidImageTypes(java.lang.Iterable values) { + ensureValidImageTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validImageTypes_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @return This builder for chaining. + */ + public Builder clearValidImageTypes() { + validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * + * @param value The bytes of the validImageTypes to add. + * @return This builder for chaining. + */ + public Builder addValidImageTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidImageTypesIsMutable(); + validImageTypes_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList validMasterVersions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValidMasterVersionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @return A list containing the validMasterVersions. + */ + public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { + return validMasterVersions_.getUnmodifiableView(); + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @return The count of validMasterVersions. + */ + public int getValidMasterVersionsCount() { + return validMasterVersions_.size(); + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the element to return. + * @return The validMasterVersions at the given index. + */ + public java.lang.String getValidMasterVersions(int index) { + return validMasterVersions_.get(index); + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the value to return. + * @return The bytes of the validMasterVersions at the given index. + */ + public com.google.protobuf.ByteString getValidMasterVersionsBytes(int index) { + return validMasterVersions_.getByteString(index); + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index to set the value at. + * @param value The validMasterVersions to set. + * @return This builder for chaining. + */ + public Builder setValidMasterVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param value The validMasterVersions to add. + * @return This builder for chaining. + */ + public Builder addValidMasterVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param values The validMasterVersions to add. + * @return This builder for chaining. + */ + public Builder addAllValidMasterVersions(java.lang.Iterable values) { + ensureValidMasterVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validMasterVersions_); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @return This builder for chaining. + */ + public Builder clearValidMasterVersions() { + validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * List of valid master versions, in descending order.
+     * 
+ * + * repeated string valid_master_versions = 6; + * + * @param value The bytes of the validMasterVersions to add. + * @return This builder for chaining. + */ + public Builder addValidMasterVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.add(value); + onChanged(); + return this; + } + + private java.util.List + channels_ = java.util.Collections.emptyList(); + + private void ensureChannelsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + channels_ = + new java.util.ArrayList( + channels_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder> + channelsBuilder_; + + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public java.util.List + getChannelsList() { + if (channelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(channels_); + } else { + return channelsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public int getChannelsCount() { + if (channelsBuilder_ == null) { + return channels_.size(); + } else { + return channelsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig getChannels(int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder setChannels( + int index, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.set(index, value); + onChanged(); + } else { + channelsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder setChannels( + int index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.set(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder addChannels( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(value); + onChanged(); + } else { + channelsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder addChannels( + int index, com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(index, value); + onChanged(); + } else { + channelsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder addChannels( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder addChannels( + int index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder addAllChannels( + java.lang.Iterable + values) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channels_); + onChanged(); + } else { + channelsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder clearChannels() { + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + channelsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public Builder removeChannels(int index) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.remove(index); + onChanged(); + } else { + channelsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder + getChannelsBuilder(int index) { + return getChannelsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder + getChannelsOrBuilder(int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public java.util.List< + ? extends com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder> + getChannelsOrBuilderList() { + if (channelsBuilder_ != null) { + return channelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(channels_); + } + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder + addChannelsBuilder() { + return getChannelsFieldBuilder() + .addBuilder( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder + addChannelsBuilder(int index) { + return getChannelsFieldBuilder() + .addBuilder( + index, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + * + */ + public java.util.List + getChannelsBuilderList() { + return getChannelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder> + getChannelsFieldBuilder() { + if (channelsBuilder_ == null) { + channelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.Builder, + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder>( + channels_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + channels_ = null; + } + return channelsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ServerConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ServerConfig) + private static final com.google.container.v1beta1.ServerConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ServerConfig(); + } + + public static com.google.container.v1beta1.ServerConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServerConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ServerConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java new file mode 100644 index 00000000..b6e28dff --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java @@ -0,0 +1,281 @@ +/* + * 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 ServerConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ServerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + * + * @return The defaultClusterVersion. + */ + java.lang.String getDefaultClusterVersion(); + /** + * + * + *
+   * Version of Kubernetes the service deploys by default.
+   * 
+ * + * string default_cluster_version = 1; + * + * @return The bytes for defaultClusterVersion. + */ + com.google.protobuf.ByteString getDefaultClusterVersionBytes(); + + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @return A list containing the validNodeVersions. + */ + java.util.List getValidNodeVersionsList(); + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @return The count of validNodeVersions. + */ + int getValidNodeVersionsCount(); + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the element to return. + * @return The validNodeVersions at the given index. + */ + java.lang.String getValidNodeVersions(int index); + /** + * + * + *
+   * List of valid node upgrade target versions, in descending order.
+   * 
+ * + * repeated string valid_node_versions = 3; + * + * @param index The index of the value to return. + * @return The bytes of the validNodeVersions at the given index. + */ + com.google.protobuf.ByteString getValidNodeVersionsBytes(int index); + + /** + * + * + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + * + * @return The defaultImageType. + */ + java.lang.String getDefaultImageType(); + /** + * + * + *
+   * Default image type.
+   * 
+ * + * string default_image_type = 4; + * + * @return The bytes for defaultImageType. + */ + com.google.protobuf.ByteString getDefaultImageTypeBytes(); + + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @return A list containing the validImageTypes. + */ + java.util.List getValidImageTypesList(); + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @return The count of validImageTypes. + */ + int getValidImageTypesCount(); + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the element to return. + * @return The validImageTypes at the given index. + */ + java.lang.String getValidImageTypes(int index); + /** + * + * + *
+   * List of valid image types.
+   * 
+ * + * repeated string valid_image_types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the validImageTypes at the given index. + */ + com.google.protobuf.ByteString getValidImageTypesBytes(int index); + + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @return A list containing the validMasterVersions. + */ + java.util.List getValidMasterVersionsList(); + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @return The count of validMasterVersions. + */ + int getValidMasterVersionsCount(); + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the element to return. + * @return The validMasterVersions at the given index. + */ + java.lang.String getValidMasterVersions(int index); + /** + * + * + *
+   * List of valid master versions, in descending order.
+   * 
+ * + * repeated string valid_master_versions = 6; + * + * @param index The index of the value to return. + * @return The bytes of the validMasterVersions at the given index. + */ + com.google.protobuf.ByteString getValidMasterVersionsBytes(int index); + + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + java.util.List getChannelsList(); + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig getChannels(int index); + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + int getChannelsCount(); + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + java.util.List + getChannelsOrBuilderList(); + /** + * + * + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1beta1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( + int index); +} 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 new file mode 100644 index 00000000..bf35eb86 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java @@ -0,0 +1,1571 @@ +/* + * 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; + +/** + * + * + *
+ * SetAddonsRequest sets the addons associated with the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetAddonsConfigRequest} + */ +public final class SetAddonsConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetAddonsConfigRequest) + SetAddonsConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetAddonsConfigRequest.newBuilder() to construct. + private SetAddonsConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetAddonsConfigRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetAddonsConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetAddonsConfigRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + com.google.container.v1beta1.AddonsConfig.Builder subBuilder = null; + if (addonsConfig_ != null) { + subBuilder = addonsConfig_.toBuilder(); + } + addonsConfig_ = + input.readMessage( + com.google.container.v1beta1.AddonsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(addonsConfig_); + addonsConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetAddonsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetAddonsConfigRequest.class, + com.google.container.v1beta1.SetAddonsConfigRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDONS_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1beta1.AddonsConfig addonsConfig_; + /** + * + * + *
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addonsConfig field is set. + */ + @java.lang.Override + public boolean hasAddonsConfig() { + return addonsConfig_ != null; + } + /** + * + * + *
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addonsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { + return addonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : addonsConfig_; + } + /** + * + * + *
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + return getAddonsConfig(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (addonsConfig_ != null) { + output.writeMessage(4, getAddonsConfig()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (addonsConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAddonsConfig()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SetAddonsConfigRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetAddonsConfigRequest other = + (com.google.container.v1beta1.SetAddonsConfigRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (hasAddonsConfig() != other.hasAddonsConfig()) return false; + if (hasAddonsConfig()) { + if (!getAddonsConfig().equals(other.getAddonsConfig())) return false; + } + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasAddonsConfig()) { + hash = (37 * hash) + ADDONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAddonsConfig().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.SetAddonsConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetAddonsRequest sets the addons associated with the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetAddonsConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetAddonsConfigRequest) + com.google.container.v1beta1.SetAddonsConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetAddonsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetAddonsConfigRequest.class, + com.google.container.v1beta1.SetAddonsConfigRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetAddonsConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetAddonsConfigRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetAddonsConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetAddonsConfigRequest build() { + com.google.container.v1beta1.SetAddonsConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetAddonsConfigRequest buildPartial() { + com.google.container.v1beta1.SetAddonsConfigRequest result = + new com.google.container.v1beta1.SetAddonsConfigRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (addonsConfigBuilder_ == null) { + result.addonsConfig_ = addonsConfig_; + } else { + result.addonsConfig_ = addonsConfigBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.SetAddonsConfigRequest) { + return mergeFrom((com.google.container.v1beta1.SetAddonsConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetAddonsConfigRequest other) { + if (other == com.google.container.v1beta1.SetAddonsConfigRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetAddonsConfigRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.SetAddonsConfigRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AddonsConfig addonsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder> + addonsConfigBuilder_; + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addonsConfig field is set. + */ + public boolean hasAddonsConfig() { + return addonsConfigBuilder_ != null || addonsConfig_ != null; + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addonsConfig. + */ + public com.google.container.v1beta1.AddonsConfig getAddonsConfig() { + if (addonsConfigBuilder_ == null) { + return addonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : addonsConfig_; + } else { + return addonsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + addonsConfig_ = value; + onChanged(); + } else { + addonsConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAddonsConfig( + com.google.container.v1beta1.AddonsConfig.Builder builderForValue) { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = builderForValue.build(); + onChanged(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAddonsConfig(com.google.container.v1beta1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (addonsConfig_ != null) { + addonsConfig_ = + com.google.container.v1beta1.AddonsConfig.newBuilder(addonsConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + addonsConfig_ = value; + } + onChanged(); + } else { + addonsConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAddonsConfig() { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = null; + onChanged(); + } else { + addonsConfig_ = null; + addonsConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.AddonsConfig.Builder getAddonsConfigBuilder() { + + onChanged(); + return getAddonsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + if (addonsConfigBuilder_ != null) { + return addonsConfigBuilder_.getMessageOrBuilder(); + } else { + return addonsConfig_ == null + ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() + : addonsConfig_; + } + } + /** + * + * + *
+     * Required. The desired configurations for the various addons available to run in the
+     * cluster.
+     * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder> + getAddonsConfigFieldBuilder() { + if (addonsConfigBuilder_ == null) { + addonsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AddonsConfig, + com.google.container.v1beta1.AddonsConfig.Builder, + com.google.container.v1beta1.AddonsConfigOrBuilder>( + getAddonsConfig(), getParentForChildren(), isClean()); + addonsConfig_ = null; + } + return addonsConfigBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set addons.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetAddonsConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetAddonsConfigRequest) + private static final com.google.container.v1beta1.SetAddonsConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetAddonsConfigRequest(); + } + + public static com.google.container.v1beta1.SetAddonsConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetAddonsConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetAddonsConfigRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetAddonsConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/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 new file mode 100644 index 00000000..6ac20a82 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java @@ -0,0 +1,193 @@ +/* + * 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 SetAddonsConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetAddonsConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addonsConfig field is set. + */ + boolean hasAddonsConfig(); + /** + * + * + *
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addonsConfig. + */ + com.google.container.v1beta1.AddonsConfig getAddonsConfig(); + /** + * + * + *
+   * Required. The desired configurations for the various addons available to run in the
+   * cluster.
+   * 
+ * + * + * .google.container.v1beta1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.container.v1beta1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); + + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java new file mode 100644 index 00000000..554e3fcc --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java @@ -0,0 +1,1825 @@ +/* + * 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; + +/** + * + * + *
+ * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
+ * Engine cluster, which will in turn set them for Google Compute Engine
+ * resources used by that cluster
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLabelsRequest} + */ +public final class SetLabelsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLabelsRequest) + SetLabelsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetLabelsRequest.newBuilder() to construct. + private SetLabelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetLabelsRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + labelFingerprint_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetLabelsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetLabelsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceLabels_ = + com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry resourceLabels__ = + input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + resourceLabels_ + .getMutableMap() + .put(resourceLabels__.getKey(), resourceLabels__.getValue()); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + labelFingerprint_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_SetLabelsRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLabelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLabelsRequest.class, + com.google.container.v1beta1.SetLabelsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 4; + + private static final class ResourceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLabelsRequest_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
+   * Required. The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsResourceLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetResourceLabels().getMap().containsKey(key); + } + /** Use {@link #getResourceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceLabels() { + return getResourceLabelsMap(); + } + /** + * + * + *
+   * Required. The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + * + * + *
+   * Required. The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Required. The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABEL_FINGERPRINT_FIELD_NUMBER = 5; + private volatile java.lang.Object labelFingerprint_; + /** + * + * + *
+   * Required. The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a `get()` request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The labelFingerprint. + */ + @java.lang.Override + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a `get()` request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for labelFingerprint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 4); + if (!getLabelFingerprintBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, labelFingerprint_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + for (java.util.Map.Entry entry : + internalGetResourceLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry resourceLabels__ = + ResourceLabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, resourceLabels__); + } + if (!getLabelFingerprintBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, labelFingerprint_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SetLabelsRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetLabelsRequest other = + (com.google.container.v1beta1.SetLabelsRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!internalGetResourceLabels().equals(other.internalGetResourceLabels())) return false; + if (!getLabelFingerprint().equals(other.getLabelFingerprint())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (!internalGetResourceLabels().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceLabels().hashCode(); + } + hash = (37 * hash) + LABEL_FINGERPRINT_FIELD_NUMBER; + hash = (53 * hash) + getLabelFingerprint().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetLabelsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLabelsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLabelsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLabelsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetLabelsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetLabelsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.SetLabelsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
+   * Engine cluster, which will in turn set them for Google Compute Engine
+   * resources used by that cluster
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLabelsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetLabelsRequest) + com.google.container.v1beta1.SetLabelsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLabelsRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 4: + return internalGetResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 4: + return internalGetMutableResourceLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLabelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLabelsRequest.class, + com.google.container.v1beta1.SetLabelsRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetLabelsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + internalGetMutableResourceLabels().clear(); + labelFingerprint_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLabelsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLabelsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetLabelsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetLabelsRequest build() { + com.google.container.v1beta1.SetLabelsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLabelsRequest buildPartial() { + com.google.container.v1beta1.SetLabelsRequest result = + new com.google.container.v1beta1.SetLabelsRequest(this); + int from_bitField0_ = bitField0_; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + result.labelFingerprint_ = labelFingerprint_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetLabelsRequest) { + return mergeFrom((com.google.container.v1beta1.SetLabelsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetLabelsRequest other) { + if (other == com.google.container.v1beta1.SetLabelsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetLabelsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetLabelsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField resourceLabels_; + + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + onChanged(); + ; + if (resourceLabels_ == null) { + resourceLabels_ = + com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + return resourceLabels_; + } + + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + * + * + *
+     * Required. The labels to set for that cluster.
+     * 
+ * + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public boolean containsResourceLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetResourceLabels().getMap().containsKey(key); + } + /** Use {@link #getResourceLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceLabels() { + return getResourceLabelsMap(); + } + /** + * + * + *
+     * Required. The labels to set for that cluster.
+     * 
+ * + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + * + * + *
+     * Required. The labels to set for that cluster.
+     * 
+ * + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Required. The labels to set for that cluster.
+     * 
+ * + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearResourceLabels() { + internalGetMutableResourceLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Required. The labels to set for that cluster.
+     * 
+ * + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeResourceLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableResourceLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableResourceLabels() { + return internalGetMutableResourceLabels().getMutableMap(); + } + /** + * + * + *
+     * Required. The labels to set for that cluster.
+     * 
+ * + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putResourceLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableResourceLabels().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Required. The labels to set for that cluster.
+     * 
+ * + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder putAllResourceLabels(java.util.Map values) { + internalGetMutableResourceLabels().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object labelFingerprint_ = ""; + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The labelFingerprint. + */ + public java.lang.String getLabelFingerprint() { + java.lang.Object ref = labelFingerprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + labelFingerprint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for labelFingerprint. + */ + public com.google.protobuf.ByteString getLabelFingerprintBytes() { + java.lang.Object ref = labelFingerprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + labelFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The labelFingerprint to set. + * @return This builder for chaining. + */ + public Builder setLabelFingerprint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + labelFingerprint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLabelFingerprint() { + + labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The fingerprint of the previous set of labels for this resource,
+     * used to detect conflicts. The fingerprint is initially generated by
+     * Kubernetes Engine and changes after every request to modify or update
+     * labels. You must always provide an up-to-date fingerprint hash when
+     * updating or changing labels. Make a `get()` request to the
+     * resource to get the latest fingerprint.
+     * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for labelFingerprint to set. + * @return This builder for chaining. + */ + public Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + labelFingerprint_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set labels.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetLabelsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetLabelsRequest) + private static final com.google.container.v1beta1.SetLabelsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetLabelsRequest(); + } + + public static com.google.container.v1beta1.SetLabelsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLabelsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetLabelsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLabelsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java new file mode 100644 index 00000000..94cc53c2 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java @@ -0,0 +1,243 @@ +/* + * 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 SetLabelsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLabelsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getResourceLabelsCount(); + /** + * + * + *
+   * Required. The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + boolean containsResourceLabels(java.lang.String key); + /** Use {@link #getResourceLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getResourceLabels(); + /** + * + * + *
+   * Required. The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.Map getResourceLabelsMap(); + /** + * + * + *
+   * Required. The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.lang.String getResourceLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Required. The labels to set for that cluster.
+   * 
+ * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.lang.String getResourceLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Required. The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a `get()` request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The labelFingerprint. + */ + java.lang.String getLabelFingerprint(); + /** + * + * + *
+   * Required. The fingerprint of the previous set of labels for this resource,
+   * used to detect conflicts. The fingerprint is initially generated by
+   * Kubernetes Engine and changes after every request to modify or update
+   * labels. You must always provide an up-to-date fingerprint hash when
+   * updating or changing labels. Make a `get()` request to the
+   * resource to get the latest fingerprint.
+   * 
+ * + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for labelFingerprint. + */ + com.google.protobuf.ByteString getLabelFingerprintBytes(); + + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set labels.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java new file mode 100644 index 00000000..7e2816fb --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java @@ -0,0 +1,1349 @@ +/* + * 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; + +/** + * + * + *
+ * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
+ * a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLegacyAbacRequest} + */ +public final class SetLegacyAbacRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLegacyAbacRequest) + SetLegacyAbacRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetLegacyAbacRequest.newBuilder() to construct. + private SetLegacyAbacRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetLegacyAbacRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetLegacyAbacRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetLegacyAbacRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 32: + { + enabled_ = input.readBool(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLegacyAbacRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLegacyAbacRequest.class, + com.google.container.v1beta1.SetLegacyAbacRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLED_FIELD_NUMBER = 4; + private boolean enabled_; + /** + * + * + *
+   * Required. Whether ABAC authorization will be enabled in the cluster.
+   * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (enabled_ != false) { + output.writeBool(4, enabled_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enabled_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SetLegacyAbacRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetLegacyAbacRequest other = + (com.google.container.v1beta1.SetLegacyAbacRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (getEnabled() != other.getEnabled()) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.SetLegacyAbacRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
+   * a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLegacyAbacRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetLegacyAbacRequest) + com.google.container.v1beta1.SetLegacyAbacRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLegacyAbacRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLegacyAbacRequest.class, + com.google.container.v1beta1.SetLegacyAbacRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetLegacyAbacRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + enabled_ = false; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLegacyAbacRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetLegacyAbacRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetLegacyAbacRequest build() { + com.google.container.v1beta1.SetLegacyAbacRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLegacyAbacRequest buildPartial() { + com.google.container.v1beta1.SetLegacyAbacRequest result = + new com.google.container.v1beta1.SetLegacyAbacRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.enabled_ = enabled_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.SetLegacyAbacRequest) { + return mergeFrom((com.google.container.v1beta1.SetLegacyAbacRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetLegacyAbacRequest other) { + if (other == com.google.container.v1beta1.SetLegacyAbacRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetLegacyAbacRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.SetLegacyAbacRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Required. Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Required. Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Whether ABAC authorization will be enabled in the cluster.
+     * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set legacy abac.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetLegacyAbacRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetLegacyAbacRequest) + private static final com.google.container.v1beta1.SetLegacyAbacRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetLegacyAbacRequest(); + } + + public static com.google.container.v1beta1.SetLegacyAbacRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLegacyAbacRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetLegacyAbacRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLegacyAbacRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java new file mode 100644 index 00000000..3a3af48c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * 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 SetLegacyAbacRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLegacyAbacRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. Whether ABAC authorization will be enabled in the cluster.
+   * 
+ * + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set legacy abac.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java new file mode 100644 index 00000000..d51d23d1 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java @@ -0,0 +1,1601 @@ +/* + * 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; + +/** + * + * + *
+ * SetLocationsRequest sets the locations of the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLocationsRequest} + */ +public final class SetLocationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLocationsRequest) + SetLocationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetLocationsRequest.newBuilder() to construct. + private SetLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetLocationsRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetLocationsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetLocationsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add(s); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLocationsRequest.class, + com.google.container.v1beta1.SetLocationsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locations_.getRaw(i)); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SetLocationsRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetLocationsRequest other = + (com.google.container.v1beta1.SetLocationsRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getLocationsList().equals(other.getLocationsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetLocationsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLocationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLocationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetLocationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetLocationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.SetLocationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetLocationsRequest sets the locations of the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLocationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetLocationsRequest) + com.google.container.v1beta1.SetLocationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLocationsRequest.class, + com.google.container.v1beta1.SetLocationsRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetLocationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLocationsRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetLocationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetLocationsRequest build() { + com.google.container.v1beta1.SetLocationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLocationsRequest buildPartial() { + com.google.container.v1beta1.SetLocationsRequest result = + new com.google.container.v1beta1.SetLocationsRequest(this); + int from_bitField0_ = bitField0_; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SetLocationsRequest) { + return mergeFrom((com.google.container.v1beta1.SetLocationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetLocationsRequest other) { + if (other == com.google.container.v1beta1.SetLocationsRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetLocationsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.SetLocationsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster's nodes should be located. Changing the locations a cluster is in
+     * will result in nodes being either created or removed from the cluster,
+     * depending on whether locations are being added or removed.
+     * This list must always include the cluster's primary zone.
+     * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set locations.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetLocationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetLocationsRequest) + private static final com.google.container.v1beta1.SetLocationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetLocationsRequest(); + } + + public static com.google.container.v1beta1.SetLocationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLocationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetLocationsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLocationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java new file mode 100644 index 00000000..e0e09845 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java @@ -0,0 +1,220 @@ +/* + * 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 SetLocationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLocationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the locations. + */ + java.util.List getLocationsList(); + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of locations. + */ + int getLocationsCount(); + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + java.lang.String getLocations(int index); + /** + * + * + *
+   * Required. The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located. Changing the locations a cluster is in
+   * will result in nodes being either created or removed from the cluster,
+   * depending on whether locations are being added or removed.
+   * This list must always include the cluster's primary zone.
+   * 
+ * + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + com.google.protobuf.ByteString getLocationsBytes(int index); + + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set locations.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java new file mode 100644 index 00000000..e5bcd77c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java @@ -0,0 +1,1493 @@ +/* + * 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; + +/** + * + * + *
+ * SetLoggingServiceRequest sets the logging service of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLoggingServiceRequest} + */ +public final class SetLoggingServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetLoggingServiceRequest) + SetLoggingServiceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetLoggingServiceRequest.newBuilder() to construct. + private SetLoggingServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetLoggingServiceRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + loggingService_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetLoggingServiceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetLoggingServiceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + loggingService_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLoggingServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLoggingServiceRequest.class, + com.google.container.v1beta1.SetLoggingServiceRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGGING_SERVICE_FIELD_NUMBER = 4; + private volatile java.lang.Object loggingService_; + /** + * + * + *
+   * Required. The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingService. + */ + @java.lang.Override + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for loggingService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getLoggingServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, loggingService_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getLoggingServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, loggingService_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SetLoggingServiceRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetLoggingServiceRequest other = + (com.google.container.v1beta1.SetLoggingServiceRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getLoggingService().equals(other.getLoggingService())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + LOGGING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getLoggingService().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.SetLoggingServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetLoggingServiceRequest sets the logging service of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetLoggingServiceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetLoggingServiceRequest) + com.google.container.v1beta1.SetLoggingServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLoggingServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetLoggingServiceRequest.class, + com.google.container.v1beta1.SetLoggingServiceRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetLoggingServiceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + loggingService_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLoggingServiceRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetLoggingServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetLoggingServiceRequest build() { + com.google.container.v1beta1.SetLoggingServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLoggingServiceRequest buildPartial() { + com.google.container.v1beta1.SetLoggingServiceRequest result = + new com.google.container.v1beta1.SetLoggingServiceRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.loggingService_ = loggingService_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.SetLoggingServiceRequest) { + return mergeFrom((com.google.container.v1beta1.SetLoggingServiceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetLoggingServiceRequest other) { + if (other == com.google.container.v1beta1.SetLoggingServiceRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getLoggingService().isEmpty()) { + loggingService_ = other.loggingService_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetLoggingServiceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.SetLoggingServiceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object loggingService_ = ""; + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingService. + */ + public java.lang.String getLoggingService() { + java.lang.Object ref = loggingService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loggingService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for loggingService. + */ + public com.google.protobuf.ByteString getLoggingServiceBytes() { + java.lang.Object ref = loggingService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loggingService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The loggingService to set. + * @return This builder for chaining. + */ + public Builder setLoggingService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + loggingService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLoggingService() { + + loggingService_ = getDefaultInstance().getLoggingService(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logging service the cluster should use to write logs.
+     * Currently available options:
+     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+     * service with a Kubernetes-native resource model
+     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+     *   available as of GKE 1.15).
+     * * `none` - no logs will be exported from the cluster.
+     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+     * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for loggingService to set. + * @return This builder for chaining. + */ + public Builder setLoggingServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + loggingService_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set logging.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetLoggingServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetLoggingServiceRequest) + private static final com.google.container.v1beta1.SetLoggingServiceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetLoggingServiceRequest(); + } + + public static com.google.container.v1beta1.SetLoggingServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetLoggingServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetLoggingServiceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetLoggingServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java new file mode 100644 index 00000000..013acb32 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java @@ -0,0 +1,190 @@ +/* + * 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 SetLoggingServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetLoggingServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingService. + */ + java.lang.String getLoggingService(); + /** + * + * + *
+   * Required. The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
+   * service with a Kubernetes-native resource model
+   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
+   *   available as of GKE 1.15).
+   * * `none` - no logs will be exported from the cluster.
+   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
+   * 
+ * + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for loggingService. + */ + com.google.protobuf.ByteString getLoggingServiceBytes(); + + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set logging.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java new file mode 100644 index 00000000..9e381201 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java @@ -0,0 +1,1523 @@ +/* + * 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; + +/** + * + * + *
+ * SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMaintenancePolicyRequest} + */ +public final class SetMaintenancePolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetMaintenancePolicyRequest) + SetMaintenancePolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetMaintenancePolicyRequest.newBuilder() to construct. + private SetMaintenancePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetMaintenancePolicyRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetMaintenancePolicyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetMaintenancePolicyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + com.google.container.v1beta1.MaintenancePolicy.Builder subBuilder = null; + if (maintenancePolicy_ != null) { + subBuilder = maintenancePolicy_.toBuilder(); + } + maintenancePolicy_ = + input.readMessage( + com.google.container.v1beta1.MaintenancePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maintenancePolicy_); + maintenancePolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMaintenancePolicyRequest.class, + com.google.container.v1beta1.SetMaintenancePolicyRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * Required. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * Required. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * Required. The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 4; + private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; + /** + * + * + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the maintenancePolicy field is set. + */ + @java.lang.Override + public boolean hasMaintenancePolicy() { + return maintenancePolicy_ != null; + } + /** + * + * + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The maintenancePolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { + return maintenancePolicy_ == null + ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } + /** + * + * + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + return getMaintenancePolicy(); + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (maintenancePolicy_ != null) { + output.writeMessage(4, getMaintenancePolicy()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (maintenancePolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMaintenancePolicy()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SetMaintenancePolicyRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetMaintenancePolicyRequest other = + (com.google.container.v1beta1.SetMaintenancePolicyRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false; + if (hasMaintenancePolicy()) { + if (!getMaintenancePolicy().equals(other.getMaintenancePolicy())) return false; + } + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasMaintenancePolicy()) { + hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getMaintenancePolicy().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.SetMaintenancePolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMaintenancePolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetMaintenancePolicyRequest) + com.google.container.v1beta1.SetMaintenancePolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMaintenancePolicyRequest.class, + com.google.container.v1beta1.SetMaintenancePolicyRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetMaintenancePolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMaintenancePolicyRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetMaintenancePolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetMaintenancePolicyRequest build() { + com.google.container.v1beta1.SetMaintenancePolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMaintenancePolicyRequest buildPartial() { + com.google.container.v1beta1.SetMaintenancePolicyRequest result = + new com.google.container.v1beta1.SetMaintenancePolicyRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (maintenancePolicyBuilder_ == null) { + result.maintenancePolicy_ = maintenancePolicy_; + } else { + result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.SetMaintenancePolicyRequest) { + return mergeFrom((com.google.container.v1beta1.SetMaintenancePolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetMaintenancePolicyRequest other) { + if (other == com.google.container.v1beta1.SetMaintenancePolicyRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetMaintenancePolicyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.SetMaintenancePolicyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * Required. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Google Developers Console [project ID or project
+     * number](https://support.google.com/cloud/answer/6158840).
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the cluster to update.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.MaintenancePolicy maintenancePolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, + com.google.container.v1beta1.MaintenancePolicy.Builder, + com.google.container.v1beta1.MaintenancePolicyOrBuilder> + maintenancePolicyBuilder_; + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the maintenancePolicy field is set. + */ + public boolean hasMaintenancePolicy() { + return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The maintenancePolicy. + */ + public com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + return maintenancePolicy_ == null + ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } else { + return maintenancePolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenancePolicy_ = value; + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMaintenancePolicy( + com.google.container.v1beta1.MaintenancePolicy.Builder builderForValue) { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = builderForValue.build(); + onChanged(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMaintenancePolicy(com.google.container.v1beta1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (maintenancePolicy_ != null) { + maintenancePolicy_ = + com.google.container.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + maintenancePolicy_ = value; + } + onChanged(); + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = null; + onChanged(); + } else { + maintenancePolicy_ = null; + maintenancePolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + if (maintenancePolicyBuilder_ != null) { + return maintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return maintenancePolicy_ == null + ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } + } + /** + * + * + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, + com.google.container.v1beta1.MaintenancePolicy.Builder, + com.google.container.v1beta1.MaintenancePolicyOrBuilder> + getMaintenancePolicyFieldBuilder() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenancePolicy, + com.google.container.v1beta1.MaintenancePolicy.Builder, + com.google.container.v1beta1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), getParentForChildren(), isClean()); + maintenancePolicy_ = null; + } + return maintenancePolicyBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set maintenance
+     * policy.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetMaintenancePolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetMaintenancePolicyRequest) + private static final com.google.container.v1beta1.SetMaintenancePolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetMaintenancePolicyRequest(); + } + + public static com.google.container.v1beta1.SetMaintenancePolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMaintenancePolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetMaintenancePolicyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMaintenancePolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java new file mode 100644 index 00000000..7d575cf7 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java @@ -0,0 +1,179 @@ +/* + * 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 SetMaintenancePolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetMaintenancePolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * + * + *
+   * Required. The Google Developers Console [project ID or project
+   * number](https://support.google.com/cloud/answer/6158840).
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * Required. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. + */ + java.lang.String getZone(); + /** + * + * + *
+   * Required. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * Required. The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + /** + * + * + *
+   * Required. The name of the cluster to update.
+   * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the maintenancePolicy field is set. + */ + boolean hasMaintenancePolicy(); + /** + * + * + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The maintenancePolicy. + */ + com.google.container.v1beta1.MaintenancePolicy getMaintenancePolicy(); + /** + * + * + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.container.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); + + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set maintenance
+   * policy.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java new file mode 100644 index 00000000..b54d44b6 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java @@ -0,0 +1,1911 @@ +/* + * 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; + +/** + * + * + *
+ * SetMasterAuthRequest updates the admin password of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMasterAuthRequest} + */ +public final class SetMasterAuthRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetMasterAuthRequest) + SetMasterAuthRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetMasterAuthRequest.newBuilder() to construct. + private SetMasterAuthRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetMasterAuthRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + action_ = 0; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetMasterAuthRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetMasterAuthRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 42: + { + com.google.container.v1beta1.MasterAuth.Builder subBuilder = null; + if (update_ != null) { + subBuilder = update_.toBuilder(); + } + update_ = + input.readMessage( + com.google.container.v1beta1.MasterAuth.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(update_); + update_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMasterAuthRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMasterAuthRequest.class, + com.google.container.v1beta1.SetMasterAuthRequest.Builder.class); + } + + /** + * + * + *
+   * Operation type: what type update to perform.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.SetMasterAuthRequest.Action} + */ + public enum Action implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Operation is unknown and will error out.
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
+     * Set the password to a user generated value.
+     * 
+ * + * SET_PASSWORD = 1; + */ + SET_PASSWORD(1), + /** + * + * + *
+     * Generate a new password and set it to that.
+     * 
+ * + * GENERATE_PASSWORD = 2; + */ + GENERATE_PASSWORD(2), + /** + * + * + *
+     * Set the username.  If an empty username is provided, basic authentication
+     * is disabled for the cluster.  If a non-empty username is provided, basic
+     * authentication is enabled, with either a provided password or a generated
+     * one.
+     * 
+ * + * SET_USERNAME = 3; + */ + SET_USERNAME(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Operation is unknown and will error out.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * + * + *
+     * Set the password to a user generated value.
+     * 
+ * + * SET_PASSWORD = 1; + */ + public static final int SET_PASSWORD_VALUE = 1; + /** + * + * + *
+     * Generate a new password and set it to that.
+     * 
+ * + * GENERATE_PASSWORD = 2; + */ + public static final int GENERATE_PASSWORD_VALUE = 2; + /** + * + * + *
+     * Set the username.  If an empty username is provided, basic authentication
+     * is disabled for the cluster.  If a non-empty username is provided, basic
+     * authentication is enabled, with either a provided password or a generated
+     * one.
+     * 
+ * + * SET_USERNAME = 3; + */ + public static final int SET_USERNAME_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @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 Action 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 Action forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return SET_PASSWORD; + case 2: + return GENERATE_PASSWORD; + case 3: + return SET_USERNAME; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.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.SetMasterAuthRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Action[] VALUES = values(); + + public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Action(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.SetMasterAuthRequest.Action) + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 4; + private int action_; + /** + * + * + *
+   * Required. The exact form of action to be taken on the master auth.
+   * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+   * Required. The exact form of action to be taken on the master auth.
+   * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest.Action getAction() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.SetMasterAuthRequest.Action result = + com.google.container.v1beta1.SetMasterAuthRequest.Action.valueOf(action_); + return result == null + ? com.google.container.v1beta1.SetMasterAuthRequest.Action.UNRECOGNIZED + : result; + } + + public static final int UPDATE_FIELD_NUMBER = 5; + private com.google.container.v1beta1.MasterAuth update_; + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. + */ + @java.lang.Override + public boolean hasUpdate() { + return update_ != null; + } + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuth getUpdate() { + return update_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : update_; + } + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.MasterAuthOrBuilder getUpdateOrBuilder() { + return getUpdate(); + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (action_ != com.google.container.v1beta1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { + output.writeEnum(4, action_); + } + if (update_ != null) { + output.writeMessage(5, getUpdate()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (action_ != com.google.container.v1beta1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, action_); + } + if (update_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdate()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SetMasterAuthRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetMasterAuthRequest other = + (com.google.container.v1beta1.SetMasterAuthRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (action_ != other.action_) return false; + if (hasUpdate() != other.hasUpdate()) return false; + if (hasUpdate()) { + if (!getUpdate().equals(other.getUpdate())) return false; + } + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + if (hasUpdate()) { + hash = (37 * hash) + UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdate().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.SetMasterAuthRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetMasterAuthRequest updates the admin password of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMasterAuthRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetMasterAuthRequest) + com.google.container.v1beta1.SetMasterAuthRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMasterAuthRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMasterAuthRequest.class, + com.google.container.v1beta1.SetMasterAuthRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetMasterAuthRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + action_ = 0; + + if (updateBuilder_ == null) { + update_ = null; + } else { + update_ = null; + updateBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetMasterAuthRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest build() { + com.google.container.v1beta1.SetMasterAuthRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest buildPartial() { + com.google.container.v1beta1.SetMasterAuthRequest result = + new com.google.container.v1beta1.SetMasterAuthRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.action_ = action_; + if (updateBuilder_ == null) { + result.update_ = update_; + } else { + result.update_ = updateBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.SetMasterAuthRequest) { + return mergeFrom((com.google.container.v1beta1.SetMasterAuthRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetMasterAuthRequest other) { + if (other == com.google.container.v1beta1.SetMasterAuthRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetMasterAuthRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.SetMasterAuthRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private int action_ = 0; + /** + * + * + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + + action_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest.Action getAction() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.SetMasterAuthRequest.Action result = + com.google.container.v1beta1.SetMasterAuthRequest.Action.valueOf(action_); + return result == null + ? com.google.container.v1beta1.SetMasterAuthRequest.Action.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.container.v1beta1.SetMasterAuthRequest.Action value) { + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAction() { + + action_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.MasterAuth update_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, + com.google.container.v1beta1.MasterAuth.Builder, + com.google.container.v1beta1.MasterAuthOrBuilder> + updateBuilder_; + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. + */ + public boolean hasUpdate() { + return updateBuilder_ != null || update_ != null; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. + */ + public com.google.container.v1beta1.MasterAuth getUpdate() { + if (updateBuilder_ == null) { + return update_ == null + ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() + : update_; + } else { + return updateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdate(com.google.container.v1beta1.MasterAuth value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + update_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdate(com.google.container.v1beta1.MasterAuth.Builder builderForValue) { + if (updateBuilder_ == null) { + update_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdate(com.google.container.v1beta1.MasterAuth value) { + if (updateBuilder_ == null) { + if (update_ != null) { + update_ = + com.google.container.v1beta1.MasterAuth.newBuilder(update_) + .mergeFrom(value) + .buildPartial(); + } else { + update_ = value; + } + onChanged(); + } else { + updateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + update_ = null; + onChanged(); + } else { + update_ = null; + updateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.MasterAuth.Builder getUpdateBuilder() { + + onChanged(); + return getUpdateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.MasterAuthOrBuilder getUpdateOrBuilder() { + if (updateBuilder_ != null) { + return updateBuilder_.getMessageOrBuilder(); + } else { + return update_ == null + ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() + : update_; + } + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, + com.google.container.v1beta1.MasterAuth.Builder, + com.google.container.v1beta1.MasterAuthOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + updateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MasterAuth, + com.google.container.v1beta1.MasterAuth.Builder, + com.google.container.v1beta1.MasterAuthOrBuilder>( + getUpdate(), getParentForChildren(), isClean()); + update_ = null; + } + return updateBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set auth.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetMasterAuthRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetMasterAuthRequest) + private static final com.google.container.v1beta1.SetMasterAuthRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetMasterAuthRequest(); + } + + public static com.google.container.v1beta1.SetMasterAuthRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMasterAuthRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetMasterAuthRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMasterAuthRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java new file mode 100644 index 00000000..33789873 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java @@ -0,0 +1,219 @@ +/* + * 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 SetMasterAuthRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetMasterAuthRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The exact form of action to be taken on the master auth.
+   * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + /** + * + * + *
+   * Required. The exact form of action to be taken on the master auth.
+   * 
+ * + * + * .google.container.v1beta1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + com.google.container.v1beta1.SetMasterAuthRequest.Action getAction(); + + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. + */ + boolean hasUpdate(); + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. + */ + com.google.container.v1beta1.MasterAuth getUpdate(); + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.container.v1beta1.MasterAuthOrBuilder getUpdateOrBuilder(); + + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java new file mode 100644 index 00000000..b1b216fa --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java @@ -0,0 +1,1493 @@ +/* + * 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; + +/** + * + * + *
+ * SetMonitoringServiceRequest sets the monitoring service of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMonitoringServiceRequest} + */ +public final class SetMonitoringServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetMonitoringServiceRequest) + SetMonitoringServiceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetMonitoringServiceRequest.newBuilder() to construct. + private SetMonitoringServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetMonitoringServiceRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + monitoringService_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetMonitoringServiceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetMonitoringServiceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + monitoringService_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMonitoringServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMonitoringServiceRequest.class, + com.google.container.v1beta1.SetMonitoringServiceRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MONITORING_SERVICE_FIELD_NUMBER = 4; + private volatile java.lang.Object monitoringService_; + /** + * + * + *
+   * Required. The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The monitoringService. + */ + @java.lang.Override + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for monitoringService. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getMonitoringServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, monitoringService_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getMonitoringServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, monitoringService_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SetMonitoringServiceRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetMonitoringServiceRequest other = + (com.google.container.v1beta1.SetMonitoringServiceRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getMonitoringService().equals(other.getMonitoringService())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + MONITORING_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringService().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.SetMonitoringServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetMonitoringServiceRequest sets the monitoring service of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetMonitoringServiceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetMonitoringServiceRequest) + com.google.container.v1beta1.SetMonitoringServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMonitoringServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetMonitoringServiceRequest.class, + com.google.container.v1beta1.SetMonitoringServiceRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetMonitoringServiceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + monitoringService_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMonitoringServiceRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetMonitoringServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetMonitoringServiceRequest build() { + com.google.container.v1beta1.SetMonitoringServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMonitoringServiceRequest buildPartial() { + com.google.container.v1beta1.SetMonitoringServiceRequest result = + new com.google.container.v1beta1.SetMonitoringServiceRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.monitoringService_ = monitoringService_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.SetMonitoringServiceRequest) { + return mergeFrom((com.google.container.v1beta1.SetMonitoringServiceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetMonitoringServiceRequest other) { + if (other == com.google.container.v1beta1.SetMonitoringServiceRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetMonitoringServiceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.SetMonitoringServiceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object monitoringService_ = ""; + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The monitoringService. + */ + public java.lang.String getMonitoringService() { + java.lang.Object ref = monitoringService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + monitoringService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for monitoringService. + */ + public com.google.protobuf.ByteString getMonitoringServiceBytes() { + java.lang.Object ref = monitoringService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + monitoringService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The monitoringService to set. + * @return This builder for chaining. + */ + public Builder setMonitoringService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + monitoringService_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMonitoringService() { + + monitoringService_ = getDefaultInstance().getMonitoringService(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The monitoring service the cluster should use to write metrics.
+     * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+     * service with a Kubernetes-native resource model
+     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+     *   longer available as of GKE 1.15).
+     * * `none` - No metrics will be exported from the cluster.
+     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+     * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for monitoringService to set. + * @return This builder for chaining. + */ + public Builder setMonitoringServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + monitoringService_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to set monitoring.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetMonitoringServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetMonitoringServiceRequest) + private static final com.google.container.v1beta1.SetMonitoringServiceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetMonitoringServiceRequest(); + } + + public static com.google.container.v1beta1.SetMonitoringServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetMonitoringServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetMonitoringServiceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetMonitoringServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java new file mode 100644 index 00000000..8532707d --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java @@ -0,0 +1,190 @@ +/* + * 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 SetMonitoringServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetMonitoringServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The monitoringService. + */ + java.lang.String getMonitoringService(); + /** + * + * + *
+   * Required. The monitoring service the cluster should use to write metrics.
+   * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
+   * service with a Kubernetes-native resource model
+   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
+   *   longer available as of GKE 1.15).
+   * * `none` - No metrics will be exported from the cluster.
+   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
+   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
+   * 
+ * + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for monitoringService. + */ + com.google.protobuf.ByteString getMonitoringServiceBytes(); + + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to set monitoring.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java new file mode 100644 index 00000000..281678ad --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java @@ -0,0 +1,1559 @@ +/* + * 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; + +/** + * + * + *
+ * SetNetworkPolicyRequest enables/disables network policy for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNetworkPolicyRequest} + */ +public final class SetNetworkPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNetworkPolicyRequest) + SetNetworkPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetNetworkPolicyRequest.newBuilder() to construct. + private SetNetworkPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetNetworkPolicyRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetNetworkPolicyRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetNetworkPolicyRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + com.google.container.v1beta1.NetworkPolicy.Builder subBuilder = null; + if (networkPolicy_ != null) { + subBuilder = networkPolicy_.toBuilder(); + } + networkPolicy_ = + input.readMessage( + com.google.container.v1beta1.NetworkPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkPolicy_); + networkPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNetworkPolicyRequest.class, + com.google.container.v1beta1.SetNetworkPolicyRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_POLICY_FIELD_NUMBER = 4; + private com.google.container.v1beta1.NetworkPolicy networkPolicy_; + /** + * + * + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. + */ + @java.lang.Override + public boolean hasNetworkPolicy() { + return networkPolicy_ != null; + } + /** + * + * + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { + return networkPolicy_ == null + ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } + /** + * + * + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + return getNetworkPolicy(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (networkPolicy_ != null) { + output.writeMessage(4, getNetworkPolicy()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (networkPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNetworkPolicy()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SetNetworkPolicyRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetNetworkPolicyRequest other = + (com.google.container.v1beta1.SetNetworkPolicyRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (hasNetworkPolicy() != other.hasNetworkPolicy()) return false; + if (hasNetworkPolicy()) { + if (!getNetworkPolicy().equals(other.getNetworkPolicy())) return false; + } + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasNetworkPolicy()) { + hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPolicy().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.SetNetworkPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetNetworkPolicyRequest enables/disables network policy for a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNetworkPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetNetworkPolicyRequest) + com.google.container.v1beta1.SetNetworkPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNetworkPolicyRequest.class, + com.google.container.v1beta1.SetNetworkPolicyRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetNetworkPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNetworkPolicyRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetNetworkPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetNetworkPolicyRequest build() { + com.google.container.v1beta1.SetNetworkPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNetworkPolicyRequest buildPartial() { + com.google.container.v1beta1.SetNetworkPolicyRequest result = + new com.google.container.v1beta1.SetNetworkPolicyRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (networkPolicyBuilder_ == null) { + result.networkPolicy_ = networkPolicy_; + } else { + result.networkPolicy_ = networkPolicyBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.SetNetworkPolicyRequest) { + return mergeFrom((com.google.container.v1beta1.SetNetworkPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetNetworkPolicyRequest other) { + if (other == com.google.container.v1beta1.SetNetworkPolicyRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetNetworkPolicyRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.SetNetworkPolicyRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NetworkPolicy networkPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, + com.google.container.v1beta1.NetworkPolicy.Builder, + com.google.container.v1beta1.NetworkPolicyOrBuilder> + networkPolicyBuilder_; + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. + */ + public boolean hasNetworkPolicy() { + return networkPolicyBuilder_ != null || networkPolicy_ != null; + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. + */ + public com.google.container.v1beta1.NetworkPolicy getNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + return networkPolicy_ == null + ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } else { + return networkPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + onChanged(); + } else { + networkPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNetworkPolicy( + com.google.container.v1beta1.NetworkPolicy.Builder builderForValue) { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = builderForValue.build(); + onChanged(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeNetworkPolicy(com.google.container.v1beta1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (networkPolicy_ != null) { + networkPolicy_ = + com.google.container.v1beta1.NetworkPolicy.newBuilder(networkPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + networkPolicy_ = value; + } + onChanged(); + } else { + networkPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = null; + onChanged(); + } else { + networkPolicy_ = null; + networkPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + + onChanged(); + return getNetworkPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + if (networkPolicyBuilder_ != null) { + return networkPolicyBuilder_.getMessageOrBuilder(); + } else { + return networkPolicy_ == null + ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() + : networkPolicy_; + } + } + /** + * + * + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, + com.google.container.v1beta1.NetworkPolicy.Builder, + com.google.container.v1beta1.NetworkPolicyOrBuilder> + getNetworkPolicyFieldBuilder() { + if (networkPolicyBuilder_ == null) { + networkPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkPolicy, + com.google.container.v1beta1.NetworkPolicy.Builder, + com.google.container.v1beta1.NetworkPolicyOrBuilder>( + getNetworkPolicy(), getParentForChildren(), isClean()); + networkPolicy_ = null; + } + return networkPolicyBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to set networking
+     * policy. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNetworkPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNetworkPolicyRequest) + private static final com.google.container.v1beta1.SetNetworkPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNetworkPolicyRequest(); + } + + public static com.google.container.v1beta1.SetNetworkPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNetworkPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNetworkPolicyRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNetworkPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java new file mode 100644 index 00000000..fed62380 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java @@ -0,0 +1,190 @@ +/* + * 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 SetNetworkPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNetworkPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. + */ + boolean hasNetworkPolicy(); + /** + * + * + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. + */ + com.google.container.v1beta1.NetworkPolicy getNetworkPolicy(); + /** + * + * + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.container.v1beta1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); + + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to set networking
+   * policy. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java new file mode 100644 index 00000000..9a765f27 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java @@ -0,0 +1,1767 @@ +/* + * 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; + +/** + * + * + *
+ * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolAutoscalingRequest} + */ +public final class SetNodePoolAutoscalingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNodePoolAutoscalingRequest) + SetNodePoolAutoscalingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetNodePoolAutoscalingRequest.newBuilder() to construct. + private SetNodePoolAutoscalingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetNodePoolAutoscalingRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetNodePoolAutoscalingRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetNodePoolAutoscalingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 42: + { + com.google.container.v1beta1.NodePoolAutoscaling.Builder subBuilder = null; + if (autoscaling_ != null) { + subBuilder = autoscaling_.toBuilder(); + } + autoscaling_ = + input.readMessage( + com.google.container.v1beta1.NodePoolAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaling_); + autoscaling_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest.class, + com.google.container.v1beta1.SetNodePoolAutoscalingRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTOSCALING_FIELD_NUMBER = 5; + private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; + /** + * + * + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoscaling field is set. + */ + @java.lang.Override + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + * + * + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoscaling. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { + return autoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : autoscaling_; + } + /** + * + * + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + return getAutoscaling(); + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (autoscaling_ != null) { + output.writeMessage(5, getAutoscaling()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (autoscaling_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAutoscaling()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SetNodePoolAutoscalingRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetNodePoolAutoscalingRequest other = + (com.google.container.v1beta1.SetNodePoolAutoscalingRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getNodePoolId().equals(other.getNodePoolId())) return false; + if (hasAutoscaling() != other.hasAutoscaling()) return false; + if (hasAutoscaling()) { + if (!getAutoscaling().equals(other.getAutoscaling())) return false; + } + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + if (hasAutoscaling()) { + hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaling().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolAutoscalingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetNodePoolAutoscalingRequest) + com.google.container.v1beta1.SetNodePoolAutoscalingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolAutoscalingRequest.class, + com.google.container.v1beta1.SetNodePoolAutoscalingRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetNodePoolAutoscalingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetNodePoolAutoscalingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolAutoscalingRequest build() { + com.google.container.v1beta1.SetNodePoolAutoscalingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolAutoscalingRequest buildPartial() { + com.google.container.v1beta1.SetNodePoolAutoscalingRequest result = + new com.google.container.v1beta1.SetNodePoolAutoscalingRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + if (autoscalingBuilder_ == null) { + result.autoscaling_ = autoscaling_; + } else { + result.autoscaling_ = autoscalingBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.SetNodePoolAutoscalingRequest) { + return mergeFrom((com.google.container.v1beta1.SetNodePoolAutoscalingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetNodePoolAutoscalingRequest other) { + if (other == com.google.container.v1beta1.SetNodePoolAutoscalingRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetNodePoolAutoscalingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.SetNodePoolAutoscalingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePoolAutoscaling autoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + autoscalingBuilder_; + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoscaling field is set. + */ + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoscaling. + */ + public com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + onChanged(); + } else { + autoscalingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAutoscaling( + com.google.container.v1beta1.NodePoolAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + onChanged(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAutoscaling(com.google.container.v1beta1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (autoscaling_ != null) { + autoscaling_ = + com.google.container.v1beta1.NodePoolAutoscaling.newBuilder(autoscaling_) + .mergeFrom(value) + .buildPartial(); + } else { + autoscaling_ = value; + } + onChanged(); + } else { + autoscalingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; + onChanged(); + } else { + autoscaling_ = null; + autoscalingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { + + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null + ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() + : autoscaling_; + } + } + /** + * + * + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoscaling, + com.google.container.v1beta1.NodePoolAutoscaling.Builder, + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder>( + getAutoscaling(), getParentForChildren(), isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to set
+     * autoscaler settings. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNodePoolAutoscalingRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNodePoolAutoscalingRequest) + private static final com.google.container.v1beta1.SetNodePoolAutoscalingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNodePoolAutoscalingRequest(); + } + + public static com.google.container.v1beta1.SetNodePoolAutoscalingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePoolAutoscalingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNodePoolAutoscalingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java new file mode 100644 index 00000000..2ded5075 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -0,0 +1,223 @@ +/* + * 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 SetNodePoolAutoscalingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNodePoolAutoscalingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + java.lang.String getNodePoolId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getNodePoolIdBytes(); + + /** + * + * + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoscaling field is set. + */ + boolean hasAutoscaling(); + /** + * + * + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoscaling. + */ + com.google.container.v1beta1.NodePoolAutoscaling getAutoscaling(); + /** + * + * + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.container.v1beta1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java new file mode 100644 index 00000000..8327c6b0 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java @@ -0,0 +1,1769 @@ +/* + * 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; + +/** + * + * + *
+ * SetNodePoolManagementRequest sets the node management properties of a node
+ * pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolManagementRequest} + */ +public final class SetNodePoolManagementRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNodePoolManagementRequest) + SetNodePoolManagementRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetNodePoolManagementRequest.newBuilder() to construct. + private SetNodePoolManagementRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetNodePoolManagementRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetNodePoolManagementRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetNodePoolManagementRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 42: + { + com.google.container.v1beta1.NodeManagement.Builder subBuilder = null; + if (management_ != null) { + subBuilder = management_.toBuilder(); + } + management_ = + input.readMessage( + com.google.container.v1beta1.NodeManagement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(management_); + management_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolManagementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolManagementRequest.class, + com.google.container.v1beta1.SetNodePoolManagementRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANAGEMENT_FIELD_NUMBER = 5; + private com.google.container.v1beta1.NodeManagement management_; + /** + * + * + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the management field is set. + */ + @java.lang.Override + public boolean hasManagement() { + return management_ != null; + } + /** + * + * + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The management. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeManagement getManagement() { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } + /** + * + * + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + return getManagement(); + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (management_ != null) { + output.writeMessage(5, getManagement()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (management_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagement()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SetNodePoolManagementRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetNodePoolManagementRequest other = + (com.google.container.v1beta1.SetNodePoolManagementRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getNodePoolId().equals(other.getNodePoolId())) return false; + if (hasManagement() != other.hasManagement()) return false; + if (hasManagement()) { + if (!getManagement().equals(other.getManagement())) return false; + } + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + if (hasManagement()) { + hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getManagement().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.SetNodePoolManagementRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetNodePoolManagementRequest sets the node management properties of a node
+   * pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolManagementRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetNodePoolManagementRequest) + com.google.container.v1beta1.SetNodePoolManagementRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolManagementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolManagementRequest.class, + com.google.container.v1beta1.SetNodePoolManagementRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetNodePoolManagementRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + if (managementBuilder_ == null) { + management_ = null; + } else { + management_ = null; + managementBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolManagementRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetNodePoolManagementRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolManagementRequest build() { + com.google.container.v1beta1.SetNodePoolManagementRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolManagementRequest buildPartial() { + com.google.container.v1beta1.SetNodePoolManagementRequest result = + new com.google.container.v1beta1.SetNodePoolManagementRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + if (managementBuilder_ == null) { + result.management_ = management_; + } else { + result.management_ = managementBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.SetNodePoolManagementRequest) { + return mergeFrom((com.google.container.v1beta1.SetNodePoolManagementRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetNodePoolManagementRequest other) { + if (other == com.google.container.v1beta1.SetNodePoolManagementRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetNodePoolManagementRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.SetNodePoolManagementRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodeManagement management_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder> + managementBuilder_; + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the management field is set. + */ + public boolean hasManagement() { + return managementBuilder_ != null || management_ != null; + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The management. + */ + public com.google.container.v1beta1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + onChanged(); + } else { + managementBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setManagement( + com.google.container.v1beta1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + onChanged(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeManagement(com.google.container.v1beta1.NodeManagement value) { + if (managementBuilder_ == null) { + if (management_ != null) { + management_ = + com.google.container.v1beta1.NodeManagement.newBuilder(management_) + .mergeFrom(value) + .buildPartial(); + } else { + management_ = value; + } + onChanged(); + } else { + managementBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearManagement() { + if (managementBuilder_ == null) { + management_ = null; + onChanged(); + } else { + management_ = null; + managementBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { + + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null + ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() + : management_; + } + } + /** + * + * + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeManagement, + com.google.container.v1beta1.NodeManagement.Builder, + com.google.container.v1beta1.NodeManagementOrBuilder>( + getManagement(), getParentForChildren(), isClean()); + management_ = null; + } + return managementBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * management properties. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNodePoolManagementRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNodePoolManagementRequest) + private static final com.google.container.v1beta1.SetNodePoolManagementRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNodePoolManagementRequest(); + } + + public static com.google.container.v1beta1.SetNodePoolManagementRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePoolManagementRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNodePoolManagementRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolManagementRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java new file mode 100644 index 00000000..f4573506 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java @@ -0,0 +1,223 @@ +/* + * 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 SetNodePoolManagementRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNodePoolManagementRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + java.lang.String getNodePoolId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getNodePoolIdBytes(); + + /** + * + * + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the management field is set. + */ + boolean hasManagement(); + /** + * + * + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The management. + */ + com.google.container.v1beta1.NodeManagement getManagement(); + /** + * + * + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java new file mode 100644 index 00000000..3ea8249d --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java @@ -0,0 +1,1556 @@ +/* + * 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; + +/** + * + * + *
+ * SetNodePoolSizeRequest sets the size a node
+ * pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolSizeRequest} + */ +public final class SetNodePoolSizeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SetNodePoolSizeRequest) + SetNodePoolSizeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetNodePoolSizeRequest.newBuilder() to construct. + private SetNodePoolSizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetNodePoolSizeRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetNodePoolSizeRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SetNodePoolSizeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 40: + { + nodeCount_ = input.readInt32(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolSizeRequest.class, + com.google.container.v1beta1.SetNodePoolSizeRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_COUNT_FIELD_NUMBER = 5; + private int nodeCount_; + /** + * + * + *
+   * Required. The desired node count for the pool.
+   * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (nodeCount_ != 0) { + output.writeInt32(5, nodeCount_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (nodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, nodeCount_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SetNodePoolSizeRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.SetNodePoolSizeRequest other = + (com.google.container.v1beta1.SetNodePoolSizeRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getNodePoolId().equals(other.getNodePoolId())) return false; + if (getNodeCount() != other.getNodeCount()) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNodeCount(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.SetNodePoolSizeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetNodePoolSizeRequest sets the size a node
+   * pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SetNodePoolSizeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SetNodePoolSizeRequest) + com.google.container.v1beta1.SetNodePoolSizeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SetNodePoolSizeRequest.class, + com.google.container.v1beta1.SetNodePoolSizeRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.SetNodePoolSizeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + nodeCount_ = 0; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolSizeRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.SetNodePoolSizeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolSizeRequest build() { + com.google.container.v1beta1.SetNodePoolSizeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolSizeRequest buildPartial() { + com.google.container.v1beta1.SetNodePoolSizeRequest result = + new com.google.container.v1beta1.SetNodePoolSizeRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.nodeCount_ = nodeCount_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.SetNodePoolSizeRequest) { + return mergeFrom((com.google.container.v1beta1.SetNodePoolSizeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SetNodePoolSizeRequest other) { + if (other == com.google.container.v1beta1.SetNodePoolSizeRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.SetNodePoolSizeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.SetNodePoolSizeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private int nodeCount_; + /** + * + * + *
+     * Required. The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + /** + * + * + *
+     * Required. The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodeCount to set. + * @return This builder for chaining. + */ + public Builder setNodeCount(int value) { + + nodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired node count for the pool.
+     * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodeCount() { + + nodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool id) of the node pool to set
+     * size.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SetNodePoolSizeRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SetNodePoolSizeRequest) + private static final com.google.container.v1beta1.SetNodePoolSizeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SetNodePoolSizeRequest(); + } + + public static com.google.container.v1beta1.SetNodePoolSizeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePoolSizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNodePoolSizeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SetNodePoolSizeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java new file mode 100644 index 00000000..cf55cf26 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java @@ -0,0 +1,195 @@ +/* + * 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 SetNodePoolSizeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SetNodePoolSizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + java.lang.String getNodePoolId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getNodePoolIdBytes(); + + /** + * + * + *
+   * Required. The desired node count for the pool.
+   * 
+ * + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + int getNodeCount(); + + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * size.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfig.java new file mode 100644 index 00000000..0f44b30f --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfig.java @@ -0,0 +1,664 @@ +/* + * 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; + +/** + * + * + *
+ * A set of Shielded Instance options.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ShieldedInstanceConfig} + */ +public final class ShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ShieldedInstanceConfig) + ShieldedInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShieldedInstanceConfig.newBuilder() to construct. + private ShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShieldedInstanceConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShieldedInstanceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ShieldedInstanceConfig( + 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: + { + enableSecureBoot_ = input.readBool(); + break; + } + case 16: + { + enableIntegrityMonitoring_ = 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_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ShieldedInstanceConfig.class, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder.class); + } + + public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; + private boolean enableSecureBoot_; + /** + * + * + *
+   * Defines whether the instance has Secure Boot enabled.
+   * Secure Boot helps ensure that the system only runs authentic software by
+   * verifying the digital signature of all boot components, and halting the
+   * boot process if signature verification fails.
+   * 
+ * + * bool enable_secure_boot = 1; + * + * @return The enableSecureBoot. + */ + @java.lang.Override + public boolean getEnableSecureBoot() { + return enableSecureBoot_; + } + + public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 2; + private boolean enableIntegrityMonitoring_; + /** + * + * + *
+   * Defines whether the instance has integrity monitoring enabled.
+   * Enables monitoring and attestation of the boot integrity of the instance.
+   * The attestation is performed against the integrity policy baseline. This
+   * baseline is initially derived from the implicitly trusted boot image when
+   * the instance is created.
+   * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + + 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 (enableSecureBoot_ != false) { + output.writeBool(1, enableSecureBoot_); + } + if (enableIntegrityMonitoring_ != false) { + output.writeBool(2, enableIntegrityMonitoring_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableSecureBoot_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); + } + if (enableIntegrityMonitoring_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableIntegrityMonitoring_); + } + 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.ShieldedInstanceConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ShieldedInstanceConfig other = + (com.google.container.v1beta1.ShieldedInstanceConfig) obj; + + if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) 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) + ENABLE_SECURE_BOOT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); + hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ShieldedInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ShieldedInstanceConfig 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.ShieldedInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ShieldedInstanceConfig 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.ShieldedInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ShieldedInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ShieldedInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ShieldedInstanceConfig 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.ShieldedInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ShieldedInstanceConfig 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.ShieldedInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ShieldedInstanceConfig 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.ShieldedInstanceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A set of Shielded Instance options.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ShieldedInstanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ShieldedInstanceConfig) + com.google.container.v1beta1.ShieldedInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ShieldedInstanceConfig.class, + com.google.container.v1beta1.ShieldedInstanceConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ShieldedInstanceConfig.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(); + enableSecureBoot_ = false; + + enableIntegrityMonitoring_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfig build() { + com.google.container.v1beta1.ShieldedInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedInstanceConfig buildPartial() { + com.google.container.v1beta1.ShieldedInstanceConfig result = + new com.google.container.v1beta1.ShieldedInstanceConfig(this); + result.enableSecureBoot_ = enableSecureBoot_; + result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; + 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.ShieldedInstanceConfig) { + return mergeFrom((com.google.container.v1beta1.ShieldedInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ShieldedInstanceConfig other) { + if (other == com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance()) + return this; + if (other.getEnableSecureBoot() != false) { + setEnableSecureBoot(other.getEnableSecureBoot()); + } + if (other.getEnableIntegrityMonitoring() != false) { + setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); + } + 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.ShieldedInstanceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.ShieldedInstanceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enableSecureBoot_; + /** + * + * + *
+     * Defines whether the instance has Secure Boot enabled.
+     * Secure Boot helps ensure that the system only runs authentic software by
+     * verifying the digital signature of all boot components, and halting the
+     * boot process if signature verification fails.
+     * 
+ * + * bool enable_secure_boot = 1; + * + * @return The enableSecureBoot. + */ + @java.lang.Override + public boolean getEnableSecureBoot() { + return enableSecureBoot_; + } + /** + * + * + *
+     * Defines whether the instance has Secure Boot enabled.
+     * Secure Boot helps ensure that the system only runs authentic software by
+     * verifying the digital signature of all boot components, and halting the
+     * boot process if signature verification fails.
+     * 
+ * + * bool enable_secure_boot = 1; + * + * @param value The enableSecureBoot to set. + * @return This builder for chaining. + */ + public Builder setEnableSecureBoot(boolean value) { + + enableSecureBoot_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Defines whether the instance has Secure Boot enabled.
+     * Secure Boot helps ensure that the system only runs authentic software by
+     * verifying the digital signature of all boot components, and halting the
+     * boot process if signature verification fails.
+     * 
+ * + * bool enable_secure_boot = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableSecureBoot() { + + enableSecureBoot_ = false; + onChanged(); + return this; + } + + private boolean enableIntegrityMonitoring_; + /** + * + * + *
+     * Defines whether the instance has integrity monitoring enabled.
+     * Enables monitoring and attestation of the boot integrity of the instance.
+     * The attestation is performed against the integrity policy baseline. This
+     * baseline is initially derived from the implicitly trusted boot image when
+     * the instance is created.
+     * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + /** + * + * + *
+     * Defines whether the instance has integrity monitoring enabled.
+     * Enables monitoring and attestation of the boot integrity of the instance.
+     * The attestation is performed against the integrity policy baseline. This
+     * baseline is initially derived from the implicitly trusted boot image when
+     * the instance is created.
+     * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @param value The enableIntegrityMonitoring to set. + * @return This builder for chaining. + */ + public Builder setEnableIntegrityMonitoring(boolean value) { + + enableIntegrityMonitoring_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Defines whether the instance has integrity monitoring enabled.
+     * Enables monitoring and attestation of the boot integrity of the instance.
+     * The attestation is performed against the integrity policy baseline. This
+     * baseline is initially derived from the implicitly trusted boot image when
+     * the instance is created.
+     * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnableIntegrityMonitoring() { + + enableIntegrityMonitoring_ = 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.ShieldedInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ShieldedInstanceConfig) + private static final com.google.container.v1beta1.ShieldedInstanceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ShieldedInstanceConfig(); + } + + public static com.google.container.v1beta1.ShieldedInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ShieldedInstanceConfig(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.ShieldedInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfigOrBuilder.java new file mode 100644 index 00000000..2ed7d031 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfigOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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 ShieldedInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ShieldedInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Defines whether the instance has Secure Boot enabled.
+   * Secure Boot helps ensure that the system only runs authentic software by
+   * verifying the digital signature of all boot components, and halting the
+   * boot process if signature verification fails.
+   * 
+ * + * bool enable_secure_boot = 1; + * + * @return The enableSecureBoot. + */ + boolean getEnableSecureBoot(); + + /** + * + * + *
+   * Defines whether the instance has integrity monitoring enabled.
+   * Enables monitoring and attestation of the boot integrity of the instance.
+   * The attestation is performed against the integrity policy baseline. This
+   * baseline is initially derived from the implicitly trusted boot image when
+   * the instance is created.
+   * 
+ * + * bool enable_integrity_monitoring = 2; + * + * @return The enableIntegrityMonitoring. + */ + boolean getEnableIntegrityMonitoring(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodes.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodes.java new file mode 100644 index 00000000..bb3b5314 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodes.java @@ -0,0 +1,544 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * Configuration of Shielded Nodes feature.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ShieldedNodes} + */ +public final class ShieldedNodes extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ShieldedNodes) + ShieldedNodesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShieldedNodes.newBuilder() to construct. + private ShieldedNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ShieldedNodes() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ShieldedNodes(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ShieldedNodes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ShieldedNodes.class, + com.google.container.v1beta1.ShieldedNodes.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ShieldedNodes)) { + return super.equals(obj); + } + com.google.container.v1beta1.ShieldedNodes other = + (com.google.container.v1beta1.ShieldedNodes) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ShieldedNodes parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ShieldedNodes parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ShieldedNodes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ShieldedNodes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ShieldedNodes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.ShieldedNodes parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.ShieldedNodes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ShieldedNodes parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ShieldedNodes parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ShieldedNodes parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ShieldedNodes parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ShieldedNodes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.ShieldedNodes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration of Shielded Nodes feature.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ShieldedNodes} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ShieldedNodes) + com.google.container.v1beta1.ShieldedNodesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ShieldedNodes.class, + com.google.container.v1beta1.ShieldedNodes.Builder.class); + } + + // Construct using com.google.container.v1beta1.ShieldedNodes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_ShieldedNodes_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodes getDefaultInstanceForType() { + return com.google.container.v1beta1.ShieldedNodes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodes build() { + com.google.container.v1beta1.ShieldedNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodes buildPartial() { + com.google.container.v1beta1.ShieldedNodes result = + new com.google.container.v1beta1.ShieldedNodes(this); + result.enabled_ = enabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ShieldedNodes) { + return mergeFrom((com.google.container.v1beta1.ShieldedNodes) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ShieldedNodes other) { + if (other == com.google.container.v1beta1.ShieldedNodes.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.ShieldedNodes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.ShieldedNodes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ShieldedNodes) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ShieldedNodes) + private static final com.google.container.v1beta1.ShieldedNodes DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ShieldedNodes(); + } + + public static com.google.container.v1beta1.ShieldedNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ShieldedNodes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ShieldedNodes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodesOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodesOrBuilder.java new file mode 100644 index 00000000..9342c124 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodesOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +public interface ShieldedNodesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ShieldedNodes) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java new file mode 100644 index 00000000..0f88922b --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java @@ -0,0 +1,1349 @@ +/* + * 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; + +/** + * + * + *
+ * StartIPRotationRequest creates a new IP for the cluster and then performs
+ * a node upgrade on each node pool to point to the new IP.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.StartIPRotationRequest} + */ +public final class StartIPRotationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.StartIPRotationRequest) + StartIPRotationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StartIPRotationRequest.newBuilder() to construct. + private StartIPRotationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StartIPRotationRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StartIPRotationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StartIPRotationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 56: + { + rotateCredentials_ = input.readBool(); + break; + } + default: + { + if (!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_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_StartIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.StartIPRotationRequest.class, + com.google.container.v1beta1.StartIPRotationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 6; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROTATE_CREDENTIALS_FIELD_NUMBER = 7; + private boolean rotateCredentials_; + /** + * + * + *
+   * Whether to rotate credentials during IP rotation.
+   * 
+ * + * bool rotate_credentials = 7; + * + * @return The rotateCredentials. + */ + @java.lang.Override + public boolean getRotateCredentials() { + return rotateCredentials_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + if (rotateCredentials_ != false) { + output.writeBool(7, rotateCredentials_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + if (rotateCredentials_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, rotateCredentials_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.StartIPRotationRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.StartIPRotationRequest other = + (com.google.container.v1beta1.StartIPRotationRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getName().equals(other.getName())) return false; + if (getRotateCredentials() != other.getRotateCredentials()) 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) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ROTATE_CREDENTIALS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRotateCredentials()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.StartIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.StartIPRotationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * StartIPRotationRequest creates a new IP for the cluster and then performs
+   * a node upgrade on each node pool to point to the new IP.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.StartIPRotationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.StartIPRotationRequest) + com.google.container.v1beta1.StartIPRotationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_StartIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.StartIPRotationRequest.class, + com.google.container.v1beta1.StartIPRotationRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.StartIPRotationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + name_ = ""; + + rotateCredentials_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.StartIPRotationRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.StartIPRotationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.StartIPRotationRequest build() { + com.google.container.v1beta1.StartIPRotationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.StartIPRotationRequest buildPartial() { + com.google.container.v1beta1.StartIPRotationRequest result = + new com.google.container.v1beta1.StartIPRotationRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.name_ = name_; + result.rotateCredentials_ = rotateCredentials_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.StartIPRotationRequest) { + return mergeFrom((com.google.container.v1beta1.StartIPRotationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.StartIPRotationRequest other) { + if (other == com.google.container.v1beta1.StartIPRotationRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getRotateCredentials() != false) { + setRotateCredentials(other.getRotateCredentials()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.StartIPRotationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.StartIPRotationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster id) of the cluster to start IP
+     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 6; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean rotateCredentials_; + /** + * + * + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + * + * @return The rotateCredentials. + */ + @java.lang.Override + public boolean getRotateCredentials() { + return rotateCredentials_; + } + /** + * + * + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + * + * @param value The rotateCredentials to set. + * @return This builder for chaining. + */ + public Builder setRotateCredentials(boolean value) { + + rotateCredentials_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + * + * @return This builder for chaining. + */ + public Builder clearRotateCredentials() { + + rotateCredentials_ = 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.StartIPRotationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.StartIPRotationRequest) + private static final com.google.container.v1beta1.StartIPRotationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.StartIPRotationRequest(); + } + + public static com.google.container.v1beta1.StartIPRotationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartIPRotationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartIPRotationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.StartIPRotationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java new file mode 100644 index 00000000..67867ad7 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * 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 StartIPRotationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.StartIPRotationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster id) of the cluster to start IP
+   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Whether to rotate credentials during IP rotation.
+   * 
+ * + * bool rotate_credentials = 7; + * + * @return The rotateCredentials. + */ + boolean getRotateCredentials(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java new file mode 100644 index 00000000..4fef879d --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java @@ -0,0 +1,1181 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * StatusCondition describes why a cluster or a node pool has a certain status
+ * (e.g., ERROR or DEGRADED).
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.StatusCondition} + */ +public final class StatusCondition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.StatusCondition) + StatusConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use StatusCondition.newBuilder() to construct. + private StatusCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StatusCondition() { + code_ = 0; + message_ = ""; + canonicalCode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StatusCondition(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StatusCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + code_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + canonicalCode_ = 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_StatusCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_StatusCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.StatusCondition.class, + com.google.container.v1beta1.StatusCondition.Builder.class); + } + + /** + * + * + *
+   * Code for each condition
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.StatusCondition.Code} + */ + public enum Code implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * UNKNOWN indicates a generic condition.
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
+     * GCE_STOCKOUT indicates that Google Compute Engine resources are
+     * temporarily unavailable.
+     * 
+ * + * GCE_STOCKOUT = 1; + */ + GCE_STOCKOUT(1), + /** + * + * + *
+     * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
+     * service account.
+     * 
+ * + * GKE_SERVICE_ACCOUNT_DELETED = 2; + */ + GKE_SERVICE_ACCOUNT_DELETED(2), + /** + * + * + *
+     * Google Compute Engine quota was exceeded.
+     * 
+ * + * GCE_QUOTA_EXCEEDED = 3; + */ + GCE_QUOTA_EXCEEDED(3), + /** + * + * + *
+     * Cluster state was manually changed by an SRE due to a system logic error.
+     * 
+ * + * SET_BY_OPERATOR = 4; + */ + SET_BY_OPERATOR(4), + /** + * + * + *
+     * 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), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * UNKNOWN indicates a generic condition.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * + * + *
+     * GCE_STOCKOUT indicates that Google Compute Engine resources are
+     * temporarily unavailable.
+     * 
+ * + * GCE_STOCKOUT = 1; + */ + public static final int GCE_STOCKOUT_VALUE = 1; + /** + * + * + *
+     * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
+     * service account.
+     * 
+ * + * GKE_SERVICE_ACCOUNT_DELETED = 2; + */ + public static final int GKE_SERVICE_ACCOUNT_DELETED_VALUE = 2; + /** + * + * + *
+     * Google Compute Engine quota was exceeded.
+     * 
+ * + * GCE_QUOTA_EXCEEDED = 3; + */ + public static final int GCE_QUOTA_EXCEEDED_VALUE = 3; + /** + * + * + *
+     * Cluster state was manually changed by an SRE due to a system logic error.
+     * 
+ * + * SET_BY_OPERATOR = 4; + */ + public static final int SET_BY_OPERATOR_VALUE = 4; + /** + * + * + *
+     * 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; + + 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 Code 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 Code forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return GCE_STOCKOUT; + case 2: + return GKE_SERVICE_ACCOUNT_DELETED; + case 3: + return GCE_QUOTA_EXCEEDED; + case 4: + return SET_BY_OPERATOR; + case 7: + return CLOUD_KMS_KEY_ERROR; + 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 Code findValueByNumber(int number) { + return Code.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.StatusCondition.getDescriptor().getEnumTypes().get(0); + } + + private static final Code[] VALUES = values(); + + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.StatusCondition.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_; + /** + * + * + *
+   * Machine-friendly representation of the condition
+   * Deprecated. Use canonical_code instead.
+   * 
+ * + * .google.container.v1beta1.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_; + } + /** + * + * + *
+   * Machine-friendly representation of the condition
+   * Deprecated. Use canonical_code instead.
+   * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; + * + * @return The code. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Code getCode() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.StatusCondition.Code result = + com.google.container.v1beta1.StatusCondition.Code.valueOf(code_); + return result == null ? com.google.container.v1beta1.StatusCondition.Code.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + * + * + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * + * + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ != com.google.container.v1beta1.StatusCondition.Code.UNKNOWN.getNumber()) { + output.writeEnum(1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (canonicalCode_ != com.google.rpc.Code.OK.getNumber()) { + output.writeEnum(3, canonicalCode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != com.google.container.v1beta1.StatusCondition.Code.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (canonicalCode_ != com.google.rpc.Code.OK.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, canonicalCode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.StatusCondition)) { + return super.equals(obj); + } + com.google.container.v1beta1.StatusCondition other = + (com.google.container.v1beta1.StatusCondition) obj; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + CANONICAL_CODE_FIELD_NUMBER; + hash = (53 * hash) + canonicalCode_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.StatusCondition parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.StatusCondition parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.StatusCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.StatusCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.StatusCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.StatusCondition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.StatusCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.StatusCondition parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.StatusCondition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.StatusCondition parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.StatusCondition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.StatusCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.StatusCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * StatusCondition describes why a cluster or a node pool has a certain status
+   * (e.g., ERROR or DEGRADED).
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.StatusCondition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.StatusCondition) + com.google.container.v1beta1.StatusConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_StatusCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_StatusCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.StatusCondition.class, + com.google.container.v1beta1.StatusCondition.Builder.class); + } + + // Construct using com.google.container.v1beta1.StatusCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + code_ = 0; + + message_ = ""; + + canonicalCode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_StatusCondition_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.StatusCondition getDefaultInstanceForType() { + return com.google.container.v1beta1.StatusCondition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.StatusCondition build() { + com.google.container.v1beta1.StatusCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.StatusCondition buildPartial() { + com.google.container.v1beta1.StatusCondition result = + new com.google.container.v1beta1.StatusCondition(this); + result.code_ = code_; + result.message_ = message_; + result.canonicalCode_ = canonicalCode_; + 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.StatusCondition) { + return mergeFrom((com.google.container.v1beta1.StatusCondition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.StatusCondition other) { + if (other == com.google.container.v1beta1.StatusCondition.getDefaultInstance()) return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.canonicalCode_ != 0) { + setCanonicalCodeValue(other.getCanonicalCodeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.StatusCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.StatusCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ = 0; + /** + * + * + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1beta1.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_; + } + /** + * + * + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1beta1.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; + onChanged(); + return this; + } + /** + * + * + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; + * + * @return The code. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.StatusCondition.Code getCode() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.StatusCondition.Code result = + com.google.container.v1beta1.StatusCondition.Code.valueOf(code_); + return result == null + ? com.google.container.v1beta1.StatusCondition.Code.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1beta1.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.v1beta1.StatusCondition.Code value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + 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); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.StatusCondition) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.StatusCondition) + private static final com.google.container.v1beta1.StatusCondition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.StatusCondition(); + } + + public static com.google.container.v1beta1.StatusCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatusCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StatusCondition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.StatusCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java new file mode 100644 index 00000000..1e5e1ad3 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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 StatusConditionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.StatusCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Machine-friendly representation of the condition
+   * Deprecated. Use canonical_code instead.
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; + * + * @return The code. + */ + @java.lang.Deprecated + com.google.container.v1beta1.StatusCondition.Code getCode(); + + /** + * + * + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + * + * @return The message. + */ + java.lang.String getMessage(); + /** + * + * + *
+   * Human-friendly representation of the condition
+   * 
+ * + * string message = 2; + * + * @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-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 new file mode 100644 index 00000000..886b5360 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java @@ -0,0 +1,1001 @@ +/* + * 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 an arbitrary window of time.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.TimeWindow} + */ +public final class TimeWindow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.TimeWindow) + TimeWindowOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeWindow.newBuilder() to construct. + private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimeWindow() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimeWindow(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimeWindow( + 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.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = 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_TimeWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_TimeWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.TimeWindow.class, + com.google.container.v1beta1.TimeWindow.Builder.class); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + 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 (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + 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.TimeWindow)) { + return super.equals(obj); + } + com.google.container.v1beta1.TimeWindow other = (com.google.container.v1beta1.TimeWindow) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) 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 (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.TimeWindow parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.TimeWindow 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.TimeWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.TimeWindow 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.TimeWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.TimeWindow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.TimeWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.TimeWindow 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.TimeWindow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.TimeWindow 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.TimeWindow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.TimeWindow 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.TimeWindow 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 an arbitrary window of time.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.TimeWindow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.TimeWindow) + com.google.container.v1beta1.TimeWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_TimeWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_TimeWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.TimeWindow.class, + com.google.container.v1beta1.TimeWindow.Builder.class); + } + + // Construct using com.google.container.v1beta1.TimeWindow.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 (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_TimeWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.TimeWindow getDefaultInstanceForType() { + return com.google.container.v1beta1.TimeWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.TimeWindow build() { + com.google.container.v1beta1.TimeWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.TimeWindow buildPartial() { + com.google.container.v1beta1.TimeWindow result = + new com.google.container.v1beta1.TimeWindow(this); + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.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.TimeWindow) { + return mergeFrom((com.google.container.v1beta1.TimeWindow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.TimeWindow other) { + if (other == com.google.container.v1beta1.TimeWindow.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + 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.TimeWindow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.TimeWindow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @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.TimeWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.TimeWindow) + private static final com.google.container.v1beta1.TimeWindow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.TimeWindow(); + } + + public static com.google.container.v1beta1.TimeWindow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeWindow(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.TimeWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 00000000..330d20cb --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java @@ -0,0 +1,98 @@ +/* + * 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 TimeWindowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.TimeWindow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TopicName.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TopicName.java new file mode 100644 index 00000000..34d1f71f --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TopicName.java @@ -0,0 +1,191 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.container.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class TopicName implements ResourceName { + private static final PathTemplate PROJECT_TOPIC = + PathTemplate.createWithoutUrlEncoding("projects/{project}/topics/{topic}"); + private volatile Map fieldValuesMap; + private final String project; + private final String topic; + + @Deprecated + protected TopicName() { + project = null; + topic = null; + } + + private TopicName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + topic = Preconditions.checkNotNull(builder.getTopic()); + } + + public String getProject() { + return project; + } + + public String getTopic() { + return topic; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TopicName of(String project, String topic) { + return newBuilder().setProject(project).setTopic(topic).build(); + } + + public static String format(String project, String topic) { + return newBuilder().setProject(project).setTopic(topic).build().toString(); + } + + public static TopicName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_TOPIC.validatedMatch( + formattedString, "TopicName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("topic")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (TopicName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_TOPIC.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (topic != null) { + fieldMapBuilder.put("topic", topic); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_TOPIC.instantiate("project", project, "topic", topic); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + TopicName that = ((TopicName) o); + return Objects.equals(this.project, that.project) && Objects.equals(this.topic, that.topic); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(topic); + return h; + } + + /** Builder for projects/{project}/topics/{topic}. */ + public static class Builder { + private String project; + private String topic; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getTopic() { + return topic; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTopic(String topic) { + this.topic = topic; + return this; + } + + private Builder(TopicName topicName) { + this.project = topicName.project; + this.topic = topicName.topic; + } + + public TopicName build() { + return new TopicName(this); + } + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfig.java new file mode 100644 index 00000000..1519b0fa --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfig.java @@ -0,0 +1,813 @@ +/* + * 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 Cloud TPU.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.TpuConfig} + */ +public final class TpuConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.TpuConfig) + TpuConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TpuConfig.newBuilder() to construct. + private TpuConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TpuConfig() { + ipv4CidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TpuConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TpuConfig( + 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 16: + { + useServiceNetworking_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + ipv4CidrBlock_ = 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_TpuConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_TpuConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.TpuConfig.class, + com.google.container.v1beta1.TpuConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Whether Cloud TPU integration is enabled or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int USE_SERVICE_NETWORKING_FIELD_NUMBER = 2; + private boolean useServiceNetworking_; + /** + * + * + *
+   * Whether to use service networking for Cloud TPU or not.
+   * 
+ * + * bool use_service_networking = 2; + * + * @return The useServiceNetworking. + */ + @java.lang.Override + public boolean getUseServiceNetworking() { + return useServiceNetworking_; + } + + public static final int IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; + private volatile java.lang.Object ipv4CidrBlock_; + /** + * + * + *
+   * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+   * 
+ * + * string ipv4_cidr_block = 3; + * + * @return The ipv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getIpv4CidrBlock() { + java.lang.Object ref = ipv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipv4CidrBlock_ = s; + return s; + } + } + /** + * + * + *
+   * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+   * 
+ * + * string ipv4_cidr_block = 3; + * + * @return The bytes for ipv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpv4CidrBlockBytes() { + java.lang.Object ref = ipv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipv4CidrBlock_ = 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 (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (useServiceNetworking_ != false) { + output.writeBool(2, useServiceNetworking_); + } + if (!getIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipv4CidrBlock_); + } + 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 (useServiceNetworking_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useServiceNetworking_); + } + if (!getIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipv4CidrBlock_); + } + 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.TpuConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.TpuConfig other = (com.google.container.v1beta1.TpuConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (getUseServiceNetworking() != other.getUseServiceNetworking()) return false; + if (!getIpv4CidrBlock().equals(other.getIpv4CidrBlock())) 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) + USE_SERVICE_NETWORKING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseServiceNetworking()); + hash = (37 * hash) + IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getIpv4CidrBlock().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.TpuConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.TpuConfig 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.TpuConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.TpuConfig 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.TpuConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.TpuConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.TpuConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.TpuConfig 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.TpuConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.TpuConfig 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.TpuConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.TpuConfig 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.TpuConfig 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 Cloud TPU.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.TpuConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.TpuConfig) + com.google.container.v1beta1.TpuConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_TpuConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_TpuConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.TpuConfig.class, + com.google.container.v1beta1.TpuConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.TpuConfig.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; + + useServiceNetworking_ = false; + + ipv4CidrBlock_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_TpuConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.TpuConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.TpuConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.TpuConfig build() { + com.google.container.v1beta1.TpuConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.TpuConfig buildPartial() { + com.google.container.v1beta1.TpuConfig result = + new com.google.container.v1beta1.TpuConfig(this); + result.enabled_ = enabled_; + result.useServiceNetworking_ = useServiceNetworking_; + result.ipv4CidrBlock_ = ipv4CidrBlock_; + 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.TpuConfig) { + return mergeFrom((com.google.container.v1beta1.TpuConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.TpuConfig other) { + if (other == com.google.container.v1beta1.TpuConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getUseServiceNetworking() != false) { + setUseServiceNetworking(other.getUseServiceNetworking()); + } + if (!other.getIpv4CidrBlock().isEmpty()) { + ipv4CidrBlock_ = other.ipv4CidrBlock_; + 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.TpuConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.TpuConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether Cloud TPU integration is enabled or not.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Whether Cloud TPU integration is enabled 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 Cloud TPU integration is enabled or not.
+     * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private boolean useServiceNetworking_; + /** + * + * + *
+     * Whether to use service networking for Cloud TPU or not.
+     * 
+ * + * bool use_service_networking = 2; + * + * @return The useServiceNetworking. + */ + @java.lang.Override + public boolean getUseServiceNetworking() { + return useServiceNetworking_; + } + /** + * + * + *
+     * Whether to use service networking for Cloud TPU or not.
+     * 
+ * + * bool use_service_networking = 2; + * + * @param value The useServiceNetworking to set. + * @return This builder for chaining. + */ + public Builder setUseServiceNetworking(boolean value) { + + useServiceNetworking_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to use service networking for Cloud TPU or not.
+     * 
+ * + * bool use_service_networking = 2; + * + * @return This builder for chaining. + */ + public Builder clearUseServiceNetworking() { + + useServiceNetworking_ = false; + onChanged(); + return this; + } + + private java.lang.Object ipv4CidrBlock_ = ""; + /** + * + * + *
+     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+     * 
+ * + * string ipv4_cidr_block = 3; + * + * @return The ipv4CidrBlock. + */ + public java.lang.String getIpv4CidrBlock() { + java.lang.Object ref = ipv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+     * 
+ * + * string ipv4_cidr_block = 3; + * + * @return The bytes for ipv4CidrBlock. + */ + public com.google.protobuf.ByteString getIpv4CidrBlockBytes() { + java.lang.Object ref = ipv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+     * 
+ * + * string ipv4_cidr_block = 3; + * + * @param value The ipv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipv4CidrBlock_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+     * 
+ * + * string ipv4_cidr_block = 3; + * + * @return This builder for chaining. + */ + public Builder clearIpv4CidrBlock() { + + ipv4CidrBlock_ = getDefaultInstance().getIpv4CidrBlock(); + onChanged(); + return this; + } + /** + * + * + *
+     * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+     * 
+ * + * string ipv4_cidr_block = 3; + * + * @param value The bytes for ipv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipv4CidrBlock_ = 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.TpuConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.TpuConfig) + private static final com.google.container.v1beta1.TpuConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.TpuConfig(); + } + + public static com.google.container.v1beta1.TpuConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TpuConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TpuConfig(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.TpuConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfigOrBuilder.java new file mode 100644 index 00000000..3ad14a48 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfigOrBuilder.java @@ -0,0 +1,76 @@ +/* + * 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 TpuConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.TpuConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether Cloud TPU integration is enabled or not.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+   * Whether to use service networking for Cloud TPU or not.
+   * 
+ * + * bool use_service_networking = 2; + * + * @return The useServiceNetworking. + */ + boolean getUseServiceNetworking(); + + /** + * + * + *
+   * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+   * 
+ * + * string ipv4_cidr_block = 3; + * + * @return The ipv4CidrBlock. + */ + java.lang.String getIpv4CidrBlock(); + /** + * + * + *
+   * IPv4 CIDR block reserved for Cloud TPU in the VPC.
+   * 
+ * + * string ipv4_cidr_block = 3; + * + * @return The bytes for ipv4CidrBlock. + */ + com.google.protobuf.ByteString getIpv4CidrBlockBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java new file mode 100644 index 00000000..ac8be401 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java @@ -0,0 +1,1558 @@ +/* + * 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; + +/** + * + * + *
+ * UpdateClusterRequest updates the settings of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateClusterRequest} + */ +public final class UpdateClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpdateClusterRequest) + UpdateClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateClusterRequest.newBuilder() to construct. + private UpdateClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateClusterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateClusterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateClusterRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + com.google.container.v1beta1.ClusterUpdate.Builder subBuilder = null; + if (update_ != null) { + subBuilder = update_.toBuilder(); + } + update_ = + input.readMessage( + com.google.container.v1beta1.ClusterUpdate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(update_); + update_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateClusterRequest.class, + com.google.container.v1beta1.UpdateClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_FIELD_NUMBER = 4; + private com.google.container.v1beta1.ClusterUpdate update_; + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. + */ + @java.lang.Override + public boolean hasUpdate() { + return update_ != null; + } + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdate getUpdate() { + return update_ == null + ? com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() + : update_; + } + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.container.v1beta1.ClusterUpdateOrBuilder getUpdateOrBuilder() { + return getUpdate(); + } + + public static final int NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (update_ != null) { + output.writeMessage(4, getUpdate()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (update_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdate()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.UpdateClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.UpdateClusterRequest other = + (com.google.container.v1beta1.UpdateClusterRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (hasUpdate() != other.hasUpdate()) return false; + if (hasUpdate()) { + if (!getUpdate().equals(other.getUpdate())) return false; + } + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasUpdate()) { + hash = (37 * hash) + UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdate().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UpdateClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UpdateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.UpdateClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * UpdateClusterRequest updates the settings of a cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UpdateClusterRequest) + com.google.container.v1beta1.UpdateClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateClusterRequest.class, + com.google.container.v1beta1.UpdateClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.UpdateClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + if (updateBuilder_ == null) { + update_ = null; + } else { + update_ = null; + updateBuilder_ = null; + } + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateClusterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.UpdateClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateClusterRequest build() { + com.google.container.v1beta1.UpdateClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateClusterRequest buildPartial() { + com.google.container.v1beta1.UpdateClusterRequest result = + new com.google.container.v1beta1.UpdateClusterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + if (updateBuilder_ == null) { + result.update_ = update_; + } else { + result.update_ = updateBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.UpdateClusterRequest) { + return mergeFrom((com.google.container.v1beta1.UpdateClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UpdateClusterRequest other) { + if (other == com.google.container.v1beta1.UpdateClusterRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.UpdateClusterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.UpdateClusterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ClusterUpdate update_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterUpdate, + com.google.container.v1beta1.ClusterUpdate.Builder, + com.google.container.v1beta1.ClusterUpdateOrBuilder> + updateBuilder_; + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. + */ + public boolean hasUpdate() { + return updateBuilder_ != null || update_ != null; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. + */ + public com.google.container.v1beta1.ClusterUpdate getUpdate() { + if (updateBuilder_ == null) { + return update_ == null + ? com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() + : update_; + } else { + return updateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdate(com.google.container.v1beta1.ClusterUpdate value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + update_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdate(com.google.container.v1beta1.ClusterUpdate.Builder builderForValue) { + if (updateBuilder_ == null) { + update_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdate(com.google.container.v1beta1.ClusterUpdate value) { + if (updateBuilder_ == null) { + if (update_ != null) { + update_ = + com.google.container.v1beta1.ClusterUpdate.newBuilder(update_) + .mergeFrom(value) + .buildPartial(); + } else { + update_ = value; + } + onChanged(); + } else { + updateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + update_ = null; + onChanged(); + } else { + update_ = null; + updateBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.ClusterUpdate.Builder getUpdateBuilder() { + + onChanged(); + return getUpdateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.container.v1beta1.ClusterUpdateOrBuilder getUpdateOrBuilder() { + if (updateBuilder_ != null) { + return updateBuilder_.getMessageOrBuilder(); + } else { + return update_ == null + ? com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() + : update_; + } + } + /** + * + * + *
+     * Required. A description of the update.
+     * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterUpdate, + com.google.container.v1beta1.ClusterUpdate.Builder, + com.google.container.v1beta1.ClusterUpdateOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + updateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ClusterUpdate, + com.google.container.v1beta1.ClusterUpdate.Builder, + com.google.container.v1beta1.ClusterUpdateOrBuilder>( + getUpdate(), getParentForChildren(), isClean()); + update_ = null; + } + return updateBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 5; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UpdateClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpdateClusterRequest) + private static final com.google.container.v1beta1.UpdateClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UpdateClusterRequest(); + } + + public static com.google.container.v1beta1.UpdateClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateClusterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java new file mode 100644 index 00000000..069bef7b --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java @@ -0,0 +1,190 @@ +/* + * 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 UpdateClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpdateClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. + */ + boolean hasUpdate(); + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. + */ + com.google.container.v1beta1.ClusterUpdate getUpdate(); + /** + * + * + *
+   * Required. A description of the update.
+   * 
+ * + * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.container.v1beta1.ClusterUpdateOrBuilder getUpdateOrBuilder(); + + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java new file mode 100644 index 00000000..59f24742 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java @@ -0,0 +1,1484 @@ +/* + * 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; + +/** + * + * + *
+ * UpdateMasterRequest updates the master of the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateMasterRequest} + */ +public final class UpdateMasterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpdateMasterRequest) + UpdateMasterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateMasterRequest.newBuilder() to construct. + private UpdateMasterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateMasterRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + masterVersion_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateMasterRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateMasterRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + masterVersion_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!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_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateMasterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateMasterRequest.class, + com.google.container.v1beta1.UpdateMasterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object masterVersion_; + /** + * + * + *
+   * Required. The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The masterVersion. + */ + @java.lang.Override + public java.lang.String getMasterVersion() { + java.lang.Object ref = masterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for masterVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMasterVersionBytes() { + java.lang.Object ref = masterVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 7; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getMasterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, masterVersion_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getMasterVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, masterVersion_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.UpdateMasterRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.UpdateMasterRequest other = + (com.google.container.v1beta1.UpdateMasterRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getMasterVersion().equals(other.getMasterVersion())) return false; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMasterVersion().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateMasterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UpdateMasterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UpdateMasterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.UpdateMasterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * UpdateMasterRequest updates the master of the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateMasterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UpdateMasterRequest) + com.google.container.v1beta1.UpdateMasterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateMasterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateMasterRequest.class, + com.google.container.v1beta1.UpdateMasterRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.UpdateMasterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + masterVersion_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateMasterRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.UpdateMasterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateMasterRequest build() { + com.google.container.v1beta1.UpdateMasterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateMasterRequest buildPartial() { + com.google.container.v1beta1.UpdateMasterRequest result = + new com.google.container.v1beta1.UpdateMasterRequest(this); + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.masterVersion_ = masterVersion_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.UpdateMasterRequest) { + return mergeFrom((com.google.container.v1beta1.UpdateMasterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UpdateMasterRequest other) { + if (other == com.google.container.v1beta1.UpdateMasterRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getMasterVersion().isEmpty()) { + masterVersion_ = other.masterVersion_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.UpdateMasterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.UpdateMasterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object masterVersion_ = ""; + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The masterVersion. + */ + public java.lang.String getMasterVersion() { + java.lang.Object ref = masterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + masterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for masterVersion. + */ + public com.google.protobuf.ByteString getMasterVersionBytes() { + java.lang.Object ref = masterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + masterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The masterVersion to set. + * @return This builder for chaining. + */ + public Builder setMasterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + masterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMasterVersion() { + + masterVersion_ = getDefaultInstance().getMasterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes version to change the master to.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for masterVersion to set. + * @return This builder for chaining. + */ + public Builder setMasterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + masterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster) of the cluster to update.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 7; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.UpdateMasterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpdateMasterRequest) + private static final com.google.container.v1beta1.UpdateMasterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UpdateMasterRequest(); + } + + public static com.google.container.v1beta1.UpdateMasterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMasterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMasterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateMasterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java new file mode 100644 index 00000000..d3da50fd --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java @@ -0,0 +1,188 @@ +/* + * 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 UpdateMasterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpdateMasterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The masterVersion. + */ + java.lang.String getMasterVersion(); + /** + * + * + *
+   * Required. The Kubernetes version to change the master to.
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for masterVersion. + */ + com.google.protobuf.ByteString getMasterVersionBytes(); + + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} 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 new file mode 100644 index 00000000..5f49cdd3 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java @@ -0,0 +1,3335 @@ +/* + * 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; + +/** + * + * + *
+ * SetNodePoolVersionRequest updates the version of a node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateNodePoolRequest} + */ +public final class UpdateNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpdateNodePoolRequest) + UpdateNodePoolRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateNodePoolRequest.newBuilder() to construct. + private UpdateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + nodeVersion_ = ""; + imageType_ = ""; + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateNodePoolRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateNodePoolRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + zone_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + clusterId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodePoolId_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + nodeVersion_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + imageType_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add(s); + break; + } + case 114: + { + com.google.container.v1beta1.WorkloadMetadataConfig.Builder subBuilder = null; + if (workloadMetadataConfig_ != null) { + subBuilder = workloadMetadataConfig_.toBuilder(); + } + workloadMetadataConfig_ = + input.readMessage( + com.google.container.v1beta1.WorkloadMetadataConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workloadMetadataConfig_); + workloadMetadataConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 122: + { + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder subBuilder = null; + if (upgradeSettings_ != null) { + subBuilder = upgradeSettings_.toBuilder(); + } + upgradeSettings_ = + input.readMessage( + com.google.container.v1beta1.NodePool.UpgradeSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(upgradeSettings_); + upgradeSettings_ = subBuilder.buildPartial(); + } + + break; + } + case 154: + { + com.google.container.v1beta1.LinuxNodeConfig.Builder subBuilder = null; + if (linuxNodeConfig_ != null) { + subBuilder = linuxNodeConfig_.toBuilder(); + } + linuxNodeConfig_ = + input.readMessage( + com.google.container.v1beta1.LinuxNodeConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(linuxNodeConfig_); + linuxNodeConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 162: + { + com.google.container.v1beta1.NodeKubeletConfig.Builder subBuilder = null; + if (kubeletConfig_ != null) { + subBuilder = kubeletConfig_.toBuilder(); + } + kubeletConfig_ = + input.readMessage( + com.google.container.v1beta1.NodeKubeletConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kubeletConfig_); + kubeletConfig_ = 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateNodePoolRequest.class, + com.google.container.v1beta1.UpdateNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 2; + private volatile java.lang.Object zone_; + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterId_; + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object nodePoolId_; + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } + } + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object nodeVersion_; + /** + * + * + *
+   * Required. The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeVersion. + */ + @java.lang.Override + public java.lang.String getNodeVersion() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeVersion_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeVersionBytes() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_TYPE_FIELD_NUMBER = 6; + private volatile java.lang.Object imageType_; + /** + * + * + *
+   * Required. The desired image type for the node pool.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageType. + */ + @java.lang.Override + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The desired image type for the node pool.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATIONS_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList locations_; + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_; + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfig_ != null; + } + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + return workloadMetadataConfig_ == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + return getWorkloadMetadataConfig(); + } + + public static final int NAME_FIELD_NUMBER = 8; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 8; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 8; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 15; + private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return upgradeSettings_ != null; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder + getUpgradeSettingsOrBuilder() { + return getUpgradeSettings(); + } + + public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 19; + private com.google.container.v1beta1.LinuxNodeConfig linuxNodeConfig_; + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.LinuxNodeConfig linux_node_config = 19; + * + * @return The linuxNodeConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig() { + return linuxNodeConfig_ == null + ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + @java.lang.Override + public com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + return getLinuxNodeConfig(); + } + + public static final int KUBELET_CONFIG_FIELD_NUMBER = 20; + private com.google.container.v1beta1.NodeKubeletConfig kubeletConfig_; + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.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.v1beta1.NodeKubeletConfig kubelet_config = 20; + * + * @return The kubeletConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig() { + return kubeletConfig_ == null + ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + return getKubeletConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!getNodeVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeVersion_); + } + if (!getImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, imageType_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, name_); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (workloadMetadataConfig_ != null) { + output.writeMessage(14, getWorkloadMetadataConfig()); + } + if (upgradeSettings_ != null) { + output.writeMessage(15, getUpgradeSettings()); + } + if (linuxNodeConfig_ != null) { + output.writeMessage(19, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + output.writeMessage(20, getKubeletConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!getClusterIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!getNodePoolIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!getNodeVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeVersion_); + } + if (!getImageTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, imageType_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, name_); + } + { + int dataSize = 0; + for (int i = 0; i < locations_.size(); i++) { + dataSize += computeStringSizeNoTag(locations_.getRaw(i)); + } + size += dataSize; + size += 1 * getLocationsList().size(); + } + if (workloadMetadataConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, getWorkloadMetadataConfig()); + } + if (upgradeSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUpgradeSettings()); + } + if (linuxNodeConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getLinuxNodeConfig()); + } + if (kubeletConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getKubeletConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.UpdateNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.UpdateNodePoolRequest other = + (com.google.container.v1beta1.UpdateNodePoolRequest) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getNodePoolId().equals(other.getNodePoolId())) return false; + if (!getNodeVersion().equals(other.getNodeVersion())) return false; + if (!getImageType().equals(other.getImageType())) return false; + if (!getLocationsList().equals(other.getLocationsList())) return false; + if (hasWorkloadMetadataConfig() != other.hasWorkloadMetadataConfig()) return false; + if (hasWorkloadMetadataConfig()) { + if (!getWorkloadMetadataConfig().equals(other.getWorkloadMetadataConfig())) return false; + } + if (!getName().equals(other.getName())) return false; + if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; + 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 (!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) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolId().hashCode(); + hash = (37 * hash) + NODE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getNodeVersion().hashCode(); + hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getImageType().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + if (hasWorkloadMetadataConfig()) { + hash = (37 * hash) + WORKLOAD_METADATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadMetadataConfig().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasUpgradeSettings()) { + 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(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.UpdateNodePoolRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * SetNodePoolVersionRequest updates the version of a node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.UpdateNodePoolRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UpdateNodePoolRequest) + com.google.container.v1beta1.UpdateNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpdateNodePoolRequest.class, + com.google.container.v1beta1.UpdateNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.UpdateNodePoolRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + zone_ = ""; + + clusterId_ = ""; + + nodePoolId_ = ""; + + nodeVersion_ = ""; + + imageType_ = ""; + + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + name_ = ""; + + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = null; + } else { + linuxNodeConfig_ = null; + linuxNodeConfigBuilder_ = null; + } + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = null; + } else { + kubeletConfig_ = null; + kubeletConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.UpdateNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateNodePoolRequest build() { + com.google.container.v1beta1.UpdateNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateNodePoolRequest buildPartial() { + com.google.container.v1beta1.UpdateNodePoolRequest result = + new com.google.container.v1beta1.UpdateNodePoolRequest(this); + int from_bitField0_ = bitField0_; + result.projectId_ = projectId_; + result.zone_ = zone_; + result.clusterId_ = clusterId_; + result.nodePoolId_ = nodePoolId_; + result.nodeVersion_ = nodeVersion_; + result.imageType_ = imageType_; + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = locations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + if (workloadMetadataConfigBuilder_ == null) { + result.workloadMetadataConfig_ = workloadMetadataConfig_; + } else { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); + } + result.name_ = name_; + if (upgradeSettingsBuilder_ == null) { + result.upgradeSettings_ = upgradeSettings_; + } 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(); + } + 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.UpdateNodePoolRequest) { + return mergeFrom((com.google.container.v1beta1.UpdateNodePoolRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UpdateNodePoolRequest other) { + if (other == com.google.container.v1beta1.UpdateNodePoolRequest.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + onChanged(); + } + if (!other.getNodeVersion().isEmpty()) { + nodeVersion_ = other.nodeVersion_; + onChanged(); + } + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + onChanged(); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + if (other.hasLinuxNodeConfig()) { + mergeLinuxNodeConfig(other.getLinuxNodeConfig()); + } + if (other.hasKubeletConfig()) { + mergeKubeletConfig(other.getKubeletConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.UpdateNodePoolRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.UpdateNodePoolRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearClusterId() { + + clusterId_ = getDefaultInstance().getClusterId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + * + * + *
+     * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + public java.lang.String getNodePoolId() { + java.lang.Object ref = nodePoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodePoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getNodePoolIdBytes() { + java.lang.Object ref = nodePoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodePoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodePoolId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodePoolId() { + + nodePoolId_ = getDefaultInstance().getNodePoolId(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodePoolId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeVersion_ = ""; + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeVersion. + */ + public java.lang.String getNodeVersion() { + java.lang.Object ref = nodeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeVersion. + */ + public com.google.protobuf.ByteString getNodeVersionBytes() { + java.lang.Object ref = nodeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodeVersion to set. + * @return This builder for chaining. + */ + public Builder setNodeVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodeVersion() { + + nodeVersion_ = getDefaultInstance().getNodeVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Kubernetes version to change the nodes to (typically an
+     * upgrade).
+     * Users may specify either explicit versions offered by Kubernetes Engine or
+     * version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the Kubernetes master version
+     * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for nodeVersion to set. + * @return This builder for chaining. + */ + public Builder setNodeVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageType. + */ + public java.lang.String getImageType() { + java.lang.Object ref = imageType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageType. + */ + public com.google.protobuf.ByteString getImageTypeBytes() { + java.lang.Object ref = imageType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The imageType to set. + * @return This builder for chaining. + */ + public Builder setImageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearImageType() { + + imageType_ = getDefaultInstance().getImageType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The desired image type for the node pool.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for imageType to set. + * @return This builder for chaining. + */ + public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList locations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList getLocationsList() { + return locations_.getUnmodifiableView(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString getLocationsBytes(int index) { + return locations_.getByteString(index); + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param index The index to set the value at. + * @param value The locations to set. + * @return This builder for chaining. + */ + public Builder setLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The locations to add. + * @return This builder for chaining. + */ + public Builder addLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param values The locations to add. + * @return This builder for chaining. + */ + public Builder addAllLocations(java.lang.Iterable values) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @return This builder for chaining. + */ + public Builder clearLocations() { + locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The desired list of Google Compute Engine
+     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+     * node pool's nodes should be located. Changing the locations for a node pool
+     * will result in nodes being either created or removed from the node pool,
+     * depending on whether locations are being added or removed.
+     * 
+ * + * repeated string locations = 13; + * + * @param value The bytes of the locations to add. + * @return This builder for chaining. + */ + public Builder addLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + return this; + } + + private com.google.container.v1beta1.WorkloadMetadataConfig workloadMetadataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder, + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> + workloadMetadataConfigBuilder_; + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + public boolean hasWorkloadMetadataConfig() { + return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + public com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + return workloadMetadataConfig_ == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } else { + return workloadMetadataConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadMetadataConfig_ = value; + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig.Builder builderForValue) { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = builderForValue.build(); + onChanged(); + } else { + workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder mergeWorkloadMetadataConfig( + com.google.container.v1beta1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (workloadMetadataConfig_ != null) { + workloadMetadataConfig_ = + com.google.container.v1beta1.WorkloadMetadataConfig.newBuilder( + workloadMetadataConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + workloadMetadataConfig_ = value; + } + onChanged(); + } else { + workloadMetadataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder clearWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = null; + onChanged(); + } else { + workloadMetadataConfig_ = null; + workloadMetadataConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfig.Builder + getWorkloadMetadataConfigBuilder() { + + onChanged(); + return getWorkloadMetadataConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder + getWorkloadMetadataConfigOrBuilder() { + if (workloadMetadataConfigBuilder_ != null) { + return workloadMetadataConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadMetadataConfig_ == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() + : workloadMetadataConfig_; + } + } + /** + * + * + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder, + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder> + getWorkloadMetadataConfigFieldBuilder() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadMetadataConfig, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder, + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder>( + getWorkloadMetadataConfig(), getParentForChildren(), isClean()); + workloadMetadataConfig_ = null; + } + return workloadMetadataConfigBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> + upgradeSettingsBuilder_; + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return The upgradeSettings. + */ + public com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder setUpgradeSettings(com.google.container.v1beta1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder setUpgradeSettings( + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + onChanged(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder mergeUpgradeSettings( + com.google.container.v1beta1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (upgradeSettings_ != null) { + upgradeSettings_ = + com.google.container.v1beta1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + upgradeSettings_ = value; + } + onChanged(); + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder clearUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = null; + onChanged(); + } else { + upgradeSettings_ = null; + upgradeSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public com.google.container.v1beta1.NodePool.UpgradeSettings.Builder + getUpgradeSettingsBuilder() { + + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder + getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null + ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() + : upgradeSettings_; + } + } + /** + * + * + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpgradeSettings, + com.google.container.v1beta1.NodePool.UpgradeSettings.Builder, + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), getParentForChildren(), isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + private com.google.container.v1beta1.LinuxNodeConfig linuxNodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LinuxNodeConfig, + com.google.container.v1beta1.LinuxNodeConfig.Builder, + com.google.container.v1beta1.LinuxNodeConfigOrBuilder> + linuxNodeConfigBuilder_; + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.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.v1beta1.LinuxNodeConfig linux_node_config = 19; + * + * @return The linuxNodeConfig. + */ + public com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + return linuxNodeConfig_ == null + ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } else { + return linuxNodeConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder setLinuxNodeConfig(com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder setLinuxNodeConfig( + com.google.container.v1beta1.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.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder mergeLinuxNodeConfig(com.google.container.v1beta1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (linuxNodeConfig_ != null) { + linuxNodeConfig_ = + com.google.container.v1beta1.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.v1beta1.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.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + public com.google.container.v1beta1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { + + onChanged(); + return getLinuxNodeConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + public com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + if (linuxNodeConfigBuilder_ != null) { + return linuxNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return linuxNodeConfig_ == null + ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() + : linuxNodeConfig_; + } + } + /** + * + * + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LinuxNodeConfig, + com.google.container.v1beta1.LinuxNodeConfig.Builder, + com.google.container.v1beta1.LinuxNodeConfigOrBuilder> + getLinuxNodeConfigFieldBuilder() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LinuxNodeConfig, + com.google.container.v1beta1.LinuxNodeConfig.Builder, + com.google.container.v1beta1.LinuxNodeConfigOrBuilder>( + getLinuxNodeConfig(), getParentForChildren(), isClean()); + linuxNodeConfig_ = null; + } + return linuxNodeConfigBuilder_; + } + + private com.google.container.v1beta1.NodeKubeletConfig kubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeKubeletConfig, + com.google.container.v1beta1.NodeKubeletConfig.Builder, + com.google.container.v1beta1.NodeKubeletConfigOrBuilder> + kubeletConfigBuilder_; + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + * + * @return Whether the kubeletConfig field is set. + */ + public boolean hasKubeletConfig() { + return kubeletConfigBuilder_ != null || kubeletConfig_ != null; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + * + * @return The kubeletConfig. + */ + public com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + return kubeletConfig_ == null + ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } else { + return kubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder setKubeletConfig(com.google.container.v1beta1.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.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder setKubeletConfig( + com.google.container.v1beta1.NodeKubeletConfig.Builder builderForValue) { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = builderForValue.build(); + onChanged(); + } else { + kubeletConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder mergeKubeletConfig(com.google.container.v1beta1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (kubeletConfig_ != null) { + kubeletConfig_ = + com.google.container.v1beta1.NodeKubeletConfig.newBuilder(kubeletConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + kubeletConfig_ = value; + } + onChanged(); + } else { + kubeletConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.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.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public com.google.container.v1beta1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { + + onChanged(); + return getKubeletConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + if (kubeletConfigBuilder_ != null) { + return kubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return kubeletConfig_ == null + ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() + : kubeletConfig_; + } + } + /** + * + * + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeKubeletConfig, + com.google.container.v1beta1.NodeKubeletConfig.Builder, + com.google.container.v1beta1.NodeKubeletConfigOrBuilder> + getKubeletConfigFieldBuilder() { + if (kubeletConfigBuilder_ == null) { + kubeletConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeKubeletConfig, + com.google.container.v1beta1.NodeKubeletConfig.Builder, + com.google.container.v1beta1.NodeKubeletConfigOrBuilder>( + getKubeletConfig(), getParentForChildren(), isClean()); + kubeletConfig_ = null; + } + return kubeletConfigBuilder_; + } + + @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.UpdateNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpdateNodePoolRequest) + private static final com.google.container.v1beta1.UpdateNodePoolRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UpdateNodePoolRequest(); + } + + public static com.google.container.v1beta1.UpdateNodePoolRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateNodePoolRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateNodePoolRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.UpdateNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/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 new file mode 100644 index 00000000..9b6ece8c --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java @@ -0,0 +1,455 @@ +/* + * 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 UpdateNodePoolRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpdateNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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]; + * + * + * @return The projectId. + */ + @java.lang.Deprecated + java.lang.String getProjectId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for projectId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * 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]; + * + * @return The zone. + */ + @java.lang.Deprecated + java.lang.String getZone(); + /** + * + * + *
+   * 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]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The clusterId. + */ + @java.lang.Deprecated + java.lang.String getClusterId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for clusterId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * 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]; + * + * + * @return The nodePoolId. + */ + @java.lang.Deprecated + java.lang.String getNodePoolId(); + /** + * + * + *
+   * 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]; + * + * + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getNodePoolIdBytes(); + + /** + * + * + *
+   * Required. The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeVersion. + */ + java.lang.String getNodeVersion(); + /** + * + * + *
+   * Required. The Kubernetes version to change the nodes to (typically an
+   * upgrade).
+   * Users may specify either explicit versions offered by Kubernetes Engine or
+   * version aliases, which have the following behavior:
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the Kubernetes master version
+   * 
+ * + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeVersion. + */ + com.google.protobuf.ByteString getNodeVersionBytes(); + + /** + * + * + *
+   * Required. The desired image type for the node pool.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageType. + */ + java.lang.String getImageType(); + /** + * + * + *
+   * Required. The desired image type for the node pool.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString getImageTypeBytes(); + + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return A list containing the locations. + */ + java.util.List getLocationsList(); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @return The count of locations. + */ + int getLocationsCount(); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the element to return. + * @return The locations at the given index. + */ + java.lang.String getLocations(int index); + /** + * + * + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + com.google.protobuf.ByteString getLocationsBytes(int index); + + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return Whether the workloadMetadataConfig field is set. + */ + boolean hasWorkloadMetadataConfig(); + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + * + * @return The workloadMetadataConfig. + */ + com.google.container.v1beta1.WorkloadMetadataConfig getWorkloadMetadataConfig(); + /** + * + * + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); + + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 8; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 8; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return Whether the upgradeSettings field is set. + */ + boolean hasUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + * + * @return The upgradeSettings. + */ + com.google.container.v1beta1.NodePool.UpgradeSettings getUpgradeSettings(); + /** + * + * + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + com.google.container.v1beta1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); + + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + * + * @return Whether the linuxNodeConfig field is set. + */ + boolean hasLinuxNodeConfig(); + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + * + * @return The linuxNodeConfig. + */ + com.google.container.v1beta1.LinuxNodeConfig getLinuxNodeConfig(); + /** + * + * + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + com.google.container.v1beta1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder(); + + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + * + * @return Whether the kubeletConfig field is set. + */ + boolean hasKubeletConfig(); + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + * + * @return The kubeletConfig. + */ + com.google.container.v1beta1.NodeKubeletConfig getKubeletConfig(); + /** + * + * + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + com.google.container.v1beta1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEvent.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEvent.java new file mode 100644 index 00000000..756e49bc --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEvent.java @@ -0,0 +1,1650 @@ +/* + * 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; + +/** + * + * + *
+ * UpgradeEvent is a notification sent to customers by the cluster server when
+ * a resource is upgrading.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UpgradeEvent} + */ +public final class UpgradeEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpgradeEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpgradeEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpgradeEvent.class, + com.google.container.v1beta1.UpgradeEvent.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + * + * + *
+   * Required. The resource type that is upgrading.
+   * 
+ * + * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+   * Required. The resource type that is upgrading.
+   * 
+ * + * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1beta1.UpgradeResourceType getResourceType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.UpgradeResourceType result = + com.google.container.v1beta1.UpgradeResourceType.valueOf(resourceType_); + return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; + } + + public static final int OPERATION_FIELD_NUMBER = 2; + private volatile java.lang.Object operation_; + /** + * + * + *
+   * Required. The operation associated with this upgrade.
+   * 
+ * + * string operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. The operation associated with this upgrade.
+   * 
+ * + * string operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_; + /** + * + * + *
+   * Required. The time when the operation was started.
+   * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the operationStartTime field is set. + */ + @java.lang.Override + public boolean hasOperationStartTime() { + return operationStartTime_ != null; + } + /** + * + * + *
+   * Required. The time when the operation was started.
+   * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operationStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getOperationStartTime() { + return operationStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : operationStartTime_; + } + /** + * + * + *
+   * Required. The time when the operation was started.
+   * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @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_; + /** + * + * + *
+   * Required. The current version before the upgrade.
+   * 
+ * + * string current_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. The current version before the upgrade.
+   * 
+ * + * string current_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_; + /** + * + * + *
+   * Required. The target version for the upgrade.
+   * 
+ * + * string target_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. The target version for the upgrade.
+   * 
+ * + * string target_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.v1beta1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!getOperationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_); + } + if (operationStartTime_ != null) { + output.writeMessage(3, getOperationStartTime()); + } + if (!getCurrentVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currentVersion_); + } + if (!getTargetVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetVersion_); + } + if (!getResourceBytes().isEmpty()) { + 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.v1beta1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, resourceType_); + } + if (!getOperationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operation_); + } + if (operationStartTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperationStartTime()); + } + if (!getCurrentVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currentVersion_); + } + if (!getTargetVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetVersion_); + } + if (!getResourceBytes().isEmpty()) { + 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.v1beta1.UpgradeEvent)) { + return super.equals(obj); + } + com.google.container.v1beta1.UpgradeEvent other = + (com.google.container.v1beta1.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.v1beta1.UpgradeEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.UpgradeEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.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.v1beta1.UpgradeEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UpgradeEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UpgradeEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.UpgradeEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.UpgradeEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.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.v1beta1.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.v1beta1.UpgradeEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UpgradeEvent) + com.google.container.v1beta1.UpgradeEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpgradeEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpgradeEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpgradeEvent.class, + com.google.container.v1beta1.UpgradeEvent.Builder.class); + } + + // Construct using com.google.container.v1beta1.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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UpgradeEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UpgradeEvent getDefaultInstanceForType() { + return com.google.container.v1beta1.UpgradeEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UpgradeEvent build() { + com.google.container.v1beta1.UpgradeEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UpgradeEvent buildPartial() { + com.google.container.v1beta1.UpgradeEvent result = + new com.google.container.v1beta1.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.v1beta1.UpgradeEvent) { + return mergeFrom((com.google.container.v1beta1.UpgradeEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UpgradeEvent other) { + if (other == com.google.container.v1beta1.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.v1beta1.UpgradeEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.UpgradeEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + * + * + *
+     * Required. The resource type that is upgrading.
+     * 
+ * + * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; + } + /** + * + * + *
+     * Required. The resource type that is upgrading.
+     * 
+ * + * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + /** + * + * + *
+     * Required. The resource type that is upgrading.
+     * 
+ * + * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1beta1.UpgradeResourceType getResourceType() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.UpgradeResourceType result = + com.google.container.v1beta1.UpgradeResourceType.valueOf(resourceType_); + return result == null + ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The resource type that is upgrading.
+     * 
+ * + * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(com.google.container.v1beta1.UpgradeResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource type that is upgrading.
+     * 
+ * + * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object operation_ = ""; + /** + * + * + *
+     * Required. The operation associated with this upgrade.
+     * 
+ * + * string operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The operation associated with this upgrade.
+     * 
+ * + * string operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The operation associated with this upgrade.
+     * 
+ * + * string operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. The operation associated with this upgrade.
+     * 
+ * + * string operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + + operation_ = getDefaultInstance().getOperation(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The operation associated with this upgrade.
+     * 
+ * + * string operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_; + /** + * + * + *
+     * Required. The time when the operation was started.
+     * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the operationStartTime field is set. + */ + public boolean hasOperationStartTime() { + return operationStartTimeBuilder_ != null || operationStartTime_ != null; + } + /** + * + * + *
+     * Required. The time when the operation was started.
+     * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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(); + } + } + /** + * + * + *
+     * Required. The time when the operation was started.
+     * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + /** + * + * + *
+     * Required. The time when the operation was started.
+     * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOperationStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = builderForValue.build(); + onChanged(); + } else { + operationStartTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The time when the operation was started.
+     * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + /** + * + * + *
+     * Required. The time when the operation was started.
+     * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOperationStartTime() { + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = null; + onChanged(); + } else { + operationStartTime_ = null; + operationStartTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The time when the operation was started.
+     * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getOperationStartTimeBuilder() { + + onChanged(); + return getOperationStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The time when the operation was started.
+     * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { + if (operationStartTimeBuilder_ != null) { + return operationStartTimeBuilder_.getMessageOrBuilder(); + } else { + return operationStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : operationStartTime_; + } + } + /** + * + * + *
+     * Required. The time when the operation was started.
+     * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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_ = ""; + /** + * + * + *
+     * Required. The current version before the upgrade.
+     * 
+ * + * string current_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The current version before the upgrade.
+     * 
+ * + * string current_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The current version before the upgrade.
+     * 
+ * + * string current_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. The current version before the upgrade.
+     * 
+ * + * string current_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCurrentVersion() { + + currentVersion_ = getDefaultInstance().getCurrentVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The current version before the upgrade.
+     * 
+ * + * string current_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ = ""; + /** + * + * + *
+     * Required. The target version for the upgrade.
+     * 
+ * + * string target_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The target version for the upgrade.
+     * 
+ * + * string target_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The target version for the upgrade.
+     * 
+ * + * string target_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. The target version for the upgrade.
+     * 
+ * + * string target_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTargetVersion() { + + targetVersion_ = getDefaultInstance().getTargetVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The target version for the upgrade.
+     * 
+ * + * string target_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.v1beta1.UpgradeEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpgradeEvent) + private static final com.google.container.v1beta1.UpgradeEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UpgradeEvent(); + } + + public static com.google.container.v1beta1.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.v1beta1.UpgradeEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEventOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEventOrBuilder.java new file mode 100644 index 00000000..6443b9a3 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEventOrBuilder.java @@ -0,0 +1,197 @@ +/* + * 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 UpgradeEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpgradeEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource type that is upgrading.
+   * 
+ * + * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for resourceType. + */ + int getResourceTypeValue(); + /** + * + * + *
+   * Required. The resource type that is upgrading.
+   * 
+ * + * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The resourceType. + */ + com.google.container.v1beta1.UpgradeResourceType getResourceType(); + + /** + * + * + *
+   * Required. The operation associated with this upgrade.
+   * 
+ * + * string operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The operation. + */ + java.lang.String getOperation(); + /** + * + * + *
+   * Required. The operation associated with this upgrade.
+   * 
+ * + * string operation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for operation. + */ + com.google.protobuf.ByteString getOperationBytes(); + + /** + * + * + *
+   * Required. The time when the operation was started.
+   * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the operationStartTime field is set. + */ + boolean hasOperationStartTime(); + /** + * + * + *
+   * Required. The time when the operation was started.
+   * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operationStartTime. + */ + com.google.protobuf.Timestamp getOperationStartTime(); + /** + * + * + *
+   * Required. The time when the operation was started.
+   * 
+ * + * + * .google.protobuf.Timestamp operation_start_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder(); + + /** + * + * + *
+   * Required. The current version before the upgrade.
+   * 
+ * + * string current_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The currentVersion. + */ + java.lang.String getCurrentVersion(); + /** + * + * + *
+   * Required. The current version before the upgrade.
+   * 
+ * + * string current_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for currentVersion. + */ + com.google.protobuf.ByteString getCurrentVersionBytes(); + + /** + * + * + *
+   * Required. The target version for the upgrade.
+   * 
+ * + * string target_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetVersion. + */ + java.lang.String getTargetVersion(); + /** + * + * + *
+   * Required. The target version for the upgrade.
+   * 
+ * + * string target_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetVersion. + */ + com.google.protobuf.ByteString getTargetVersionBytes(); + + /** + * + * + *
+   * Optional. Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The resource. + */ + java.lang.String getResource(); + /** + * + * + *
+   * Optional. Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeResourceType.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeResourceType.java new file mode 100644 index 00000000..317f441b --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * UpgradeResourceType is the resource type that is upgrading. It is used
+ * in upgrade notifications.
+ * 
+ * + * Protobuf enum {@code google.container.v1beta1.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.v1beta1.ClusterServiceProto.getDescriptor().getEnumTypes().get(1); + } + + 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.v1beta1.UpgradeResourceType) +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java new file mode 100644 index 00000000..1f931b79 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java @@ -0,0 +1,1777 @@ +/* + * 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; + +/** + * + * + *
+ * UsableSubnetwork resource returns the subnetwork name, its associated network
+ * and the primary CIDR range.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UsableSubnetwork} + */ +public final class UsableSubnetwork extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UsableSubnetwork) + UsableSubnetworkOrBuilder { + private static final long serialVersionUID = 0L; + // Use UsableSubnetwork.newBuilder() to construct. + private UsableSubnetwork(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UsableSubnetwork() { + subnetwork_ = ""; + network_ = ""; + ipCidrRange_ = ""; + secondaryIpRanges_ = java.util.Collections.emptyList(); + statusMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UsableSubnetwork(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UsableSubnetwork( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + subnetwork_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + ipCidrRange_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + secondaryIpRanges_ = + new java.util.ArrayList< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange>(); + mutable_bitField0_ |= 0x00000001; + } + secondaryIpRanges_.add( + input.readMessage( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.parser(), + extensionRegistry)); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + default: + { + if (!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)) { + secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UsableSubnetwork.class, + com.google.container.v1beta1.UsableSubnetwork.Builder.class); + } + + public static final int SUBNETWORK_FIELD_NUMBER = 1; + private volatile java.lang.Object subnetwork_; + /** + * + * + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + * + * @return The subnetwork. + */ + @java.lang.Override + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } + } + /** + * + * + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + * + * @return The bytes for subnetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 2; + private volatile java.lang.Object network_; + /** + * + * + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_CIDR_RANGE_FIELD_NUMBER = 3; + private volatile java.lang.Object ipCidrRange_; + /** + * + * + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + * + * @return The ipCidrRange. + */ + @java.lang.Override + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } + } + /** + * + * + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + * + * @return The bytes for ipCidrRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECONDARY_IP_RANGES_FIELD_NUMBER = 4; + private java.util.List + secondaryIpRanges_; + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + @java.lang.Override + public java.util.List + getSecondaryIpRangesList() { + return secondaryIpRanges_; + } + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> + getSecondaryIpRangesOrBuilderList() { + return secondaryIpRanges_; + } + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + @java.lang.Override + public int getSecondaryIpRangesCount() { + return secondaryIpRanges_.size(); + } + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges( + int index) { + return secondaryIpRanges_.get(index); + } + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder + getSecondaryIpRangesOrBuilder(int index) { + return secondaryIpRanges_.get(index); + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object statusMessage_; + /** + * + * + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + * + * + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSubnetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); + } + if (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipCidrRange_); + } + for (int i = 0; i < secondaryIpRanges_.size(); i++) { + output.writeMessage(4, secondaryIpRanges_.get(i)); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubnetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); + } + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipCidrRange_); + } + for (int i = 0; i < secondaryIpRanges_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, secondaryIpRanges_.get(i)); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.UsableSubnetwork)) { + return super.equals(obj); + } + com.google.container.v1beta1.UsableSubnetwork other = + (com.google.container.v1beta1.UsableSubnetwork) obj; + + if (!getSubnetwork().equals(other.getSubnetwork())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; + if (!getSecondaryIpRangesList().equals(other.getSecondaryIpRangesList())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) 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) + SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetwork().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIpCidrRange().hashCode(); + if (getSecondaryIpRangesCount() > 0) { + hash = (37 * hash) + SECONDARY_IP_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryIpRangesList().hashCode(); + } + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.UsableSubnetwork parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UsableSubnetwork parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UsableSubnetwork parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.UsableSubnetwork parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UsableSubnetwork parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UsableSubnetwork parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.UsableSubnetwork prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * UsableSubnetwork resource returns the subnetwork name, its associated network
+   * and the primary CIDR range.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.UsableSubnetwork} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UsableSubnetwork) + com.google.container.v1beta1.UsableSubnetworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UsableSubnetwork.class, + com.google.container.v1beta1.UsableSubnetwork.Builder.class); + } + + // Construct using com.google.container.v1beta1.UsableSubnetwork.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSecondaryIpRangesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + subnetwork_ = ""; + + network_ = ""; + + ipCidrRange_ = ""; + + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + secondaryIpRangesBuilder_.clear(); + } + statusMessage_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork getDefaultInstanceForType() { + return com.google.container.v1beta1.UsableSubnetwork.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork build() { + com.google.container.v1beta1.UsableSubnetwork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork buildPartial() { + com.google.container.v1beta1.UsableSubnetwork result = + new com.google.container.v1beta1.UsableSubnetwork(this); + int from_bitField0_ = bitField0_; + result.subnetwork_ = subnetwork_; + result.network_ = network_; + result.ipCidrRange_ = ipCidrRange_; + if (secondaryIpRangesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.secondaryIpRanges_ = secondaryIpRanges_; + } else { + result.secondaryIpRanges_ = secondaryIpRangesBuilder_.build(); + } + result.statusMessage_ = statusMessage_; + 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.UsableSubnetwork) { + return mergeFrom((com.google.container.v1beta1.UsableSubnetwork) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UsableSubnetwork other) { + if (other == com.google.container.v1beta1.UsableSubnetwork.getDefaultInstance()) return this; + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + onChanged(); + } + if (secondaryIpRangesBuilder_ == null) { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRanges_.isEmpty()) { + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.addAll(other.secondaryIpRanges_); + } + onChanged(); + } + } else { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRangesBuilder_.isEmpty()) { + secondaryIpRangesBuilder_.dispose(); + secondaryIpRangesBuilder_ = null; + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + secondaryIpRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecondaryIpRangesFieldBuilder() + : null; + } else { + secondaryIpRangesBuilder_.addAllMessages(other.secondaryIpRanges_); + } + } + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.UsableSubnetwork parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1beta1.UsableSubnetwork) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object subnetwork_ = ""; + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @return The subnetwork. + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @return The bytes for subnetwork. + */ + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @param value The subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @param value The bytes for subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @return The ipCidrRange. + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @return The bytes for ipCidrRange. + */ + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @param value The ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @return This builder for chaining. + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @param value The bytes for ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private java.util.List + secondaryIpRanges_ = java.util.Collections.emptyList(); + + private void ensureSecondaryIpRangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + secondaryIpRanges_ = + new java.util.ArrayList( + secondaryIpRanges_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, + com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> + secondaryIpRangesBuilder_; + + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public java.util.List + getSecondaryIpRangesList() { + if (secondaryIpRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(secondaryIpRanges_); + } else { + return secondaryIpRangesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public int getSecondaryIpRangesCount() { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.size(); + } else { + return secondaryIpRangesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges( + int index) { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.get(index); + } else { + return secondaryIpRangesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder setSecondaryIpRanges( + int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.set(index, value); + onChanged(); + } else { + secondaryIpRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder setSecondaryIpRanges( + int index, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder addSecondaryIpRanges( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(value); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder addSecondaryIpRanges( + int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(index, value); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder addSecondaryIpRanges( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder addSecondaryIpRanges( + int index, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder addAllSecondaryIpRanges( + java.lang.Iterable + values) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secondaryIpRanges_); + onChanged(); + } else { + secondaryIpRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder clearSecondaryIpRanges() { + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + secondaryIpRangesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public Builder removeSecondaryIpRanges(int index) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.remove(index); + onChanged(); + } else { + secondaryIpRangesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder + getSecondaryIpRangesBuilder(int index) { + return getSecondaryIpRangesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder + getSecondaryIpRangesOrBuilder(int index) { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.get(index); + } else { + return secondaryIpRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public java.util.List< + ? extends com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> + getSecondaryIpRangesOrBuilderList() { + if (secondaryIpRangesBuilder_ != null) { + return secondaryIpRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secondaryIpRanges_); + } + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder + addSecondaryIpRangesBuilder() { + return getSecondaryIpRangesFieldBuilder() + .addBuilder( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()); + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder + addSecondaryIpRangesBuilder(int index) { + return getSecondaryIpRangesFieldBuilder() + .addBuilder( + index, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()); + } + /** + * + * + *
+     * Secondary IP ranges.
+     * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public java.util.List + getSecondaryIpRangesBuilderList() { + return getSecondaryIpRangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, + com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> + getSecondaryIpRangesFieldBuilder() { + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, + com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder>( + secondaryIpRanges_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + secondaryIpRanges_ = null; + } + return secondaryIpRangesBuilder_; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + + statusMessage_ = getDefaultInstance().getStatusMessage(); + onChanged(); + return this; + } + /** + * + * + *
+     * A human readable status message representing the reasons for cases where
+     * the caller cannot use the secondary ranges under the subnet. For example if
+     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+     * permission message will be given by status_message.
+     * 
+ * + * string status_message = 5; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.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.UsableSubnetwork) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UsableSubnetwork) + private static final com.google.container.v1beta1.UsableSubnetwork DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UsableSubnetwork(); + } + + public static com.google.container.v1beta1.UsableSubnetwork getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsableSubnetwork parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UsableSubnetwork(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetwork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java new file mode 100644 index 00000000..70038b7a --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java @@ -0,0 +1,199 @@ +/* + * 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 UsableSubnetworkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UsableSubnetwork) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + * + * @return The subnetwork. + */ + java.lang.String getSubnetwork(); + /** + * + * + *
+   * Subnetwork Name.
+   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+   * 
+ * + * string subnetwork = 1; + * + * @return The bytes for subnetwork. + */ + com.google.protobuf.ByteString getSubnetworkBytes(); + + /** + * + * + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Network Name.
+   * Example: projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + * + * @return The ipCidrRange. + */ + java.lang.String getIpCidrRange(); + /** + * + * + *
+   * The range of internal addresses that are owned by this subnetwork.
+   * 
+ * + * string ip_cidr_range = 3; + * + * @return The bytes for ipCidrRange. + */ + com.google.protobuf.ByteString getIpCidrRangeBytes(); + + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + java.util.List + getSecondaryIpRangesList(); + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index); + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + int getSecondaryIpRangesCount(); + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + java.util.List + getSecondaryIpRangesOrBuilderList(); + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder + getSecondaryIpRangesOrBuilder(int index); + + /** + * + * + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + /** + * + * + *
+   * A human readable status message representing the reasons for cases where
+   * the caller cannot use the secondary ranges under the subnet. For example if
+   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
+   * permission message will be given by status_message.
+   * 
+ * + * string status_message = 5; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java new file mode 100644 index 00000000..f1108f0b --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java @@ -0,0 +1,1192 @@ +/* + * 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; + +/** + * + * + *
+ * Secondary IP range of a usable subnetwork.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UsableSubnetworkSecondaryRange} + */ +public final class UsableSubnetworkSecondaryRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UsableSubnetworkSecondaryRange) + UsableSubnetworkSecondaryRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use UsableSubnetworkSecondaryRange.newBuilder() to construct. + private UsableSubnetworkSecondaryRange( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UsableSubnetworkSecondaryRange() { + rangeName_ = ""; + ipCidrRange_ = ""; + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UsableSubnetworkSecondaryRange(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UsableSubnetworkSecondaryRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + rangeName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + ipCidrRange_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + default: + { + if (!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_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.class, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder.class); + } + + /** + * + * + *
+   * Status shows the current usage of a secondary IP range.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.UsableSubnetworkSecondaryRange.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * UNKNOWN is the zero value of the Status enum. It's not a valid status.
+     * 
+ * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
+     * UNUSED denotes that this range is unclaimed by any cluster.
+     * 
+ * + * UNUSED = 1; + */ + UNUSED(1), + /** + * + * + *
+     * IN_USE_SERVICE denotes that this range is claimed by a cluster for
+     * services. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_SERVICE = 2; + */ + IN_USE_SERVICE(2), + /** + * + * + *
+     * IN_USE_SHAREABLE_POD denotes this range was created by the network admin
+     * and is currently claimed by a cluster for pods. It can only be used by
+     * other clusters as a pod range.
+     * 
+ * + * IN_USE_SHAREABLE_POD = 3; + */ + IN_USE_SHAREABLE_POD(3), + /** + * + * + *
+     * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed
+     * for pods. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_MANAGED_POD = 4; + */ + IN_USE_MANAGED_POD(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * UNKNOWN is the zero value of the Status enum. It's not a valid status.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * + * + *
+     * UNUSED denotes that this range is unclaimed by any cluster.
+     * 
+ * + * UNUSED = 1; + */ + public static final int UNUSED_VALUE = 1; + /** + * + * + *
+     * IN_USE_SERVICE denotes that this range is claimed by a cluster for
+     * services. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_SERVICE = 2; + */ + public static final int IN_USE_SERVICE_VALUE = 2; + /** + * + * + *
+     * IN_USE_SHAREABLE_POD denotes this range was created by the network admin
+     * and is currently claimed by a cluster for pods. It can only be used by
+     * other clusters as a pod range.
+     * 
+ * + * IN_USE_SHAREABLE_POD = 3; + */ + public static final int IN_USE_SHAREABLE_POD_VALUE = 3; + /** + * + * + *
+     * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed
+     * for pods. It cannot be used for other clusters.
+     * 
+ * + * IN_USE_MANAGED_POD = 4; + */ + public static final int IN_USE_MANAGED_POD_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return UNUSED; + case 2: + return IN_USE_SERVICE; + case 3: + return IN_USE_SHAREABLE_POD; + case 4: + return IN_USE_MANAGED_POD; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.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.UsableSubnetworkSecondaryRange.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.UsableSubnetworkSecondaryRange.Status) + } + + public static final int RANGE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object rangeName_; + /** + * + * + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + * + * @return The rangeName. + */ + @java.lang.Override + public java.lang.String getRangeName() { + java.lang.Object ref = rangeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeName_ = s; + return s; + } + } + /** + * + * + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + * + * @return The bytes for rangeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRangeNameBytes() { + java.lang.Object ref = rangeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_CIDR_RANGE_FIELD_NUMBER = 2; + private volatile java.lang.Object ipCidrRange_; + /** + * + * + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + * + * @return The ipCidrRange. + */ + @java.lang.Override + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } + } + /** + * + * + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + * + * @return The bytes for ipCidrRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 3; + private int status_; + /** + * + * + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status result = + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.valueOf(status_); + return result == null + ? com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getRangeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipCidrRange_); + } + if (status_ + != com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { + output.writeEnum(3, status_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRangeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipCidrRange_); + } + if (status_ + != com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, status_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.UsableSubnetworkSecondaryRange)) { + return super.equals(obj); + } + com.google.container.v1beta1.UsableSubnetworkSecondaryRange other = + (com.google.container.v1beta1.UsableSubnetworkSecondaryRange) obj; + + if (!getRangeName().equals(other.getRangeName())) return false; + if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; + if (status_ != other.status_) 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) + RANGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getRangeName().hashCode(); + hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIpCidrRange().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Secondary IP range of a usable subnetwork.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.UsableSubnetworkSecondaryRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UsableSubnetworkSecondaryRange) + com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.class, + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder.class); + } + + // Construct using com.google.container.v1beta1.UsableSubnetworkSecondaryRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + rangeName_ = ""; + + ipCidrRange_ = ""; + + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { + return com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange build() { + com.google.container.v1beta1.UsableSubnetworkSecondaryRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange buildPartial() { + com.google.container.v1beta1.UsableSubnetworkSecondaryRange result = + new com.google.container.v1beta1.UsableSubnetworkSecondaryRange(this); + result.rangeName_ = rangeName_; + result.ipCidrRange_ = ipCidrRange_; + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return 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.UsableSubnetworkSecondaryRange) { + return mergeFrom((com.google.container.v1beta1.UsableSubnetworkSecondaryRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UsableSubnetworkSecondaryRange other) { + if (other == com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()) + return this; + if (!other.getRangeName().isEmpty()) { + rangeName_ = other.rangeName_; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.UsableSubnetworkSecondaryRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.UsableSubnetworkSecondaryRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object rangeName_ = ""; + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @return The rangeName. + */ + public java.lang.String getRangeName() { + java.lang.Object ref = rangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @return The bytes for rangeName. + */ + public com.google.protobuf.ByteString getRangeNameBytes() { + java.lang.Object ref = rangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @param value The rangeName to set. + * @return This builder for chaining. + */ + public Builder setRangeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rangeName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearRangeName() { + + rangeName_ = getDefaultInstance().getRangeName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @param value The bytes for rangeName to set. + * @return This builder for chaining. + */ + public Builder setRangeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @return The ipCidrRange. + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @return The bytes for ipCidrRange. + */ + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @param value The ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @return This builder for chaining. + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @param value The bytes for ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * + * + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @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; + } + /** + * + * + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The status. + */ + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status result = + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.valueOf(status_); + return result == null + ? com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 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.UsableSubnetworkSecondaryRange) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UsableSubnetworkSecondaryRange) + private static final com.google.container.v1beta1.UsableSubnetworkSecondaryRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UsableSubnetworkSecondaryRange(); + } + + public static com.google.container.v1beta1.UsableSubnetworkSecondaryRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsableSubnetworkSecondaryRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UsableSubnetworkSecondaryRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java new file mode 100644 index 00000000..60b50a74 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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 UsableSubnetworkSecondaryRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UsableSubnetworkSecondaryRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + * + * @return The rangeName. + */ + java.lang.String getRangeName(); + /** + * + * + *
+   * The name associated with this subnetwork secondary range, used when adding
+   * an alias IP range to a VM instance.
+   * 
+ * + * string range_name = 1; + * + * @return The bytes for rangeName. + */ + com.google.protobuf.ByteString getRangeNameBytes(); + + /** + * + * + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + * + * @return The ipCidrRange. + */ + java.lang.String getIpCidrRange(); + /** + * + * + *
+   * The range of IP addresses belonging to this subnetwork secondary range.
+   * 
+ * + * string ip_cidr_range = 2; + * + * @return The bytes for ipCidrRange. + */ + com.google.protobuf.ByteString getIpCidrRangeBytes(); + + /** + * + * + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * + * + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1beta1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The status. + */ + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscaling.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscaling.java new file mode 100644 index 00000000..daad3973 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscaling.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/v1beta1/cluster_service.proto + +package com.google.container.v1beta1; + +/** + * + * + *
+ * VerticalPodAutoscaling contains global, per-cluster information
+ * required by Vertical Pod Autoscaler to automatically adjust
+ * the resources of pods controlled by it.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.VerticalPodAutoscaling} + */ +public final class VerticalPodAutoscaling extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.VerticalPodAutoscaling) + VerticalPodAutoscalingOrBuilder { + private static final long serialVersionUID = 0L; + // Use VerticalPodAutoscaling.newBuilder() to construct. + private VerticalPodAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VerticalPodAutoscaling() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VerticalPodAutoscaling(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private VerticalPodAutoscaling( + 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_VerticalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_VerticalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.VerticalPodAutoscaling.class, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enables vertical pod autoscaling.
+   * 
+ * + * 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.VerticalPodAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1beta1.VerticalPodAutoscaling other = + (com.google.container.v1beta1.VerticalPodAutoscaling) 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.VerticalPodAutoscaling parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.VerticalPodAutoscaling 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.VerticalPodAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.VerticalPodAutoscaling 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.VerticalPodAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.VerticalPodAutoscaling parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.VerticalPodAutoscaling parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.VerticalPodAutoscaling 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.VerticalPodAutoscaling parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.VerticalPodAutoscaling 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.VerticalPodAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.VerticalPodAutoscaling 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.VerticalPodAutoscaling 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; + } + /** + * + * + *
+   * VerticalPodAutoscaling contains global, per-cluster information
+   * required by Vertical Pod Autoscaler to automatically adjust
+   * the resources of pods controlled by it.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.VerticalPodAutoscaling} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.VerticalPodAutoscaling) + com.google.container.v1beta1.VerticalPodAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_VerticalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_VerticalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.VerticalPodAutoscaling.class, + com.google.container.v1beta1.VerticalPodAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1beta1.VerticalPodAutoscaling.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_VerticalPodAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscaling getDefaultInstanceForType() { + return com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscaling build() { + com.google.container.v1beta1.VerticalPodAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.VerticalPodAutoscaling buildPartial() { + com.google.container.v1beta1.VerticalPodAutoscaling result = + new com.google.container.v1beta1.VerticalPodAutoscaling(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.VerticalPodAutoscaling) { + return mergeFrom((com.google.container.v1beta1.VerticalPodAutoscaling) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.VerticalPodAutoscaling other) { + if (other == com.google.container.v1beta1.VerticalPodAutoscaling.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.VerticalPodAutoscaling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.VerticalPodAutoscaling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Enables vertical pod autoscaling.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enables vertical pod autoscaling.
+     * 
+ * + * 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 vertical pod autoscaling.
+     * 
+ * + * 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.VerticalPodAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.VerticalPodAutoscaling) + private static final com.google.container.v1beta1.VerticalPodAutoscaling DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.VerticalPodAutoscaling(); + } + + public static com.google.container.v1beta1.VerticalPodAutoscaling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerticalPodAutoscaling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VerticalPodAutoscaling(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.VerticalPodAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscalingOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscalingOrBuilder.java new file mode 100644 index 00000000..bf8c72e0 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscalingOrBuilder.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 VerticalPodAutoscalingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.VerticalPodAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Enables vertical pod autoscaling.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java new file mode 100644 index 00000000..7e6ac6f9 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java @@ -0,0 +1,1003 @@ +/* + * 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 use of Kubernetes Service Accounts in GCP IAM
+ * policies.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadIdentityConfig} + */ +public final class WorkloadIdentityConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadIdentityConfig) + WorkloadIdentityConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkloadIdentityConfig.newBuilder() to construct. + private WorkloadIdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkloadIdentityConfig() { + identityNamespace_ = ""; + workloadPool_ = ""; + identityProvider_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkloadIdentityConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WorkloadIdentityConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + identityNamespace_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + workloadPool_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + identityProvider_ = 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.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadIdentityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadIdentityConfig.class, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder.class); + } + + public static final int IDENTITY_NAMESPACE_FIELD_NUMBER = 1; + private volatile java.lang.Object identityNamespace_; + /** + * + * + *
+   * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+   * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @return The identityNamespace. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getIdentityNamespace() { + java.lang.Object ref = identityNamespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityNamespace_ = s; + return s; + } + } + /** + * + * + *
+   * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+   * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @return The bytes for identityNamespace. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getIdentityNamespaceBytes() { + java.lang.Object ref = identityNamespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKLOAD_POOL_FIELD_NUMBER = 2; + private volatile java.lang.Object workloadPool_; + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The workloadPool. + */ + @java.lang.Override + public java.lang.String getWorkloadPool() { + java.lang.Object ref = workloadPool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadPool_ = s; + return s; + } + } + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The bytes for workloadPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkloadPoolBytes() { + java.lang.Object ref = workloadPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDENTITY_PROVIDER_FIELD_NUMBER = 3; + private volatile java.lang.Object identityProvider_; + /** + * + * + *
+   * identity provider is the third party identity provider.
+   * 
+ * + * string identity_provider = 3; + * + * @return The identityProvider. + */ + @java.lang.Override + public java.lang.String getIdentityProvider() { + java.lang.Object ref = identityProvider_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityProvider_ = s; + return s; + } + } + /** + * + * + *
+   * identity provider is the third party identity provider.
+   * 
+ * + * string identity_provider = 3; + * + * @return The bytes for identityProvider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityProviderBytes() { + java.lang.Object ref = identityProvider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityProvider_ = 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 (!getIdentityNamespaceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identityNamespace_); + } + if (!getWorkloadPoolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workloadPool_); + } + if (!getIdentityProviderBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, identityProvider_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdentityNamespaceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identityNamespace_); + } + if (!getWorkloadPoolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workloadPool_); + } + if (!getIdentityProviderBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identityProvider_); + } + 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.WorkloadIdentityConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.WorkloadIdentityConfig other = + (com.google.container.v1beta1.WorkloadIdentityConfig) obj; + + if (!getIdentityNamespace().equals(other.getIdentityNamespace())) return false; + if (!getWorkloadPool().equals(other.getWorkloadPool())) return false; + if (!getIdentityProvider().equals(other.getIdentityProvider())) 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) + IDENTITY_NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getIdentityNamespace().hashCode(); + hash = (37 * hash) + WORKLOAD_POOL_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadPool().hashCode(); + hash = (37 * hash) + IDENTITY_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getIdentityProvider().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.WorkloadIdentityConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadIdentityConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WorkloadIdentityConfig) + com.google.container.v1beta1.WorkloadIdentityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadIdentityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadIdentityConfig.class, + com.google.container.v1beta1.WorkloadIdentityConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.WorkloadIdentityConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + identityNamespace_ = ""; + + workloadPool_ = ""; + + identityProvider_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfig build() { + com.google.container.v1beta1.WorkloadIdentityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfig buildPartial() { + com.google.container.v1beta1.WorkloadIdentityConfig result = + new com.google.container.v1beta1.WorkloadIdentityConfig(this); + result.identityNamespace_ = identityNamespace_; + result.workloadPool_ = workloadPool_; + result.identityProvider_ = identityProvider_; + 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.WorkloadIdentityConfig) { + return mergeFrom((com.google.container.v1beta1.WorkloadIdentityConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.WorkloadIdentityConfig other) { + if (other == com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance()) + return this; + if (!other.getIdentityNamespace().isEmpty()) { + identityNamespace_ = other.identityNamespace_; + onChanged(); + } + if (!other.getWorkloadPool().isEmpty()) { + workloadPool_ = other.workloadPool_; + onChanged(); + } + if (!other.getIdentityProvider().isEmpty()) { + identityProvider_ = other.identityProvider_; + 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.WorkloadIdentityConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.WorkloadIdentityConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object identityNamespace_ = ""; + /** + * + * + *
+     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+     * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @return The identityNamespace. + */ + @java.lang.Deprecated + public java.lang.String getIdentityNamespace() { + java.lang.Object ref = identityNamespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityNamespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+     * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @return The bytes for identityNamespace. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getIdentityNamespaceBytes() { + java.lang.Object ref = identityNamespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityNamespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+     * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @param value The identityNamespace to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setIdentityNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identityNamespace_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+     * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearIdentityNamespace() { + + identityNamespace_ = getDefaultInstance().getIdentityNamespace(); + onChanged(); + return this; + } + /** + * + * + *
+     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+     * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @param value The bytes for identityNamespace to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setIdentityNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identityNamespace_ = value; + onChanged(); + return this; + } + + private java.lang.Object workloadPool_ = ""; + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @return The workloadPool. + */ + public java.lang.String getWorkloadPool() { + java.lang.Object ref = workloadPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @return The bytes for workloadPool. + */ + public com.google.protobuf.ByteString getWorkloadPoolBytes() { + java.lang.Object ref = workloadPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @param value The workloadPool to set. + * @return This builder for chaining. + */ + public Builder setWorkloadPool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workloadPool_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadPool() { + + workloadPool_ = getDefaultInstance().getWorkloadPool(); + onChanged(); + return this; + } + /** + * + * + *
+     * The workload pool to attach all Kubernetes service accounts to.
+     * 
+ * + * string workload_pool = 2; + * + * @param value The bytes for workloadPool to set. + * @return This builder for chaining. + */ + public Builder setWorkloadPoolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workloadPool_ = value; + onChanged(); + return this; + } + + private java.lang.Object identityProvider_ = ""; + /** + * + * + *
+     * identity provider is the third party identity provider.
+     * 
+ * + * string identity_provider = 3; + * + * @return The identityProvider. + */ + public java.lang.String getIdentityProvider() { + java.lang.Object ref = identityProvider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityProvider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * identity provider is the third party identity provider.
+     * 
+ * + * string identity_provider = 3; + * + * @return The bytes for identityProvider. + */ + public com.google.protobuf.ByteString getIdentityProviderBytes() { + java.lang.Object ref = identityProvider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * identity provider is the third party identity provider.
+     * 
+ * + * string identity_provider = 3; + * + * @param value The identityProvider to set. + * @return This builder for chaining. + */ + public Builder setIdentityProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + identityProvider_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * identity provider is the third party identity provider.
+     * 
+ * + * string identity_provider = 3; + * + * @return This builder for chaining. + */ + public Builder clearIdentityProvider() { + + identityProvider_ = getDefaultInstance().getIdentityProvider(); + onChanged(); + return this; + } + /** + * + * + *
+     * identity provider is the third party identity provider.
+     * 
+ * + * string identity_provider = 3; + * + * @param value The bytes for identityProvider to set. + * @return This builder for chaining. + */ + public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identityProvider_ = 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.WorkloadIdentityConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadIdentityConfig) + private static final com.google.container.v1beta1.WorkloadIdentityConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadIdentityConfig(); + } + + public static com.google.container.v1beta1.WorkloadIdentityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadIdentityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkloadIdentityConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadIdentityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java new file mode 100644 index 00000000..67421ef7 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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 WorkloadIdentityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadIdentityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+   * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @return The identityNamespace. + */ + @java.lang.Deprecated + java.lang.String getIdentityNamespace(); + /** + * + * + *
+   * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+   * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * + * @return The bytes for identityNamespace. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getIdentityNamespaceBytes(); + + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The workloadPool. + */ + java.lang.String getWorkloadPool(); + /** + * + * + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * + * @return The bytes for workloadPool. + */ + com.google.protobuf.ByteString getWorkloadPoolBytes(); + + /** + * + * + *
+   * identity provider is the third party identity provider.
+   * 
+ * + * string identity_provider = 3; + * + * @return The identityProvider. + */ + java.lang.String getIdentityProvider(); + /** + * + * + *
+   * identity provider is the third party identity provider.
+   * 
+ * + * string identity_provider = 3; + * + * @return The bytes for identityProvider. + */ + com.google.protobuf.ByteString getIdentityProviderBytes(); +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java new file mode 100644 index 00000000..ad9150db --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java @@ -0,0 +1,1179 @@ +/* + * 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; + +/** + * + * + *
+ * WorkloadMetadataConfig defines the metadata configuration to expose to
+ * workloads on the node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadMetadataConfig} + */ +public final class WorkloadMetadataConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadMetadataConfig) + WorkloadMetadataConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkloadMetadataConfig.newBuilder() to construct. + private WorkloadMetadataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WorkloadMetadataConfig() { + nodeMetadata_ = 0; + mode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WorkloadMetadataConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WorkloadMetadataConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + nodeMetadata_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + mode_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadMetadataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadMetadataConfig.class, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder.class); + } + + /** + * + * + *
+   * NodeMetadata is the configuration for if and how to expose the node
+   * metadata to the workload running on the node.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata} + */ + public enum NodeMetadata implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
+     * Prevent workloads not in hostNetwork from accessing certain VM metadata,
+     * specifically kube-env, which contains Kubelet credentials, and the
+     * instance identity token.
+     * Metadata concealment is a temporary security solution available while the
+     * bootstrapping process for cluster nodes is being redesigned with
+     * significant security improvements.  This feature is scheduled to be
+     * deprecated in the future and later removed.
+     * 
+ * + * SECURE = 1; + */ + SECURE(1), + /** + * + * + *
+     * Expose all VM metadata to pods.
+     * 
+ * + * EXPOSE = 2; + */ + EXPOSE(2), + /** + * + * + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA_SERVER = 3; + */ + GKE_METADATA_SERVER(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Prevent workloads not in hostNetwork from accessing certain VM metadata,
+     * specifically kube-env, which contains Kubelet credentials, and the
+     * instance identity token.
+     * Metadata concealment is a temporary security solution available while the
+     * bootstrapping process for cluster nodes is being redesigned with
+     * significant security improvements.  This feature is scheduled to be
+     * deprecated in the future and later removed.
+     * 
+ * + * SECURE = 1; + */ + public static final int SECURE_VALUE = 1; + /** + * + * + *
+     * Expose all VM metadata to pods.
+     * 
+ * + * EXPOSE = 2; + */ + public static final int EXPOSE_VALUE = 2; + /** + * + * + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA_SERVER = 3; + */ + public static final int GKE_METADATA_SERVER_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 NodeMetadata 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 NodeMetadata forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return SECURE; + case 2: + return EXPOSE; + case 3: + return GKE_METADATA_SERVER; + 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 NodeMetadata findValueByNumber(int number) { + return NodeMetadata.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.WorkloadMetadataConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final NodeMetadata[] VALUES = values(); + + public static NodeMetadata valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NodeMetadata(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata) + } + + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.WorkloadMetadataConfig.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Expose all Compute Engine metadata to pods.
+     * 
+ * + * GCE_METADATA = 1; + */ + GCE_METADATA(1), + /** + * + * + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA = 2; + */ + GKE_METADATA(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Expose all Compute Engine metadata to pods.
+     * 
+ * + * GCE_METADATA = 1; + */ + public static final int GCE_METADATA_VALUE = 1; + /** + * + * + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA = 2; + */ + public static final int GKE_METADATA_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return GCE_METADATA; + case 2: + return GKE_METADATA; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.container.v1beta1.WorkloadMetadataConfig.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.WorkloadMetadataConfig.Mode) + } + + public static final int NODE_METADATA_FIELD_NUMBER = 1; + private int nodeMetadata_; + /** + * + * + *
+   * NodeMetadata is the configuration for how to expose metadata to the
+   * workloads running on the node.
+   * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @return The enum numeric value on the wire for nodeMetadata. + */ + @java.lang.Override + @java.lang.Deprecated + public int getNodeMetadataValue() { + return nodeMetadata_; + } + /** + * + * + *
+   * NodeMetadata is the configuration for how to expose metadata to the
+   * workloads running on the node.
+   * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @return The nodeMetadata. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata result = + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.valueOf(nodeMetadata_); + return result == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNRECOGNIZED + : result; + } + + public static final int MODE_FIELD_NUMBER = 2; + private int mode_; + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig.Mode getMode() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.WorkloadMetadataConfig.Mode result = + com.google.container.v1beta1.WorkloadMetadataConfig.Mode.valueOf(mode_); + return result == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.Mode.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nodeMetadata_ + != com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNSPECIFIED + .getNumber()) { + output.writeEnum(1, nodeMetadata_); + } + if (mode_ + != com.google.container.v1beta1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, mode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeMetadata_ + != com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, nodeMetadata_); + } + if (mode_ + != com.google.container.v1beta1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.WorkloadMetadataConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.WorkloadMetadataConfig other = + (com.google.container.v1beta1.WorkloadMetadataConfig) obj; + + if (nodeMetadata_ != other.nodeMetadata_) return false; + if (mode_ != other.mode_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + nodeMetadata_; + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1beta1.WorkloadMetadataConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * WorkloadMetadataConfig defines the metadata configuration to expose to
+   * workloads on the node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadMetadataConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WorkloadMetadataConfig) + com.google.container.v1beta1.WorkloadMetadataConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadMetadataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadMetadataConfig.class, + com.google.container.v1beta1.WorkloadMetadataConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.WorkloadMetadataConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + nodeMetadata_ = 0; + + mode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig build() { + com.google.container.v1beta1.WorkloadMetadataConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig buildPartial() { + com.google.container.v1beta1.WorkloadMetadataConfig result = + new com.google.container.v1beta1.WorkloadMetadataConfig(this); + result.nodeMetadata_ = nodeMetadata_; + result.mode_ = mode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.WorkloadMetadataConfig) { + return mergeFrom((com.google.container.v1beta1.WorkloadMetadataConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.WorkloadMetadataConfig other) { + if (other == com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance()) + return this; + if (other.nodeMetadata_ != 0) { + setNodeMetadataValue(other.getNodeMetadataValue()); + } + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1beta1.WorkloadMetadataConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1beta1.WorkloadMetadataConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int nodeMetadata_ = 0; + /** + * + * + *
+     * NodeMetadata is the configuration for how to expose metadata to the
+     * workloads running on the node.
+     * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @return The enum numeric value on the wire for nodeMetadata. + */ + @java.lang.Override + @java.lang.Deprecated + public int getNodeMetadataValue() { + return nodeMetadata_; + } + /** + * + * + *
+     * NodeMetadata is the configuration for how to expose metadata to the
+     * workloads running on the node.
+     * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @param value The enum numeric value on the wire for nodeMetadata to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodeMetadataValue(int value) { + + nodeMetadata_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * NodeMetadata is the configuration for how to expose metadata to the
+     * workloads running on the node.
+     * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @return The nodeMetadata. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata result = + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.valueOf(nodeMetadata_); + return result == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * NodeMetadata is the configuration for how to expose metadata to the
+     * workloads running on the node.
+     * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @param value The nodeMetadata to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setNodeMetadata( + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeMetadata_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * NodeMetadata is the configuration for how to expose metadata to the
+     * workloads running on the node.
+     * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearNodeMetadata() { + + nodeMetadata_ = 0; + onChanged(); + return this; + } + + private int mode_ = 0; + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + + mode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig.Mode getMode() { + @SuppressWarnings("deprecation") + com.google.container.v1beta1.WorkloadMetadataConfig.Mode result = + com.google.container.v1beta1.WorkloadMetadataConfig.Mode.valueOf(mode_); + return result == null + ? com.google.container.v1beta1.WorkloadMetadataConfig.Mode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.container.v1beta1.WorkloadMetadataConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + + mode_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.WorkloadMetadataConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadMetadataConfig) + private static final com.google.container.v1beta1.WorkloadMetadataConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadMetadataConfig(); + } + + public static com.google.container.v1beta1.WorkloadMetadataConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadMetadataConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkloadMetadataConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadMetadataConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java new file mode 100644 index 00000000..d29d5fed --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java @@ -0,0 +1,85 @@ +/* + * 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 WorkloadMetadataConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadMetadataConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * NodeMetadata is the configuration for how to expose metadata to the
+   * workloads running on the node.
+   * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @return The enum numeric value on the wire for nodeMetadata. + */ + @java.lang.Deprecated + int getNodeMetadataValue(); + /** + * + * + *
+   * NodeMetadata is the configuration for how to expose metadata to the
+   * workloads running on the node.
+   * 
+ * + * + * .google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata node_metadata = 1 [deprecated = true]; + * + * + * @return The nodeMetadata. + */ + @java.lang.Deprecated + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata(); + + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + * + * + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig.Mode mode = 2; + * + * @return The mode. + */ + com.google.container.v1beta1.WorkloadMetadataConfig.Mode getMode(); +} 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 new file mode 100644 index 00000000..238c4b84 --- /dev/null +++ b/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto @@ -0,0 +1,4080 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.container.v1beta1; + +import "google/api/annotations.proto"; +import "google/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.V1Beta1"; +option go_package = "google.golang.org/genproto/googleapis/container/v1beta1;container"; +option java_multiple_files = true; +option java_outer_classname = "ClusterServiceProto"; +option java_package = "com.google.container.v1beta1"; +option php_namespace = "Google\\Cloud\\Container\\V1beta1"; +option ruby_package = "Google::Cloud::Container::V1beta1"; +option (google.api.resource_definition) = { + type: "pubsub.googleapis.com/Topic" + pattern: "projects/{project}/topics/{topic}" +}; + +// 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"; + + // Lists all clusters owned by a project in either the specified zone or all + // zones. + rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/clusters" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/clusters" + } + }; + option (google.api.method_signature) = "project_id,zone"; + } + + // Gets the details for a specific cluster. + rpc GetCluster(GetClusterRequest) returns (Cluster) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/clusters/*}" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; + } + + // Creates a cluster, consisting of the specified number and type of Google + // Compute Engine instances. + // + // By default, the cluster is created in the project's + // [default + // network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + // + // One firewall is added for the cluster. After cluster creation, + // the Kubelet creates routes for each node to allow the containers + // on that node to communicate with all other instances in the + // cluster. + // + // Finally, an entry is added to the project's global metadata indicating + // which CIDR range the cluster is using. + rpc CreateCluster(CreateClusterRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/clusters" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster"; + } + + // Updates the settings for a specific cluster. + rpc UpdateCluster(UpdateClusterRequest) returns (Operation) { + option (google.api.http) = { + put: "/v1beta1/{name=projects/*/locations/*/clusters/*}" + body: "*" + additional_bindings { + put: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,update"; + } + + // Updates the version and/or image type of a specific node pool. + rpc UpdateNodePool(UpdateNodePoolRequest) returns (Operation) { + option (google.api.http) = { + put: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update" + body: "*" + } + }; + } + + // Sets the autoscaling settings of a specific node pool. + rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling" + body: "*" + } + }; + } + + // Sets the logging service for a specific cluster. + rpc SetLoggingService(SetLoggingServiceRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setLogging" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,logging_service"; + } + + // Sets the monitoring service for a specific cluster. + rpc SetMonitoringService(SetMonitoringServiceRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setMonitoring" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,monitoring_service"; + } + + // Sets the addons for a specific cluster. + rpc SetAddonsConfig(SetAddonsConfigRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setAddons" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,addons_config"; + } + + // Sets the locations for a specific cluster. + // Deprecated. Use + // [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update) + // instead. + rpc SetLocations(SetLocationsRequest) returns (Operation) { + option deprecated = true; + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setLocations" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,locations"; + } + + // Updates the master for a specific cluster. + rpc UpdateMaster(UpdateMasterRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:updateMaster" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,master_version"; + } + + // Sets master auth materials. Currently supports changing the admin password + // or a specific cluster, either via password generation or explicitly setting + // the password. + rpc SetMasterAuth(SetMasterAuthRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setMasterAuth" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth" + body: "*" + } + }; + } + + // Deletes the cluster, including the Kubernetes endpoint and all worker + // nodes. + // + // Firewalls and routes that were configured during cluster creation + // are also deleted. + // + // Other Google Compute Engine resources that might be in use by the cluster, + // such as load balancer resources, are not deleted if they weren't present + // when the cluster was initially created. + rpc DeleteCluster(DeleteClusterRequest) returns (Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/clusters/*}" + additional_bindings { + delete: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; + } + + // Lists all operations in a project in the specified zone or all zones. + rpc ListOperations(ListOperationsRequest) returns (ListOperationsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/operations" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/operations" + } + }; + option (google.api.method_signature) = "project_id,zone"; + } + + // Gets the specified operation. + rpc GetOperation(GetOperationRequest) returns (Operation) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/operations/*}" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/operations/{operation_id}" + } + }; + option (google.api.method_signature) = "project_id,zone,operation_id"; + } + + // Cancels the specified operation. + rpc CancelOperation(CancelOperationRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/operations/*}:cancel" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,operation_id"; + } + + // Returns configuration info about the Google Kubernetes Engine service. + rpc GetServerConfig(GetServerConfigRequest) returns (ServerConfig) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*}/serverConfig" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/serverconfig" + } + }; + option (google.api.method_signature) = "project_id,zone"; + } + + // Lists the node pools for a cluster. + rpc ListNodePools(ListNodePoolsRequest) returns (ListNodePoolsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/clusters/*}/nodePools" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; + } + + // Gets the public component of the cluster signing keys in + // JSON Web Key format. + // This API is not yet intended for general use, and is not available for all + // clusters. + rpc GetJSONWebKeys(GetJSONWebKeysRequest) returns (GetJSONWebKeysResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/clusters/*}/jwks" + }; + } + + // Retrieves the requested node pool. + rpc GetNodePool(GetNodePoolRequest) returns (NodePool) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + additional_bindings { + get: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; + } + + // Creates a node pool for a cluster. + rpc CreateNodePool(CreateNodePoolRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/clusters/*}/nodePools" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool"; + } + + // Deletes a node pool from a cluster. + rpc DeleteNodePool(DeleteNodePoolRequest) returns (Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + additional_bindings { + delete: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + }; + 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) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; + } + + // Sets the NodeManagement options for a node pool. + rpc SetNodePoolManagement(SetNodePoolManagementRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id,management"; + } + + // Sets labels on a cluster. + rpc SetLabels(SetLabelsRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setResourceLabels" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,resource_labels,label_fingerprint"; + } + + // Enables or disables the ABAC authorization mechanism on a cluster. + rpc SetLegacyAbac(SetLegacyAbacRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,enabled"; + } + + // Starts master IP rotation. + rpc StartIPRotation(StartIPRotationRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:startIpRotation" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; + } + + // Completes master IP rotation. + rpc CompleteIPRotation(CompleteIPRotationRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:completeIpRotation" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; + } + + // Sets the size for a specific node pool. + rpc SetNodePoolSize(SetNodePoolSizeRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize" + body: "*" + } + }; + } + + // Enables or disables Network Policy for a cluster. + rpc SetNetworkPolicy(SetNetworkPolicyRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy" + body: "*" + } + }; + option (google.api.method_signature) = "project_id,zone,cluster_id,network_policy"; + } + + // Sets the maintenance policy for a cluster. + rpc SetMaintenancePolicy(SetMaintenancePolicyRequest) returns (Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy" + body: "*" + additional_bindings { + post: "/v1beta1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy" + body: "*" + } + }; + 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) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*}/aggregated/usableSubnetworks" + }; + option (google.api.method_signature) = "parent"; + } + + // Fetches locations that offer Google Kubernetes Engine. + rpc ListLocations(ListLocationsRequest) returns (ListLocationsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*}/locations" + }; + option (google.api.method_signature) = "parent"; + } +} + +// 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 + // type](https://cloud.google.com/compute/docs/machine-types). + // + // If unspecified, the default machine type is + // `e2-medium`. + string machine_type = 1; + + // Size of the disk attached to each node, specified in GB. + // The smallest allowed disk size is 10GB. + // + // If unspecified, the default disk size is 100GB. + int32 disk_size_gb = 2; + + // The set of Google API scopes to be made available on all of the + // node VMs under the "default" service account. + // + // The following scopes are recommended, but not required, and by default are + // not included: + // + // * `https://www.googleapis.com/auth/compute` is required for mounting + // persistent storage on your nodes. + // * `https://www.googleapis.com/auth/devstorage.read_only` is required for + // communicating with **gcr.io** + // (the [Google Container + // Registry](https://cloud.google.com/container-registry/)). + // + // If unspecified, no scopes are added, unless Cloud Logging or Cloud + // Monitoring are enabled, in which case their required scopes will be added. + repeated string oauth_scopes = 3; + + // The Google Cloud Platform Service Account to be used by the node VMs. + // Specify the email address of the Service Account; otherwise, if no Service + // Account is specified, the "default" service account is used. + string service_account = 9; + + // The metadata key/value pairs assigned to instances in the cluster. + // + // Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes + // in length. These are reflected as part of a URL in the metadata server. + // Additionally, to avoid ambiguity, keys must not conflict with any other + // metadata keys for the project or be one of the reserved keys: + // - "cluster-location" + // - "cluster-name" + // - "cluster-uid" + // - "configure-sh" + // - "containerd-configure-sh" + // - "enable-oslogin" + // - "gci-ensure-gke-docker" + // - "gci-metrics-enabled" + // - "gci-update-strategy" + // - "instance-template" + // - "kube-env" + // - "startup-script" + // - "user-data" + // - "disable-address-manager" + // - "windows-startup-script-ps1" + // - "common-psm1" + // - "k8s-node-setup-psm1" + // - "install-ssh-psm1" + // - "user-profile-psm1" + // + // The following keys are reserved for Windows nodes: + // - "serial-port-logging-enable" + // + // Values are free-form strings, and only have meaning as interpreted by + // the image running in the instance. The only restriction placed on them is + // that each value's size must be less than or equal to 32 KB. + // + // The total size of all keys and values must be less than 512 KB. + map metadata = 4; + + // The image type to use for this node. Note that for a given image type, + // the latest version of it will be used. + string image_type = 5; + + // The map of Kubernetes labels (key/value pairs) to be applied to each node. + // These will added in addition to any default label(s) that + // Kubernetes may apply to the node. + // In case of conflict in label keys, the applied set may differ depending on + // the Kubernetes version -- it's best to assume the behavior is undefined + // and conflicts should be avoided. + // For more information, including usage and the valid values, see: + // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + map labels = 6; + + // The number of local SSD disks to be attached to the node. + // + // The limit for this value is dependent upon the maximum number of + // disks available on a machine per zone. See: + // https://cloud.google.com/compute/docs/disks/local-ssd + // for more information. + int32 local_ssd_count = 7; + + // The list of instance tags applied to all nodes. Tags are used to identify + // valid sources or targets for network firewalls and are specified by + // the client during cluster or node pool creation. Each tag within the list + // must comply with RFC1035. + repeated string tags = 8; + + // Whether the nodes are created as preemptible VM instances. See: + // https://cloud.google.com/compute/docs/instances/preemptible for more + // inforamtion about preemptible VM instances. + bool preemptible = 10; + + // A list of hardware accelerators to be attached to each node. + // See https://cloud.google.com/compute/docs/gpus for more information about + // support for GPUs. + repeated AcceleratorConfig accelerators = 11; + + // Sandbox configuration for this node. + SandboxConfig sandbox_config = 17; + + // Setting this field will assign instances of this + // pool to run on the specified node group. This is useful for running + // workloads on [sole tenant + // nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + string node_group = 18; + + // The optional reservation affinity. Setting this field will apply + // the specified [Zonal Compute + // Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + // to this node pool. + ReservationAffinity reservation_affinity = 19; + + // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + // 'pd-balanced') + // + // If unspecified, the default disk type is 'pd-standard' + string disk_type = 12; + + // Minimum CPU platform to be used by this instance. The instance may be + // scheduled on the specified or newer CPU platform. Applicable values are the + // friendly names of CPU platforms, such as + // `minCpuPlatform: "Intel Haswell"` or + // `minCpuPlatform: "Intel Sandy Bridge"`. For more + // information, read [how to specify min CPU + // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + string min_cpu_platform = 13; + + // The workload metadata configuration for this node. + WorkloadMetadataConfig workload_metadata_config = 14; + + // List of kubernetes taints to be applied to each node. + // + // For more information, including usage and the valid values, see: + // https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + repeated NodeTaint taints = 15; + + // + // 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; + + // 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; + + // Parameters for the ephemeral storage filesystem. + // If unspecified, ephemeral storage is backed by the boot disk. + EphemeralStorageConfig ephemeral_storage_config = 24; +} + +// A set of Shielded Instance options. +message ShieldedInstanceConfig { + // Defines whether the instance has Secure Boot enabled. + // + // Secure Boot helps ensure that the system only runs authentic software by + // verifying the digital signature of all boot components, and halting the + // boot process if signature verification fails. + bool enable_secure_boot = 1; + + // Defines whether the instance has integrity monitoring enabled. + // + // Enables monitoring and attestation of the boot integrity of the instance. + // The attestation is performed against the integrity policy baseline. This + // baseline is initially derived from the implicitly trusted boot image when + // the instance is created. + bool enable_integrity_monitoring = 2; +} + +// SandboxConfig contains configurations of the sandbox to use for the node. +message SandboxConfig { + // Possible types of sandboxes. + enum Type { + // Default value. This should not be used. + UNSPECIFIED = 0; + + // Run sandbox using gvisor. + GVISOR = 1; + } + + // Type of the sandbox to use for the node (e.g. 'gvisor') + string sandbox_type = 1 [deprecated = true]; + + // Type of the sandbox to use for the node. + Type type = 2; +} + +// EphemeralStorageConfig contains configuration for the ephemeral storage +// filesystem. +message EphemeralStorageConfig { + // Number of local SSDs to use to back ephemeral storage. Uses NVMe + // interfaces. Each local SSD is 375 GB in size. + // If zero, it means to disable using local SSDs as ephemeral storage. + int32 local_ssd_count = 1; +} + +// [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) +// is the configuration of desired reservation which instances could take +// capacity from. +message ReservationAffinity { + // Indicates whether to consume capacity from a reservation or not. + enum Type { + // Default value. This should not be used. + UNSPECIFIED = 0; + + // Do not consume from any reserved capacity. + NO_RESERVATION = 1; + + // Consume any reservation available. + ANY_RESERVATION = 2; + + // Must consume from a specific reservation. Must specify key value fields + // for specifying the reservations. + SPECIFIC_RESERVATION = 3; + } + + // Corresponds to the type of reservation consumption. + Type consume_reservation_type = 1; + + // Corresponds to the label key of a reservation resource. To target a + // SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as + // the key and specify the name of your reservation as its value. + string key = 2; + + // Corresponds to the label value(s) of reservation resource(s). + repeated string values = 3; +} + +// Kubernetes taint is comprised of three fields: key, value, and effect. Effect +// can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. +// +// See +// [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) +// for more information, including usage and the valid values. +message NodeTaint { + // Possible values for Effect in taint. + enum Effect { + // Not set + EFFECT_UNSPECIFIED = 0; + + // NoSchedule + NO_SCHEDULE = 1; + + // PreferNoSchedule + PREFER_NO_SCHEDULE = 2; + + // NoExecute + NO_EXECUTE = 3; + } + + // Key for taint. + string key = 1; + + // Value for taint. + string value = 2; + + // Effect for taint. + Effect effect = 3; +} + +// The authentication information for accessing the master endpoint. +// Authentication can be done using HTTP basic auth or using client +// certificates. +message MasterAuth { + // The username to use for HTTP basic authentication to the master endpoint. + // For clusters v1.6.0 and later, basic authentication can be disabled by + // leaving username unspecified (or setting it to the empty string). + // + // Warning: basic authentication is deprecated, and will be removed in GKE + // control plane versions 1.19 and newer. For a list of recommended + // authentication methods, see: + // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + string username = 1 [deprecated = true]; + + // The password to use for HTTP basic authentication to the master endpoint. + // Because the master endpoint is open to the Internet, you should create a + // strong password. If a password is provided for cluster creation, username + // must be non-empty. + // + // Warning: basic authentication is deprecated, and will be removed in GKE + // control plane versions 1.19 and newer. For a list of recommended + // authentication methods, see: + // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + string password = 2 [deprecated = true]; + + // Configuration for client certificate authentication on the cluster. For + // clusters before v1.12, if no configuration is specified, a client + // certificate is issued. + ClientCertificateConfig client_certificate_config = 3; + + string cluster_ca_certificate = 100; + + // [Output only] Base64-encoded public certificate used by clients to + // authenticate to the cluster endpoint. + string client_certificate = 101; + + // [Output only] Base64-encoded private key used by clients to authenticate + // to the cluster endpoint. + string client_key = 102; +} + +// Configuration for client certificates on the cluster. +message ClientCertificateConfig { + // Issue a client certificate. + bool issue_client_certificate = 1; +} + +// Configuration for the addons that can be automatically spun up in the +// cluster, enabling additional functionality. +message AddonsConfig { + // Configuration for the HTTP (L7) load balancing controller addon, which + // makes it easy to set up HTTP load balancers for services in a cluster. + HttpLoadBalancing http_load_balancing = 1; + + // Configuration for the horizontal pod autoscaling feature, which + // increases or decreases the number of replica pods a replication controller + // has based on the resource usage of the existing pods. + HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + + // Configuration for the Kubernetes Dashboard. + // This addon is deprecated, and will be disabled in 1.15. It is recommended + // to use the Cloud Console to manage and monitor your Kubernetes clusters, + // workloads and applications. For more information, see: + // https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards + KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + + // Configuration for NetworkPolicy. This only tracks whether the addon + // is enabled or not on the Master, it does not track whether network policy + // is enabled for the nodes. + NetworkPolicyConfig network_policy_config = 4; + + // Configuration for Istio, an open platform to connect, manage, and secure + // microservices. + IstioConfig istio_config = 5; + + // 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 + // at cluster creation time. + CloudRunConfig cloud_run_config = 7; + + // Configuration for NodeLocalDNS, a dns cache running on cluster nodes + DnsCacheConfig dns_cache_config = 8; + + // Configuration for the ConfigConnector add-on, a Kubernetes + // extension to manage hosted GCP services through the Kubernetes API + ConfigConnectorConfig config_connector_config = 10; + + // Configuration for the Compute Engine Persistent Disk CSI driver. + GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + + // Configuration for the KALM addon, which manages the lifecycle of k8s + // applications. + KalmConfig kalm_config = 12; +} + +// Configuration options for the HTTP (L7) load balancing controller addon, +// which makes it easy to set up HTTP load balancers for services in a cluster. +message HttpLoadBalancing { + // Whether the HTTP Load Balancing controller is enabled in the cluster. + // When enabled, it runs a small pod in the cluster that manages the load + // balancers. + bool disabled = 1; +} + +// Configuration options for the horizontal pod autoscaling feature, which +// increases or decreases the number of replica pods a replication controller +// has based on the resource usage of the existing pods. +message HorizontalPodAutoscaling { + // Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. + // When enabled, it ensures that metrics are collected into Stackdriver + // Monitoring. + bool disabled = 1; +} + +// Configuration for the Kubernetes Dashboard. +message KubernetesDashboard { + // Whether the Kubernetes Dashboard is enabled for this cluster. + bool disabled = 1; +} + +// Configuration for NetworkPolicy. This only tracks whether the addon +// is enabled or not on the Master, it does not track whether network policy +// is enabled for the nodes. +message NetworkPolicyConfig { + // Whether NetworkPolicy is enabled for this cluster. + bool disabled = 1; +} + +// Configuration for NodeLocal DNSCache +message DnsCacheConfig { + // Whether NodeLocal DNSCache is enabled for this cluster. + bool enabled = 1; +} + +// Configuration options for the KALM addon. +message KalmConfig { + // Whether KALM 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. + bool enabled = 1; +} + +// Configuration for the Compute Engine PD CSI driver. This option can only be +// enabled at cluster creation time. +message GcePersistentDiskCsiDriverConfig { + // Whether the Compute Engine PD 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. + bool enabled = 1; +} + +// Configuration options for private clusters. +message PrivateClusterConfig { + // Whether nodes have internal IP addresses only. If enabled, all nodes are + // given only RFC 1918 private addresses and communicate with the master via + // private networking. + bool enable_private_nodes = 1; + + // Whether the master's internal IP address is used as the cluster endpoint. + bool enable_private_endpoint = 2; + + // The IP range in CIDR notation to use for the hosted master network. This + // range will be used for assigning internal IP addresses to the master or + // set of masters, as well as the ILB VIP. This range must not overlap with + // any other ranges in use within the cluster's network. + string master_ipv4_cidr_block = 3; + + // Output only. The internal IP address of this cluster's master endpoint. + string private_endpoint = 4; + + // Output only. The external IP address of this cluster's master endpoint. + string public_endpoint = 5; + + // Output only. The peering name in the customer VPC used by this cluster. + string peering_name = 7; + + // Controls master global access settings. + PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; +} + +// Configuration options for Istio addon. +message IstioConfig { + // Istio auth mode, https://istio.io/docs/concepts/security/mutual-tls.html + enum IstioAuthMode { + // auth not enabled + AUTH_NONE = 0; + + // auth mutual TLS enabled + AUTH_MUTUAL_TLS = 1; + } + + // Whether Istio is enabled for this cluster. + bool disabled = 1; + + // The specified Istio auth mode, either none, or mutual TLS. + IstioAuthMode auth = 2; +} + +// Configuration options for the Cloud Run feature. +message CloudRunConfig { + // Load balancer type of ingress service of Cloud Run. + enum LoadBalancerType { + // Load balancer type for Cloud Run is unspecified. + LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + + // Install external load balancer for Cloud Run. + LOAD_BALANCER_TYPE_EXTERNAL = 1; + + // Install internal load balancer for Cloud Run. + LOAD_BALANCER_TYPE_INTERNAL = 2; + } + + // Whether Cloud Run addon is enabled for this cluster. + bool disabled = 1; + + // Which load balancer type is installed for Cloud Run. + LoadBalancerType load_balancer_type = 3; +} + +// Configuration options for the master authorized networks feature. Enabled +// master authorized networks will disallow all external traffic to access +// Kubernetes master through HTTPS except traffic from the given CIDR blocks, +// Google Compute Engine Public IPs and Google Prod IPs. +message MasterAuthorizedNetworksConfig { + // CidrBlock contains an optional name and one CIDR block. + message CidrBlock { + // display_name is an optional field for users to identify CIDR blocks. + string display_name = 1; + + // cidr_block must be specified in CIDR notation. + string cidr_block = 2; + } + + // Whether or not master authorized networks is enabled. + bool enabled = 1; + + // cidr_blocks define up to 10 external networks that could access + // Kubernetes master through HTTPS. + repeated CidrBlock cidr_blocks = 2; +} + +// Configuration for the legacy Attribute Based Access Control authorization +// mode. +message LegacyAbac { + // Whether the ABAC authorizer is enabled for this cluster. When enabled, + // identities in the system, including service accounts, nodes, and + // controllers, will have statically granted permissions beyond those + // provided by the RBAC configuration or IAM. + bool enabled = 1; +} + +// Configuration options for the NetworkPolicy feature. +// https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ +message NetworkPolicy { + // Allowed Network Policy providers. + enum Provider { + // Not set + PROVIDER_UNSPECIFIED = 0; + + // Tigera (Calico Felix). + CALICO = 1; + } + + // The selected network policy provider. + Provider provider = 1; + + // Whether network policy is enabled on the cluster. + bool enabled = 2; +} + +// Configuration for controlling how IPs are allocated in the cluster. +message IPAllocationPolicy { + // Whether alias IPs will be used for pod IPs in the cluster. + // This is used in conjunction with use_routes. It cannot + // be true if use_routes is true. If both use_ip_aliases and use_routes are + // false, then the server picks the default IP allocation mode + bool use_ip_aliases = 1; + + // Whether a new subnetwork will be created automatically for the cluster. + // + // This field is only applicable when `use_ip_aliases` is true. + bool create_subnetwork = 2; + + // A custom subnetwork name to be used if `create_subnetwork` is true. If + // this field is empty, then an automatic name will be chosen for the new + // subnetwork. + string subnetwork_name = 3; + + // This field is deprecated, use cluster_ipv4_cidr_block. + string cluster_ipv4_cidr = 4 [deprecated = true]; + + // This field is deprecated, use node_ipv4_cidr_block. + string node_ipv4_cidr = 5 [deprecated = true]; + + // This field is deprecated, use services_ipv4_cidr_block. + string services_ipv4_cidr = 6 [deprecated = true]; + + // The name of the secondary range to be used for the cluster CIDR + // block. The secondary range will be used for pod IP + // addresses. This must be an existing secondary range associated + // with the cluster subnetwork. + // + // This field is only applicable with use_ip_aliases and + // create_subnetwork is false. + string cluster_secondary_range_name = 7; + + // The name of the secondary range to be used as for the services + // CIDR block. The secondary range will be used for service + // ClusterIPs. This must be an existing secondary range associated + // with the cluster subnetwork. + // + // This field is only applicable with use_ip_aliases and + // create_subnetwork is false. + string services_secondary_range_name = 8; + + // The IP address range for the cluster pod IPs. If this field is set, then + // `cluster.cluster_ipv4_cidr` must be left blank. + // + // This field is only applicable when `use_ip_aliases` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string cluster_ipv4_cidr_block = 9; + + // The IP address range of the instance IPs in this cluster. + // + // This is applicable only if `create_subnetwork` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string node_ipv4_cidr_block = 10; + + // The IP address range of the services IPs in this cluster. If blank, a range + // will be automatically chosen with the default size. + // + // This field is only applicable when `use_ip_aliases` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string services_ipv4_cidr_block = 11; + + // If true, allow allocation of cluster CIDR ranges that overlap with certain + // kinds of network routes. By default we do not allow cluster CIDR ranges to + // intersect with any user declared routes. With allow_route_overlap == true, + // we allow overlapping with CIDR ranges that are larger than the cluster CIDR + // range. + // + // If this field is set to true, then cluster and services CIDRs must be + // fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means: + // 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and + // `services_ipv4_cidr_block` must be fully-specified. + // 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be + // fully-specified. + bool allow_route_overlap = 12; + + // The IP address range of the Cloud TPUs in this cluster. If unspecified, a + // range will be automatically chosen with the default size. + // + // This field is only applicable when `use_ip_aliases` is true. + // + // If unspecified, the range will use the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + // This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead. + string tpu_ipv4_cidr_block = 13; + + // Whether routes will be used for pod IPs in the cluster. + // This is used in conjunction with use_ip_aliases. It cannot be true if + // use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + // then the server picks the default IP allocation mode + bool use_routes = 15; +} + +// Configuration for Binary Authorization. +message BinaryAuthorization { + // Enable Binary Authorization for this cluster. If enabled, all container + // images will be validated by Google Binauthz. + bool enabled = 1; +} + +// Configuration for the PodSecurityPolicy feature. +message PodSecurityPolicyConfig { + // Enable the PodSecurityPolicy controller for this cluster. If enabled, pods + // must be valid under a PodSecurityPolicy to be created. + bool enabled = 1; +} + +// Configuration for returning group information from authenticators. +message AuthenticatorGroupsConfig { + // Whether this cluster should return group membership lookups + // during authentication using a group of security groups. + bool enabled = 1; + + // The name of the security group-of-groups to be used. Only relevant + // if enabled = true. + string security_group = 2; +} + +// Telemetry integration for the cluster. +message ClusterTelemetry { + // Type of the integration. + enum Type { + // Not set. + UNSPECIFIED = 0; + + // Monitoring integration is disabled. + DISABLED = 1; + + // Monitoring integration is enabled. + ENABLED = 2; + + // Only system components are monitored and logged. + SYSTEM_ONLY = 3; + } + + // Type of the integration. + Type type = 1; +} + +// A Google Kubernetes Engine cluster. +message Cluster { + // The current status of the cluster. + enum Status { + // Not set. + STATUS_UNSPECIFIED = 0; + + // The PROVISIONING state indicates the cluster is being created. + PROVISIONING = 1; + + // The RUNNING state indicates the cluster has been created and is fully + // usable. + RUNNING = 2; + + // The RECONCILING state indicates that some work is actively being done on + // the cluster, such as upgrading the master or node software. Details can + // be found in the `statusMessage` field. + RECONCILING = 3; + + // The STOPPING state indicates the cluster is being deleted. + STOPPING = 4; + + // The ERROR state indicates the cluster may be unusable. Details + // can be found in the `statusMessage` field. + ERROR = 5; + + // The DEGRADED state indicates the cluster requires user action to restore + // full functionality. Details can be found in the `statusMessage` field. + DEGRADED = 6; + } + + // The name of this cluster. The name must be unique within this project + // and location (e.g. zone or region), and can be up to 40 characters with + // the following restrictions: + // + // * Lowercase letters, numbers, and hyphens only. + // * Must start with a letter. + // * Must end with a number or a letter. + string name = 1; + + // An optional description of this cluster. + string description = 2; + + // The number of nodes to create in this cluster. You must ensure that your + // Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + // is sufficient for this number of instances. You must also have available + // firewall and routes quota. + // For requests, this field should only be used in lieu of a + // "node_pool" object, since this configuration (along with the + // "node_config") will be used to create a "NodePool" object with an + // auto-generated name. Do not use this and a node_pool at the same time. + // + // This field is deprecated, use node_pool.initial_node_count instead. + int32 initial_node_count = 3 [deprecated = true]; + + // Parameters used in creating the cluster's nodes. + // For requests, this field should only be used in lieu of a + // "node_pool" object, since this configuration (along with the + // "initial_node_count") will be used to create a "NodePool" object with an + // auto-generated name. Do not use this and a node_pool at the same time. + // For responses, this field will be populated with the node configuration of + // the first node pool. (For configuration of each node pool, see + // `node_pool.config`) + // + // If unspecified, the defaults are used. + // This field is deprecated, use node_pool.config instead. + NodeConfig node_config = 4 [deprecated = true]; + + // The authentication information for accessing the master endpoint. + // If unspecified, the defaults are used: + // For clusters before v1.12, if master_auth is unspecified, `username` will + // be set to "admin", a random password will be generated, and a client + // certificate will be issued. + MasterAuth master_auth = 5; + + // The logging service the cluster should use to write logs. + // Currently available options: + // + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). + // * `none` - no logs will be exported from the cluster. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + string logging_service = 6; + + // The monitoring service the cluster should use to write metrics. + // Currently available options: + // + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + string monitoring_service = 7; + + // The name of the Google Compute Engine + // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + // to which the cluster is connected. If left unspecified, the `default` + // network will be used. On output this shows the network ID instead of the + // name. + string network = 8; + + // The IP address range of the container pods in this cluster, in + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`). Leave blank to have + // one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + string cluster_ipv4_cidr = 9; + + // Configurations for the various addons available to run in the cluster. + AddonsConfig addons_config = 10; + + // The name of the Google Compute Engine + // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which + // the cluster is connected. On output this shows the subnetwork ID instead of + // the name. + string subnetwork = 11; + + // The node pools associated with this cluster. + // This field should not be set if "node_config" or "initial_node_count" are + // specified. + repeated NodePool node_pools = 12; + + // The list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. + // + // This field provides a default value if + // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + // are not specified during node pool creation. + // + // Warning: changing cluster locations will update the + // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + // of all node pools and will result in nodes being added and/or removed. + repeated string locations = 13; + + // Kubernetes alpha features are enabled on this cluster. This includes alpha + // API groups (e.g. v1beta1) and features that may not be production ready in + // the kubernetes version of the master and nodes. + // The cluster has no SLA for uptime and master/node upgrades are disabled. + // Alpha enabled clusters are automatically deleted thirty days after + // creation. + bool enable_kubernetes_alpha = 14; + + // The resource labels for the cluster to use to annotate any related + // Google Compute Engine resources. + map resource_labels = 15; + + // The fingerprint of the set of labels for this cluster. + string label_fingerprint = 16; + + // Configuration for the legacy ABAC authorization mode. + LegacyAbac legacy_abac = 18; + + // Configuration options for the NetworkPolicy feature. + NetworkPolicy network_policy = 19; + + // Configuration for cluster IP allocation. + IPAllocationPolicy ip_allocation_policy = 20; + + // The configuration options for master authorized networks feature. + MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + + // Configure the maintenance policy for this cluster. + MaintenancePolicy maintenance_policy = 23; + + // Configuration for Binary Authorization. + BinaryAuthorization binary_authorization = 24; + + // Configuration for the PodSecurityPolicy feature. + PodSecurityPolicyConfig pod_security_policy_config = 25; + + // Cluster-level autoscaling configuration. + ClusterAutoscaling autoscaling = 26; + + // Configuration for cluster networking. + NetworkConfig network_config = 27; + + // If this is a private cluster setup. Private clusters are clusters that, by + // default have no external IP addresses on the nodes and where nodes and the + // master communicate over private IP addresses. + // This field is deprecated, use private_cluster_config.enable_private_nodes + // instead. + bool private_cluster = 28 [deprecated = true]; + + // The IP prefix in CIDR notation to use for the hosted master network. + // This prefix will be used for assigning private IP addresses to the + // master or set of masters, as well as the ILB VIP. + // This field is deprecated, use + // private_cluster_config.master_ipv4_cidr_block instead. + string master_ipv4_cidr_block = 29 [deprecated = true]; + + // The default constraint on the maximum number of pods that can be run + // simultaneously on a node in the node pool of this cluster. Only honored + // if cluster created with IP Alias support. + MaxPodsConstraint default_max_pods_constraint = 30; + + // Configuration for exporting resource usages. Resource usage export is + // disabled when this config unspecified. + ResourceUsageExportConfig resource_usage_export_config = 33; + + // Configuration controlling RBAC group membership information. + AuthenticatorGroupsConfig authenticator_groups_config = 34; + + // Configuration for private cluster. + PrivateClusterConfig private_cluster_config = 37; + + // Cluster-level Vertical Pod Autoscaling configuration. + VerticalPodAutoscaling vertical_pod_autoscaling = 39; + + // Shielded Nodes configuration. + ShieldedNodes shielded_nodes = 40; + + // Release channel configuration. + ReleaseChannel release_channel = 41; + + // Configuration for the use of Kubernetes Service Accounts in GCP IAM + // policies. + WorkloadIdentityConfig workload_identity_config = 43; + + // Telemetry integration for the cluster. + ClusterTelemetry cluster_telemetry = 46; + + // Configuration for Cloud TPU support; + TpuConfig tpu_config = 47; + + // 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; + + // [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 zone = 101 [deprecated = true]; + + // [Output only] The IP address of this cluster's master endpoint. + // The endpoint can be accessed from the internet at + // `https://username:password@endpoint/`. + // + // See the `masterAuth` property of this resource for username and + // password information. + string endpoint = 102; + + // The initial Kubernetes version for this cluster. Valid versions are those + // found in validMasterVersions returned by getServerConfig. The version can + // be upgraded over time; such upgrades are reflected in + // currentMasterVersion and currentNodeVersion. + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "","-": picks the default Kubernetes version + string initial_cluster_version = 103; + + // [Output only] The current software version of the master endpoint. + string current_master_version = 104; + + // [Output only] Deprecated, use + // [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/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 current_node_version = 105 [deprecated = true]; + + // [Output only] The time the cluster was created, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string create_time = 106; + + // [Output only] The current status of this cluster. + Status status = 107; + + // [Output only] Deprecated. Use conditions instead. + // Additional information about the current status of this + // cluster, if available. + string status_message = 108 [deprecated = true]; + + // [Output only] The size of the address space on each node for hosting + // containers. This is provisioned from within the `container_ipv4_cidr` + // range. This field will only be set when cluster is in route-based network + // mode. + int32 node_ipv4_cidr_size = 109; + + // [Output only] The IP address range of the Kubernetes services in + // this cluster, in + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `1.2.3.4/29`). Service addresses are + // typically put in the last `/16` from the container CIDR. + string services_ipv4_cidr = 110; + + // Deprecated. Use node_pools.instance_group_urls. + repeated string instance_group_urls = 111 [deprecated = true]; + + // [Output only] The number of nodes currently in the cluster. Deprecated. + // Call Kubernetes API directly to retrieve node information. + int32 current_node_count = 112 [deprecated = true]; + + // [Output only] The time the cluster will be automatically + // deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string expire_time = 113; + + // [Output only] The name of the Google Compute Engine + // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // or + // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // in which the cluster resides. + string location = 114; + + // Enable the ability to use Cloud TPUs in this cluster. + // This field is deprecated, use tpu_config.enabled instead. + bool enable_tpu = 115; + + // [Output only] The IP address range of the Cloud TPUs in this cluster, in + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `1.2.3.4/29`). + string tpu_ipv4_cidr_block = 116; + + // Configuration of etcd encryption. + DatabaseEncryption database_encryption = 38; + + // Which conditions caused the current cluster state. + repeated StatusCondition conditions = 118; + + // Configuration for master components. + Master master = 124; +} + +// ClusterUpdate describes an update to the cluster. Exactly one update can +// be applied to a cluster with each request, so at most one field can be +// provided. +message ClusterUpdate { + // The Kubernetes version to change the nodes to (typically an + // upgrade). + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the Kubernetes master version + string desired_node_version = 4; + + // The monitoring service the cluster should use to write metrics. + // Currently available options: + // + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + string desired_monitoring_service = 5; + + // Configurations for the various addons available to run in the cluster. + AddonsConfig desired_addons_config = 6; + + // The node pool to be upgraded. This field is mandatory if + // "desired_node_version", "desired_image_family", + // "desired_node_pool_autoscaling", or "desired_workload_metadata_config" + // is specified and there is more than one node pool on the cluster. + string desired_node_pool_id = 7; + + // The desired image type for the node pool. + // NOTE: Set the "desired_node_pool" field as well. + string desired_image_type = 8; + + // Autoscaler configuration for the node pool specified in + // desired_node_pool_id. If there is only one pool in the + // cluster and desired_node_pool_id is not provided then + // the change applies to that single node pool. + NodePoolAutoscaling desired_node_pool_autoscaling = 9; + + // The desired list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. + // + // This list must always include the cluster's primary zone. + // + // Warning: changing cluster locations will update the locations of all node + // pools and will result in nodes being added and/or removed. + repeated string desired_locations = 10; + + // The desired configuration options for master authorized networks feature. + MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + + // The desired configuration options for the PodSecurityPolicy feature. + PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + + // Cluster-level autoscaling configuration. + ClusterAutoscaling desired_cluster_autoscaling = 15; + + // The desired configuration options for the Binary Authorization feature. + BinaryAuthorization desired_binary_authorization = 16; + + // The logging service the cluster should use to write logs. + // Currently available options: + // + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). + // * `none` - no logs will be exported from the cluster. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + string desired_logging_service = 19; + + // The desired configuration for exporting resource usage. + ResourceUsageExportConfig desired_resource_usage_export_config = 21; + + // Cluster-level Vertical Pod Autoscaling configuration. + VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + + // The desired private cluster configuration. + PrivateClusterConfig desired_private_cluster_config = 25; + + // The desired config of Intra-node visibility. + IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + + // The desired status of whether to disable default sNAT for this cluster. + DefaultSnatStatus desired_default_snat_status = 28; + + // The desired telemetry integration for the cluster. + ClusterTelemetry desired_cluster_telemetry = 30; + + // The desired release channel configuration. + ReleaseChannel desired_release_channel = 31; + + // The desired Cloud TPU configuration. + TpuConfig desired_tpu_config = 38; + + // The desired datapath provider for the cluster. + DatapathProvider desired_datapath_provider = 50; + + // The desired notification configuration. + NotificationConfig desired_notification_config = 55; + + // The Kubernetes version to change the master to. The only valid value is the + // latest supported version. + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the default Kubernetes version + string desired_master_version = 100; + + // Configuration of etcd encryption. + DatabaseEncryption desired_database_encryption = 46; + + // Configuration for Workload Identity. + WorkloadIdentityConfig desired_workload_identity_config = 47; + + // Configuration for Shielded Nodes. + ShieldedNodes desired_shielded_nodes = 48; + + // Configuration for master components. + Master desired_master = 52; +} + +// This operation resource represents operations that may have happened or are +// happening on the cluster. All fields are output only. +message Operation { + // Current status of the operation. + enum Status { + // Not set. + STATUS_UNSPECIFIED = 0; + + // The operation has been created. + PENDING = 1; + + // The operation is currently running. + RUNNING = 2; + + // The operation is done, either cancelled or completed. + DONE = 3; + + // The operation is aborting. + ABORTING = 4; + } + + // Operation type. + enum Type { + // Not set. + TYPE_UNSPECIFIED = 0; + + // Cluster create. + CREATE_CLUSTER = 1; + + // Cluster delete. + DELETE_CLUSTER = 2; + + // A master upgrade. + UPGRADE_MASTER = 3; + + // A node upgrade. + UPGRADE_NODES = 4; + + // Cluster repair. + REPAIR_CLUSTER = 5; + + // Cluster update. + UPDATE_CLUSTER = 6; + + // Node pool create. + CREATE_NODE_POOL = 7; + + // Node pool delete. + DELETE_NODE_POOL = 8; + + // Set node pool management. + SET_NODE_POOL_MANAGEMENT = 9; + + // Automatic node pool repair. + AUTO_REPAIR_NODES = 10; + + // Automatic node upgrade. + AUTO_UPGRADE_NODES = 11; + + // Set labels. + SET_LABELS = 12; + + // Set/generate master auth materials + SET_MASTER_AUTH = 13; + + // Set node pool size. + SET_NODE_POOL_SIZE = 14; + + // Updates network policy for a cluster. + SET_NETWORK_POLICY = 15; + + // Set the maintenance policy. + SET_MAINTENANCE_POLICY = 16; + } + + // The server-assigned ID for the operation. + string name = 1; + + // The name of the Google Compute Engine + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // operation is taking place. This field is deprecated, use location instead. + string zone = 2 [deprecated = true]; + + // The operation type. + Type operation_type = 3; + + // The current status of the operation. + Status status = 4; + + // Detailed operation progress, if available. + string detail = 8; + + // 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 + ]; + + // Server-defined URL for the resource. + string self_link = 6; + + // Server-defined URL for the target of the operation. + string target_link = 7; + + // [Output only] The name of the Google Compute Engine + // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // or + // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // in which the cluster resides. + string location = 9; + + // [Output only] The time the operation started, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string start_time = 10; + + // [Output only] The time the operation completed, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string end_time = 11; + + // Output only. [Output only] Progress information for an operation. + OperationProgress progress = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Which conditions caused the current cluster state. + // Deprecated. Use field error instead. + repeated StatusCondition cluster_conditions = 13 [deprecated = true]; + + // Which conditions caused the current node pool state. + // 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. +message OperationProgress { + // Progress metric is (string, int|float|string) pair. + message Metric { + // Required. Metric name, e.g., "nodes total", "percent done". + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Strictly one of the values is required. + oneof value { + // For metrics with integer value. + int64 int_value = 2; + + // For metrics with floating point value. + double double_value = 3; + + // For metrics with custom values (ratios, visual progress, etc.). + string string_value = 4; + } + } + + // A non-parameterized string describing an operation stage. + // Unset for single-stage operations. + string name = 1; + + // Status of an operation stage. + // Unset for single-stage operations. + Operation.Status status = 2; + + // Progress metric bundle, for example: + // metrics: [{name: "nodes done", int_value: 15}, + // {name: "nodes total", int_value: 32}] + // or + // metrics: [{name: "progress", double_value: 0.56}, + // {name: "progress scale", double_value: 1.0}] + repeated Metric metrics = 3; + + // Substages of an operation or a stage. + repeated OperationProgress stages = 4; +} + +// CreateClusterRequest creates a cluster. +message CreateClusterRequest { + // 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 + ]; + + // 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 + ]; + + // Required. A [cluster + // resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters) + Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; + + // The parent (project and location) where the cluster will be created. + // Specified in the format `projects/*/locations/*`. + string parent = 5; +} + +// GetClusterRequest gets the settings of a cluster. +message GetClusterRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // The name (project, location, cluster) of the cluster to retrieve. + // Specified in the format `projects/*/locations/*/clusters/*`. + string name = 5; +} + +// UpdateClusterRequest updates the settings of a cluster. +message UpdateClusterRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. A description of the update. + ClusterUpdate update = 4 [(google.api.field_behavior) = REQUIRED]; + + // The name (project, location, cluster) of the cluster to update. + // Specified in the format `projects/*/locations/*/clusters/*`. + string name = 5; +} + +// SetNodePoolVersionRequest updates the version of a node pool. +message UpdateNodePoolRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. The Kubernetes version to change the nodes to (typically an + // upgrade). + // + // Users may specify either explicit versions offered by Kubernetes Engine or + // version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the Kubernetes master version + string node_version = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. The desired image type for the node pool. + string image_type = 6 [(google.api.field_behavior) = REQUIRED]; + + // The desired list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // node pool's nodes should be located. Changing the locations for a node pool + // will result in nodes being either created or removed from the node pool, + // depending on whether locations are being added or removed. + repeated string locations = 13; + + // The desired workload metadata config for the node pool. + WorkloadMetadataConfig workload_metadata_config = 14; + + // The name (project, location, cluster, node pool) of the node pool to + // update. Specified in the format + // `projects/*/locations/*/clusters/*/nodePools/*`. + string name = 8; + + // 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; +} + +// SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. +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 + ]; + + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. Autoscaling configuration for the node pool. + NodePoolAutoscaling autoscaling = 5 [(google.api.field_behavior) = REQUIRED]; + + // The name (project, location, cluster, node pool) of the node pool to set + // autoscaler settings. Specified in the format + // `projects/*/locations/*/clusters/*/nodePools/*`. + string name = 6; +} + +// SetLoggingServiceRequest sets the logging service of a cluster. +message SetLoggingServiceRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. The logging service the cluster should use to write logs. + // Currently available options: + // + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). + // * `none` - no logs will be exported from the cluster. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. + string logging_service = 4 [(google.api.field_behavior) = REQUIRED]; + + // The name (project, location, cluster) of the cluster to set logging. + // Specified in the format `projects/*/locations/*/clusters/*`. + string name = 5; +} + +// SetMonitoringServiceRequest sets the monitoring service of a cluster. +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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. The monitoring service the cluster should use to write metrics. + // Currently available options: + // + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. + string monitoring_service = 4 [(google.api.field_behavior) = REQUIRED]; + + // The name (project, location, cluster) of the cluster to set monitoring. + // Specified in the format `projects/*/locations/*/clusters/*`. + string name = 6; +} + +// SetAddonsRequest sets the addons associated with the cluster. +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 + ]; + + // 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 + ]; + + // 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 + ]; + + // 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. + // Specified in the format `projects/*/locations/*/clusters/*`. + string name = 6; +} + +// SetLocationsRequest sets the locations of the cluster. +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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. The desired list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. Changing the locations a cluster is in + // will result in nodes being either created or removed from the cluster, + // depending on whether locations are being added or removed. + // + // This list must always include the cluster's primary zone. + repeated string locations = 4 [(google.api.field_behavior) = REQUIRED]; + + // The name (project, location, cluster) of the cluster to set locations. + // Specified in the format `projects/*/locations/*/clusters/*`. + string name = 6; +} + +// UpdateMasterRequest updates the master of the cluster. +message UpdateMasterRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. The Kubernetes version to change the master to. + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the default Kubernetes version + string master_version = 4 [(google.api.field_behavior) = REQUIRED]; + + // The name (project, location, cluster) of the cluster to update. + // Specified in the format `projects/*/locations/*/clusters/*`. + string name = 7; +} + +// SetMasterAuthRequest updates the admin password of a cluster. +message SetMasterAuthRequest { + // Operation type: what type update to perform. + enum Action { + // Operation is unknown and will error out. + UNKNOWN = 0; + + // Set the password to a user generated value. + SET_PASSWORD = 1; + + // Generate a new password and set it to that. + GENERATE_PASSWORD = 2; + + // Set the username. If an empty username is provided, basic authentication + // is disabled for the cluster. If a non-empty username is provided, basic + // authentication is enabled, with either a provided password or a generated + // one. + SET_USERNAME = 3; + } + + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. The exact form of action to be taken on the master auth. + Action action = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. A description of the update. + MasterAuth update = 5 [(google.api.field_behavior) = REQUIRED]; + + // The name (project, location, cluster) of the cluster to set auth. + // Specified in the format `projects/*/locations/*/clusters/*`. + string name = 7; +} + +// DeleteClusterRequest deletes a cluster. +message DeleteClusterRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // The name (project, location, cluster) of the cluster to delete. + // Specified in the format `projects/*/locations/*/clusters/*`. + string name = 4; +} + +// ListClustersRequest lists clusters. +message ListClustersRequest { + // 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 + ]; + + // 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 + ]; + + // The parent (project and location) where the clusters will be listed. + // Specified in the format `projects/*/locations/*`. + // Location "-" matches all zones and all regions. + string parent = 4; +} + +// ListClustersResponse is the result of ListClustersRequest. +message ListClustersResponse { + // A list of clusters in the project in the specified zone, or + // across all ones. + repeated Cluster clusters = 1; + + // If any zones are listed here, the list of clusters returned + // may be missing those zones. + repeated string missing_zones = 2; +} + +// GetOperationRequest gets a single operation. +message GetOperationRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // The name (project, location, operation id) of the operation to get. + // Specified in the format `projects/*/locations/*/operations/*`. + string name = 5; +} + +// ListOperationsRequest lists operations. +message ListOperationsRequest { + // 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 + ]; + + // 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 + ]; + + // The parent (project and location) where the operations will be listed. + // Specified in the format `projects/*/locations/*`. + // Location "-" matches all zones and all regions. + string parent = 4; +} + +// CancelOperationRequest cancels a single operation. +message CancelOperationRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // The name (project, location, operation id) of the operation to cancel. + // Specified in the format `projects/*/locations/*/operations/*`. + string name = 4; +} + +// ListOperationsResponse is the result of ListOperationsRequest. +message ListOperationsResponse { + // A list of operations in the project in the specified zone. + repeated Operation operations = 1; + + // If any zones are listed here, the list of operations returned + // may be missing the operations from those zones. + repeated string missing_zones = 2; +} + +// Gets the current Kubernetes Engine service configuration. +message GetServerConfigRequest { + // 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 + ]; + + // 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 + ]; + + // The name (project and location) of the server config to get, + // specified in the format `projects/*/locations/*`. + string name = 4; +} + +// Kubernetes Engine service configuration. +message ServerConfig { + // ReleaseChannelConfig exposes configuration for a release channel. + message ReleaseChannelConfig { + // Deprecated. + message AvailableVersion { + option deprecated = true; + + // Kubernetes version. + string version = 1; + + // Reason for availability. + string reason = 2; + } + + // The release channel this configuration applies to. + ReleaseChannel.Channel channel = 1; + + // The default version for newly created clusters on the channel. + string default_version = 2; + + // Deprecated. + // This field has been deprecated and replaced with the valid_versions + // field. + repeated AvailableVersion available_versions = 3 [deprecated = true]; + + // List of valid versions for the channel. + repeated string valid_versions = 4; + } + + // Version of Kubernetes the service deploys by default. + string default_cluster_version = 1; + + // List of valid node upgrade target versions, in descending order. + repeated string valid_node_versions = 3; + + // Default image type. + string default_image_type = 4; + + // List of valid image types. + repeated string valid_image_types = 5; + + // List of valid master versions, in descending order. + repeated string valid_master_versions = 6; + + // List of release channel configurations. + repeated ReleaseChannelConfig channels = 9; +} + +// CreateNodePoolRequest creates a node pool for a cluster. +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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. The node pool to create. + NodePool node_pool = 4 [(google.api.field_behavior) = REQUIRED]; + + // The parent (project, location, cluster id) where the node pool will be + // created. Specified in the format + // `projects/*/locations/*/clusters/*`. + string parent = 6; +} + +// DeleteNodePoolRequest deletes a node pool for a cluster. +message DeleteNodePoolRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // The name (project, location, cluster, node pool id) of the node pool to + // delete. Specified in the format + // `projects/*/locations/*/clusters/*/nodePools/*`. + string name = 6; +} + +// ListNodePoolsRequest lists the node pool(s) for a cluster. +message ListNodePoolsRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // The parent (project, location, cluster id) where the node pools will be + // listed. Specified in the format `projects/*/locations/*/clusters/*`. + string parent = 5; +} + +// GetNodePoolRequest retrieves a node pool for a cluster. +message GetNodePoolRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // The name (project, location, cluster, node pool id) of the node pool to + // get. Specified in the format + // `projects/*/locations/*/clusters/*/nodePools/*`. + string name = 6; +} + +// NodePool contains the name and configuration for a cluster's node pool. +// Node pools are a set of nodes (i.e. VM's), with a common configuration and +// specification, under the control of the cluster master. They may have a set +// of Kubernetes labels applied to them, which may be used to reference them +// during pod scheduling. They may also be resized up or down, to accommodate +// the workload. +message NodePool { + // These upgrade settings control the level of parallelism and the level of + // disruption caused by an upgrade. + // + // maxUnavailable controls the number of nodes that can be simultaneously + // unavailable. + // + // maxSurge controls the number of additional nodes that can be added to the + // node pool temporarily for the time of the upgrade to increase the number of + // available nodes. + // + // (maxUnavailable + maxSurge) determines the level of parallelism (how many + // nodes are being upgraded at the same time). + // + // Note: upgrades inevitably introduce some disruption since workloads need to + // be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, + // this holds true. (Disruption stays within the limits of + // PodDisruptionBudget, if it is configured.) + // + // Consider a hypothetical node pool with 5 nodes having maxSurge=2, + // maxUnavailable=1. This means the upgrade process upgrades 3 nodes + // simultaneously. It creates 2 additional (upgraded) nodes, then it brings + // down 3 old (not yet upgraded) nodes at the same time. This ensures that + // there are always at least 4 nodes available. + message UpgradeSettings { + // The maximum number of nodes that can be created beyond the current size + // of the node pool during the upgrade process. + int32 max_surge = 1; + + // The maximum number of nodes that can be simultaneously unavailable during + // the upgrade process. A node is considered available if its status is + // Ready. + int32 max_unavailable = 2; + } + + // The current status of the node pool instance. + enum Status { + // Not set. + STATUS_UNSPECIFIED = 0; + + // The PROVISIONING state indicates the node pool is being created. + PROVISIONING = 1; + + // The RUNNING state indicates the node pool has been created + // and is fully usable. + RUNNING = 2; + + // The RUNNING_WITH_ERROR state indicates the node pool has been created + // and is partially usable. Some error state has occurred and some + // functionality may be impaired. Customer may need to reissue a request + // or trigger a new update. + RUNNING_WITH_ERROR = 3; + + // The RECONCILING state indicates that some work is actively being done on + // the node pool, such as upgrading node software. Details can + // be found in the `statusMessage` field. + RECONCILING = 4; + + // The STOPPING state indicates the node pool is being deleted. + STOPPING = 5; + + // The ERROR state indicates the node pool may be unusable. Details + // can be found in the `statusMessage` field. + ERROR = 6; + } + + // The name of the node pool. + string name = 1; + + // The node configuration of the pool. + NodeConfig config = 2; + + // The initial node count for the pool. You must ensure that your + // Compute Engine [resource quota](https://cloud.google.com/compute/quotas) + // is sufficient for this number of instances. You must also have available + // firewall and routes quota. + int32 initial_node_count = 3; + + // The list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // NodePool's nodes should be located. + // + // If this value is unspecified during node pool creation, the + // [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + // value will be used, instead. + // + // Warning: changing node pool locations will result in nodes being added + // and/or removed. + repeated string locations = 13; + + // [Output only] Server-defined URL for the resource. + string self_link = 100; + + // The version of the Kubernetes of this node. + string version = 101; + + // [Output only] The resource URLs of the [managed instance + // groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) + // associated with this node pool. + repeated string instance_group_urls = 102; + + // [Output only] The status of the nodes in this pool instance. + Status status = 103; + + // [Output only] Deprecated. Use conditions instead. + // Additional information about the current status of this + // node pool instance, if available. + string status_message = 104 [deprecated = true]; + + // Autoscaler configuration for this NodePool. Autoscaler is enabled + // only if a valid configuration is present. + NodePoolAutoscaling autoscaling = 4; + + // NodeManagement configuration for this NodePool. + NodeManagement management = 5; + + // The constraint on the maximum number of pods that can be run + // simultaneously on a node in the node pool. + MaxPodsConstraint max_pods_constraint = 6; + + // Which conditions caused the current node pool state. + repeated StatusCondition conditions = 105; + + // [Output only] The pod CIDR block size per node in this node pool. + int32 pod_ipv4_cidr_size = 7; + + // Upgrade settings control disruption and speed of the upgrade. + UpgradeSettings upgrade_settings = 107; +} + +// NodeManagement defines the set of node management services turned on for the +// node pool. +message NodeManagement { + // Whether the nodes will be automatically upgraded. + bool auto_upgrade = 1; + + // Whether the nodes will be automatically repaired. + bool auto_repair = 2; + + // Specifies the Auto Upgrade knobs for the node pool. + AutoUpgradeOptions upgrade_options = 10; +} + +// AutoUpgradeOptions defines the set of options for the user to control how +// the Auto Upgrades will proceed. +message AutoUpgradeOptions { + // [Output only] This field is set when upgrades are about to commence + // with the approximate start time for the upgrades, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string auto_upgrade_start_time = 1; + + // [Output only] This field is set when upgrades are about to commence + // with the description of the upgrade. + string description = 2; +} + +// MaintenancePolicy defines the maintenance policy to be used for the cluster. +message MaintenancePolicy { + // Specifies the maintenance window in which maintenance may be performed. + MaintenanceWindow window = 1; + + // A hash identifying the version of this policy, so that updates to fields of + // the policy won't accidentally undo intermediate changes (and so that users + // of the API unaware of some fields won't accidentally remove other fields). + // Make a `get()` request to the cluster to get the current + // resource version and include it with requests to set the policy. + string resource_version = 3; +} + +// MaintenanceWindow defines the maintenance window to be used for the cluster. +message MaintenanceWindow { + // Unimplemented, reserved for future use. + // HourlyMaintenanceWindow hourly_maintenance_window = 1; + oneof policy { + // DailyMaintenanceWindow specifies a daily maintenance operation window. + DailyMaintenanceWindow daily_maintenance_window = 2; + + // RecurringWindow specifies some number of recurring time periods for + // maintenance to occur. The time windows may be overlapping. If no + // maintenance windows are set, maintenance can occur at any time. + RecurringTimeWindow recurring_window = 3; + } + + // Exceptions to maintenance window. Non-emergency maintenance should not + // occur in these windows. + map maintenance_exclusions = 4; +} + +// Represents an arbitrary window of time. +message TimeWindow { + // The time that the window first starts. + google.protobuf.Timestamp start_time = 1; + + // The time that the window ends. The end time should take place after the + // start time. + google.protobuf.Timestamp end_time = 2; +} + +// Represents an arbitrary window of time that recurs. +message RecurringTimeWindow { + // The window of the first recurrence. + TimeWindow window = 1; + + // An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how + // this window reccurs. They go on for the span of time between the start and + // end time. + // + // For example, to have something repeat every weekday, you'd use: + // `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` + // + // To repeat some window daily (equivalent to the DailyMaintenanceWindow): + // `FREQ=DAILY` + // + // For the first weekend of every month: + // `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` + // + // This specifies how frequently the window starts. Eg, if you wanted to have + // a 9-5 UTC-4 window every weekday, you'd use something like: + // ``` + // start time = 2019-01-01T09:00:00-0400 + // end time = 2019-01-01T17:00:00-0400 + // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + // ``` + // + // Windows can span multiple days. Eg, to make the window encompass every + // weekend from midnight Saturday till the last minute of Sunday UTC: + // ``` + // start time = 2019-01-05T00:00:00Z + // end time = 2019-01-07T23:59:00Z + // recurrence = FREQ=WEEKLY;BYDAY=SA + // ``` + // + // Note the start and end time's specific dates are largely arbitrary except + // to specify duration of the window and when it first starts. + // The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. + string recurrence = 2; +} + +// Time window specified for daily maintenance operations. +message DailyMaintenanceWindow { + // Time within the maintenance window to start the maintenance operations. + // It must be in format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. + string start_time = 2; + + // [Output only] Duration of the time window, automatically chosen to be + // smallest possible in the given scenario. + string duration = 3; +} + +// SetNodePoolManagementRequest sets the node management properties of a node +// pool. +message SetNodePoolManagementRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. NodeManagement configuration for the node pool. + NodeManagement management = 5 [(google.api.field_behavior) = REQUIRED]; + + // The name (project, location, cluster, node pool id) of the node pool to set + // management properties. Specified in the format + // `projects/*/locations/*/clusters/*/nodePools/*`. + string name = 7; +} + +// SetNodePoolSizeRequest sets the size a node +// pool. +message SetNodePoolSizeRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. The desired node count for the pool. + int32 node_count = 5 [(google.api.field_behavior) = REQUIRED]; + + // The name (project, location, cluster, node pool id) of the node pool to set + // size. + // Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + string name = 7; +} + +// RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed +// NodePool upgrade. This will be an no-op if the last upgrade successfully +// completed. +message RollbackNodePoolUpgradeRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // The name (project, location, cluster, node pool id) of the node poll to + // rollback upgrade. + // Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. + string name = 6; +} + +// ListNodePoolsResponse is the result of ListNodePoolsRequest. +message ListNodePoolsResponse { + // A list of node pools for a cluster. + repeated NodePool node_pools = 1; +} + +// ClusterAutoscaling contains global, per-cluster information +// required by Cluster Autoscaler to automatically adjust +// the size of the cluster and create/delete +// node pools based on the current needs. +message ClusterAutoscaling { + // 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; + + // Contains global constraints regarding minimum and maximum + // 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; + + // The list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // NodePool's nodes can be created by NAP. + repeated string autoprovisioning_locations = 5; +} + +// AutoprovisioningNodePoolDefaults contains defaults for a node pool created +// by NAP. +message AutoprovisioningNodePoolDefaults { + // The set of Google API scopes to be made available on all of the + // node VMs under the "default" service account. + // + // The following scopes are recommended, but not required, and by default are + // not included: + // + // * `https://www.googleapis.com/auth/compute` is required for mounting + // persistent storage on your nodes. + // * `https://www.googleapis.com/auth/devstorage.read_only` is required for + // communicating with **gcr.io** + // (the [Google Container + // Registry](https://cloud.google.com/container-registry/)). + // + // If unspecified, no scopes are added, unless Cloud Logging or Cloud + // Monitoring are enabled, in which case their required scopes will be added. + repeated string oauth_scopes = 1; + + // The Google Cloud Platform Service Account to be used by the node VMs. + // Specify the email address of the Service Account; otherwise, if no Service + // Account is specified, the "default" service account is used. + string service_account = 2; + + // Upgrade settings control disruption and speed of the upgrade. + NodePool.UpgradeSettings upgrade_settings = 3; + + // NodeManagement configuration for this NodePool. + NodeManagement management = 4; + + // Minimum CPU platform to be used by this instance. The instance may be + // scheduled on the specified or newer CPU platform. Applicable values are the + // friendly names of CPU platforms, such as + // `minCpuPlatform: "Intel Haswell"` or + // `minCpuPlatform: "Intel Sandy Bridge"`. For more + // information, read [how to specify min CPU + // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + // To unset the min cpu platform field pass "automatic" + // as field value. + string min_cpu_platform = 5; + + // Size of the disk attached to each node, specified in GB. + // The smallest allowed disk size is 10GB. + // + // If unspecified, the default disk size is 100GB. + int32 disk_size_gb = 6; + + // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + // 'pd-balanced') + // + // If unspecified, the default disk type is 'pd-standard' + string disk_type = 7; + + // Shielded Instance options. + ShieldedInstanceConfig shielded_instance_config = 8; + + // + // The Customer Managed Encryption Key used to encrypt the boot disk attached + // to each node in the node pool. This should be of the form + // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + // For more information about protecting resources with Cloud KMS Keys please + // see: + // https://cloud.google.com/compute/docs/disks/customer-managed-encryption + string boot_disk_kms_key = 9; + + // The image type to use for node created by NodeAutoprovisioning. + string image_type = 10; +} + +// Contains information about amount of some resource in the cluster. +// For memory, value should be in GB. +message ResourceLimit { + // Resource name "cpu", "memory" or gpu-specific string. + string resource_type = 1; + + // Minimum amount of the resource in the cluster. + int64 minimum = 2; + + // Maximum amount of the resource in the cluster. + int64 maximum = 3; +} + +// NodePoolAutoscaling contains information required by cluster autoscaler to +// adjust the size of the node pool to the current cluster usage. +message NodePoolAutoscaling { + // Is autoscaling enabled for this node pool. + bool enabled = 1; + + // Minimum number of nodes in the NodePool. Must be >= 1 and <= + // max_node_count. + int32 min_node_count = 2; + + // Maximum number of nodes in the NodePool. Must be >= min_node_count. There + // has to enough quota to scale up the cluster. + int32 max_node_count = 3; + + // Can this node pool be deleted automatically. + bool autoprovisioned = 4; +} + +// SetLabelsRequest sets the Google Cloud Platform labels on a Google Container +// Engine cluster, which will in turn set them for Google Compute Engine +// resources used by that cluster +message SetLabelsRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. The labels to set for that cluster. + 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 + // Kubernetes Engine and changes after every request to modify or update + // labels. You must always provide an up-to-date fingerprint hash when + // updating or changing labels. Make a `get()` request to the + // resource to get the latest fingerprint. + string label_fingerprint = 5 [(google.api.field_behavior) = REQUIRED]; + + // The name (project, location, cluster id) of the cluster to set labels. + // Specified in the format `projects/*/locations/*/clusters/*`. + string name = 7; +} + +// SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for +// a cluster. +message SetLegacyAbacRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. Whether ABAC authorization will be enabled in the cluster. + bool enabled = 4 [(google.api.field_behavior) = REQUIRED]; + + // The name (project, location, cluster id) of the cluster to set legacy abac. + // Specified in the format `projects/*/locations/*/clusters/*`. + string name = 6; +} + +// StartIPRotationRequest creates a new IP for the cluster and then performs +// a node upgrade on each node pool to point to the new IP. +message StartIPRotationRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // The name (project, location, cluster id) of the cluster to start IP + // rotation. Specified in the format `projects/*/locations/*/clusters/*`. + string name = 6; + + // Whether to rotate credentials during IP rotation. + bool rotate_credentials = 7; +} + +// CompleteIPRotationRequest moves the cluster master back into single-IP mode. +message CompleteIPRotationRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // The name (project, location, cluster id) of the cluster to complete IP + // rotation. Specified in the format `projects/*/locations/*/clusters/*`. + string name = 7; +} + +// AcceleratorConfig represents a Hardware Accelerator request. +message AcceleratorConfig { + // The number of the accelerator cards exposed to an instance. + int64 accelerator_count = 1; + + // The accelerator type resource name. List of supported accelerators + // [here](https://cloud.google.com/compute/docs/gpus) + string accelerator_type = 2; +} + +// WorkloadMetadataConfig defines the metadata configuration to expose to +// workloads on the node pool. +message WorkloadMetadataConfig { + // NodeMetadata is the configuration for if and how to expose the node + // metadata to the workload running on the node. + enum NodeMetadata { + // Not set. + UNSPECIFIED = 0; + + // Prevent workloads not in hostNetwork from accessing certain VM metadata, + // specifically kube-env, which contains Kubelet credentials, and the + // instance identity token. + // + // Metadata concealment is a temporary security solution available while the + // bootstrapping process for cluster nodes is being redesigned with + // significant security improvements. This feature is scheduled to be + // deprecated in the future and later removed. + SECURE = 1; + + // Expose all VM metadata to pods. + EXPOSE = 2; + + // Run the GKE Metadata Server on this node. The GKE Metadata Server exposes + // a metadata API to workloads that is compatible with the V1 Compute + // Metadata APIs exposed by the Compute Engine and App Engine Metadata + // Servers. This feature can only be enabled if Workload Identity is enabled + // at the cluster level. + GKE_METADATA_SERVER = 3; + } + + // Mode is the configuration for how to expose metadata to workloads running + // on the node. + enum Mode { + // Not set. + MODE_UNSPECIFIED = 0; + + // Expose all Compute Engine metadata to pods. + GCE_METADATA = 1; + + // Run the GKE Metadata Server on this node. The GKE Metadata Server exposes + // a metadata API to workloads that is compatible with the V1 Compute + // Metadata APIs exposed by the Compute Engine and App Engine Metadata + // Servers. This feature can only be enabled if Workload Identity is enabled + // at the cluster level. + GKE_METADATA = 2; + } + + // NodeMetadata is the configuration for how to expose metadata to the + // workloads running on the node. + NodeMetadata node_metadata = 1 [deprecated = true]; + + // Mode is the configuration for how to expose metadata to workloads running + // on the node pool. + Mode mode = 2; +} + +// SetNetworkPolicyRequest enables/disables network policy for a cluster. +message SetNetworkPolicyRequest { + // 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 + ]; + + // 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 + ]; + + // 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 + ]; + + // Required. Configuration options for the NetworkPolicy feature. + NetworkPolicy network_policy = 4 [(google.api.field_behavior) = REQUIRED]; + + // The name (project, location, cluster id) of the cluster to set networking + // policy. Specified in the format `projects/*/locations/*/clusters/*`. + string name = 6; +} + +// SetMaintenancePolicyRequest sets the maintenance policy for a cluster. +message SetMaintenancePolicyRequest { + // Required. The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the Google Compute Engine + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. + string zone = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the cluster to update. + string cluster_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // 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]; + + // The name (project, location, cluster id) of the cluster to set maintenance + // policy. + // Specified in the format `projects/*/locations/*/clusters/*`. + string name = 5; +} + +// ListLocationsRequest is used to request the locations that offer GKE. +message ListLocationsRequest { + // Required. Contains the name of the resource requested. + // Specified in the format `projects/*`. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// ListLocationsResponse returns the list of all GKE locations and their +// recommendation state. +message ListLocationsResponse { + // A full list of GKE locations. + repeated Location locations = 1; + + // Only return ListLocationsResponse that occur after the page_token. This + // value should be populated from the ListLocationsResponse.next_page_token if + // that response token was set (which happens when listing more Locations than + // fit in a single ListLocationsResponse). + string next_page_token = 2; +} + +// Location returns the location name, and if the location is recommended +// for GKE cluster scheduling. +message Location { + // LocationType is the type of GKE location, regional or zonal. + enum LocationType { + // LOCATION_TYPE_UNSPECIFIED means the location type was not determined. + LOCATION_TYPE_UNSPECIFIED = 0; + + // A GKE Location where Zonal clusters can be created. + ZONE = 1; + + // A GKE Location where Regional clusters can be created. + REGION = 2; + } + + // Contains the type of location this Location is for. + // Regional or Zonal. + LocationType type = 1; + + // Contains the name of the resource requested. + // Specified in the format `projects/*/locations/*`. + string name = 2; + + // Whether the location is recomended for GKE cluster scheduling. + bool recommended = 3; +} + +// StatusCondition describes why a cluster or a node pool has a certain status +// (e.g., ERROR or DEGRADED). +message StatusCondition { + // Code for each condition + enum Code { + // UNKNOWN indicates a generic condition. + UNKNOWN = 0; + + // GCE_STOCKOUT indicates that Google Compute Engine resources are + // temporarily unavailable. + GCE_STOCKOUT = 1; + + // GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot + // service account. + GKE_SERVICE_ACCOUNT_DELETED = 2; + + // Google Compute Engine quota was exceeded. + GCE_QUOTA_EXCEEDED = 3; + + // Cluster state was manually changed by an SRE due to a system logic error. + SET_BY_OPERATOR = 4; + + // Unable to perform an encrypt operation against the CloudKMS key used for + // etcd level encryption. + // More codes TBA + CLOUD_KMS_KEY_ERROR = 7; + } + + // Machine-friendly representation of the condition + // 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. +message NetworkConfig { + // Output only. The relative name of the Google Compute Engine + // [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + // to which the cluster is connected. Example: + // projects/my-project/global/networks/my-network + string network = 1; + + // Output only. The relative name of the Google Compute Engine + // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + // cluster is connected. Example: + // projects/my-project/regions/us-central1/subnetworks/my-subnet + string subnetwork = 2; + + // Whether Intra-node visibility is enabled for this cluster. + // This makes same node pod to pod traffic visible for VPC network. + bool enable_intra_node_visibility = 5; + + // Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + // will be disabled when default_snat_status is disabled. When disabled is set + // to false, default IP masquerade rules will be applied to the nodes to + // prevent sNAT on cluster internal traffic. + DefaultSnatStatus default_snat_status = 7; + + // The desired datapath provider for this cluster. By default, uses the + // IPTables-based kube-proxy implementation. + DatapathProvider datapath_provider = 11; +} + +// ListUsableSubnetworksRequest requests the list of usable subnetworks. +// available to a user for creating clusters. +message ListUsableSubnetworksRequest { + // Required. The parent project where subnetworks are usable. + // Specified in the format `projects/*`. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Filtering currently only supports equality on the networkProjectId and must + // be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + // is the project which owns the listed subnetworks. This defaults to the + // parent project ID. + string filter = 2; + + // The max number of results per page that should be returned. If the number + // of available results is larger than `page_size`, a `next_page_token` is + // returned which can be used to get the next page of results in subsequent + // requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + int32 page_size = 3; + + // Specifies a page token to use. Set this to the nextPageToken returned by + // previous list requests to get the next page of results. + string page_token = 4; +} + +// ListUsableSubnetworksResponse is the response of +// ListUsableSubnetworksRequest. +message ListUsableSubnetworksResponse { + // A list of usable subnetworks in the specified network project. + repeated UsableSubnetwork subnetworks = 1; + + // This token allows you to get the next page of results for list requests. + // If the number of results is larger than `page_size`, use the + // `next_page_token` as a value for the query parameter `page_token` in the + // next request. The value will become empty when there are no more pages. + string next_page_token = 2; +} + +// Secondary IP range of a usable subnetwork. +message UsableSubnetworkSecondaryRange { + // Status shows the current usage of a secondary IP range. + enum Status { + // UNKNOWN is the zero value of the Status enum. It's not a valid status. + UNKNOWN = 0; + + // UNUSED denotes that this range is unclaimed by any cluster. + UNUSED = 1; + + // IN_USE_SERVICE denotes that this range is claimed by a cluster for + // services. It cannot be used for other clusters. + IN_USE_SERVICE = 2; + + // IN_USE_SHAREABLE_POD denotes this range was created by the network admin + // and is currently claimed by a cluster for pods. It can only be used by + // other clusters as a pod range. + IN_USE_SHAREABLE_POD = 3; + + // IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed + // for pods. It cannot be used for other clusters. + IN_USE_MANAGED_POD = 4; + } + + // The name associated with this subnetwork secondary range, used when adding + // an alias IP range to a VM instance. + string range_name = 1; + + // The range of IP addresses belonging to this subnetwork secondary range. + string ip_cidr_range = 2; + + // This field is to determine the status of the secondary range programmably. + Status status = 3; +} + +// UsableSubnetwork resource returns the subnetwork name, its associated network +// and the primary CIDR range. +message UsableSubnetwork { + // Subnetwork Name. + // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + string subnetwork = 1; + + // Network Name. + // Example: projects/my-project/global/networks/my-network + string network = 2; + + // The range of internal addresses that are owned by this subnetwork. + string ip_cidr_range = 3; + + // Secondary IP ranges. + repeated UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + + // A human readable status message representing the reasons for cases where + // the caller cannot use the secondary ranges under the subnet. For example if + // the secondary_ip_ranges is empty due to a permission issue, an insufficient + // permission message will be given by status_message. + string status_message = 5; +} + +// VerticalPodAutoscaling contains global, per-cluster information +// required by Vertical Pod Autoscaler to automatically adjust +// the resources of pods controlled by it. +message VerticalPodAutoscaling { + // Enables vertical pod autoscaling. + bool enabled = 1; +} + +// DefaultSnatStatus contains the desired state of whether default sNAT should +// be disabled on the cluster. +message DefaultSnatStatus { + // Disables cluster default sNAT rules. + bool disabled = 1; +} + +// IntraNodeVisibilityConfig contains the desired config of the intra-node +// visibility on this cluster. +message IntraNodeVisibilityConfig { + // Enables intra node visibility for this cluster. + bool enabled = 1; +} + +// Constraints applied to pods. +message MaxPodsConstraint { + // Constraint enforced on the max num of pods per node. + int64 max_pods_per_node = 1; +} + +// Configuration for the use of Kubernetes Service Accounts in GCP IAM +// policies. +message WorkloadIdentityConfig { + // IAM Identity Namespace to attach all Kubernetes Service Accounts to. + string identity_namespace = 1 [deprecated = true]; + + // The workload pool to attach all Kubernetes service accounts to. + string workload_pool = 2; + + // identity provider is the third party identity provider. + string identity_provider = 3; +} + +// Configuration of etcd encryption. +message DatabaseEncryption { + // State of etcd encryption. + enum State { + // Should never be set + UNKNOWN = 0; + + // Secrets in etcd are encrypted. + ENCRYPTED = 1; + + // Secrets in etcd are stored in plain text (at etcd level) - this is + // unrelated to Compute Engine level full disk encryption. + DECRYPTED = 2; + } + + // Denotes the state of etcd encryption. + State state = 2; + + // Name of CloudKMS key to use for the encryption of secrets in etcd. + // Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key + string key_name = 1; +} + +// Configuration for exporting cluster resource usages. +message ResourceUsageExportConfig { + // Parameters for using BigQuery as the destination of resource usage export. + message BigQueryDestination { + // The ID of a BigQuery Dataset. + string dataset_id = 1; + } + + // Parameters for controlling consumption metering. + message ConsumptionMeteringConfig { + // Whether to enable consumption metering for this cluster. If enabled, a + // second BigQuery table will be created to hold resource consumption + // records. + bool enabled = 1; + } + + // Configuration to use BigQuery as usage export destination. + BigQueryDestination bigquery_destination = 1; + + // Whether to enable network egress metering for this cluster. If enabled, a + // daemonset will be created in the cluster to meter network egress traffic. + bool enable_network_egress_metering = 2; + + // Configuration to enable resource consumption metering. + ConsumptionMeteringConfig consumption_metering_config = 3; +} + +// Configuration of Shielded Nodes feature. +message ShieldedNodes { + // Whether Shielded Nodes features are enabled on all nodes in this cluster. + 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 + // for. Specified in the format `projects/*/locations/*/clusters/*`. + string parent = 1; +} + +// GetOpenIDConfigResponse is an OIDC discovery document for the cluster. +// See the OpenID Connect Discovery 1.0 specification for details. +message GetOpenIDConfigResponse { + // OIDC Issuer. + string issuer = 1; + + // JSON Web Key uri. + string jwks_uri = 2; + + // Supported response types. + repeated string response_types_supported = 3; + + // Supported subject types. + repeated string subject_types_supported = 4; + + // supported ID Token signing Algorithms. + repeated string id_token_signing_alg_values_supported = 5; + + // Supported claims. + repeated string claims_supported = 6; + + // Supported grant types. + repeated string grant_types = 7; +} + +// GetJSONWebKeysRequest gets the public component of the keys used by the +// cluster to sign token requests. This will be the jwks_uri for the discover +// document returned by getOpenIDConfig. See the OpenID Connect +// Discovery 1.0 specification for details. +message GetJSONWebKeysRequest { + // The cluster (project, location, cluster id) to get keys for. Specified in + // the format `projects/*/locations/*/clusters/*`. + string parent = 1; +} + +// Jwk is a JSON Web Key as specified in RFC 7517 +message Jwk { + // Key Type. + string kty = 1; + + // Algorithm. + string alg = 2; + + // Permitted uses for the public keys. + string use = 3; + + // Key ID. + string kid = 4; + + // Used for RSA keys. + string n = 5; + + // Used for RSA keys. + string e = 6; + + // Used for ECDSA keys. + string x = 7; + + // Used for ECDSA keys. + string y = 8; + + // Used for ECDSA keys. + string crv = 9; +} + +// GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517 +message GetJSONWebKeysResponse { + // The public component of the keys used by the cluster to sign token + // requests. + repeated Jwk keys = 1; +} + +// ReleaseChannel indicates which release channel a cluster is +// subscribed to. Release channels are arranged in order of risk. +// +// When a cluster is subscribed to a release channel, Google maintains +// both the master version and the node version. Node auto-upgrade +// defaults to true and cannot be disabled. +message ReleaseChannel { + // Possible values for 'channel'. + enum Channel { + // No channel specified. + UNSPECIFIED = 0; + + // RAPID channel is offered on an early access basis for customers who want + // to test new releases. + // + // WARNING: Versions available in the RAPID Channel may be subject to + // unresolved issues with no known workaround and are not subject to any + // SLAs. + RAPID = 1; + + // Clusters subscribed to REGULAR receive versions that are considered GA + // quality. REGULAR is intended for production users who want to take + // advantage of new features. + REGULAR = 2; + + // Clusters subscribed to STABLE receive versions that are known to be + // stable and reliable in production. + STABLE = 3; + } + + // channel specifies which release channel the cluster is subscribed to. + Channel channel = 1; +} + +// Configuration for Cloud TPU. +message TpuConfig { + // Whether Cloud TPU integration is enabled or not. + bool enabled = 1; + + // Whether to use service networking for Cloud TPU or not. + bool use_service_networking = 2; + + // IPv4 CIDR block reserved for Cloud TPU in the VPC. + string ipv4_cidr_block = 3; +} + +// Master is the configuration for components on master. +message Master { + +} + +// NotificationConfig is the configuration of notifications. +message NotificationConfig { + // 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" + }]; + } + + // 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; +} + +// UpgradeEvent is a notification sent to customers by the cluster server when +// a resource is upgrading. +message UpgradeEvent { + // Required. The resource type that is upgrading. + UpgradeResourceType resource_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation associated with this upgrade. + string operation = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The time when the operation was started. + google.protobuf.Timestamp operation_start_time = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The current version before the upgrade. + string current_version = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The target version for the upgrade. + string target_version = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Optional relative path to the resource. For example in node pool upgrades, + // the relative path of the node pool. + string resource = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// 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; +} diff --git a/versions.txt b/versions.txt index 679eebdc..20c7faae 100644 --- a/versions.txt +++ b/versions.txt @@ -3,4 +3,6 @@ google-cloud-container:1.4.0:1.4.1-SNAPSHOT grpc-google-cloud-container-v1:1.4.0:1.4.1-SNAPSHOT +grpc-google-cloud-container-v1beta1:1.4.0:1.4.1-SNAPSHOT proto-google-cloud-container-v1:1.4.0:1.4.1-SNAPSHOT +proto-google-cloud-container-v1beta1:1.4.0:1.4.1-SNAPSHOT